/* Maisonblock storefront · design system v2 "Vitrine" (see brand/design-system.md). */
:root {
  --night: #0F0D0B; --ink: #16130F; --ink-2: #211D18; --ink-3: #2E2922;
  --paper: #F4EFE6; --linen: #E8E0D2; --mist: #B9B0A2; --stone: #5F584E;
  --red: #B4472A; --red-lit: #E07A5A; --brass: #A8834B; --brass-lit: #CDAA72; --moss: #4F5B47; --moss-lit: #9DB08F;
  --line: rgba(244, 239, 230, .12); --line-2: rgba(244, 239, 230, .22);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1240px; --gutter: 24px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--paper); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red-lit); outline-offset: 3px; }
::selection { background: var(--red); color: var(--paper); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--mist); }
.small { font-size: 14px; }
em { font-style: italic; }

/* Type */
.display, .h1, .h2, .h3, .h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; line-height: 1.02; }
.display { font-size: clamp(56px, 9vw, 136px); line-height: .92; }
.h1 { font-size: clamp(44px, 6vw, 84px); }
.h2 { font-size: clamp(32px, 3.8vw, 52px); }
.h3 { font-size: clamp(24px, 2.2vw, 30px); margin: 36px 0 12px; }
.h4 { font-size: 22px; }
.display em, .h1 em, .h2 em { color: var(--brass-lit); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--mist); max-width: 60ch; margin: 18px 0 0; }
.plate { font: 500 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-lit); margin: 0 0 14px; }
.link { color: var(--paper); text-decoration: none; background: linear-gradient(var(--red-lit), var(--red-lit)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .3s var(--ease), color .2s; font-size: 15px; }
.link:hover { background-size: 100% 2px; color: var(--red-lit); }
.link-btn { background: none; border: 0; padding: 0; color: var(--mist); text-decoration: underline; cursor: pointer; font-size: 14px; }
code { font: 13px var(--mono); background: var(--ink-2); padding: 2px 6px; border-radius: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid var(--paper); background: var(--paper); color: var(--ink); border-radius: 2px; font-weight: 500; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); background: var(--red); border-color: var(--red); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line-2); }
.btn--ghost:hover { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--line-2); background: transparent; border-radius: 2px; cursor: pointer; font-size: 22px; line-height: 1; }

/* Ribbon + header */
.ribbon { background: var(--brass); color: var(--ink); text-align: center; font-size: 13px; padding: 7px 16px; }
.ribbon span { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-right: 8px; }
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(15, 13, 11, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.mark { width: 30px; height: 30px; }
.word { font: 400 26px/1 var(--serif); letter-spacing: -.01em; }
.word em { color: var(--brass-lit); }
.main-nav { display: flex; gap: 26px; margin-right: auto; }
.main-nav a, .head-link { text-decoration: none; font-size: 14.5px; color: var(--mist); transition: color .2s; }
.main-nav a:hover, .head-link:hover, .main-nav a[aria-current] { color: var(--paper); }
.main-nav a[aria-current] { box-shadow: 0 1px 0 var(--red-lit); }
.head-actions { display: flex; align-items: center; gap: 18px; }
.bag-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: transparent; height: 38px; padding: 0 12px; border-radius: 2px; cursor: pointer; font-size: 14px; }
.bag-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink-3); display: inline-grid; place-items: center; font: 500 12px var(--mono); }
.bag-count.has { background: var(--red); }
.bag-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; width: 40px; height: 38px; border: 1px solid var(--line-2); background: transparent; border-radius: 2px; cursor: pointer; padding: 0 10px; flex-direction: column; justify-content: center; gap: 6px; }
.menu-btn i { display: block; height: 1.5px; background: var(--paper); transition: transform .25s var(--ease); }
.menu-btn[aria-expanded=true] i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded=true] i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-nav { display: grid; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); }
.mobile-nav a { text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); font: 400 26px var(--serif); }

