@charset "UTF-8";

/* Base and keyboard access */
:root {
  color-scheme: dark;
  --bg: #121415;
  --surface: #191c1e;
  --ink: #ecefed;
  --muted: #a4adb2;
  --line: #303639;
  --accent: #77c59c;
  --accent-hover: #a4dfbe;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
a { color: var(--accent); text-underline-offset: .23em; }
a:hover { color: var(--accent-hover); }
button, input, textarea { font: inherit; }
button, .button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: .6em 1.2em;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--accent-hover); color: var(--bg); }
button:disabled { background: var(--surface); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; top: -80px; left: 12px; padding: 12px; background: var(--surface); z-index: 10; }
.skip-link:focus { top: 8px; }

/* Header and category navigation */
.preview-notice {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  padding: 5px 16px;
}
.header-inner { max-width: 1160px; margin: auto; padding: 36px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.brand-lockup { min-width: 0; max-width: 100%; }
.brand-tagline { margin: 8px 0 0; color: var(--muted); font-family: "Korneuburg Slab Regular", Arial, sans-serif; font-size: 14px; font-weight: 700; line-height: 1.6; }
.brand { display: block; flex-shrink: 0; width: 224px; max-width: 100%; }
.brand img { display: block; width: 100%; height: auto; }
.search { margin-left: auto; display: flex; min-width: 0; gap: 8px; }
.search input { width: 190px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: 14px; }
.search button { padding: 8px 14px; border-color: var(--line); background: var(--surface); color: var(--ink); font-size: 14px; }
.search button:hover { border-color: var(--accent); }
.main-nav { border-bottom: 1px solid var(--line); }
.main-nav > div { max-width: 1160px; margin: auto; display: flex; overflow-x: auto; padding: 4px 12px; }
.main-nav a { color: var(--muted); text-decoration: none; white-space: nowrap; padding: 12px; font-size: 13px; }
.main-nav a:hover { color: var(--ink); }

/* Listing: image, title, summary, date */
.site-main { max-width: 1160px; padding: 48px 24px 88px; margin: auto; min-height: 55vh; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.section-heading { display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.section-heading h1, .section-heading h2 { font-size: 21px; margin: 0; font-weight: 600; }
.section-heading > span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.article-card { min-width: 0; display: flex; flex-direction: column; }
.card-image { display: flex; aspect-ratio: 1.91; align-items: center; justify-content: center; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image > span { letter-spacing: .18em; font-size: 12px; color: var(--muted); }
.card-body { padding-top: 18px; display: flex; flex-direction: column; flex: 1; }
.category-label { font-size: 11px; letter-spacing: .04em; text-decoration: none; color: var(--accent); }
.card-body h2 { font-size: 18px; font-weight: 600; line-height: 1.65; margin: 8px 0 12px; }
.card-body h2 a { color: var(--ink); text-decoration: none; }
.card-body h2 a:hover { color: var(--accent); text-decoration: underline; }
.card-body p { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-body time { margin-top: auto; font-size: 12px; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 430px; margin: 56px auto 0; font-size: 13px; }
.pagination a { padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.empty-state { padding: 40px 20px; background: var(--surface); border-radius: var(--radius); text-align: center; }

/* Article and imported content */
.breadcrumbs { font-size: 12px; margin: 0 auto 32px; max-width: 800px; display: flex; gap: 12px; align-items: baseline; }
.breadcrumbs > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.article { max-width: 800px; min-width: 0; margin: auto; }
.article-header h1 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 600; line-height: 1.6; letter-spacing: .015em; margin: 18px 0; }
.chips, .article-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-block; background: var(--surface); color: var(--accent); padding: 3px 10px; border-radius: 4px; font-size: 12px; text-decoration: none; }
.article-dates { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted); margin: 0 0 32px; }
.featured { margin: 0 0 40px; }
.featured img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.article-content { font-size: 16px; line-height: 2.05; }
.article-content p { margin: 1.35em 0; }
.article-content h2 { font-size: 25px; font-weight: 600; line-height: 1.6; margin: 2.4em 0 1em; border-bottom: 1px solid var(--line); padding-bottom: .5em; }
.article-content h3 { font-size: 21px; font-weight: 600; line-height: 1.7; margin: 1.8em 0 .9em; }
.article-content h4 { font-size: 18px; margin: 1.6em 0 .7em; }
.article-content img { max-width: 100%; height: auto; }
.article-content figure { max-width: 100%; margin: 1.5em 0; }
.article-content figcaption { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 8px; }
.article-content iframe { max-width: 100%; width: 100%; aspect-ratio: 16/9; height: auto; border: 0; }
.article-content ul, .article-content ol { padding-left: 1.7em; }
.article-content li { margin: .45em 0; }
.article-content pre { white-space: pre; overflow: auto; max-width: 100%; padding: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; line-height: 1.7; }
.article-content code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--surface); padding: .12em .3em; border-radius: 3px; }
.article-content pre code { padding: 0; color: inherit; background: transparent; }
.article-content table { border-collapse: collapse; display: block; max-width: 100%; overflow: auto; font-size: 14px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 10px 14px; vertical-align: top; min-width: 90px; }
.article-content th { background: var(--surface); }
.article-content blockquote { border-left: 2px solid var(--accent); padding: 1px 20px; margin: 1.5em 0; background: var(--surface); color: var(--muted); }
.article-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article-content details { border: 1px solid var(--line); padding: 12px 18px; margin: 1.5em 0; border-radius: var(--radius); }
.article-content summary { cursor: pointer; font-weight: 600; }
.article-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
/* Legacy WordPress lead: compact character beside a speech bubble. */
.article-content .block_col2 { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; align-items: center; margin: 1.5em 0; }
.article-content .block_col2 > .thumbnail { grid-column: 1; grid-row: 1; margin: 0; }
.article-content .block_col2 > .thumbnail img { display: block; width: 100%; height: auto; margin: 0; }
.article-content .block_col2 > p:not(.thumbnail) { position: relative; grid-column: 2; min-width: 0; margin: 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.article-content .block_col2 > p:not(.thumbnail)::before { content: ""; position: absolute; top: calc(50% - 8px); left: -9px; width: 16px; height: 16px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); transform: rotate(45deg); }
.preserve-lines { white-space: pre-wrap; }
.article-tags { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; }
.author-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 40px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.author-photo { display: block; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.author-info { min-width: 0; }
.author-info h2 { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.author-name { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.5; }
.author-name a { color: var(--ink); text-decoration: none; }
.author-name a:hover { color: var(--accent); text-decoration: underline; }
.author-bio { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.back-link { max-width: 800px; margin: 32px auto; font-size: 13px; }

/* Contact and other notice pages */
.notice-page { padding: 16px 0 40px; }
.notice-page h1 { font-size: 28px; line-height: 1.6; }
.notice-page p { font-size: 16px; }
.contact-page { max-width: 680px; }
.contact-page label { display: block; font-weight: 600; margin-bottom: 8px; }
.contact-page input:not([type=hidden]), .contact-page textarea { display: block; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--surface); color: var(--ink); }
.contact-page textarea { resize: vertical; }
.contact-page button { margin-top: 18px; }
.contact-page [role=alert] { border-left: 3px solid #e8a99b; padding: 12px 16px; background: #2b201f; color: #f0c4ba; }
.contact-page dt { font-weight: 600; margin-top: 20px; }
.contact-page dd { margin: 8px 0 22px; overflow-wrap: anywhere; }
.contact-message { white-space: pre-wrap; font: inherit; margin: 0; }
.contact-page [aria-disabled=true] { color: var(--muted); cursor: not-allowed; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); text-align: center; padding: 40px 24px; }
.footer-brand { font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin: 20px 0; font-size: 12px; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--ink); }
.site-footer p { font-size: 12px; color: var(--muted); }

/* Responsive layout */
@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; gap: 24px; padding: 28px 20px; }
  .brand { width: 200px; }
  .brand-tagline { font-size: 12px; }
  .search { width: 100%; margin: 0; }
  .search input { flex: 1; width: 0; font-size: 16px; }
  .main-nav > div { padding-right: 8px; padding-left: 8px; }
  .site-main { padding: 32px 20px 56px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h1, .section-heading h2 { font-size: 19px; }
  .article-grid { grid-template-columns: 1fr; gap: 36px; }
  .article-header h1 { font-size: 26px; }
  .article-content h2 { font-size: 22px; }
  .article-content h3 { font-size: 19px; }
  .article-content pre { padding: 15px; font-size: 12px; }
  .article-content .block_col2 { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; }
  .article-content .block_col2 > p:not(.thumbnail) { padding: 12px 14px; }
  .author-card { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .author-photo { width: 64px; height: 64px; }
  .breadcrumbs { font-size: 11px; }
  .notice-page h1 { font-size: 26px; }
}
