:root {
  color-scheme: dark;
  --ink: #1a2025;
  --ink-soft: #283039;
  --paper: #f2ede4;
  --muted: #a5a5a0;
  --gold: #d9aa65;
  --line: rgba(242, 237, 228, .18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
  font-family: var(--sans);
  background: var(--ink);
  color: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header, .site-footer, main { width: min(100%, 1512px); margin-inline: auto; }
.site-header { height: 86px; padding: 0 clamp(24px, 4vw, 64px); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 23px; letter-spacing: -.025em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); }
.brand-mark .icon { width: 19px; height: 19px; stroke-width: 1.5; }
.header-note { color: var(--muted); text-transform: uppercase; letter-spacing: .18em; font-size: 10px; }
main { flex: 1; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px clamp(24px, 4vw, 64px) 28px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .04em; }

.eyebrow, .panel-kicker, .intro-number, .key-object { color: var(--gold); text-transform: uppercase; letter-spacing: .21em; font-weight: 700; font-size: 10px; }
.eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 27px; }
.eyebrow-line { display: inline-block; width: 32px; height: 1px; background: var(--gold); }

.hero { min-height: min(740px, calc(100vh - 155px)); display: grid; grid-template-columns: 51% 49%; }
.hero-copy { padding: clamp(76px, 9vw, 140px) clamp(24px, 5.4vw, 84px) 56px clamp(24px, 4vw, 64px); display: flex; flex-direction: column; align-items: flex-start; }
.hero h1, .quiz-title, .question-panel h2, .results h1, .key-page h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -.052em; }
.hero h1 { font-size: clamp(59px, 6.05vw, 108px); line-height: .99; margin: 0 0 30px; max-width: 760px; }
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero-lead { color: #c3c3bf; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.7; max-width: 485px; margin: 0; }
.hero-actions, .result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; margin-top: 43px; }
.button { min-height: 58px; padding: 0 23px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; font-size: 13px; font-weight: 700; letter-spacing: .03em; transition: background .18s, color .18s, transform .18s; }
.button .icon { width: 17px; height: 17px; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: var(--ink); }
.button-primary:hover { background: #ebbf7f; }
.button-outline { border-color: var(--line); background: transparent; color: var(--paper); }
.button-outline:hover { background: #32383c; }
.text-button { border: 0; background: transparent; padding: 12px 0; color: var(--paper); font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--gold); }
.text-button .icon { width: 15px; height: 15px; margin-left: 13px; color: var(--gold); }
.hero-meta { display: flex; align-items: center; gap: 15px; margin-top: auto; padding-top: 54px; color: #b0afaa; font-size: 12px; letter-spacing: .02em; }
.hero-meta strong { color: var(--paper); font-weight: 700; }
.meta-dot { display: inline-flex; color: var(--gold); font-size: 9px; }
.hero-art { min-width: 0; position: relative; overflow: hidden; background: #655846; }
.hero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 65%, rgba(17, 20, 21, .65)); }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-art-caption { position: absolute; z-index: 1; left: 30px; right: 30px; bottom: 26px; display: flex; justify-content: space-between; gap: 10px; color: #f5eee1; font-size: 10px; text-transform: uppercase; letter-spacing: .17em; }
.intro-strip { min-height: 116px; padding: 28px clamp(24px, 4vw, 64px); border-top: 1px solid var(--line); display: flex; gap: clamp(24px, 5vw, 90px); align-items: center; }
.intro-number { white-space: nowrap; }
.intro-strip p { max-width: 700px; margin: 0; font-family: var(--serif); font-size: clamp(16px, 1.4vw, 22px); line-height: 1.42; }
.intro-glyph { display: inline-flex; margin-left: auto; color: var(--gold); font-size: 38px; }

.quiz-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 49px clamp(24px, 4vw, 64px) 31px; }
.quiz-top .eyebrow { margin-bottom: 15px; }
.quiz-title { margin: 0; font-size: clamp(42px, 4.2vw, 64px); line-height: 1; }
.count { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); }
.count strong { font-size: 50px; font-weight: 400; color: var(--gold); line-height: 1; }
.count span { font-size: 21px; color: var(--muted); }
.progress { height: 2px; background: var(--line); }
.progress span { display: block; height: 100%; background: var(--gold); transition: width .3s; }
.quiz-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-height: 620px; }
.art-card { min-width: 0; margin: 0; padding: 32px clamp(20px, 4vw, 64px) 27px; background: #252b2c; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.art-image-wrap { position: relative; max-width: 100%; line-height: 0; box-shadow: 0 22px 45px rgba(0, 0, 0, .25); }
.art-image-wrap img { display: block; width: 100%; height: auto; user-select: none; }
.art-marker { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.art-marker ellipse { fill: rgba(217, 170, 101, .09); stroke: #f3d79b; stroke-width: 2.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(0, 0, 0, .8)); }
.art-card figcaption { display: flex; justify-content: space-between; gap: 15px; width: 100%; margin-top: 21px; color: #c8c6bd; font-size: 10px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; }
.art-card figcaption span:first-child { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--gold); }
.art-card figcaption .icon { width: 12px; height: 12px; stroke-width: 1.5; }
.question-panel { padding: clamp(40px, 5vw, 74px) clamp(24px, 5vw, 76px) 50px; display: flex; flex-direction: column; justify-content: space-between; }
.question-panel h2 { margin: 18px 0 15px; font-size: clamp(43px, 4.4vw, 68px); line-height: 1.02; }
.question-help { color: #b8b7b1; line-height: 1.6; max-width: 425px; margin: 0 0 32px; font-size: 14px; }
.choices { display: grid; gap: 10px; }
.choice { width: 100%; min-height: 63px; display: flex; align-items: center; gap: 17px; padding: 0 17px; border: 1px solid var(--line); background: #242a2e; color: var(--paper); text-align: left; font-family: var(--serif); font-size: 20px; transition: background .18s, border-color .18s, transform .18s; }
.choice:not(:disabled):hover { background: #363c3e; border-color: var(--gold); transform: translateX(3px); }
.choice-key { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid rgba(242, 237, 228, .28); border-radius: 50%; color: var(--gold); font-family: var(--sans); font-size: 10px; font-weight: 700; }
.choice-arrow { display: inline-flex; color: var(--gold); margin-left: auto; font-size: 18px; }
.choice.is-correct { background: #2d493c; border-color: #78bd8e; }
.choice.is-correct .choice-arrow { color: #a9dfae; }
.choice.is-wrong { background: #513b3a; border-color: #d88476; }
.choice.is-wrong .choice-arrow { color: #e9a59b; }
.choice.is-muted { opacity: .53; }
.hint-area { margin-top: 31px; }
.hint-button { border: 0; border-bottom: 1px solid var(--gold); padding: 0 0 8px; background: transparent; color: var(--gold); font-size: 12px; font-weight: 700; }
.hint-button span { margin-left: 14px; font-size: 16px; }
.hint { display: flex; gap: 11px; align-items: flex-start; margin-top: 16px; color: #aaa9a4; font-family: var(--serif); font-size: 15px; font-style: italic; line-height: 1.5; }
.hint .icon { width: 14px; height: 14px; margin-top: 4px; color: var(--gold); stroke-width: 1.5; }
.feedback { margin-top: 28px; padding: 21px 23px 20px; border-left: 2px solid var(--gold); background: #283036; }
.feedback-correct { border-color: #83c492; }
.feedback-wrong { border-color: #e5a187; }
.feedback-top { display: flex; justify-content: space-between; gap: 10px; color: var(--gold); font-size: 10px; letter-spacing: .19em; font-weight: 700; }
.feedback-top span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.feedback-top .icon { width: 12px; height: 12px; stroke-width: 1.5; }
.feedback-correct .feedback-top { color: #9fd3aa; }
.feedback-wrong .feedback-top { color: #e5a187; }
.feedback p { margin: 12px 0 12px; color: #e5e3da; font-size: 14px; line-height: 1.6; }
.feedback .feedback-personal { margin: 16px 0; color: #f4d6ab; font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); line-height: 1.3; }
.feedback .feedback-personal + .feedback-personal { margin-top: -6px; }
.feedback .feedback-personal + p:not(.feedback-personal) { border-top: 1px solid var(--line); padding-top: 14px; }
.feedback a { color: var(--gold); font-size: 12px; text-underline-offset: 4px; }
.feedback a .icon { width: 14px; height: 14px; margin-left: 3px; }
.button-next { width: 100%; margin-top: 16px; background: var(--gold); color: var(--ink); }
.button-next:hover { background: #e9bc7c; }

.results { padding: clamp(75px, 9vw, 130px) clamp(24px, 8vw, 125px) 90px; min-height: 650px; }
.results-score { display: flex; align-items: baseline; gap: 12px; color: var(--gold); font-family: var(--serif); }
.results-score strong { font-size: clamp(110px, 15vw, 200px); font-weight: 400; line-height: .9; }
.results-score span { font-size: clamp(30px, 4vw, 56px); color: #9d9d98; }
.results h1 { margin: 22px 0 17px; font-size: clamp(45px, 5vw, 78px); line-height: 1.03; }
.results > p:not(.eyebrow) { color: #b8b7b0; max-width: 530px; line-height: 1.65; }
.results .result-actions { margin-top: 38px; }
.result-summary { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 65px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }

.key-page { padding: 46px clamp(24px, 4vw, 64px) 90px; }
.back-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: var(--gold); font-size: 12px; margin-bottom: 65px; }
.back-button .icon { width: 14px; height: 14px; }
.key-page h1 { max-width: 850px; font-size: clamp(50px, 6vw, 88px); line-height: 1; margin: 0 0 20px; }
.key-lead { max-width: 630px; color: #b8b7b0; line-height: 1.7; margin: 0 0 48px; }
.key-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.key-card { border: 1px solid var(--line); background: #242a2e; min-width: 0; }
.key-art { height: 270px; display: flex; justify-content: center; align-items: center; background: #2f3432; overflow: hidden; }
.key-image { position: relative; max-width: 100%; line-height: 0; }
.key-card img { width: 100%; height: auto; display: block; }
.key-card-body { padding: 23px; }
.key-object { font-size: 9px; line-height: 1.5; }
.key-card h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.03em; margin: 10px 0; }
.key-card p { color: #c4c2bb; line-height: 1.55; font-size: 13px; margin: 0 0 16px; }
.key-card a { display: inline-block; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; font-size: 12px; margin-bottom: 16px; }
.key-card a .icon { width: 14px; height: 14px; margin-left: 3px; }
.key-card small { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 560px; padding-block: 85px 38px; }
  .hero-art { height: 450px; }
  .quiz-grid { grid-template-columns: 1fr; }
  .art-card { min-height: 390px; }
  .question-panel { min-height: 600px; }
  .key-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .site-header { height: 68px; }
  .brand { font-size: 20px; }
  .header-note { display: none; }
  .site-footer { flex-direction: column; gap: 8px; }
  .hero-copy { min-height: 515px; padding-top: 72px; }
  .hero h1 { font-size: clamp(52px, 12vw, 76px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; margin-top: 32px; }
  .hero-art { height: 360px; }
  .hero-meta { padding-top: 35px; }
  .intro-strip { align-items: flex-start; gap: 13px; flex-direction: column; }
  .intro-glyph { display: none; }
  .quiz-top { padding-top: 32px; padding-bottom: 20px; }
  .quiz-title { font-size: 40px; }
  .count strong { font-size: 35px; }
  .count span { font-size: 17px; }
  .art-card { padding: 24px 15px 20px; min-height: 300px; }
  .art-image-wrap { max-height: 420px; }
  .art-image-wrap img { max-height: 420px; }
  .art-card figcaption { font-size: 9px; }
  .question-panel { padding: 38px 24px 45px; min-height: 590px; }
  .question-panel h2 { font-size: 42px; }
  .choice { min-height: 58px; }
  .results { min-height: 600px; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .key-page { padding-top: 29px; }
  .back-button { margin-bottom: 50px; }
  .key-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
