/* zarinvornvexx.com — a 1970s–90s paint counter: fan decks, shade cards, a wire chip rack. */

:root {
  --ink: oklch(0.22 0.02 220);
  --ink-soft: oklch(0.33 0.02 220);
  --rack: oklch(0.74 0.012 200);
  --rack-light: oklch(0.84 0.01 200);
  --rack-dark: oklch(0.56 0.015 205);
  --paper: oklch(0.985 0.004 95);
  --paper-dim: oklch(0.94 0.006 95);
  --teal: oklch(0.42 0.07 200);
  --teal-deep: oklch(0.28 0.05 205);
  --teal-ink: oklch(0.86 0.04 195);
  --brass: oklch(0.72 0.09 80);
  --brass-in: oklch(0.55 0.08 75);

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rail: 0px;
  --pad: 20px;
  --inner: 1120px;
  --h1: clamp(2.75rem, 1.86rem + 3.97vw, 5.25rem);
  --h2: clamp(2rem, 1.51rem + 2.18vw, 3.375rem);
  --body: 1rem;
  --panel-pad: 56px var(--pad) 64px;
  --panel-gap: 24px;
  --step: 160ms;      /* card hover: one mechanical step */
  --fan-step: 80ms;   /* hero fan: one 6° step */
  --fan-delay: 240ms;
}
@media (min-width: 900px) {
  :root { --rail: 104px; --pad: clamp(32px, 5.7vw, 72px); --body: 1.125rem; --panel-pad: 96px var(--pad) 104px; --panel-gap: 36px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--teal-deep); color: var(--ink);
  font-family: var(--font); font-size: var(--body); line-height: 1.58;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.panel--deep :focus-visible, .rail :focus-visible, .footer :focus-visible, .on-paper :focus-visible { outline-color: var(--paper); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 4px; font-weight: 700; }
.skip:focus { top: 12px; }

/* display type: one family, 96pt optical size */
.d { font-weight: 800; font-variation-settings: "opsz" 96; text-wrap: balance; }
.h1 { font-size: var(--h1); line-height: 0.96; letter-spacing: -0.03em; }
.h2 { font-size: var(--h2); line-height: 1.02; letter-spacing: -0.02em; }
.w-700 { max-width: 700px; } .w-760 { max-width: 760px; } .w-900 { max-width: 900px; }
.para { max-width: 680px; line-height: 1.58; text-wrap: pretty; }
.para--lead { font-size: clamp(1.0625rem, 0.97rem + 0.4vw, 1.3125rem); }
.link { font-size: 15px; font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.link:hover { color: var(--ink); }
.link--soft { color: var(--ink-soft); }
.muted { font-weight: 500; }
.flow { display: grid; gap: 18px; }
.flow .para, .flow p { max-width: 640px; }

/* ---------- shell: fan-deck spine rail (desktop) / top strip (mobile) ---------- */
.shell { min-height: 100vh; }
.col { background: var(--rack); min-width: 0; display: flex; flex-direction: column; }
.col > main { flex: 1; }
.rail { position: sticky; top: 0; z-index: 30; background: var(--teal-deep); color: var(--paper); display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.brand .mark { width: 31px; height: auto; }
.brand-name { font-weight: 800; font-variation-settings: "opsz" 96; font-size: 18px; }
.menu-btn { display: grid; gap: 4px; padding: 10px 6px; background: none; border: 0; border-radius: 4px; }
.menu-btn span:not(.sr-only) { display: block; width: 26px; height: 5px; border-radius: 1px; transition: transform var(--step) steps(2); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateX(6px); }
.menu-btn[aria-expanded="true"] span:nth-child(4) { transform: translateX(-6px); }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--teal-deep); border-top: 1px solid var(--teal); padding: 8px 20px 18px; }
.nav.is-open { display: block; }
.nav ul { display: grid; gap: 4px; }
.tab { display: flex; align-items: center; gap: 14px; padding: 10px 0; text-decoration: none; color: var(--teal-ink); font-size: 17px; font-weight: 500; }
.tab-chip { width: 32px; height: 20px; border-radius: 3px; background: var(--chip); flex: none; }
.tab.is-on { color: var(--paper); font-weight: 700; }
.tab.is-on .tab-label { text-decoration: underline; text-underline-offset: 4px; }
.tab.is-on .tab-chip { background: var(--paper); }
.tab:hover { color: var(--paper); }
.rail-domain, .rail-rivet { display: none; }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
  .rail { height: 100vh; flex-direction: column; justify-content: flex-start; padding: 30px 0; gap: 34px; }
  .brand .mark { width: 56px; }
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-btn { display: none; }
  .nav, .nav.is-open { display: block; position: static; background: none; border: 0; padding: 0; }
  .nav ul { gap: 34px; }
  .tab { flex-direction: column; gap: 8px; padding: 0; font-size: 13px; }
  .tab-chip { width: 44px; height: 26px; transition: height var(--step) steps(2); }
  .tab.is-on .tab-chip { height: 34px; }
  .tab:hover .tab-chip { height: 34px; }
  .rail-domain { display: block; margin-top: auto; writing-mode: vertical-rl; font-size: 12px; font-weight: 500; color: var(--teal-ink); }
  .rail-rivet { display: block; position: static; width: 22px; height: 22px; flex: none; }
}

