/* 7deadlysintest.com — "Seven Sides" design system (wine / paper / vermilion). Fixed light theme, readable on dark-mode systems. */

:root {
  color-scheme: light;
  --wine: #421c2d;
  --wine-deep: #341321;
  --paper: #f6f0e8;
  --rose: #e9cbc8;
  --accent: #d94d3d;
  --accent-dark: #a8312a;
  --ink: #271d23;
  --muted: #6d575f;
  --line: #d7cac4;
  --line-strong: #b7a39f;
  --white: #fff;
  --on-wine-muted: #e4d4d6;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", Arial, sans-serif;
  --max-width: 1280px;
  --gutter: clamp(16px, 3vw, 48px);
  --radius-panel: 10px;
  --radius-control: 6px;
  --control-height: 48px;
  --ease: ease-out;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--font-ui); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--wine); }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--rose); color: var(--wine); }
h1, h2, .question-text, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.035em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max-width)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 780px); }
.skip { position: absolute; left: -999px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); color: var(--wine); padding: 10px 16px; }
.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; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.trait { width: 96px; height: 96px; fill: currentColor; color: var(--wine); --icon-accent: var(--accent); }
.eyebrow { margin: 0; font-size: .8125rem; line-height: 1.4; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; color: var(--accent-dark); }

/* ---------- top surface: header + hero ---------- */
.top { background: var(--wine); color: var(--paper); }
.top a { color: inherit; }
.site-head .wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #f6f0e85c; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--font-display); font-size: clamp(1.2rem, 1.9vw, 1.6rem); font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .9375rem; }
.nav a { min-height: 48px; display: inline-flex; align-items: center; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 9px; border: 0; background: transparent; color: var(--paper); border-radius: var(--radius-control); }

.hero { padding-block: 34px 30px; }
.hero-eyebrow { color: var(--on-wine-muted); margin-bottom: 12px; }
.hero h1 { margin: 0; font-size: clamp(2.3rem, 4.6vw, 4.25rem); line-height: 1.04; }
.hero .lede { margin: 12px 0 0; max-width: 62ch; color: var(--on-wine-muted); font-size: 1.0625rem; }
.updated { margin: 14px 0 0; color: var(--on-wine-muted); font-size: .9375rem; }
.updated a { text-decoration: underline; }
.page-hero { display: flex; gap: 28px; align-items: center; }
.page-hero .trait { width: 104px; height: 104px; color: var(--paper); --icon-accent: var(--accent); flex-shrink: 0; }
.page-hero-text { min-width: 0; }

