/* Spirographix — constructivist poster */
:root {
  --ink: #111111;
  --bone: #f3efe6;
  --red: #e10600;
  --blue: #1d4ed8;
  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --display: "Syne", "Arial Black", sans-serif;
  --max: 1240px;
  --gut: clamp(16px, 3vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.045em; line-height: 0.9; margin: 0 0 0.4em; }
h1 { font-size: clamp(3.3rem, 6.2vw, 6rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h3 { font-size: 1.7rem; line-height: 1; }
h1 em, h2 em { font-style: italic; font-weight: 800; color: var(--red); }
.container { width: min(100% - var(--gut) * 2, var(--max)); margin: 0 auto; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--red); color: #fff; padding: 0.5rem 0.8rem; z-index: 200; }
.skip:focus { top: 0.6rem; }
.label { margin: 0 0 0.7rem; font-family: var(--display); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.lede { font-size: 1.12rem; max-width: 46ch; }
.muted, .small { color: #444; }
.small { font-size: 0.86rem; }
.serif { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 2vw, 2rem); line-height: 0.95; letter-spacing: -0.04em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.1rem; border: 3px solid var(--ink); background: var(--ink); color: var(--bone); text-decoration: none; font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; cursor: pointer; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-gold { background: var(--red); border-color: var(--ink); color: #fff; }
.btn-gold:hover { background: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bone); }
.btn-light { background: var(--bone); color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.link { font-family: var(--display); font-weight: 800; text-decoration: none; border-bottom: 3px solid var(--ink); }
.link-light { color: var(--ink); border-bottom-color: var(--red); }

.topline { background: var(--ink); color: var(--bone); font-size: 0.82rem; }
.topline .container { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.45rem 0; }
.topline p { margin: 0; }
.topline a { color: #fff; }
.topline-meta { display: flex; gap: 0.9rem; white-space: nowrap; }
.site-header { background: var(--red); color: var(--ink); }
.header-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 0.7rem 0 0.35rem; }
.brand { display: flex; align-items: flex-end; gap: 0.6rem; color: var(--ink); text-decoration: none; min-width: 0; }
.brand svg { width: 54px; height: 54px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 5.4vw, 4.4rem); letter-spacing: -0.06em; line-height: 0.78; text-transform: uppercase; }
.header-note { margin: 0 0 0.45rem; font-family: var(--display); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.header-tools { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.burger { display: none; width: 48px; height: 48px; border: 3px solid var(--ink); background: var(--bone); position: relative; cursor: pointer; }
.burger span { position: absolute; left: 10px; right: 10px; height: 3px; background: var(--ink); }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 30px; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.main-nav { position: sticky; top: 0; z-index: 40; background: var(--bone); border-top: 6px solid var(--ink); border-bottom: 6px solid var(--ink); }
.nav-inner { display: flex; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.75rem 0.85rem; border-right: 2px solid var(--ink); }
.main-nav a[aria-current="page"], .main-nav a:hover { background: var(--red); color: #fff; }
.cart-link { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--ink); color: var(--bone); text-decoration: none; padding: 0.45rem 0.6rem; font-family: var(--display); font-weight: 800; }
.cart-link [data-cart-count] { background: var(--red); color: #fff; min-width: 1.4rem; text-align: center; }

.hero { position: relative; padding-top: 1.2rem; overflow: visible; min-height: 72vh; }
.hero-bg { position: absolute; width: min(42vw, 520px); height: min(42vw, 520px); right: 4vw; top: 1.5rem; border-radius: 50%; overflow: hidden; border: 8px solid var(--ink); z-index: 1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero-inner { position: relative; z-index: 2; min-height: 62vh; padding-top: 0.4rem; padding-bottom: 2rem; }
.hero-copy { max-width: min(40vw, 620px); }
.hero-note { display: inline-block; margin: 1.2rem 0 0; background: var(--red); color: #fff; border: 3px solid var(--ink); padding: 0.35rem 0.55rem; font-family: var(--display); font-weight: 800; max-width: 18ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1.2rem; }
.facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { background: var(--ink); color: var(--bone); padding: 1rem; border-right: 4px solid var(--red); }
.fact strong { display: block; font-family: var(--display); font-size: 2rem; font-weight: 800; }
.fact span { font-size: 0.86rem; }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.tint { background: #fff; }
.sec-head { border-top: 10px solid var(--red); padding-top: 0.7rem; margin-bottom: 1.4rem; }
.sec-no { margin: 0 0 0.4rem; font-family: var(--display); font-weight: 800; color: var(--red); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.sec-head p { margin: 0.4rem 0 0; max-width: 46ch; }
.sec-body p a, .prose a, .faq-a a { color: var(--blue); }

.index-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 4px solid var(--ink); }
.index-row { position: relative; min-height: 320px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); overflow: hidden; }
.index-thumb { position: absolute; inset: 0; width: auto; height: auto; }
.index-thumb img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.index-main { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: var(--bone); border-top: 3px solid var(--ink); padding: 0.7rem 0.8rem 0.8rem; }
.index-line { display: block; }
.index-line h3 { margin: 0; font-size: 1.45rem; }
.index-line h3 a { text-decoration: none; }
.index-line h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.dots { display: none; }
.index-format { margin: 0.2rem 0 0; font-size: 0.75rem; letter-spacing: 0.02em; }
.index-price { display: inline-block; margin-top: 0.25rem; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; padding: 0.05rem 0.35rem; }
.index-meta { margin: 0.25rem 0 0; font-size: 0.88rem; }
.index-add { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 3; width: 44px; height: 44px; border: 3px solid var(--ink); background: var(--red); color: #fff; font-size: 1.4rem; cursor: pointer; }
.index-add.is-added { background: var(--ink); }

.chapter { display: grid; grid-template-columns: 1fr 1fr; border: 4px solid var(--ink); background: #fff; }
.chapter + .chapter { margin-top: 1.2rem; }
.chapter.flip .chapter-media { order: 2; }
.chapter-media { margin: 0; }
.chapter-media img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; max-width: none; }
.chapter-copy { padding: 1.3rem; }
.chapter-no { font-family: var(--display); font-weight: 800; font-size: 4rem; line-height: 0.8; color: var(--red); display: block; }
.fine { background: var(--ink); color: var(--bone); padding: 0.7rem 0.8rem; }

.statement { background: var(--ink); color: var(--bone); padding: 4rem 0; }
.statement .mark { width: 64px; height: 64px; color: var(--red); display: block; }
.statement .mark svg { width: 64px; height: 64px; }
.statement p { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 0.92; max-width: 14ch; margin: 0.6rem 0 0; }
.statement em { color: var(--red); }

.dark { background: var(--red); color: #fff; }
.dark .sec-no { color: var(--ink); }
.dark h2 em { color: var(--ink); }
.dark .sec-head { border-top-color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 4px solid var(--ink); }
.timeline li { background: var(--bone); color: var(--ink); padding: 1.2rem; border-right: 3px solid var(--ink); }
.step-no { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--red); line-height: 1; }
.feature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 0; border: 4px solid var(--ink); background: #fff; }
.feature img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; max-width: none; }
.feature > div { padding: 1.4rem; }
.actions { margin-top: 1rem; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; }
.quote { margin: 0; padding: 1rem; border: 3px solid var(--ink); background: #fff; }
.quote + .quote { border-top: 0; }
.quotes .quote:nth-child(odd) { border-right: 0; }
.quote blockquote { margin: 0 0 0.7rem; font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.05; letter-spacing: -0.03em; }
.quote figcaption { font-weight: 700; }
.quote figcaption span { display: block; font-weight: 400; color: #555; }
.fineprint { font-size: 0.82rem; }
.notice { display: grid; grid-template-columns: 0.7fr 1.3fr; border: 4px solid var(--ink); background: var(--red); color: #fff; }
.notice > div { padding: 1.2rem; }
.notice h2, .notice em { color: #fff; }
.callout { border: 3px solid var(--ink); padding: 0.8rem; margin: 1rem 0; background: #fff; }

.faq-wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 1.5rem; }
.faq { border-bottom: 3px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; }
.faq[open] summary::after { content: "–"; }
.faq-a { padding-bottom: 0.8rem; }

.page-head { padding: 1.6rem 0 1rem; border-bottom: 8px solid var(--ink); }
.page-head h1 { max-width: 14ch; }
.crumbs { font-family: var(--display); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.8rem; }
.crumbs a { text-decoration: none; }
.crumbs span { margin: 0 0.3rem; }
.page-head-grid { display: grid; grid-template-columns: 1.3fr 0.8fr; gap: 1rem; align-items: end; }
.page-nav { display: flex; flex-wrap: wrap; margin-top: 1rem; border: 3px solid var(--ink); }
.page-nav a { text-decoration: none; font-weight: 800; padding: 0.45rem 0.7rem; border-right: 2px solid var(--ink); }
.page-nav a:hover { background: var(--red); color: #fff; }
.section > .container > .crumbs a { color: var(--ink); }

.doc { display: grid; grid-template-columns: 230px 1fr; gap: 1.5rem; }
.toc { position: sticky; top: 4.5rem; background: var(--red); color: #fff; padding: 0.9rem; }
.toc a { color: #fff; text-decoration: none; display: block; padding: 0.3rem 0; font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.prose h2 { scroll-margin-top: 5rem; margin-top: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.data-list div { display: grid; grid-template-columns: 200px 1fr; gap: 0.6rem; padding: 0.65rem 0; border-bottom: 2px solid var(--ink); }
.data-list dt { font-family: var(--display); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.data-list dd { margin: 0; }
.story { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1rem; }
.story figure { margin: 0; }
.story img { width: 100%; border: 4px solid var(--ink); aspect-ratio: 3/4; object-fit: cover; }
.story figcaption { font-family: var(--display); font-weight: 700; margin-top: 0.4rem; }
.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1rem; }
.milestones div { background: var(--red); color: #fff; padding: 0.8rem; }
.milestones strong { display: block; font-family: var(--display); font-size: 1.3rem; }
.banner-img { width: 100%; border: 4px solid var(--ink); aspect-ratio: 21/8; object-fit: cover; margin-bottom: 1.4rem; }
.glossary { display: grid; grid-template-columns: repeat(3, 1fr); }
.gloss { border: 3px solid var(--ink); padding: 0.8rem; background: #fff; }
.g-no, .g-tag { font-family: var(--display); font-weight: 800; color: var(--red); }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { display: grid; grid-template-columns: 3rem 1fr; gap: 0.5rem; border-bottom: 3px solid var(--ink); padding: 0.6rem 0; }
.principles span { font-family: var(--display); font-weight: 800; color: var(--red); font-size: 1.4rem; }

.product { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1rem; align-items: start; }
.product-media { margin: 0; border: 6px solid var(--ink); position: sticky; top: 5rem; }
.product-media img { width: 100%; aspect-ratio: 1; object-fit: cover; max-width: none; }
.tagline { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; }
.price-row { display: flex; justify-content: space-between; align-items: center; background: var(--red); color: #fff; padding: 0.7rem 0.8rem; margin: 0.8rem 0; }
.price { font-family: var(--display); font-size: 2.2rem; font-weight: 800; }
.vat { font-size: 0.78rem; text-align: right; }
.buy { display: grid; gap: 0.5rem; }
.perks { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.perks li { border: 3px solid var(--ink); padding: 0.6rem; font-size: 0.86rem; }
.perks svg { width: 22px; height: 22px; }
.dossier-row { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; border-top: 4px solid var(--ink); padding: 1rem 0; }
.dossier-row h2 { font-size: 1.6rem; }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; border-bottom: 2px solid var(--ink); padding: 0.5rem 0; vertical-align: top; }
.spec th { width: 34%; font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

.cart-layout { display: grid; grid-template-columns: 1.4fr 0.7fr; gap: 1rem; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 0.7rem; align-items: center; border-bottom: 3px solid var(--ink); padding: 0.7rem 0; }
.cart-line img { width: 84px; height: 84px; object-fit: cover; border: 3px solid var(--ink); }
.cart-line h2 { font-size: 1.3rem; margin: 0; }
.controls { display: flex; gap: 0.7rem; align-items: center; }
.qty { display: inline-flex; border: 3px solid var(--ink); }
.qty button { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; }
.remove { background: none; border: 0; font-weight: 700; cursor: pointer; }
.summary { background: var(--ink); color: var(--bone); padding: 1rem; position: sticky; top: 5rem; }
.summary h2 { color: #fff; font-size: 1.8rem; }
.sum-lines { list-style: none; margin: 0; padding: 0; }
.sum-lines li, .sum-row { display: flex; justify-content: space-between; gap: 0.6rem; border-bottom: 1px solid rgba(243,239,230,.3); padding: 0.35rem 0; margin: 0; }
.summary .btn { margin-top: 0.8rem; background: var(--red); border-color: var(--red); }
.empty { border: 4px solid var(--ink); padding: 2rem; text-align: center; }
.empty p { font-family: var(--display); font-weight: 800; font-size: 2rem; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.full { grid-column: 1 / -1; }
.field { display: grid; gap: 0.25rem; }
.field > span { font-family: var(--display); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; border: 3px solid var(--ink); background: #fff; border-radius: 0; padding: 0.65rem; }
.field textarea { min-height: 120px; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; }
.form .actions { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }
.contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 0; border: 4px solid var(--ink); }
.contact-panel { background: var(--red); color: #fff; padding: 1.2rem; }
.contact-panel h2, .contact-panel a, .contact-panel dd { color: #fff; }
.contact-panel .data-list div { border-color: rgba(255,255,255,.35); grid-template-columns: 1fr; }
.contact > .form { padding: 1rem; background: #fff; }
.field-error { color: var(--red); font-weight: 700; }
.field-error[hidden] { display: none; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }

.modal { position: fixed; inset: 0; z-index: 80; background: rgba(17,17,17,.72); display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-box { background: var(--bone); border: 4px solid var(--ink); width: min(100%, 520px); padding: 1.3rem; }
.thanks-icon { width: 48px; height: 48px; background: var(--red); display: inline-block; }
.thanks-actions { display: flex; gap: 0.5rem; margin-top: 0.8rem; }
.cookie-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 70; background: var(--ink); color: var(--bone); max-width: 960px; margin: 0 auto; border: 4px solid var(--red); }
.cookie-bar[hidden] { display: none; }
.cookie-bar .container { display: flex; justify-content: space-between; gap: 1rem; align-items: center; width: auto; padding: 0.8rem 1rem; }
.cookie-bar p { margin: 0; }
.cookie-bar a { color: #fff; }
.cookie-actions { display: flex; gap: 0.4rem; }
.cookie-actions .btn-line { color: var(--bone); border-color: var(--bone); }

.site-footer { background: var(--ink); color: var(--bone); padding: 0 0 1rem; }
.site-footer a { color: var(--bone); text-decoration: none; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 1.2rem; padding-top: 2rem; }
.footer-top h2, .footer-legal h2 { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin: 0.25rem 0; }
.footer-contact { display: grid; gap: 0.2rem; }
.site-footer .brand { color: var(--bone); }
.site-footer .brand-name { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--bone); }
.site-footer .serif { color: var(--bone); }
.footer-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 2px solid rgba(243,239,230,.2); margin-top: 1.2rem; padding-top: 1rem; font-size: 0.88rem; }
.footer-legal p { margin: 0; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 16vw, 11rem); line-height: 0.78; letter-spacing: -0.07em; text-transform: uppercase; color: var(--red); margin: 0.4rem 0 0; white-space: nowrap; overflow: hidden; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; color: #bbb; }

.reveal { opacity: 0; transform: translateY(10px); transition: .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .header-note { display: none; }
  .burger { display: block; }
  .main-nav { position: static; display: none; border-width: 4px; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .nav-inner { flex-direction: column; }
  .main-nav a { border-right: 0; border-bottom: 2px solid var(--ink); }
  .hero-bg { position: relative; width: 220px; height: 220px; right: auto; top: auto; margin: 0 0 1rem auto; }
  .hero-inner, .hero { min-height: 0; }
  .hero-copy { max-width: none; }
  h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .facts, .index-list, .chapter, .feature, .faq-wrap, .doc, .story, .product, .contact, .cart-layout, .notice, .page-head-grid, .timeline, .quotes, .glossary, .dossier-row { grid-template-columns: 1fr; }
  .index-list { grid-template-columns: 1fr 1fr; }
  .chapter.flip .chapter-media { order: 0; }
  .quotes .quote:nth-child(odd) { border-right: 3px solid var(--ink); }
  .story figure, .product-media, .summary, .toc { position: static; }
  .footer-top, .footer-legal { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topline .container, .footer-base, .cookie-bar .container, .facts, .index-list, .timeline, .glossary, .milestones, .perks, .form, .footer-top, .data-list div { display: flex; flex-direction: column; }
  .facts, .index-list { display: grid; grid-template-columns: 1fr; }
  .brand-name { font-size: 2.2rem; }
}