/* brass rivet that pins a fan deck */
.rivet { position: absolute; border-radius: 50%; background: radial-gradient(circle, var(--brass-in) 0 23%, var(--brass) 24%); box-shadow: 0 2px 4px oklch(0.22 0.02 220 / 0.35); }

/* ---------- panels: full-bleed shade bands ---------- */
.panel { position: relative; overflow: hidden; padding: var(--panel-pad); }
.panel > .in { position: relative; z-index: 1; max-width: var(--inner); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--panel-gap); }
.panel--rack { background: var(--rack); }
.panel--light { background: var(--rack-light); }
.panel--paper { background: var(--paper); }
.panel--dim { background: var(--paper-dim); }
.panel--deep { background: var(--teal-deep); color: var(--paper); }
.panel--deep .para, .panel--deep .flow p { color: var(--teal-ink); }
.panel--top { padding-top: clamp(32px, 4vw, 56px); }
.swatch-code { position: absolute; z-index: 1; right: max(var(--pad), calc((100% - var(--inner)) / 2)); bottom: 16px; font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.panel--deep .swatch-code { color: var(--teal-ink); }

.split-head { display: grid; gap: 12px; }
.two-col { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .split-head { grid-template-columns: minmax(0, 560px) minmax(0, 440px); justify-content: space-between; align-items: end; gap: 64px; }
  .split-head .lead { font-size: 17px; }
  .two-col { grid-template-columns: minmax(0, 420px) minmax(0, 470px); gap: 72px !important; }
}
.lead { font-size: 15px; line-height: 1.58; }

/* ---------- breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { font-weight: 600; }

/* ---------- hero: a shade card lying on a real fan deck ---------- */
.hero { position: relative; overflow: hidden; background: var(--teal-deep); padding-bottom: 40px; }
.hero-photo img { width: 100%; height: 300px; object-fit: cover; }
.hero-behind { display: none; }
.hero-holder { position: relative; z-index: 2; margin-top: -72px; padding: 0 16px; display: flex; justify-content: center; }
.hero-card { width: min(100%, 440px); background: var(--paper); border-radius: 8px; padding: 22px 20px 24px; display: grid; gap: 14px; transform: rotate(1.5deg); box-shadow: 0 30px 60px -8px oklch(0.22 0.02 220 / 0.42); }
.hero-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.hero-top span + span { font-weight: 500; color: var(--ink-soft); }
.hero-lead { font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 2px 0 6px; font-size: 16px; font-weight: 700; color: var(--teal); text-underline-offset: 3px; }
.hero-cta i { width: 14px; height: 14px; border-radius: 2px; background: var(--teal); }
.hero-cta:hover { color: var(--ink); }
.hero-tints { display: grid; gap: 14px; }
.tint { display: block; height: 34px; }
.tint-l { display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; color: var(--ink-soft); margin-top: -6px; }
.only-d { display: none; }

@media (min-width: 900px) {
  .hero { height: 820px; padding: 0; }
  .hero-photo img { position: absolute; inset: 0; height: 100%; }
  .hero-behind { display: block; position: absolute; width: 610px; height: 900px; border-radius: 8px; transform-origin: top left; box-shadow: 0 16px 36px -8px oklch(0.22 0.02 220 / 0.3); z-index: 1; }
  .hb1 { left: 40px; top: 150px; transform: rotate(15deg); animation: fan-a calc(var(--fan-step) * 2) steps(2, end) var(--fan-delay) both; }
  .hb2 { left: 58px; top: 128px; transform: rotate(9.5deg); animation: fan-b var(--fan-step) steps(1, end) var(--fan-delay) both; }
  .hero-holder { position: absolute; left: 80px; top: 120px; margin: 0; padding: 0; }
  .hero-card { width: min(610px, calc(100vw - var(--rail) - 120px)); padding: 34px 40px 40px; gap: 18px; transform-origin: top left; }
  .hero-top { font-size: 13px; }
  .hero-lead { font-size: 19px; }
  .hero-cta { font-size: 18px; }
  .hero-tints { gap: 18px; }
  .tint { height: 56px; }
  .only-d { display: block; }
  .only-m { display: none; }
}
/* Figma dev notes: on load the swatch fan opens in 6° steps, mechanical, no easing, ~80 ms per step.
   Both cards start folded under the hero card; reduced motion shows the final pose. */
@keyframes fan-a { from { transform: rotate(3deg); } to { transform: rotate(15deg); } }
@keyframes fan-b { from { transform: rotate(3.5deg); } to { transform: rotate(9.5deg); } }

/* ---------- shade card + wire rack ---------- */
.rack { display: grid; grid-template-columns: 1fr; gap: 28px 28px; }
@media (min-width: 640px) { .rack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; } }
@media (min-width: 1100px) { .rack { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.slot { position: relative; }
.slot[hidden] { display: none; }
.lip {
  position: absolute; z-index: 3; left: -14px; right: -14px; bottom: -4px; height: 50px; border-radius: 3px; pointer-events: none;
  background:
    linear-gradient(oklch(0.985 0.004 95 / 0.35), oklch(0.985 0.004 95 / 0.35)) top / 100% 3px no-repeat,
    radial-gradient(circle at 18px 50%, var(--brass-in) 0 3.6px, var(--brass) 4px 8px, transparent 8.5px),
    radial-gradient(circle at calc(100% - 18px) 50%, var(--brass-in) 0 3.6px, var(--brass) 4px 8px, transparent 8.5px),
    var(--rack-dark);
  box-shadow: 0 -3px 10px oklch(0.22 0.02 220 / 0.28);
}
.card { position: relative; background: var(--paper); border-radius: 6px; overflow: hidden; box-shadow: 0 8px 22px -4px oklch(0.22 0.02 220 / 0.16); display: flex; flex-direction: column; height: 100%; }
.card-swatch { position: relative; background: var(--shade); padding: 14px; }
.card .cover { width: 100%; aspect-ratio: 1 / 0.56; object-fit: cover; border-radius: 3px; }
.card-tag { position: absolute; left: 26px; top: 26px; background: var(--paper); border-radius: 3px; padding: 5px 10px; font-size: 12px; font-weight: 700; opacity: 0; }
.card-strip { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rack-light); font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.card-strip span + span { font-weight: 500; }
.card-body { display: grid; gap: 8px; align-content: start; padding: 14px 14px 20px; flex: 1; }
.slot .card-body { padding-bottom: 60px; }
.card-title { font-size: 22px; line-height: 1.08; font-weight: 800; font-variation-settings: "opsz" 96; }
.card-title-link { text-decoration: none; }
.card-title-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card-fields { font-size: 13px; font-weight: 500; color: var(--ink-soft); line-height: 1.45; }
.card-line { font-size: 15px; line-height: 1.45; }
.card-more { font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .card-swatch { padding: 18px; }
  .card-strip { padding: 10px 18px; }
  .card-body { padding: 14px 18px 20px; }
  .card-title { font-size: 26px; }
}
/* hover / focus: the card rises out of its slot on one mechanical step */
.card--link { transition: transform var(--step) steps(1, end), box-shadow var(--step) steps(1, end); }
.card--link:hover, .card--link:focus-within { transform: translateY(-36px); box-shadow: 0 26px 40px -6px oklch(0.22 0.02 220 / 0.35); }
.card--link:hover .card-tag, .card--link:focus-within .card-tag { opacity: 1; }
.card--link:hover .card-more, .card--link:focus-within .card-more { color: var(--ink); }
.card--link:has(.card-title-link:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.card-title-link:focus-visible { outline: none; }

/* ---------- explainer: mint chip strip ---------- */
.chip-strip { position: absolute; right: -106px; top: -20px; width: 300px; padding: 8px; background: var(--paper); border-radius: 4px; display: grid; transform-origin: top left; transform: scale(0.5) rotate(-9deg); box-shadow: 0 18px 40px -6px oklch(0.22 0.02 220 / 0.3); }
.chip-strip i { display: block; height: 120px; }
@media (min-width: 900px) { .chip-strip { right: -130px; top: -40px; transform: rotate(-9deg); } }
.panel--deep .two-col .h2 { max-width: 420px; }
@media (max-width: 899px) { .panel--deep .two-col .h2 { padding-right: 60px; } }

/* ---------- marquees ---------- */
.marquee { overflow: hidden; background: var(--paper); }
.mq-track { display: flex; width: max-content; animation: mq 48s linear infinite; }
.marquee:hover .mq-track, .marquee:focus-within .mq-track { animation-play-state: paused; }
.mq-run { display: flex; align-items: center; flex: none; }
.mq-item { display: inline-flex; align-items: center; white-space: nowrap; }
.mq-item i { flex: none; border-radius: 2px; }
@keyframes mq { to { transform: translateX(-50%); } }
.marquee--strip { border-block: 1px solid var(--rack-dark); padding: 14px 0; }
.marquee--strip .mq-item { gap: 18px; padding-right: 18px; font-size: 16px; font-weight: 500; }
.marquee--strip .mq-item i { width: 10px; height: 10px; }
@media (min-width: 900px) {
  .marquee--strip { padding: 20px 0; }
  .marquee--strip .mq-item { gap: 30px; padding-right: 30px; font-size: 22px; }
  .marquee--strip .mq-item i { width: 14px; height: 14px; }
}

/* ---------- controls sheet ---------- */
.ctl-table { background: var(--paper); border-radius: 6px; box-shadow: 0 6px 18px -4px oklch(0.22 0.02 220 / 0.12); }
.ctl-row { display: grid; gap: 10px; padding: 14px; }
.ctl-row + .ctl-row { border-top: 1px solid var(--rack-light); }
.ctl-name { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; }
.ctl-name i { width: 12px; height: 30px; border-radius: 2px; flex: none; }
.ctl-name a { text-decoration: none; }
.ctl-name a:hover { text-decoration: underline; }
.ctl-keys, .kpairs { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.kpair { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.key { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--ink); background: var(--paper); border: 1px solid var(--rack-dark); border-radius: 5px; padding: 5px 10px; box-shadow: 0 2px 0 oklch(0.22 0.02 220 / 0.18); white-space: nowrap; }
@media (min-width: 900px) {
  .ctl-row { grid-template-columns: 280px 1fr; align-items: center; gap: 24px; padding: 18px 24px; }
  .ctl-name { font-size: 18px; }
  .kpair { flex-direction: row; align-items: center; }
}
.kpairs .kpair { flex-direction: row; align-items: center; font-size: 14px; }
.kpairs { gap: 10px 12px; }

/* ---------- fans of shade cards (decor) ---------- */
.fan { position: absolute; pointer-events: none; }
.fan-card { position: absolute; border-radius: 4px; transform: rotate(var(--r)); }
.fan--about { width: 460px; height: 460px; right: -310px; top: 10px; opacity: 0.9; transform-origin: 230px 420px; transform: scale(0.63); }
.fan--about .fan-card { box-shadow: 0 4px 10px oklch(0.22 0.02 220 / 0.14); }
.about-text { display: grid; gap: 20px; max-width: min(620px, calc(100% - 90px)); }
@media (min-width: 900px) {
  .fan--about { right: -40px; top: 30px; opacity: 1; transform: none; }
  .about-text { max-width: 620px; }
}
@media (min-width: 1300px) { .fan--about { right: 10px; } }
.fan--about-top { width: 340px; height: 340px; right: -220px; top: 10px; transform-origin: 170px 310px; transform: scale(0.55); }
@media (min-width: 900px) { .fan--about-top { right: -40px; top: 40px; transform: none; } }
@media (min-width: 1300px) { .fan--about-top { right: 20px; } }

/* ---------- cover fan ---------- */
.fan-stage { position: relative; height: 300px; }
.cover-fan { position: absolute; inset: 0; }
.gcard { position: absolute; width: 118px; height: 172px; left: calc(50% - 59px); top: 96px; transform-origin: 59px 154px; transform: rotate(var(--rm)); background: var(--paper); border-radius: 6px; overflow: hidden; box-shadow: 0 10px 24px -4px oklch(0.22 0.02 220 / 0.3); display: flex; flex-direction: column; }
.gcard-band { background: var(--shade); padding: 8px; }
.gcard .cover { width: 100%; height: 63px; object-fit: cover; border-radius: 3px; }
.gcard-l { display: grid; gap: 5px; padding: 6px 8px; }
.gcard-l i { display: block; height: 5px; border-radius: 2px; width: 86%; background: var(--paper-dim); }
.gcard-l i + i { width: 70%; background: var(--rack-light); }
.cover-rivet { width: 16px; height: 16px; left: calc(50% - 8px); top: 242px; }
@media (min-width: 900px) {
  .fan-stage { height: 540px; }
  .gcard { width: 270px; height: 380px; left: calc(50% - 135px); top: 104px; transform-origin: 135px 346px; transform: rotate(var(--r)); }
  .gcard-band { padding: 14px; }
  .gcard .cover { height: 150px; }
  .gcard-l { padding: 12px 14px; }
  .gcard-l i { height: 8px; }
  .cover-rivet { width: 30px; height: 30px; left: calc(50% - 15px); top: 435px; }
}
.legend { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.legend i { width: 12px; height: 12px; border-radius: 2px; flex: none; }
.legend a { color: var(--paper); text-underline-offset: 3px; }
.legend a:hover { color: var(--teal-ink); }
@media (min-width: 900px) { .legend { justify-content: center; gap: 10px 28px; } .legend li { font-size: 15px; } }

/* ---------- FAQ accordion ---------- */
.qa-list { display: grid; gap: 8px; }
.qa { background: var(--paper-dim); border-radius: 5px; }
.qa[open] { background: var(--paper); }
.qa summary { display: flex; align-items: center; gap: 16px; padding: 14px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { width: 10px; height: 22px; border-radius: 2px; background: var(--shade); flex: none; }
.qa-q { flex: 1; font-size: 17px; line-height: 1.2; font-weight: 700; }
.qa-sign::before, .band-sign::before { content: "+"; font-weight: 700; }
.qa[open] .qa-sign::before, .band[open] .band-sign::before { content: "–"; }
.qa-sign { font-size: 20px; color: var(--teal); line-height: 1; }
.qa-a { padding: 0 14px 16px; }
@media (min-width: 900px) {
  .qa-list { gap: 10px; }
  .qa summary { padding: 20px 26px; }
  .qa summary i { width: 14px; height: 28px; }
  .qa-q { font-size: 22px; }
  .qa-sign { font-size: 26px; }
  .qa-a { padding: 0 26px 22px 56px; }
  .qa-a .para { max-width: 820px; }
}

/* ---------- contact ---------- */
.big-mail { font-size: clamp(1.1875rem, 0.2rem + 4.4vw, 3.5rem); line-height: 1.05; color: var(--teal); text-underline-offset: 6px; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.big-mail:hover { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 4px; background: var(--paper); font-size: 14px; font-weight: 500; }
.chips--dim li { background: var(--paper-dim); }
.chips i { width: 10px; height: 10px; border-radius: 2px; flex: none; }

/* ---------- footer ---------- */
.footer { background: var(--teal-deep); color: var(--paper); overflow: hidden; }
.marquee--footer { padding: 14px 0; }
.marquee--footer .mq-item { gap: 22px; padding-right: 22px; color: var(--ink-soft); font-size: 13px; font-weight: 500; }
.marquee--footer .mq-item.is-title { color: var(--ink); font-size: 26px; font-weight: 800; font-variation-settings: "opsz" 96; }
.marquee--footer .mq-item i { width: 12px; height: 12px; }
.footer-body { display: grid; gap: 28px; padding: 32px var(--pad) 24px; max-width: calc(var(--inner) + 2 * var(--pad)); margin-inline: auto; }
.footer-brand { display: grid; gap: 14px; max-width: 420px; }
.footer-name { font-size: 26px; font-weight: 800; font-variation-settings: "opsz" 96; }
.footer-line { font-size: 15px; line-height: 1.5; color: var(--teal-ink); }
.footer-mail { font-size: 17px; font-weight: 600; color: var(--paper); text-underline-offset: 3px; width: fit-content; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 18px 24px; }
.footer-cols ul { display: grid; gap: 10px; align-content: start; }
.footer-cols a, .linkish { font-size: 15px; font-weight: 500; color: var(--paper); text-decoration: none; }
.footer-cols a:hover, .linkish:hover { text-decoration: underline; text-underline-offset: 3px; }
.linkish { background: none; border: 0; padding: 0; text-align: left; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; }
.footer-social svg { flex: none; }
.footer-base { display: grid; gap: 8px; padding: 16px var(--pad) 24px; border-top: 1px solid var(--teal); font-size: 13px; color: var(--teal-ink); }
@media (min-width: 900px) {
  .marquee--footer { padding: 22px 0; }
  .marquee--footer .mq-item { gap: 36px; padding-right: 36px; font-size: 18px; }
  .marquee--footer .mq-item.is-title { font-size: 44px; }
  .marquee--footer .mq-item i { width: 18px; height: 18px; }
  .footer-body { grid-template-columns: minmax(0, 420px) auto; justify-content: space-between; gap: 64px; padding: 56px var(--pad) 36px; }
  .footer-name { font-size: 34px; }
  .footer-cols { flex-wrap: nowrap; gap: 64px; }
  .footer-base { display: flex; justify-content: space-between; gap: 24px; padding: 18px max(var(--pad), calc((100% - var(--inner)) / 2)) 28px; }
}

/* ---------- games catalogue ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 4px; border: 0; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 500; }
.fchip i { width: 12px; height: 12px; border-radius: 2px; }
.fchip:hover { background: var(--paper-dim); }
.fchip.is-on { background: var(--ink); color: var(--paper); font-weight: 700; }
.families { display: grid; gap: 10px; padding-top: 8px; }
.families-t { font-size: clamp(20px, 1.6vw + 14px, 24px); font-weight: 700; }
.families ul { display: grid; gap: 10px; }
.families li { display: flex; align-items: center; gap: 12px; font-size: 15px; scroll-margin-top: 90px; }
.families i { width: 28px; height: 16px; border-radius: 2px; flex: none; }

/* ---------- game page ---------- */
.guide-row { display: grid; gap: 20px; }
.guide-card .card { box-shadow: 0 18px 40px -6px oklch(0.22 0.02 220 / 0.3); height: auto; }
.guide-text { display: grid; gap: 12px; align-content: start; }
.guide-sum { font-size: 17px; line-height: 1.5; }
.guide-meta { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.back { background: var(--paper); border-radius: 6px; padding: 14px; }
.back-t { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.fact { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 9px 0; border-top: 1px solid var(--rack-light); }
.fact dt { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.fact dd { font-size: 14px; }
@media (min-width: 900px) {
  .guide-row { grid-template-columns: 440px minmax(0, 1fr); gap: 56px; }
  .guide-card { padding: 10px 0 0 6px; }
  .guide-card .card { width: 420px; transform: rotate(2deg); }
  .guide-text { gap: 18px; }
  .guide-sum { font-size: 20px; }
  .back { padding: 18px 22px; }
  .fact { grid-template-columns: 130px 1fr; }
}
/* accordion bands: shades of the game's colour, light to dark */
.band summary { display: flex; align-items: center; gap: 16px; padding: 16px var(--pad); max-width: calc(var(--inner) + 2 * var(--pad)); margin-inline: auto; cursor: pointer; list-style: none; }
.band summary::-webkit-details-marker { display: none; }
.on-ink { color: var(--ink); }
.on-paper { color: var(--paper); }
.band-t { flex: 1; font-size: 21px; line-height: 1.1; }
.band-code { font-size: 12px; font-weight: 500; opacity: 0.8; }
.band-sign { font-size: 22px; line-height: 1; }
.band-body { background: var(--paper); color: var(--ink); border-radius: 5px; padding: 16px 14px; display: grid; gap: 14px; margin: 0 var(--pad); }
.band[open] { padding-bottom: 20px; }
@media (min-width: 900px) {
  .band summary { padding: 22px var(--pad); }
  .band-t { font-size: 30px; }
  .band-sign { font-size: 28px; }
  .band-body { padding: 26px 30px; margin: 0 max(var(--pad), calc((100% - var(--inner)) / 2)); }
  .band[open] { padding-bottom: 30px; }
}
.band-body .para { font-size: var(--body); }
.band-body .link { margin-top: 2px; }
.sub { font-size: 17px; font-weight: 700; line-height: 1.25; margin-top: 4px; }
@media (min-width: 900px) { .sub { font-size: 18px; } }
.bullets { display: grid; gap: 12px; max-width: 760px; }
.bullets li, .similar li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; font-size: calc(var(--body) - 1px); }
.bullets i { width: 10px; height: 10px; border-radius: 2px; background: var(--shade-g); margin-top: 0.5em; flex: none; }
.similar { display: grid; gap: 12px; }
.similar li { align-items: center; font-size: 15px; }
.similar i { width: 30px; height: 30px; border-radius: 3px; flex: none; }
.similar a { font-weight: 600; text-underline-offset: 3px; }

/* ---------- about ---------- */
.about-band { padding: 32px var(--pad); }
.about-band .in { max-width: var(--inner); margin-inline: auto; display: grid; gap: 14px; }
.about-band-t { font-size: clamp(24px, 1vw + 20px, 34px); line-height: 1.05; }
@media (min-width: 900px) {
  .about-band { padding: 56px var(--pad); }
  .about-band .two-col { grid-template-columns: minmax(0, 380px) minmax(0, 640px); gap: 64px !important; }
}
.rows { max-width: 720px; }
.rows .fact { gap: 20px; padding: 12px 0; }
.rows .fact dt { font-size: 14px; }
.rows .fact dd { font-size: 15px; overflow-wrap: anywhere; }
@media (min-width: 900px) { .rows .fact { grid-template-columns: 160px 1fr; } }

/* ---------- legal: one long card on the counter ---------- */
.legal { background: var(--paper); border-radius: 6px; padding: 22px 16px 26px; display: grid; gap: 16px; max-width: 860px; box-shadow: 0 18px 40px -6px oklch(0.22 0.02 220 / 0.2); }
.legal-band { display: flex; height: 10px; border-radius: 2px; overflow: hidden; }
.legal-band i, .cookie-band i { flex: 1; }
.legal-h1 { font-size: clamp(2.375rem, 1.8rem + 2.6vw, 4rem); line-height: 0.98; letter-spacing: -0.02em; }
.legal-upd { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.legal-sum { background: var(--paper-dim); border-radius: 4px; padding: 12px; }
.legal-h { font-size: 19px; font-weight: 700; line-height: 1.2; margin-top: 6px; }
.legal .para { max-width: 700px; font-size: 15px; }
.legal .para a, .para a, .rows a { color: var(--teal); text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .legal { padding: 52px 64px 56px; gap: 22px; }
  .legal-band { height: 14px; }
  .legal-sum { padding: 18px 22px; }
  .legal-h { font-size: 24px; }
  .legal .para { font-size: 17px; }
}

/* ---------- cookie banner: a tear-off card ---------- */
.cookie { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 500px; background: var(--paper); border-radius: 8px; overflow: hidden; box-shadow: 0 20px 40px -6px oklch(0.22 0.02 220 / 0.3); }
.cookie[hidden] { display: none; }
.cookie-band { display: flex; height: 12px; }
.cookie-body { display: grid; gap: 14px; padding: 20px 18px 22px; font-size: 15px; line-height: 1.5; }
.cookie-head { display: flex; align-items: center; gap: 12px; }
.cookie-head .mark { width: 31px; height: auto; flex: none; }
.cookie-head h2 { font-size: 21px; line-height: 1.08; font-weight: 800; font-variation-settings: "opsz" 96; }
.cookie-acts { display: flex; gap: 10px; }
.btn { flex: 1; padding: 12px 10px; border-radius: 4px; background: var(--paper); border: 1.5px solid var(--ink); font-size: 15px; font-weight: 700; }
.btn:hover { background: var(--ink); color: var(--paper); }
.cookie-manage { display: grid; gap: 10px; padding: 12px; background: var(--paper-dim); border-radius: 4px; }
.cookie-manage[hidden] { display: none; }
.cookie-opt { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.cookie-opt input { width: 18px; height: 18px; accent-color: var(--teal); }
.cookie-manage .btn { flex: none; }
@media (min-width: 560px) {
  .cookie { left: calc(var(--rail) + 20px); right: auto; bottom: 20px; width: 500px; }
  .cookie-body { padding: 26px 28px 28px; }
  .cookie-head h2 { font-size: 26px; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mq-track { transform: none; }
  html { scroll-behavior: auto; }
}