/* Sections */
.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec--tight { padding: 40px 0 clamp(72px, 9vw, 120px); }
.sec--panel { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-note { color: var(--mist); max-width: 42ch; margin: 0; }
.page-head { padding: clamp(56px, 7vw, 96px) 0 12px; }
.grid { display: grid; gap: 28px 24px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Hero */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; background: radial-gradient(closest-side, rgba(168, 131, 75, .16), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; gap: 32px; margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-facts dt { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.hero-facts dd { margin: 4px 0 0; font: 400 40px/1 var(--serif); }

/* Vitrine: the lit display case */
.vitrine { position: relative; }
.vitrine-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.vitrine-label .plate { margin: 0; }
.vitrine-tools { display: flex; align-items: center; gap: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 2px; }
.seg button { background: transparent; border: 0; padding: 6px 12px; font-size: 13px; color: var(--mist); cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--paper); color: var(--ink); }
.vitrine-glass { --x: 50%; --y: 30%; position: relative; padding: 10px; border: 1px solid rgba(168, 131, 75, .45); background: radial-gradient(600px circle at var(--x) var(--y), rgba(205, 170, 114, .16), transparent 60%), var(--ink); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(0, 0, 0, .6); transition: box-shadow .4s; }
.vitrine-glass::before, .vitrine-glass::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1px solid var(--brass-lit); pointer-events: none; }
.vitrine-glass::before { left: -5px; top: -5px; border-right: 0; border-bottom: 0; }
.vitrine-glass::after { right: -5px; bottom: -5px; border-left: 0; border-top: 0; }
.vitrine-glass iframe { width: 100%; margin: 0 auto; border: 0; background: var(--paper); transition: width .45s var(--ease), height .3s; }
.vitrine-note { font-size: 13px; color: var(--mist); margin: 12px 0 0; }
.vitrine--plain .vitrine-glass { padding: 8px; }
.demo-settings { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: end; margin-top: 16px; padding: 16px; border: 1px solid var(--line); background: var(--ink); }
.demo-settings .plate { width: 100%; margin: 0; }
.demo-settings label { display: grid; gap: 6px; font-size: 13px; color: var(--mist); min-width: 150px; }
.demo-settings output { color: var(--paper); font-family: var(--mono); font-size: 12px; }
.demo-settings .toggle { display: flex; align-items: center; gap: 8px; min-width: 0; }
select, input[type=email], input[type=text], textarea { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 2px; padding: 10px 12px; color: var(--paper); width: 100%; }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type=range] { accent-color: var(--red-lit); width: 100%; }
input[type=checkbox], input[type=radio] { accent-color: var(--red); }

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font: 400 30px var(--serif); color: var(--mist); white-space: nowrap; }
.marquee span em { color: var(--paper); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cards */
.card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); background: var(--ink); transition: border-color .3s, transform .4s var(--ease); }
.card:hover { border-color: rgba(205, 170, 114, .55); transform: translateY(-3px); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--ink-2); }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.shot--b { opacity: 0; object-fit: contain; background: var(--ink-2); padding: 12px; transform: translateY(8px); }
.card:hover .shot--b { opacity: 1; transform: none; }
.card:hover .shot--a { transform: scale(1.04); }
.shot-missing { display: grid; place-items: center; height: 100%; font: 40px var(--serif); color: var(--mist); }
.card-art { width: 100%; height: 100%; padding: 8%; }
.card-body { display: grid; align-content: start; padding: 18px 18px 20px; }
.card-body .plate { margin-bottom: 8px; }
.card-title { font: 400 30px/1.05 var(--serif); margin: 0; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card { position: relative; }
.card-line { color: var(--mist); margin: 6px 0 18px; font-size: 15px; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.card-foot .link { position: relative; z-index: 1; font-size: 14px; }
.price { font: 500 15px var(--mono); }
.price s { color: var(--mist); font-weight: 400; margin-right: 4px; }

/* Showroom */
.showroom-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.showroom-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 20px 12px; cursor: pointer; text-align: left; font: 400 26px/1 var(--serif); color: var(--mist); white-space: nowrap; }
.showroom-tabs button .plate { display: block; margin: 0 0 4px; font-size: 10.5px; }
.showroom-tabs button[aria-selected=true] { color: var(--paper); border-bottom-color: var(--red-lit); }
.showroom-foot { margin: 14px 0 0; }

/* Rooms, rules, steps */
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.room { position: relative; display: grid; align-content: start; gap: 8px; padding: 32px 28px 64px; border: 1px solid var(--line); text-decoration: none; background: linear-gradient(160deg, var(--ink-2), var(--night)); transition: border-color .3s; min-height: 260px; }
.room h3 { font: 400 52px/1 var(--serif); margin: 0; }
.room p { color: var(--mist); margin: 0; max-width: 34ch; }
.room-arrow { position: absolute; right: 24px; bottom: 22px; font-size: 26px; color: var(--brass-lit); transition: transform .3s var(--ease); }
.room:hover { border-color: var(--brass); }
.room:hover .room-arrow { transform: translateX(6px); }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rule { padding: 30px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule-n { font: 400 italic 30px var(--serif); color: var(--brass-lit); }
.rule h3 { font: 500 18px var(--sans); margin: 10px 0 8px; }
.rule p { color: var(--mist); margin: 0; font-size: 15px; }
.steps-wrap, .compare-wrap, .notes { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 20px 0 20px 64px; border-bottom: 1px solid var(--line); color: var(--mist); }
.steps li::before { position: absolute; left: 0; top: 20px; content: counter(s, decimal-leading-zero); font: 500 13px var(--mono); color: var(--brass-lit); padding-top: 4px; }
.steps b { color: var(--paper); font-weight: 500; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.compare td:nth-child(2) { color: var(--paper); }
.compare td:nth-child(3) { color: var(--mist); }
.compare tbody th { font-weight: 500; }
.notes-form label { display: block; font-size: 14px; color: var(--mist); margin-bottom: 8px; }
.inline-field { display: flex; gap: 10px; }
.inline-field input { min-height: 48px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: end; padding: 0 0 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0 auto 0 0; padding: 0; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; cursor: pointer; color: var(--mist); transition: all .2s; }
.chip input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--red-lit); outline-offset: 2px; }
.select-label { display: grid; gap: 6px; font-size: 13px; color: var(--mist); min-width: 180px; }
.filter-count { width: 100%; margin: 0; font: 12px var(--mono); color: var(--mist); letter-spacing: .08em; text-transform: uppercase; }
.empty { color: var(--mist); }

/* Product page */
.pdp { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.pdp-info { position: sticky; top: 92px; display: grid; gap: 4px; }
.pdp-info > p:not(.plate):not(.lede) { color: var(--mist); margin: 14px 0 0; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--mist); margin-bottom: 20px; }
.crumbs a { color: var(--mist); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 4px; font: 500 11.5px var(--mono); letter-spacing: .06em; color: var(--brass-lit); border: 1px solid rgba(205, 170, 114, .35); border-radius: 999px; padding: 6px 12px; justify-self: start; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--brass-lit); box-shadow: 0 0 0 3px rgba(205, 170, 114, .18); }
.buy { margin-top: 18px; display: grid; gap: 14px; }
.licences { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.licences legend { font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); margin-bottom: 10px; }
.licence { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-2); cursor: pointer; transition: border-color .2s, background .2s; }
.licence input { position: absolute; opacity: 0; }
.licence b { display: block; font-weight: 500; }
.licence small { color: var(--mist); font-size: 13px; }
.licence-price { font: 500 16px var(--mono); }
.licence-price s { color: var(--mist); font-weight: 400; font-size: 13px; }
.licence:has(input:checked) { border-color: var(--paper); background: var(--ink-2); }
.licence:has(input:focus-visible) { outline: 2px solid var(--red-lit); outline-offset: 2px; }
.assure { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--mist); }
.assure li::before { content: '— '; color: var(--brass-lit); }
.assure a { color: var(--paper); }
.pdp-detail { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 80px); }
.pdp-detail > div > .h3:first-child, .pdp-aside > .h3:first-child { margin-top: 0; }
.pdp-detail p { color: var(--mist); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 6px; border-left: 1.5px solid var(--moss-lit); border-bottom: 1.5px solid var(--moss-lit); transform: rotate(-45deg); }
.spec { font-size: 14px; }
.spec td:nth-child(2), .spec td:nth-child(3) { font-family: var(--mono); font-size: 12.5px; color: var(--mist); }
.spec .group th { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-lit); padding-top: 22px; }
.spec--kv th { width: 34%; color: var(--mist); font-weight: 400; }
.spec--kv td { font-family: var(--sans) !important; font-size: 14px !important; color: var(--paper) !important; }
.spec--kv code { font-size: 11.5px; display: inline-block; margin: 2px 2px 2px 0; }
.changelog { list-style: none; padding: 0; margin: 0; }
.screens { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: end; }
.screens figure { margin: 0; }
.screens--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; align-items: start; }
.screens img { border: 1px solid var(--line); width: 100%; height: auto; }
.screens figcaption { font: 12px var(--mono); color: var(--mist); margin-top: 10px; }
.contains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contains .card-title { font-size: 22px; }
.contains .card-line { display: none; }
.faq-list { max-width: 860px; }
.faq-list .h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 32px 18px 0; list-style: none; position: relative; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font: 300 24px var(--sans); color: var(--brass-lit); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--mist); margin: 0 0 18px; }