/* home hero with quiz */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(240px, .9fr); gap: 40px; padding-block: 22px 26px; align-items: start; }
.home-hero .hero-eyebrow { margin-bottom: 6px; }
.home-hero .lede { margin-top: 10px; font-size: 1rem; }
.home-hero h1 { font-size: clamp(2.6rem, 4.8vw, 4.6rem); line-height: 1; }
.hero-sub { display: block; margin-top: 4px; font: italic 400 clamp(1.45rem, 2.4vw, 2.5rem)/1.2 var(--font-display); letter-spacing: -.02em; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; list-style: none; margin: 14px 0 18px; padding: 0; font-size: .9375rem; }
.facts li { display: inline-flex; gap: 9px; align-items: center; white-space: nowrap; }
.facts li + li { border-left: 1px solid #e4d4d66b; padding-left: 22px; }
.hero-note { margin: 12px 0 0 6px; font: italic 400 1rem/1.5 var(--font-display); color: var(--on-wine-muted); }
.hero-art { margin: 0; }
.hero-art img { width: 100%; max-height: 640px; object-fit: contain; }
.hero-art figcaption { text-align: center; margin-top: 6px; font: italic 400 clamp(1rem, 1.4vw, 1.3rem)/1.3 var(--font-display); }

/* ---------- quiz card ---------- */
.quiz-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-panel); padding: 26px; }
.quiz-card a { color: var(--accent-dark); }
.quiz-card h2 { margin: 0 0 6px; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; color: var(--wine); }
.q-hint { margin: 0 0 14px; font-size: .875rem; color: var(--muted); }
.quiz-vs { background: var(--rose); color: var(--wine); border-radius: var(--radius-control); padding: 10px 14px; font-size: .9375rem; margin: 0 0 14px; }
.quiz-progress { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #bda6a6; padding-bottom: 14px; margin-bottom: 18px; }
#quiz-count { order: -1; font-weight: 700; color: var(--wine); font-size: .8125rem; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.quiz-progress .track { width: 45%; height: 8px; overflow: hidden; background: #dfcdc3; border-radius: 20px; }
#quiz-bar { display: block; width: 0; height: 100%; background: var(--accent); border-radius: inherit; transition: width .18s var(--ease); }
fieldset.q { min-width: 0; border: 0; padding: 0; margin: 0 0 26px; }
fieldset.q legend { display: block; width: 100%; padding: 0; }
.question-text { display: block; font-size: clamp(1.5rem, 2.3vw, 2.4rem); line-height: 1.15; color: var(--ink); }
.stepper .question-text { min-height: 2.3em; }
.q-num { font-family: var(--font-ui); font-size: .8125rem; font-weight: 700; letter-spacing: .09em; color: var(--accent-dark); display: block; margin-bottom: 6px; }
.stepper .q-num { display: none; }
.opts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 22px; }
.opt { min-width: 0; position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius-control); min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px 8px 12px; cursor: pointer; background: transparent; transition: background .14s, border-color .14s; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opt:hover { background: #e9cbc84d; border-color: var(--wine); }
.opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.opt:has(input:checked) { background: var(--rose); border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.opt-n { position: absolute; left: 10px; top: 7px; font-size: .75rem; font-weight: 500; }
.opt-label { order: 2; font-weight: 600; font-size: .875rem; line-height: 1.24; text-align: center; min-height: 2.48em; display: flex; align-items: center; }
.opt-dot { display: flex; width: 24px; height: 24px; border: 1.4px solid var(--wine); border-radius: 50%; align-items: center; justify-content: center; }
.opt-dot .icon { display: none; width: 16px; height: 16px; stroke-width: 2.2; }
.opt input:checked ~ .opt-dot { background: var(--wine); color: var(--paper); }
.opt input:checked ~ .opt-dot .icon { display: block; }
.opts-alt { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 9px; }
.opt.opt-alt { flex: 1 1 0; min-height: 48px; flex-direction: row; justify-content: center; padding: 8px 12px; border-style: dashed; color: var(--muted); }
.opt.opt-alt .opt-label { order: 0; min-height: 0; font-weight: 500; }
.opt.opt-alt .opt-dot { width: 20px; height: 20px; }
.quiz-nav { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.quiz-nav #quiz-next, .quiz-nav #quiz-submit { margin-left: auto; }

/* buttons */
.btn { min-height: var(--control-height); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; border: 1px solid var(--line); border-radius: var(--radius-control); background: transparent; color: var(--wine); font: 600 .9375rem/1.3 var(--font-ui); text-decoration: none; transition: background .14s, color .14s, transform .14s; }
.btn:hover:not(:disabled) { background: #e9cbc86b; color: var(--wine); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { color: #92817b; border-color: #cdbfb5; background: #e8dfd6; }
.btn-primary { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.btn-primary:hover:not(:disabled) { background: var(--wine-deep); color: var(--paper); }
.btn-primary:disabled { color: var(--muted); background: #e0d6ce; border-color: #cabdb6; }
.btn-arrow { padding: 0; gap: 0; overflow: hidden; }
.btn-arrow .btn-text { padding: 12px 20px; }
.btn-arrow .btn-icon { display: inline-flex; align-self: stretch; align-items: center; justify-content: center; width: 50px; border-left: 1px solid currentColor; }
.btn-ghost { border-color: var(--wine); }
.btn-on-dark { color: var(--paper); border-color: var(--paper); }
.btn-on-dark:hover:not(:disabled) { background: var(--paper); color: var(--wine); }

/* ---------- seven sides ---------- */
.sides { padding-block: 40px 36px; }
.sides h2, .section-head h2 { margin: 6px 0 22px; font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.08; }
.sin-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #af9796; padding: 16px 0 0; margin: 0; list-style: none; }
.sin-grid li + li { border-left: 1px solid var(--line); }
.sin-tile { display: flex; flex-direction: column; align-items: center; padding: 8px 6px 6px; text-decoration: none; color: var(--ink); text-align: center; }
.sin-tile .trait { width: min(100px, 80%); height: 100px; transition: transform .18s var(--ease); }
.sin-tile:hover { color: var(--ink); }
.sin-tile:hover .trait { transform: translateY(-4px); }
.sin-name { margin-top: 10px; font: 600 clamp(1rem, 1.5vw, 1.4rem)/1.25 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.roman { font-size: .85em; margin-right: 3px; }
.sin-key { margin-top: 2px; font: italic 400 1.0625rem/1.35 var(--font-display); color: var(--muted); }
.sin-tile .outward { margin-top: 12px; width: 22px; height: 22px; color: var(--accent-dark); }

/* example result band */
.preview { padding-bottom: 40px; }
.preview-band { background: var(--rose); border-radius: var(--radius-panel); padding: 36px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 38px; align-items: center; color: var(--ink); }
.preview-band h2 { margin: 10px 0 16px; font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.05; }
.preview-band p { margin: 0 0 18px; font-size: 1.0625rem; }
.specimen { position: relative; color: var(--paper); background: var(--wine); border: 1px solid var(--paper); border-radius: var(--radius-panel); padding: 20px 26px 14px; isolation: isolate; }
.specimen::before { content: ""; position: absolute; inset: -6px 16px 0 -18px; z-index: -2; background: var(--paper); transform: rotate(-4deg); border-radius: 10px; }
.specimen::after { content: ""; position: absolute; inset: 0; background: var(--wine); z-index: -1; border-radius: inherit; }
.specimen-label { margin: 0; border-bottom: 1px solid #f6f0e88c; text-align: center; font-size: .6875rem; letter-spacing: .15em; padding-bottom: 12px; font-weight: 600; text-transform: uppercase; }
.specimen-body { display: flex; align-items: center; gap: 22px; padding-block: 20px; }
.specimen-icons { display: flex; gap: 6px; flex-shrink: 0; border-right: 1px solid #f6f0e88c; padding-right: 20px; }
.specimen-icons .trait { width: 64px; height: 64px; color: var(--paper); --icon-accent: var(--accent); }
.specimen-title { margin: 0; text-transform: uppercase; font: 600 clamp(2rem, 3.6vw, 3.4rem)/1 var(--font-display); letter-spacing: -.035em; }
.specimen-tag { margin: 8px 0 0 !important; font: italic 400 1.0625rem/1.35 var(--font-display) !important; }
.specimen-domain { margin: 0; text-align: center; border-top: 1px solid #f6f0e88c; padding-top: 10px; font-size: .6875rem; letter-spacing: .15em; }

/* ---------- prose / article pages ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding-block: 36px 48px; }
.home-content { border-top: 1px solid var(--line); }
.prose { min-width: 0; max-width: 780px; font-size: 1.0625rem; }
.prose h2 { margin: 2.1em 0 .55em; font-size: clamp(1.75rem, 2.6vw, 2.4rem); line-height: 1.12; color: var(--ink); }
.prose > h2:first-child, .prose .toc-mobile + h2 { margin-top: .4em; }
.prose h3 { margin: 1.6em 0 .4em; font-size: 1.15rem; line-height: 1.35; color: var(--wine); }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); font: italic 400 1.15rem/1.5 var(--font-display); color: var(--wine); }
.prose table, details table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; margin: 0 0 1.3em; font-size: .9375rem; }
.prose th, .prose td, details th, details td { border-bottom: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th, details th { background: var(--wine); color: var(--paper); font-weight: 600; border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: #efe5da; }
.tldr { background: var(--rose); color: var(--ink); border-radius: var(--radius-panel); padding: 18px 22px; font-size: 1.0625rem; }
.tldr::before { content: "In short"; display: block; margin-bottom: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; color: var(--accent-dark); }
.cta { background: var(--wine); color: var(--paper); border-radius: var(--radius-panel); padding: 26px; margin: 36px 0 28px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta p { margin: 0 !important; }
.cta p:first-child { flex: 1 1 320px; }
.cta strong { display: block; font: 600 1.5rem/1.2 var(--font-display); letter-spacing: -.02em; margin-bottom: 4px; }
.cta .btn-primary { background: var(--paper); color: var(--wine); border-color: var(--paper); }
.cta .btn-primary:hover { background: var(--rose); color: var(--wine); }
.toc { position: sticky; top: 20px; align-self: start; font-size: .875rem; border-top: 3px solid var(--wine); padding-top: 12px; }
.toc-title { margin: 0 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; color: var(--accent-dark); }
.toc ol, .toc-mobile ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li, .toc-mobile li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.toc a, .toc-mobile a { display: flex; gap: 10px; padding: 7px 0; color: var(--ink); text-decoration: none; line-height: 1.4; }
.toc a::before, .toc-mobile a::before { content: counter(toc, decimal-leading-zero); font-size: .75rem; font-weight: 600; color: var(--accent-dark); padding-top: 2px; }
.toc a:hover, .toc-mobile a:hover { color: var(--accent-dark); }
.toc-mobile { display: none; border: 1px solid var(--line-strong); border-radius: var(--radius-panel); padding: 14px 16px 6px; margin-bottom: 1.5em; font-size: .9375rem; }
.toc-mobile li:last-child, .toc li:last-child { border-bottom: 0; }

/* FAQ accordion */
.faq { margin-top: 2.2em; }
.faq details { border: 1px solid #ae9594; border-radius: var(--radius-control); margin-bottom: 8px; background: transparent; }
.faq summary { min-height: 52px; list-style: none; display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 12px 16px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font: 600 1rem/1.4 var(--font-ui); color: var(--ink); }
.faq summary .icon { transition: transform .18s; color: var(--wine); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > p { margin: 0; padding: 0 16px 16px; color: var(--muted); font-size: 1rem; }

/* author box */
.author { display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; font-size: .9375rem; }
.author img { width: 44px; height: 44px; }
.author p { margin: 0 !important; }
.author-name { font-weight: 700; }
.author-role, .author-date { color: var(--muted); }

/* ---------- result page ---------- */
.result-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-panel); padding: 28px; max-width: 860px; }
.result-card h2 { margin: 0 0 8px; font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.1; }
.result-card section { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 4px; }
.result-card section h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-top: 16px; }
.lead-score { font: italic 400 1.3rem/1.4 var(--font-display); color: var(--accent-dark); margin: 0 0 8px; }
.bars { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.sin-row { border-top: 1px solid var(--line); padding-top: 12px; }
.bar-head { display: flex; align-items: center; gap: 10px; }
.bar-head a { font: 600 1.15rem/1.3 var(--font-display); color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: -.01em; }
.bar-head a:hover { color: var(--accent-dark); }
.bar-head strong { margin-left: auto; font: 600 1.3rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.bar, .bar-friend { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; margin-top: 8px; position: relative; }
.bar span { display: block; height: 100%; background: var(--wine); border-radius: inherit; }
.sin-row:has(.tag-lead) .bar span { background: var(--accent-dark); }
.bar-friend { height: 5px; overflow: visible; }
.bar-friend span { display: block; height: 100%; background: #a8949a; border-radius: inherit; }
.bar-friend em { position: absolute; right: 0; top: -18px; font-size: .75rem; color: var(--muted); font-style: normal; }
.tag { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 99px; padding: 2px 9px; }
.tag-lead { background: var(--accent-dark); color: var(--paper); }
.tag-close { background: var(--rose); color: var(--wine); }
.tag-muted { background: #e8dfd6; color: var(--muted); }
details { margin-top: 8px; }
.result-card summary { cursor: pointer; color: var(--accent-dark); font-size: .9375rem; font-weight: 600; }
details table { font-size: .875rem; margin-top: 8px; }
details select { font: inherit; font-size: .875rem; max-width: 140px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; color: var(--ink); }
.formula { font-family: ui-monospace, Menlo, monospace; font-size: .875rem; background: #efe5da; padding: 8px 12px; border-radius: var(--radius-control); }
.sim-out { font-size: .875rem; color: var(--accent-dark); }
.note { font-size: .875rem; color: var(--muted); }
.top .note { color: var(--on-wine-muted); }
.top .result-card .note { color: var(--muted); }
.share-pick { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .9375rem; }
.share-pick input { accent-color: var(--wine); width: 18px; height: 18px; vertical-align: -3px; }
.share-status { font-size: .875rem; word-break: break-all; }
.result-wrap { padding-bottom: 36px; }
.result-links { margin: 18px 0 0; }

/* ---------- footer ---------- */
.site-foot { background: var(--wine); color: var(--on-wine-muted); padding-block: 36px max(28px, env(safe-area-inset-bottom)); font-size: .875rem; }
.site-foot a { color: var(--paper); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--paper); }
.foot-top { display: flex; gap: 32px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid #f6f0e840; }
.foot-top .brand img { width: 34px; height: 34px; }
.foot-top .brand span { font-size: 1.25rem; color: var(--paper); }
.foot-top > p { margin: 0; max-width: 70ch; border-left: 1px solid #f6f0e86b; padding-left: 32px; }
.foot-navs { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-top: 18px; }
.foot-navs nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-navs .foot-label { width: 100%; font-size: .6875rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; color: var(--on-wine-muted); }
.copy { margin: 20px 0 0; color: var(--on-wine-muted); }
.copy a { color: var(--on-wine-muted); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) and (min-width: 1025px) {
  .home-hero { gap: 28px; }
  .quiz-card { padding: 22px; }
  .nav { gap: 20px; }
}
@media (max-width: 1024px) {
  .home-hero { display: block; padding-top: 26px; }
  .hero-workspace { max-width: 820px; margin-inline: auto; }
  .hero-art { display: none; }
  .sin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 24px; }
  .sin-grid li:nth-child(5) { border-left: 0; }
  .content-grid { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .toc-mobile { display: block; }
  .preview-band { padding: 28px; gap: 26px; }
}
@media (max-width: 760px) {
  .nav { gap: 16px; }
  .preview-band { grid-template-columns: 1fr; }
  .foot-top { flex-direction: column; gap: 14px; }
  .foot-top > p { border-left: 0; padding-left: 0; }
  .page-hero .trait { width: 72px; height: 72px; }
  .page-hero { gap: 18px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .site-head .wrap { min-height: 58px; gap: 12px; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 1.125rem; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; z-index: 100; top: 100%; left: -16px; right: -16px; padding: 8px 16px 14px; background: var(--wine-deep); box-shadow: 0 12px 16px #27101e33; }
  .nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { font-size: 1rem; border-bottom: 1px solid #f6f0e822; }
  .hero { padding-block: 22px 24px; }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); line-height: 1.08; }
  .home-hero { padding-block: 16px 20px; }
  .home-hero h1 { font-size: clamp(2rem, 9.4vw, 2.5rem); }
  .hero-eyebrow { display: none; }
  .home-hero .lede { display: none; }
  .hero-sub { font-size: 1.2rem; margin-top: 6px; }
  .facts { font-size: .8125rem; gap: 8px 12px; margin: 14px 0 16px; }
  .facts li { gap: 5px; }
  .facts li + li { padding-left: 0; border-left: 0; }
  .facts .icon { width: 17px; height: 17px; }
  .quiz-card { padding: 16px; }
  .quiz-card h2 { font-size: 1.2rem; }
  .q-hint { font-size: .8125rem; margin-bottom: 12px; }
  .quiz-progress { gap: 12px; padding-bottom: 12px; margin-bottom: 14px; }
  #quiz-count { font-size: .75rem; letter-spacing: .06em; }
  .quiz-progress .track { width: 34%; height: 7px; }
  .question-text { font-size: 1.45rem; line-height: 1.18; }
  .stepper .question-text { min-height: 0; }
  .stepper fieldset.q { min-height: 0; }
  .opts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
  .opt { min-height: 50px; flex-direction: row; justify-content: flex-start; padding: 10px 12px; gap: 12px; }
  .opt-n { position: static; width: 18px; flex-shrink: 0; font-size: .875rem; border-right: 1px solid #bda6a6; padding-right: 9px; box-sizing: content-box; }
  .opt-label { order: 1; min-height: 0; text-align: left; font-size: .9375rem; line-height: 1.35; }
  .opt-dot { order: 2; margin-left: auto; width: 23px; height: 23px; flex-shrink: 0; }
  .opts-alt { gap: 8px; }
  .opt.opt-alt { min-height: 46px; justify-content: flex-start; padding-left: 12px; }
  .opt.opt-alt .opt-label { font-size: .875rem; }
  .opt.opt-alt .opt-dot { order: 2; }
  .quiz-nav { gap: 10px; }
  .quiz-nav .btn { min-height: 48px; }
  .btn-arrow { flex: 1; }
  .btn-arrow .btn-text { flex: 1; padding: 10px 12px; }
  .btn-arrow .btn-icon { width: 42px; }
  .sides { padding-block: 30px 26px; }
  .sides h2, .section-head h2 { font-size: 2rem; }
  .eyebrow { font-size: .75rem; letter-spacing: .15em; }
  .sin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 6px; }
  .sin-grid li { border-bottom: 1px solid var(--line); padding-block: 12px; }
  .sin-grid li + li { border-left: 0; }
  .sin-grid li:nth-child(even) { border-left: 1px solid var(--line); }
  .sin-grid li:last-child { grid-column: span 2; border-bottom: 0; }
  .sin-tile .trait { width: 84px; height: 84px; }
  .sin-name { font-size: 1.2rem; }
  .preview-band { padding: 24px 20px; }
  .preview-band h2 { font-size: 2.3rem; }
  .specimen { padding: 14px; }
  .specimen-body { gap: 12px; padding-block: 16px; }
  .specimen-icons { padding-right: 12px; gap: 2px; }
  .specimen-icons .trait { width: 44px; height: 44px; }
  .specimen-title { font-size: 1.9rem; }
  .content-grid { padding-block: 26px 36px; }
  .prose { font-size: 1rem; }
  .prose h2 { font-size: 1.65rem; }
  .tldr { padding: 14px 16px; }
  .cta { padding: 20px; }
  .cta .btn { width: 100%; }
  .result-card { padding: 18px; }
  .bar-head a { font-size: 1.05rem; }
}
@media (max-width: 359px) {
  .brand span { font-size: 1rem; }
  .facts .icon { display: none; }
  .question-text { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
@media print { .site-head, .hero-art, .sides, .preview, .site-foot, .quiz-nav, .toc, .toc-mobile { display: none !important; } .top { background: #fff; color: #000; } }
.section-title { margin: 6px 0 22px; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.06; color: var(--ink); }
.preview-band .section-title { margin: 10px 0 16px; font-size: clamp(2.2rem, 4vw, 3.6rem); }
@media (max-width: 600px) { .section-title, .preview-band .section-title { font-size: 2rem; } }
@media (max-width: 600px) { .page-hero { flex-direction: column; align-items: flex-start; gap: 10px; } .page-hero .trait { width: 56px; height: 56px; } }

/* ---------- first screen: whole quiz card visible without scrolling ---------- */
.home-hero { grid-template-columns: minmax(280px, .78fr) minmax(0, 1.5fr); gap: 44px; padding-block: 20px 28px; align-items: start; }
.home-hero h1 { font-size: clamp(2.3rem, 3.5vw, 3.5rem); }
.hero-sub { font-size: clamp(1.25rem, 1.75vw, 1.75rem); }
.home-hero .lede { font-size: .9375rem; line-height: 1.55; }
.home-hero .facts { flex-direction: column; align-items: flex-start; gap: 6px; margin: 14px 0 10px; }
.home-hero .facts li + li { border-left: 0; padding-left: 0; }
.home-hero .hero-note { margin: 0 0 12px; font-size: .9375rem; }
.home-hero .hero-art img { max-height: 270px; width: auto; margin-inline: auto; }
.home-hero .hero-art figcaption { font-size: 1rem; }
.hero-quiz .quiz-card { padding: 20px 24px; }
.hero-quiz .quiz-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.hero-quiz .q-hint { font-size: .8125rem; line-height: 1.5; margin-bottom: 10px; }
.hero-quiz .quiz-progress { padding-bottom: 10px; margin-bottom: 14px; }
.hero-quiz .question-text { font-size: clamp(1.35rem, 1.85vw, 1.85rem); line-height: 1.16; }
.hero-quiz .opts { margin-top: 16px; gap: 8px; }
.hero-quiz .opt { min-height: 84px; gap: 8px; }
.hero-quiz .opt.opt-alt { min-height: 40px; }
.hero-quiz fieldset.q { margin-bottom: 16px; }
@media (max-width: 1024px) {
  .home-hero { display: block; }
  .hero-quiz { max-width: 820px; margin: 14px auto 0; }
  .hero-workspace { max-width: 820px; }
  .home-hero .facts { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 0; }
  .home-hero .hero-note { display: none; }
}
@media (max-width: 600px) {
  .home-hero { padding-block: 12px 18px; }
  .home-hero h1 { font-size: 1.85rem; line-height: 1.05; }
  .hero-sub { font-size: 1.05rem; margin-top: 2px; }
  .home-hero .facts { font-size: .75rem; gap: 4px 12px; margin-top: 8px; }
  .home-hero .facts .icon { width: 14px; height: 14px; }
  .hero-quiz { margin-top: 10px; }
  .hero-quiz .quiz-card { padding: 12px 14px 14px; }
  .hero-quiz .quiz-card h2 { font-size: 1.05rem; margin-bottom: 2px; }
  .hero-quiz .q-hint { font-size: .75rem; line-height: 1.4; margin-bottom: 8px; }
  .hero-quiz .quiz-progress { padding-bottom: 8px; margin-bottom: 10px; }
  .hero-quiz .question-text { font-size: 1.2rem; line-height: 1.2; }
  .hero-quiz .opts { margin-top: 10px; gap: 6px; }
  .hero-quiz .opt { min-height: 40px; padding: 6px 12px; }
  .hero-quiz .opt-dot { width: 20px; height: 20px; }
  .hero-quiz .opt.opt-alt { min-height: 36px; }
  .hero-quiz fieldset.q { margin-bottom: 10px; }
  .hero-quiz .quiz-nav .btn { min-height: 44px; }
}
@media (max-width: 1024px) { .home-hero .hero-eyebrow, .home-hero .lede { display: none; } }
@media (max-width: 600px) {
  .hero-quiz .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .hero-quiz .opts-alt { display: contents; }
  .hero-quiz .opt, .hero-quiz .opt.opt-alt { min-height: 44px; padding: 6px 10px; gap: 8px; justify-content: space-between; }
  .hero-quiz .opt-n { display: none; }
  .hero-quiz .opt-label { font-size: .875rem; line-height: 1.2; }
  .hero-quiz .opt.opt-alt .opt-label { font-size: .8125rem; }
}
@media (max-width: 1024px) { .home-hero { padding-top: 14px; } }
@media (max-width: 600px) {
  .home-hero { padding-top: 10px; }
  .home-hero .facts { flex-wrap: nowrap; gap: 0 10px; }
  .home-hero .facts li:nth-child(4) { display: none; }
  .hero-quiz .quiz-card:has(fieldset.q:first-of-type[hidden]) .q-hint { display: none; }
}

/* ---------- layout A (approved): quiz wide on the left, art on the right ---------- */
.home-hero { grid-template-columns: minmax(0, 2.1fr) minmax(220px, .8fr); gap: 40px; padding-block: 16px 28px; }
.home-hero .hero-eyebrow { margin-bottom: 4px; }
.home-hero h1 { font-size: clamp(2.3rem, 3.6vw, 3.6rem); line-height: 1; }
.home-hero .hero-sub { display: inline; margin: 0 0 0 .3em; font-size: clamp(1.2rem, 1.7vw, 1.7rem); }
.home-hero .facts { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 10px 0 14px; }
.home-hero .facts li + li { border-left: 1px solid rgba(246,240,232,.28); padding-left: 16px; margin-left: 16px; }
.hero-quiz { margin: 0; }
.hero-side { padding-top: 6px; }
.home-hero .hero-art img { max-height: 380px; width: auto; margin-inline: auto; }
.hero-side .lede { display: block; margin: 14px 0 8px; font-size: .9375rem; line-height: 1.55; }
.hero-side .hero-note { display: block; margin: 0; }
@media (max-width: 1280px) { .home-hero .hero-sub { display: block; margin: 4px 0 0; } }
@media (max-width: 1024px) {
  .home-hero { display: block; }
  .hero-quiz { max-width: none; margin: 12px 0 0; }
  .hero-side { margin-top: 18px; padding-top: 0; }
  .hero-side .lede { display: block; }
  .hero-side .hero-note { display: block; }
}
@media (max-width: 600px) {
  .home-hero .facts { gap: 0 10px; margin: 8px 0 0; }
  .home-hero .facts li + li { border-left: 0; padding-left: 0; margin-left: 0; }
}
.home-hero h1 { margin: 2px 0 0; font-size: clamp(2.2rem, 3.2vw, 3.3rem); }
.home-hero .hero-sub, .home-hero .hero-sub { display: block; margin: 2px 0 0; line-height: 1.15; font-size: clamp(1.15rem, 1.5vw, 1.5rem); }
.home-hero .facts { margin: 8px 0 12px; }
@media (max-height: 760px) and (min-width: 1025px) { .home-hero .hero-eyebrow { display: none; } .home-hero { padding-top: 12px; } }

/* ---------- Mobile v2 "pocket card" (approved 2026-11-23). Phones only; desktop is untouched. ---------- */
.m-cameo, .m-only, .qc-short { display: none; }
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .qc-long { display: none; }
  .qc-short { display: inline; }
  .m-only { display: block; }
  /* header + hero on warm paper instead of wine, on every page */
  .top { background: var(--paper); color: var(--ink); }
  .top a { color: var(--wine); }
  .site-head .wrap { min-height: 60px; border-bottom-color: #bca5a4; }
  .site-head .brand span { color: var(--wine); }
  .brand picture { display: contents; }
  .brand img { width: 34px; height: 34px; }
  .menu-toggle { color: var(--wine); }
  .nav { background: var(--paper); box-shadow: 0 10px 20px #421c2d14; border-bottom: 1px solid var(--line); left: -20px; right: -20px; padding-inline: 20px; }
  .nav a { border-bottom-color: var(--line); color: var(--wine); }
  .hero h1 { color: var(--wine); }
  .hero-eyebrow { color: var(--accent-dark); }
  .hero .lede, .updated, .top .note { color: var(--muted); }
  .page-hero .trait { color: var(--wine); }

  /* home, intro state: compact two-line title + cameo, first question answerable right away */
  .result-links { margin-inline: auto; }
  .home-hero { padding-block: 16px 0; }
  .hero-workspace { position: relative; }
  .m-cameo { display: block; position: absolute; top: -2px; right: 0; width: 48px; height: 72px; pointer-events: none; }
  .m-cameo img { width: 100%; height: 100%; object-fit: contain; }
  .home-hero h1 { max-width: calc(100% - 56px); font-size: 2rem; line-height: 1.02; letter-spacing: -.045em; }
  .home-hero .hero-sub { max-width: calc(100% - 56px); margin-top: 6px; font-size: 1rem; line-height: 1.25; color: var(--ink); }
  .home-hero .facts { margin: 14px 0 6px; gap: 0; font-size: .6875rem; white-space: nowrap; color: var(--ink); flex-wrap: nowrap; }
  .home-hero .facts li + li { border-left: 1px solid #bca5a4; padding-left: 7px; margin-left: 7px; }
  .home-hero .facts li:nth-child(4) { display: none; }
  .home-hero .facts .icon { width: 14px; height: 14px; }
  .hero-quiz { margin-top: 6px; }
  .hero-quiz .quiz-card { padding: 0; border-radius: 0; background: transparent; }
  .hero-quiz .quiz-card h2 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-quiz .quiz-progress { order: -1; margin: 8px 0 12px; padding-bottom: 12px; border-bottom-color: #bca5a4; gap: 16px; }
  .hero-quiz #quiz-count { font: 600 .9375rem/1.3 var(--font-display); letter-spacing: .015em; text-transform: none; }
  .hero-quiz .quiz-progress .track { width: 58%; height: 8px; }
  .hero-quiz .quiz-card { display: flex; flex-direction: column; }
  .hero-quiz .q-hint { order: 0; margin: 0 0 10px; font-size: .8125rem; line-height: 1.45; }
  .hero-quiz .quiz-vs, .hero-quiz form { order: 1; }
  .hero-quiz .question-text { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.04em; color: var(--wine); }
  .hero-quiz .opts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
  .hero-quiz .opts-alt { display: flex; flex-direction: column; gap: 8px; }
  .hero-quiz .opt, .hero-quiz .opt.opt-alt { min-height: 52px; flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 16px; gap: 12px; border-radius: 8px; border-color: #b7a39f; }
  .hero-quiz .opt-n { display: none; }
  .hero-quiz .opt-label { order: 1; min-height: 0; text-align: left; font-size: 1rem; line-height: 1.3; font-weight: 600; color: var(--ink); }
  .hero-quiz .opt-dot, .hero-quiz .opt.opt-alt .opt-dot { order: 2; margin-left: auto; width: 24px; height: 24px; }
  .hero-quiz .opt.opt-alt { min-height: 46px; }
  .hero-quiz .opt.opt-alt .opt-label { font-size: .9375rem; font-weight: 500; color: var(--muted); }
  .hero-quiz .opt:has(input:checked) { background: var(--rose); border-color: var(--wine); box-shadow: inset 0 0 0 .5px var(--wine); }
  .hero-quiz fieldset.q { margin-bottom: 18px; }
  /* docked Back / Next: sticky, but keeps its full height in the flow so it never covers an answer */
  .hero-quiz .quiz-nav { position: sticky; bottom: 0; z-index: 5; flex-wrap: nowrap; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 14px var(--gutter) max(14px, env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid #bca5a4; }
  .hero-quiz .quiz-nav .btn { min-height: 52px; border-radius: 8px; font-size: 1rem; }
  .hero-quiz #quiz-back { flex: 0 0 35%; border-color: var(--wine); }
  .hero-quiz #quiz-next, .hero-quiz #quiz-submit { flex: 1; margin-left: 0; }
  .hero-quiz .btn-arrow .btn-icon { width: 52px; }
  .hero-quiz .btn-primary:disabled { background: #e0d6ce; border-color: #cabdb6; color: var(--muted); }
  [data-ui-state="intro"] .hero-quiz #quiz-back { display: none; }
  /* focus state (question 2+): intro collapses, the question gets the room */
  [data-ui-state="focus"] .home-hero .hero-eyebrow, [data-ui-state="focus"] .home-hero h1, [data-ui-state="focus"] .home-hero .facts,
  [data-ui-state="focus"] .m-cameo, [data-ui-state="focus"] .hero-side, [data-ui-state="focus"] .hero-quiz .q-hint { display: none; }
  [data-ui-state="focus"] .hero-quiz .quiz-progress { margin-top: 0; margin-bottom: 24px; padding-bottom: 18px; }
  [data-ui-state="focus"] .hero-quiz .question-text { font-size: 1.625rem; min-height: 6em; }
  [data-ui-state="focus"] .hero-quiz .opts { margin-top: 18px; }
  .hero-side { margin-top: 20px; padding-bottom: 8px; }
  .hero-side .lede { color: var(--muted); }
  .hero-side .hero-note { color: var(--muted); margin: 0 0 4px; }

  /* result: wine lead card, compact seven-score list, two-button action row */
  .result-wrap { width: calc(100% - 2 * var(--gutter)); }
  .result-card { padding: 0; background: transparent; border-radius: 0; }
  .lead-card { position: relative; padding: 18px 20px 20px; border-radius: 10px; background: var(--wine); color: var(--paper); }
  .lead-eyebrow { margin: 0 0 6px; font-size: .625rem; line-height: 1.4; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--on-wine-muted); }
  .lead-card.lead-solo { padding-right: 84px; }
  .lead-trait { position: absolute; right: 14px; top: 14px; width: 60px; height: 60px; color: var(--paper); --icon-accent: var(--accent); }
  .result-card .lead-card h2 { margin: 0; font-size: 1.75rem; line-height: 1.1; color: var(--paper); }
  .lead-card p { margin: 10px 0 0; font-size: .875rem; line-height: 1.4; }
  .lead-card .lead-score { margin-top: 6px; font: italic 400 1.25rem/1.2 var(--font-display); color: var(--rose); }
  .sides-title { margin: 22px 0 0; font: 600 1.625rem/1.15 var(--font-display); letter-spacing: -.04em; color: var(--ink); }
  .bars { gap: 0; margin: 8px 0 12px; }
  .sin-row { padding: 10px 0; border-top: 1px solid var(--line); }
  .bar-head a { font: 600 .9375rem/1.3 var(--font-ui); text-transform: none; letter-spacing: 0; }
  .bar-head strong { font: 700 .9375rem/1 var(--font-ui); }
  .tag { font-size: .625rem; padding: 1px 7px; }
  .bar { height: 8px; margin-top: 6px; background: var(--rose); }
  .sin-row:has(.tag-lead) .bar span { background: var(--wine); }
  .result-card summary { font-size: .875rem; min-height: 40px; display: flex; align-items: center; }
  .result-card section { margin-top: 18px; }
  .result-card section h2 { font-size: 1.375rem; }
  .share p:has(#copy-share) { display: flex; gap: 12px; }
  .share #copy-share, .share #copy-compare { flex: 1; min-height: 52px; border-radius: 8px; padding-inline: 10px; font-size: .875rem; }
  .share #copy-compare { order: 1; border-color: var(--wine); }
  .share #copy-share { order: 2; background: var(--wine); color: var(--paper); border-color: var(--wine); }
  .share-pick { gap: 4px 14px; }
  .share-pick label { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .home-hero .facts { font-size: .6875rem; }
  .home-hero .facts li + li { padding-left: 7px; margin-left: 7px; }
  .home-hero .facts .icon { display: none; }
  .hero-quiz .opt-label { font-size: .9375rem; }
  .hero-quiz .opt, .hero-quiz .opt.opt-alt { padding-inline: 12px; }
  .share #copy-share, .share #copy-compare { font-size: .8125rem; }
}
