:root {
  color-scheme: dark;
  --bg: #100c17;
  --panel: #191320;
  --panel-deep: #15101c;
  --text: #f9f2e7;
  --muted: #c4b7ca;
  --primary: #f2c47b;
  --accent: #9a596b;
  --line: #45354d;
  --radius: 12px;
  --sans: "Geist", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: 16px/1.65 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 700; }
a { color: inherit; text-underline-offset: 4px; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(100% - 48px, 1120px); margin-inline: auto; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip:focus { z-index: 5; clip: auto; width: auto; height: auto; top: 8px; left: 12px; padding: 8px 16px; background: var(--panel); }
.site-header, .site-footer { border-color: var(--line); border-style: solid; border-width: 0 0 1px; }
.header-inner, .footer-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: .9rem; color: var(--muted); }
.site-header a, .site-footer a { text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--primary); text-decoration: underline; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #80623f; border-radius: 50%; color: var(--primary); font: 600 1rem Georgia, serif; }
.site-footer { border-width: 1px 0 0; }
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 32px; padding-block: 58px 54px; }
.hero h1 { max-width: 690px; font-size: clamp(3rem, 6.2vw, 5.75rem); letter-spacing: -.062em; line-height: .98; }
.hero-summary { margin-top: 24px; max-width: 42ch; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.15rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; column-gap: 14px; padding: 9px 17px; border: 1px solid transparent; border-radius: var(--radius); font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; transition: background .18s, border-color .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.primary, .stage-button { background: var(--primary); color: #211521; }
.primary:hover, .stage-button:hover { background: #ffe0a3; }
.outline { background: var(--panel-deep); color: var(--text); border-color: #766479; }
.outline:hover { border-color: var(--primary); }
.secondary-link { color: var(--text); }
.hero-note { margin-top: 14px; color: var(--muted); font-size: .88rem; }
.stage { position: relative; min-width: 0; height: 440px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-deep); isolation: isolate; }
.stage[data-gf-state="playing"] { height: 590px; }
.stage-cover, .loader { position: absolute; inset: 0; }
.stage-cover { display: grid; align-items: end; background: radial-gradient(ellipse at 62% 33%, #4b253f, #130d19 68%); }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.stage-cover:hover .cover-art { transform: scale(1.035); }
.cover-caption { position: relative; display: flex; justify-content: flex-end; padding: 48px 18px 18px; background: linear-gradient(transparent,#140e1aef); }
.loader { display: none; align-content: center; justify-items: center; color: var(--muted); gap: 10px; background: var(--panel); }
.stage[data-gf-state="loading"] .stage-cover, .stage[data-gf-state="playing"] .stage-cover { display: none; }
.stage[data-gf-state="loading"] .loader { display: grid; }
.loading-mark { color: var(--primary); font: 2rem var(--display); animation: breathe .7s alternate infinite; }
@keyframes breathe { to { opacity: .38; } }
.stage iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--panel-deep); }
.stage-tools { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 6px 0 0; color: var(--muted); font-size: .82rem; }
.stage-tools button { min-height: 44px; border: 0; background: transparent; color: inherit; padding: 0 4px; }
.stage-tools button:hover, .stage-tools button[aria-pressed="true"] { color: var(--primary); }
.stage-tools [data-gf-fullscreen] { margin-left: auto; }
.lower-content { padding-block: 46px 76px; border-top: 1px solid var(--line); }
.body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 207px; gap: 52px; align-items: start; }
.reading { min-width: 0; max-width: 76ch; }
.reading h2 { margin: 42px 0 15px; font-size: clamp(1.55rem, 3vw, 2.4rem); color: var(--text); }
.reading h2:first-child { margin-top: 0; }
.reading h3 { font-size: 1.12rem; margin: 24px 0 10px; }
.reading p, .reading ul, .reading ol, .reading table { margin: 0 0 18px; color: var(--muted); }
.reading strong { color: var(--text); }
.reading a { color: var(--primary); }
.reading table { width: 100%; border-collapse: collapse; }
.reading td, .reading th { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; overflow-wrap: anywhere; }
.reading th { color: var(--text); }
.reading details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.reading details p { margin: 12px 0 0; }
summary { cursor: pointer; color: var(--text); font-weight: 600; }
.article-rail { position: sticky; top: 28px; display: grid; gap: 10px; border-left: 1px solid var(--line); padding-left: 18px; font-size: .9rem; }
.article-rail a { color: var(--muted); text-decoration: none; }
.article-rail a:hover { color: var(--primary); text-decoration: underline; }
.next-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 60px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.next-panel h2 { font-size: clamp(1.35rem, 2.8vw, 2rem); }
.next-panel p { color: var(--muted); margin-top: 10px; }
.trail { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: .85rem; }
.article-page { padding-block: 54px 70px; }
.article-header { max-width: 860px; margin-bottom: 32px; }
.article-header h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); letter-spacing: -.045em; }
.article-header p { max-width: 65ch; margin-top: 16px; color: var(--muted); }
.mobile-toc { display: none; }
.quiz { max-width: 600px; margin-inline: auto; padding: 22px clamp(14px, 4vw, 28px) 28px; }
.embed-document { background: var(--panel-deep); }
.quiz :focus { scroll-margin: 12px; }
.progress-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .85rem; margin-bottom: 7px; }
.quiz progress { width: 100%; height: 8px; accent-color: var(--primary); }
.quiz-question { margin: 18px 0; font-size: clamp(1.35rem, 4vw, 2rem); text-wrap: pretty; }
.options { display: grid; gap: 7px; }
.answer { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 13px; text-align: left; }
.answer:hover, .answer[aria-pressed="true"] { border-color: var(--primary); background: #2a1e2f; }
.answer kbd { font: .8rem var(--sans); color: var(--muted); }
.quiz-actions, .share-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quiz-actions > :last-child { margin-left: auto; }
.quiz-status { color: var(--muted); font-size: .85rem; min-height: 1.4em; margin-top: 6px; }
.result-heading { margin: 2px 0 9px; font-size: clamp(1.6rem, 5vw, 2.65rem); }
.result-copy { margin-bottom: 15px; color: var(--muted); }
.scores { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.scores li { display: grid; grid-template-columns: minmax(87px, .7fr) 2fr 42px; gap: 8px; align-items: center; font-size: .9rem; }
.scores li span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.scores meter { width: 100%; height: 12px; border: none; background: transparent; }
.scores meter::-webkit-meter-bar { background: #3d3047; border: 0; border-radius: 6px; }
.scores meter::-webkit-meter-optimum-value { background: var(--primary); border-radius: 6px; }
.scores meter::-moz-meter-bar { background: var(--primary); border-radius: 6px; }
.share-options { margin-top: 15px; padding: 13px 0 0; border-top: 1px solid var(--line); }
.share-options select { max-width: 100%; color: var(--text); background: var(--panel); padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.share-platforms { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .85rem; margin-top: 9px; }
.share-platforms a { color: var(--primary); padding-block: 5px; }
.card-preview { margin-top: 16px; font-size: .85rem; }
.card-preview img { display: block; max-width: 100%; height: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.quiz-status a { color: var(--primary); }
.result-lead { font-size: .76rem; letter-spacing: .14em; color: var(--primary); text-transform: uppercase; }
@media (max-width: 820px) { .hero { gap: 20px; } .stage { height: 370px; } .body-grid { grid-template-columns: minmax(0, 1fr) 160px; gap: 26px; } }
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .header-inner, .footer-inner { min-height: 56px; gap: 8px; }
  .site-header nav, .site-footer nav { gap: 10px; font-size: .75rem; }
  .wordmark { font-size: .9rem; gap: 5px; }
  .mark { width: 24px; height: 24px; font-size: .72rem; }
  .hero, .body-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 28px 20px; gap: 18px; }
  .hero h1 { font-size: clamp(2.7rem, 9vw, 3.65rem); }
  .hero-summary { margin-top: 12px; }
  .hero-actions { margin-top: 14px; }
  .hero-note { margin-top: 7px; }
  .stage { height: 262px; }
  .stage[data-gf-state="playing"] { height: 560px; }
  .cover-caption { padding-inline: 12px; }
  .lower-content, .article-page { padding-block: 32px 45px; }
  .next-panel { flex-direction: column; align-items: stretch; margin-top: 40px; }
  .article-rail { display: none; }
  .mobile-toc { display: block; margin-bottom: 20px; }
  .mobile-toc nav { display: grid; gap: 5px; margin-top: 8px; }
}
@media (max-width: 365px) { .header-inner .wordmark > span:last-child { display: none; } .quiz-actions .button, .share-actions .button { padding-inline: 10px; font-size: .84rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.copy-fallback { width: 100%; min-height: 4rem; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; }