/* Forms, notices */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { display: grid; gap: 7px; font-size: 14px; color: var(--mist); }
.form .check { display: flex; gap: 10px; align-items: start; color: var(--paper); }
.form .check input { margin-top: 4px; }
.form-error { border-left: 2px solid var(--red-lit); padding: 10px 14px; background: rgba(180, 71, 42, .12); margin: 0; }
.notice { border: 1px solid var(--moss-lit); background: rgba(79, 91, 71, .25); padding: 18px 20px; }
.checkout-grid, .support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.summary, .paycard { border: 1px solid var(--line-2); background: var(--ink); padding: 24px; }
.lines { list-style: none; padding: 0; margin: 0 0 12px; }
.lines li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lines small { display: block; color: var(--mist); }
.lines span:last-child { font-family: var(--mono); }
.total { display: flex; justify-content: space-between; font: 500 20px var(--mono); margin: 8px 0 14px; }
.pay-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.prose-dark p { color: var(--mist); }
.prose-dark p b { color: var(--paper); }
.draft-flag { display: inline-block; margin-top: 16px; padding: 8px 12px; border: 1px dashed var(--brass-lit); color: var(--brass-lit); font: 500 12px var(--mono); letter-spacing: .04em; }

/* Account */
.owned { display: grid; gap: 14px; }
.owned-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px; border: 1px solid var(--line); background: var(--ink); }
.owned-item .h3 { margin: 0; }
.owned-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: end; max-width: 520px; }
.key { margin: 8px 0 0; color: var(--mist); font-size: 14px; }
.tickets { padding-left: 18px; color: var(--mist); }

