
:root {
  --bg-deep: #0a0a0c;
  --bg-surface: #111114;
  --bg-card: #18181c;
  --bg-card-hover: #1e1e24;
  --gold: #c9a84c;
  --gold-dim: #a8944a;
  --gold-bright: #e8c65a;
  --cream: #e8e0d0;
  --cream-dim: #b5ad9f;
  --text: #ddd8d0;
  --text-dim: #a8a295;
  --text-bright: #f0ebe2;
  --accent-red: #8b3a3a;
  --accent-red-bright: #c45454;
  --border: #2a2a30;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  font-size: 16px;

}

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.logo span { color: var(--gold); }

nav { display: flex; align-items: center; gap: 2rem; }

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s;
}

nav a:hover { color: var(--gold); }

.header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang-toggle {
  display: flex;
  gap: 0.4rem;
  margin-left: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}

@media (max-width: 720px) {
  .lang-toggle {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
}

.lang-btn {
  text-decoration: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  border-radius: 2px;
}

.lang-btn.active {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
  font-weight: 600;
}

.lang-btn:hover:not(.active) {
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* === MOBILE NAV === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* === ARTICLE HERO === */
.article-hero {
  padding: 10rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(139, 58, 58, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.article-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg-deep));
  pointer-events: none;
}

.article-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.25s;
}

.article-back:hover { color: var(--gold); }

.article-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-subtitle {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.article-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* === ARTICLE BODY === */
.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.article-body p {
  margin-bottom: 1.5rem;
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--text);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 4rem 0 1rem;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.3;
  margin: 0 0 2rem;
}

.article-body h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.35;
  margin: 3rem 0 1.2rem;
}

.article-body blockquote {
  border-left: 2px solid var(--gold-dim);
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: var(--bg-surface);
}

.article-body blockquote p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.7;
  margin-bottom: 0;
}

.article-body blockquote cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: normal;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.article-separator {
  text-align: center;
  color: var(--gold-dim);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  margin: 3rem 0;
  opacity: 0.5;
}

.article-body a,
.article-body a:visited {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold-dim);
  text-underline-offset: 3px;
  transition: color 0.25s, text-decoration-color 0.25s;
}

.article-body a:hover {
  color: var(--gold-bright);
  text-decoration-color: var(--gold);
}

.article-body a:active {
  color: var(--gold-bright);
}

/* === ARTICLE FOOTER === */
.article-footer-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.back-to-articles {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-dim);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all 0.3s;
}

.back-to-articles:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-dim);
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-kanji {
  font-size: 2rem;
  color: var(--gold-dim);
  opacity: 0.3;
  margin-bottom: 1rem;
  font-family: serif;
}

footer p {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

footer a {
  color: var(--gold-dim);
  text-decoration: none;
}

footer a:hover { color: var(--gold); }

/* === RESPONSIVE === */
@media (max-width: 720px) {
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 12, 0.97);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

  .menu-toggle { display: block; }

  .article-hero { padding: 8rem 1.2rem 3rem; }
  .article-container { padding: 2rem 1.2rem 4rem; }
  .article-footer-nav { padding: 0 1.2rem 4rem; }

  .article-body blockquote {
    padding: 1.2rem 1.4rem;
    margin: 2rem 0;
  }
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--bg-deep);
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 3px 0;
}

.skip-link:focus { left: 0; }

.header-search { display: inline-flex; align-items: center; padding: 0.35rem; margin-right: 0.5rem; color: var(--text-dim); transition: color 0.2s; text-decoration: none; }
.header-search:hover { color: var(--gold); }
.header-search svg { display: block; }
/* Self-hosted Latin webfonts (Phase B, 2026-07-03).
 * Source Serif 4 + Cormorant Garamond, variable, latin + latin-ext,
 * fetched from Google Fonts and served first-party from /assets/fonts/.
 * build.py prepends this file to the injected palette CSS. */

/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === ARCHIVE QUARTERLY — light-first palette (Phase 5) ===
   The legacy variable names (--bg-deep, --cream, --text, …) are kept so the
   existing component CSS works unchanged; only the *values* flip. Dark mode
   is opt-in via the footer toggle, or activated by `prefers-color-scheme:
   dark` when the user has not made an explicit choice. */