/* Reading room */
.reading-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: 4px; }
.toc a { color: var(--mist); text-decoration: none; font-size: 14px; padding: 5px 0 5px 12px; border-left: 1px solid var(--line-2); }
.toc a:hover { color: var(--paper); border-color: var(--red-lit); }
.paper { background: var(--paper); color: var(--ink); padding: clamp(28px, 5vw, 64px); max-width: 860px; }
.prose h2 { font: 400 34px/1.1 var(--serif); margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 600 17px var(--sans); margin: 28px 0 8px; }
.prose p, .prose li { color: #2b2620; }
.prose a { color: var(--red); }
.prose code { background: var(--linen); color: var(--ink); }
.prose pre { background: var(--ink); color: var(--paper); padding: 16px; overflow-x: auto; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose .callout { border-left: 3px solid var(--red); background: var(--linen); padding: 14px 18px; margin: 18px 0; }
.prose table { font-size: 14px; }
.prose th, .prose td { border-bottom: 1px solid #d6ccba; }
.prose thead th { color: var(--stone); }
.prose td:nth-child(n+2) { font-family: var(--mono); font-size: 12.5px; }
.doc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.doc-card { display: grid; gap: 6px; padding: 24px; border: 1px solid var(--line); text-decoration: none; background: var(--ink); transition: border-color .25s; }
.doc-card:hover { border-color: var(--brass); }
.doc-card p { color: var(--mist); margin: 0; font-size: 14.5px; }
.doc-card .plate { margin-bottom: 4px; }

/* Bag drawer + cart page */
.bag { position: fixed; inset: 0; z-index: 90; }
.bag-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); animation: fade .3s; }
.bag-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--ink); border-left: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; animation: slide .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(100%); } }
.bag-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.bag-head h2 { font: 400 32px var(--serif); margin: 0; }
.bag-lines { overflow-y: auto; padding: 8px 24px; }
.bag-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.bag-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bag-line h3 { font: 400 26px/1 var(--serif); margin: 0; }
.bag-line select { width: auto; padding: 6px 30px 6px 10px; font-size: 13px; }
.bag-line .line-price { font: 500 15px var(--mono); text-align: right; }
.bag-line .remove { background: none; border: 0; color: var(--mist); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 0; justify-self: end; }
.bag-empty { color: var(--mist); padding: 24px 0; }
.upsell { border: 1px dashed rgba(205, 170, 114, .5); padding: 12px 14px; font-size: 14px; color: var(--mist); display: grid; gap: 10px; }
.upsell b { color: var(--paper); font-weight: 500; }
.bag-total { display: flex; justify-content: space-between; font: 500 18px var(--mono); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 140%); background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 2px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); transition: transform .35s var(--ease); max-width: calc(100% - 32px); font-size: 14.5px; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 72px 0 28px; margin-top: 0; background: var(--night); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h2 { font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-lit); margin: 6px 0 14px; }
.foot-grid a:not(.brand) { display: block; color: var(--mist); text-decoration: none; padding: 4px 0; font-size: 14.5px; }
.foot-grid a:hover { color: var(--paper); }
.foot-brand p { color: var(--mist); max-width: 34ch; font-size: 14.5px; }
.foot-mono { font: 12px var(--mono) !important; letter-spacing: .08em; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mist); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .pdp-grid { grid-template-columns: minmax(0, 1fr); }
  .pdp-info { position: static; }
  .main-nav { gap: 18px; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .main-nav, .head-link { display: none; }
  .menu-btn { display: inline-flex; }
  .head-row { justify-content: space-between; }
  .grid--3, .rooms, .rules, .doc-cards, .contains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-wrap, .compare-wrap, .notes, .pdp-detail, .checkout-grid, .support-grid, .reading-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .toc a { border: 0; padding: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid--4, .grid--3, .rooms, .rules, .doc-cards, .contains { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { gap: 20px; }
  .hero-facts dd { font-size: 32px; }
  .screens { grid-template-columns: minmax(0, 1fr); }
  .screens .phone { max-width: 240px; }
  .owned-item { grid-template-columns: minmax(0, 1fr); }
  .owned-actions { justify-content: start; }
  .inline-field { flex-direction: column; }
  .vitrine-tools .seg { display: none; }
  .word { font-size: 23px; }
  .ribbon { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