:root {
  --bg-deep: #f5ede0;
  --bg-surface: #ede4d2;
  --bg-card: #efe7d6;
  --bg-card-hover: #e6dcc4;
  --gold: #a8854a;
  --gold-dim: #8c6f3d;
  --gold-bright: #c69d56;
  /* In-body text links: --gold is 2.95:1 on paper (fails AA); --link passes
     at 5.04:1. Gold stays for large display text, rules, and dark mode. */
  --link: #7a6135;
  --link-hover: #5c4826;
  --cream: #2a2520;
  --cream-dim: #4a443c;
  --text: #1f1c17;
  --text-dim: #5a5249;
  --text-bright: #0a0908;
  --accent-red: #7a2e2e;
  --accent-red-bright: #9a3a3a;
  --border: #d0c5ad;
  --font-body: 'Source Serif 4', 'Source Serif Pro', 'Noto Serif JP', Georgia, serif;
}
[data-theme="dark"] {
  --bg-deep: #0a0a0c;
  --bg-surface: #111114;
  --bg-card: #18181c;
  --bg-card-hover: #1e1e24;
  --gold: #c9a84c;
  --gold-dim: #a8944a;
  --gold-bright: #e8c65a;
  --link: #c9a84c;
  --link-hover: #e8c65a;
  --cream: #e8e0d0;
  --cream-dim: #b5ad9f;
  --text: #ddd8d0;
  --text-dim: #a8a295;
  --text-bright: #f0ebe2;
  --accent-red: #8b3a3a;
  --accent-red-bright: #c45454;
  --border: #2a2a30;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-deep: #0a0a0c;
    --bg-surface: #111114;
    --bg-card: #18181c;
    --bg-card-hover: #1e1e24;
    --gold: #c9a84c;
    --gold-dim: #a8944a;
    --gold-bright: #e8c65a;
    --link: #c9a84c;
    --link-hover: #e8c65a;
    --cream: #e8e0d0;
    --cream-dim: #b5ad9f;
    --text: #ddd8d0;
    --text-dim: #a8a295;
    --text-bright: #f0ebe2;
    --accent-red: #8b3a3a;
    --accent-red-bright: #c45454;
    --border: #2a2a30;
  }
}
/* meta theme-color matches the active palette */
html { color-scheme: light dark; }

/* === Light-mode overrides for hard-coded translucent dark colors ===
   Existing templates use `rgba(10,10,12,…)` for the fixed header backdrop and
   open-nav backgrounds. On paper that renders near-black; replace with a
   paper-tinted alpha and restore the original under [data-theme="dark"] /
   prefers-color-scheme: dark. Same idea for the gold-tinted hero glows. */
header { background: rgba(245, 237, 224, 0.88); border-bottom-color: var(--border); }
nav.open { background: rgba(245, 237, 224, 0.97); }

.hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(168, 133, 74, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(122, 46, 46, 0.05) 0%, transparent 60%);
}
.newsletter-section::before {
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(168, 133, 74, 0.08) 0%, transparent 70%);
}

[data-theme="dark"] header { background: rgba(10, 10, 12, 0.85); }
[data-theme="dark"] nav.open { background: rgba(10, 10, 12, 0.97); }
[data-theme="dark"] .hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(139, 58, 58, 0.04) 0%, transparent 60%);
}
[data-theme="dark"] .newsletter-section::before {
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) header { background: rgba(10, 10, 12, 0.85); }
  :root:not([data-theme="light"]) nav.open { background: rgba(10, 10, 12, 0.97); }
  :root:not([data-theme="light"]) .hero::before {
    background:
      radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 70%),
      radial-gradient(ellipse 50% 50% at 80% 20%, rgba(139, 58, 58, 0.04) 0%, transparent 60%);
  }
  :root:not([data-theme="light"]) .newsletter-section::before {
    background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
  }
}

/* Body baseline — explicit colors so the inherit chain is robust on every page */
body { background: var(--bg-deep); color: var(--text); }

/* Theme toggle button */
.theme-toggle {
  background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  padding: 0.45rem 0.55rem; line-height: 0; cursor: pointer; border-radius: 100px;
  transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold-dim); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

footer .footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }

/* The 5-item canonical nav + search + theme toggle can crowd mid-width
   headers (nav hides behind the hamburger only at <=720px). */
@media (max-width: 1020px) and (min-width: 721px) {
  nav { gap: 1.1rem; }
}

.cookie-notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: none; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.7rem 1.3rem; padding: 0.85rem 1.2rem; background: var(--bg-card); border-top: 1px solid var(--border); box-shadow: 0 -2px 14px rgba(0,0,0,0.16); font-size: 0.82rem; line-height: 1.5; color: var(--text-dim); }
.cookie-notice p { margin: 0; max-width: 64ch; }
.cookie-notice a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.cookie-notice a:hover { color: var(--gold-bright); }
.cookie-notice button { flex: none; background: var(--gold); color: #16130d; border: none; border-radius: 4px; padding: 0.45rem 1.1rem; font: inherit; font-weight: 600; letter-spacing: 0.03em; cursor: pointer; transition: background 0.2s; }
.cookie-notice button:hover { background: var(--gold-bright); }

.breadcrumbs { padding: 6rem 2rem 0; max-width: 1200px; margin: 0 auto; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 0; font-size: 0.78rem; letter-spacing: 0.05em; font-family: system-ui, sans-serif; }
.breadcrumbs li { display: inline; color: var(--text-dim); }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin: 0 0.5rem; color: var(--gold-dim); }
.breadcrumbs li[aria-current] { color: var(--gold); }
.breadcrumbs a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--gold); }
.article-prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 1200px; margin: 4rem auto 1rem; padding: 0 2rem; }
.article-prev-next a { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.2rem 1.4rem; border: 1px solid var(--border); background: var(--bg-card); text-decoration: none; transition: all 0.25s; border-radius: 2px; }
.article-prev-next a:hover { border-color: var(--gold-dim); background: var(--bg-card-hover); }
.article-prev-next .next-link { grid-column: 2; text-align: right; align-items: flex-end; }
.article-prev-next .prev-link:only-child { grid-column: 1; }
.article-prev-next .next-link:only-child { grid-column: 2; }
.article-prev-next .dir { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.article-prev-next .title { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--cream); line-height: 1.3; font-weight: 600; }
@media (max-width: 720px) {
  .article-prev-next { grid-template-columns: 1fr; gap: 0.75rem; }
  .article-prev-next .prev-link, .article-prev-next .next-link { grid-column: 1; text-align: left; align-items: flex-start; }
}
.related-articles { max-width: 1200px; margin: 4rem auto 2rem; padding: 2.5rem 2rem 0; border-top: 1px solid var(--border); }
.related-heading { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--cream); margin-bottom: 2rem; letter-spacing: 0.02em; font-weight: 600; }
.article-answer { margin: 2rem 0 0; padding: 1.3rem 1.7rem; border-left: 3px solid var(--gold); background: rgba(201, 168, 76, 0.07); border-radius: 0 4px 4px 0; }
.article-answer .label { display: block; margin: 0 0 0.5rem; font-family: system-ui, sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.article-answer p.text { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--text); font-family: system-ui, sans-serif; }
.article-body a { color: var(--link, var(--gold)); text-decoration: underline; text-decoration-color: rgba(201, 168, 76, 0.45); text-underline-offset: 0.15em; transition: color 0.15s, text-decoration-color 0.15s; }
.article-body a:hover { color: var(--link-hover, var(--gold-bright)); text-decoration-color: var(--gold); }
.reading-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--gold); z-index: 300; pointer-events: none; }
.article-newsletter { max-width: 720px; margin: 3rem auto 0; padding: 1.6rem 1.7rem; border: 1px solid var(--border); background: var(--bg-card); border-radius: 4px; text-align: center; }
.article-newsletter .an-title { margin: 0 0 0.35rem; font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; color: var(--cream); }
.article-newsletter .an-sub { margin: 0 0 1rem; font-size: 0.9rem; color: var(--text-dim); font-family: system-ui, sans-serif; }
.article-newsletter form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.article-newsletter input[type="email"] { flex: 1 1 240px; max-width: 320px; padding: 0.65rem 0.9rem; border: 1px solid var(--border); background: var(--bg-deep); color: var(--text); border-radius: 2px; font-size: 0.9rem; }
.article-newsletter button { padding: 0.65rem 1.4rem; background: var(--gold); color: var(--bg-deep); border: none; border-radius: 2px; font-weight: 600; font-size: 0.9rem; cursor: pointer; font-family: system-ui, sans-serif; transition: background 0.2s; }
.article-newsletter button:hover { background: var(--gold-dim); }
.article-cite-wrap { max-width: 720px; margin: 2.2rem auto 0; padding: 0 2rem; }
.article-cite { border: 1px solid var(--border); border-radius: 4px; padding: 0.8rem 1.2rem; background: var(--bg-card); }
.article-cite summary { cursor: pointer; font-family: system-ui, sans-serif; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.article-cite summary:hover { color: var(--link, var(--gold)); }
.article-cite .cite-line { margin: 0.9rem 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--text); overflow-wrap: break-word; }
.article-cite .cite-bibtex { margin: 0.8rem 0 0.2rem; padding: 0.8rem 1rem; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 3px; font-size: 0.78rem; line-height: 1.5; overflow-x: auto; color: var(--text); }
.article-updated { white-space: nowrap; }
.article-figure { margin: 2.2rem 0; }
.article-figure .figure-mat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 3px; padding: 12px; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: 1px; }
.article-figure figcaption { margin-top: 0.6rem; font-family: system-ui, sans-serif; font-size: 0.8rem; line-height: 1.5; color: var(--text-dim); }
.article-figure figcaption .credit { display: block; font-size: 0.72rem; letter-spacing: 0.04em; opacity: 0.85; margin-top: 0.15rem; }
.series-continue { max-width: 1200px; margin: 3.5rem auto 0; padding: 0 2rem; }
.series-continue .sc-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.55rem; flex-wrap: wrap; }
.series-continue .sc-kicker { font-family: system-ui, sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.series-continue .sc-series { font-family: system-ui, sans-serif; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.series-continue .sc-link { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 1.75rem; background: rgba(201, 168, 76, 0.10); border: 1px solid var(--gold-dim); border-left: 4px solid var(--gold); border-radius: 4px; text-decoration: none; transition: background 0.2s; }
.series-continue .sc-link:hover { background: rgba(201, 168, 76, 0.18); }
.series-continue .sc-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; line-height: 1.25; color: var(--text); }
.series-continue .sc-cta { flex: 0 0 auto; font-family: system-ui, sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
@media (max-width: 620px) { .series-continue .sc-link { flex-direction: column; align-items: flex-start; gap: 0.8rem; } }


.timeline-strip { margin: 1.5rem 0 2rem; padding: 0.6rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow-x: auto; overflow-y: hidden; }
.timeline-strip ol { display: flex; list-style: none; gap: 0; padding: 0; margin: 0; align-items: stretch; position: relative; }
.timeline-strip ol::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(201,168,76,0.16); transform: translateY(-50%); z-index: 0; }
.timeline-strip-item { flex: 0 0 auto; padding: 0 0.4rem; position: relative; z-index: 1; }
.timeline-strip-item a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-dim); padding: 0.4rem 0.6rem; background: var(--bg-deep); border-radius: 3px; min-width: 110px; max-width: 180px; transition: color 0.2s, background 0.2s; }
.timeline-strip-item a:hover { color: var(--gold); background: var(--bg-card); }
.timeline-strip-item .year { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: var(--gold-dim); margin-bottom: 0.15rem; line-height: 1; }
.timeline-strip-item .title { font-family: system-ui, sans-serif; font-size: 0.72rem; text-align: center; line-height: 1.25; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.timeline-strip-item.is-anchor .year { color: var(--gold); font-weight: 600; }
.timeline-strip-item.is-current a { background: var(--gold); color: var(--bg-deep); pointer-events: none; }
.timeline-strip-item.is-current .year, .timeline-strip-item.is-current .title { color: var(--bg-deep); }


.article-toc { margin: 2rem 0; padding: 1.25rem 1.75rem; border: 1px solid rgba(201, 168, 76, 0.22); background: rgba(201, 168, 76, 0.04); border-radius: 4px; }
.article-toc summary { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; color: var(--gold, #c9a84c); cursor: pointer; list-style: none; letter-spacing: 0.06em; text-transform: uppercase; }
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc summary::before { content: '▸'; display: inline-block; margin-right: 0.5rem; transition: transform 0.2s; font-size: 0.8em; }
.article-toc[open] summary::before { transform: rotate(90deg); }
.article-toc ul { margin: 1rem 0 0 0; padding: 0; list-style: none; }
.article-toc ul ul { margin: 0.4rem 0 0.4rem 0.5rem; padding-left: 1rem; border-left: 1px solid rgba(201, 168, 76, 0.18); }
.article-toc li { margin: 0.45rem 0; font-family: system-ui, sans-serif; font-size: 0.95rem; line-height: 1.4; }
.article-toc a { color: var(--text, #ddd8d0); text-decoration: none; transition: color 0.15s; }
.article-toc a:hover { color: var(--link-hover, #e8c65a); }
/* Sidebar mode (F-3 fix, 2026-07-03): on wide viewports the TOC leaves the
   flow and sits fixed beside the 720px article column, forced open by the
   sync script below; .past-article (toggled on scroll) fades it out once the
   reader is past the article so it never floats over the bottom chrome. */
@media (min-width: 1200px) {
  .article-toc { position: fixed; top: 106px; left: calc(50% + 376px); width: min(280px, calc(50vw - 392px)); margin: 0; max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: thin; z-index: 90; transition: opacity 0.25s; }
  .article-toc li { font-size: 0.85rem; }
  .article-toc summary { pointer-events: none; }
  .article-toc summary::before { display: none; }
  .article-toc.past-article { opacity: 0; pointer-events: none; }
}
