/* kyrelthrexfrost.com — an engineering drawing sheet and a drafting instrument set (1950s–70s):
   zone-lettered border, title blocks, dimension lines, non-photo-blue construction lines,
   canary trace taped on, nickel compasses. */

:root {
  --ink: oklch(0.24 0.01 240);
  --film: oklch(0.965 0.004 200);
  --sheet: oklch(0.985 0.002 200);
  --pencil: oklch(0.47 0.012 240);
  --hair: oklch(0.78 0.008 240);
  --blue: oklch(0.8 0.08 225);          /* non-photo blue: construction lines only */
  --blue-ink: oklch(0.45 0.09 235);
  --trace: oklch(0.9 0.14 98);
  --trace-deep: oklch(0.83 0.14 92);
  --trace-ink: oklch(0.3 0.04 85);
  --tape: oklch(0.92 0.03 85);
  --prussian: oklch(0.36 0.1 255);      /* cyanotype print ground */
  --on-blue: oklch(0.88 0.035 240);

  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --text: "Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 20px;
  --rail: 0px;
  /* Figma notes: register hover — dimension lines draw up to the preview, 160 ms, ease-out */
  --hover: 160ms ease-out;
}
@media (min-width: 900px) { :root { --pad: 72px; --rail: 240px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--film); color: var(--ink); font-family: var(--text); font-size: 15px; line-height: 1.58; -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(--blue-ink); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--sheet); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 12px; }
.only-d { display: none !important; }
@media (min-width: 900px) { .only-d { display: block !important; } .only-m { display: none !important; } }
p.only-d { display: none !important; }
@media (min-width: 900px) { p.only-d { display: flex !important; } }

/* ---------- type ---------- */
.lab { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.4; color: var(--pencil); }
.lab--ink { color: var(--ink); font-weight: 500; }
.lab--blue { color: var(--blue-ink); font-weight: 500; }
.lab--b { font-weight: 700; }
.h1 { font-family: var(--mono); font-weight: 500; font-size: clamp(1.875rem, 1.3rem + 2.5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.04em; max-width: 820px; text-wrap: balance; }
.h2 { font-family: var(--mono); font-weight: 500; font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.h3 { font-family: var(--mono); font-weight: 500; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); line-height: 1.2; letter-spacing: -0.02em; }
.p { font-size: 15px; line-height: 1.58; text-wrap: pretty; }
.p--big { font-size: 16px; line-height: 1.55; }
.p--s { font-size: 15px; }
.soft { color: var(--pencil); }
@media (min-width: 900px) { body, .p { font-size: 17px; } .p--big { font-size: 19px; } .p--s { font-size: 16px; } }
.p a, .soft a, .tb a { text-underline-offset: 3px; }
.ulink { font-weight: 500; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.ulink:hover { color: var(--blue-ink); }
.ulink--mono { font-family: var(--mono); font-size: 14px; }
@media (min-width: 900px) { .ulink { font-size: 16px; } .ulink--mono { font-size: 15px; } }

/* ---------- grounds: sheet, film, cyanotype print, canary trace ---------- */
.tone-sheet, .tone-film, .tone-blue, .tone-trace { position: relative; overflow: hidden; }
.tone-sheet { background: var(--sheet); --line: #8EC6E6; --lop: 1; --hc: var(--ink); --lc: var(--pencil); }
.tone-film { background: var(--film); --line: #8EC6E6; --lop: 1; --hc: var(--ink); --lc: var(--pencil); }
.tone-blue { background: var(--prussian); color: var(--sheet); --line: #FFFFFF; --lop: 0.42; --hc: var(--sheet); --lc: var(--on-blue); }
.tone-trace { background: var(--trace); --line: #1D2226; --lop: 0.3; --hc: var(--ink); --lc: var(--trace-ink); }
.tone-sheet::before, .tone-film::before, .tone-blue::before, .tone-trace::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-repeat: repeat; }
.tone-sheet::before { background-image: url(/assets/img/tex-grain.webp); background-size: 400px; }
.tone-film::before { background-image: url(/assets/img/tex-grid-blue.webp); background-size: 200px; opacity: 0.55; }
.tone-blue::before { background-image: url(/assets/img/tex-grid-white.webp); background-size: 200px; }
.tone-trace::before { background-image: url(/assets/img/tex-grid-ink.webp); background-size: 200px; }
.bg { position: absolute; color: var(--line); opacity: var(--lop); pointer-events: none; overflow: visible; }
.bg-line { left: 0; right: 0; height: 1px; background: var(--blue); }
.vdim { position: absolute; width: 16px; color: var(--line); opacity: var(--lop); pointer-events: none; }
.vdim svg { width: 16px; height: 100%; overflow: visible; }
.vdim-t { position: absolute; left: -10px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; color: var(--blue-ink); }
.tone-blue .vdim-t { color: var(--on-blue); }
.tone-blue .vdim { opacity: 1; }
.tone-blue .vdim svg { opacity: 0.42; }

/* ---------- drafting pieces ---------- */
.dim { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.tick { width: 12px; height: 16px; flex: none; }
.dim-l { flex: 1; height: 1px; background: currentColor; transform-origin: left center; }
.dim-l:first-of-type { transform-origin: right center; }
.dim .lab { flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; padding: 12px 16px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.3; text-decoration: none; }
.btn--fill { background: var(--ink); color: var(--sheet); }
.btn:hover { background: var(--trace); color: var(--ink); }
@media (min-width: 900px) { .btn { padding: 14px 22px; font-size: 13px; } }
.tb { border: 1.5px solid var(--ink); background: var(--sheet); }
.tb-row { display: flex; }
.tb-row + .tb-row { border-top: 1px solid var(--ink); }
.tb-cell { flex: 1; min-width: 0; display: grid; gap: 4px; align-content: start; padding: 8px 10px; }
.tb-cell + .tb-cell { border-left: 1px solid var(--ink); }
.tb-v { font-size: 14px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.tb-big { font-family: var(--mono); font-weight: 500; font-size: 14px; line-height: 1.18; letter-spacing: -0.02em; overflow-wrap: anywhere; }
@media (min-width: 900px) { .tb-cell { padding: 10px 14px; } .tb-v { font-size: 15px; } .tb-big { font-size: 18px; } }
.mark { width: 26px; height: 26px; flex: none; }
.trace { position: relative; background: var(--trace); color: var(--trace-ink); box-shadow: 0 8px 22px -4px oklch(0.24 0.01 240 / 0.16); padding: 28px 20px; }
.tape { position: absolute; width: 64px; height: 20px; background: var(--tape); opacity: 0.9; box-shadow: 0 1px 2px oklch(0.24 0.01 240 / 0.08); }
.tape--l { left: 12px; top: -10px; rotate: -4deg; }
.tape--r { right: 6px; top: -12px; rotate: 5deg; }
@media (min-width: 900px) { .trace { padding: 48px 56px; } .tape { width: 92px; height: 26px; } .tape--l { left: 28px; } .tape--r { right: 18px; } }

/* ---------- shell: side rail stamp (desktop) / top strip (mobile) ---------- */
.shell { min-height: 100vh; }
.col { min-width: 0; background: var(--sheet); }
.rail { position: sticky; top: 0; z-index: 30; background: var(--film); border-bottom: 1.5px solid var(--ink); }
.rail::before { content: ""; position: absolute; inset: 0; background: url(/assets/img/tex-grid-blue.webp) repeat; background-size: 200px; opacity: 0.55; pointer-events: none; }
.rail > * { position: relative; }
.rail-top { display: flex; align-items: center; gap: 10px; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; text-decoration: none; }
.brand-name { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: -0.02em; }
.rail-label { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1.2px solid var(--ink); background: var(--sheet); }
.menu-btn svg { width: 14px; height: 10px; }
.rail-nav { display: none; padding: 0 20px 20px; }
.rail.is-open .rail-nav { display: grid; gap: 24px; }
.nav { border-top: 1.5px solid var(--ink); }
.nav a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 10px; border-bottom: 1px solid var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; transition: background-color var(--hover); }
.nav a:hover { background: oklch(0.9 0.14 98 / 0.45); }
.nav a[aria-current] { background: var(--trace); font-weight: 700; }
.nav a[aria-current] .lab { color: var(--trace-ink); }
.on-sheet { display: grid; gap: 10px; }
.on-sheet ol { display: grid; gap: 8px; }
.on-sheet a { display: flex; gap: 10px; font-size: 14px; line-height: 1.35; color: var(--pencil); text-decoration: none; }
.on-sheet a:hover { color: var(--ink); text-decoration: underline; }
.rail-foot { display: grid; gap: 6px; padding-top: 14px; border-top: 1.5px solid var(--ink); }
.rail-foot a { font-size: 13px; font-weight: 500; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ruler { display: flex; justify-content: space-between; padding: 6px 20px; border-bottom: 1px solid var(--hair); background: var(--sheet); }
.ruler .lab:nth-child(n+7) { display: none; }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
  .rail { height: 100vh; overflow-y: auto; border-bottom: 0; border-right: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 40px; padding: 32px 24px 32px 28px; }
  .rail-top { display: grid; gap: 14px; padding: 0; }
  .brand { display: grid; gap: 14px; }
  .mark { width: 40px; height: 40px; }
  .brand-name { font-size: 15px; letter-spacing: -0.03em; line-height: 1.2; }
  .rail-label { display: block; }
  .menu-btn { display: none; }
  .rail-nav, .rail.is-open .rail-nav { display: flex; flex-direction: column; gap: 40px; flex: 1; padding: 0; }
  .rail-foot { margin-top: auto; }
  .ruler { padding: 8px var(--pad); }
  .ruler .lab:nth-child(n+7) { display: inline; }
}

/* ---------- sections ---------- */
.sec { padding: 60px var(--pad); }
.sec > .in, .intro > .in, .footer > .in, .g-head > .in, .g-body > .in { position: relative; z-index: 1; max-width: 1100px; }
.sec > .in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.sec-head { position: relative; display: grid; gap: 12px; }
.zone { display: grid; place-items: center; width: 28px; height: 28px; border: 1.2px solid var(--hc); border-radius: 50%; font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--hc); }
.sec-ht { display: grid; gap: 14px; }
.sec-ht .h2 { color: var(--hc); }
.lead { font-size: 15px; line-height: 1.58; color: var(--lc); max-width: 640px; }
@media (min-width: 900px) {
  .sec { padding: 104px var(--pad); }
  .sec > .in { gap: 40px; }
  .zone { position: absolute; left: -54px; top: 4px; width: 36px; height: 36px; font-size: 13px; }
  .lead { font-size: 17px; }
}

/* ---------- hero: compasses lying open across the sheet ---------- */
.hero { position: relative; overflow: hidden; height: 830px; background: var(--sheet); }
.hero > * { position: absolute; }
.h-arc { overflow: visible; }
.h-arc circle { fill: none; stroke: #8EC6E6; stroke-width: 1.4; stroke-dasharray: 1 1; stroke-dashoffset: 0; animation: strike 900ms ease-out both; }
@keyframes strike { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.h-arc--d { display: none; }
.h-cons--h { left: 0; right: 0; top: 790px; height: 1px; background: var(--blue); }
.h-cons--v { top: 0; bottom: 0; left: 64px; width: 1px; background: var(--blue); }
.h-trace { left: 150px; top: 540px; width: 280px; height: 300px; background: var(--trace); rotate: 3deg; box-shadow: 0 10px 26px -4px oklch(0.24 0.01 240 / 0.16); }
.h-tape { left: 320px; top: 524px; width: 72px; height: 22px; background: var(--tape); opacity: 0.9; rotate: -3deg; }
.h-photo { left: -52px; top: 510px; width: 640px; max-width: none; filter: drop-shadow(8px 20px 13px oklch(0.24 0.01 240 / 0.3)); }
.h-pivot { left: 53px; top: 779px; width: 22px; height: 22px; }
.h-text { left: var(--pad); right: var(--pad); top: 32px; display: grid; gap: 18px; }
.h1--hero { font-size: 32px; line-height: 1.04; }
.h-lead { font-size: 16px; line-height: 1.55; max-width: 520px; }
.h-tb { display: none; }
@media (min-width: 900px) {
  .hero { height: 940px; }
  .h-arc--d { display: block; } .h-arc--m { display: none; }
  .h-cons--h { top: 872px; } .h-cons--v { left: 400px; }
  .h-trace { left: 560px; top: 250px; width: 640px; height: 620px; }
  .h-tape { left: 1010px; top: 234px; width: 100px; height: 28px; }
  .h-photo { left: 191px; top: 369px; width: 1150px; }
  .h-pivot { left: 389px; top: 861px; }
  .h-text { right: auto; top: 96px; width: 600px; gap: 26px; }
  .h1--hero { font-size: clamp(44px, 4.7vw, 64px); }
  .h-lead { font-size: 19px; }
}
@media (min-width: 1330px) { .h-tb { display: block; right: 40px; top: 72px; width: 420px; } .h-tb .tb-big { font-size: 20px; } }

/* ---------- G: register with hover preview ---------- */
.register { display: grid; gap: 40px; }
.r-table { border: 1.5px solid var(--ink); background: var(--sheet); min-width: 0; }
.r-head { display: none; }
.r-rows li + li { border-top: 1px solid var(--ink); }
.r-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 22px; gap: 12px; align-items: center; padding: 14px 12px; text-decoration: none; transition: background-color var(--hover); }
.r-thumb img { width: 56px; height: 56px; object-fit: cover; }
.r-code, .r-genre, .r-dev { display: none; }
.r-t { display: grid; gap: 4px; min-width: 0; }
.r-title { font-family: var(--mono); font-weight: 500; font-size: 15px; line-height: 1.2; letter-spacing: -0.02em; }
.r-one { font-size: 13px; line-height: 1.4; color: var(--pencil); }
.arrow { width: 22px; height: 12px; opacity: 0.35; transition: opacity var(--hover); }
.r-row:hover, .r-row:focus-visible, .r-row.is-hot { background: var(--trace); }
.r-row:hover .arrow, .r-row:focus-visible .arrow, .r-row.is-hot .arrow { opacity: 1; }
.r-row:hover .lab, .r-row:hover .r-one, .r-row:hover .r-dev, .r-row.is-hot .lab, .r-row.is-hot .r-one, .r-row.is-hot .r-dev, .r-row:focus-visible .lab, .r-row:focus-visible .r-one { color: var(--trace-ink); }
.r-row:focus-visible { outline-offset: -3px; }
.preview { display: none; }
@media (min-width: 900px) {
  .register { grid-template-columns: minmax(0, 1fr) var(--pw); gap: 40px; align-items: start; }
  .r-head, .r-row { grid-template-columns: 76px minmax(0, 1fr) 96px 22px; gap: 16px; }
  .register--full .r-head, .register--full .r-row { grid-template-columns: 76px minmax(0, 1fr) 96px 150px 22px; }
  .r-head { display: grid; padding: 10px 16px; background: var(--film); border-bottom: 1.5px solid var(--ink); }
  .r-row { padding: 18px 16px; }
  .r-thumb, .r-mcode { display: none; }
  .r-code { display: block; font-weight: 500; }
  .r-genre { display: block; color: var(--ink); }
  .r-dev { display: block; font-size: 14px; line-height: 1.35; color: var(--pencil); }
  .r-title { font-size: 21px; }
  .register--full .r-title { font-size: 18px; }
  .r-one { font-size: 15px; }
  .preview { display: grid; gap: 14px; position: sticky; top: 24px; }
  .pv-img { width: var(--pw); height: var(--pw); object-fit: cover; box-shadow: 0 8px 20px -4px oklch(0.24 0.01 240 / 0.14); }
  .pv-sum { font-size: 14px; line-height: 1.5; color: var(--pencil); }
  .pv-dim.is-drawing .dim-l { animation: draw var(--hover) both; }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Q: margin notes on trace ---------- */
.q-grid { display: grid; gap: 22px; }
.q-grid li { display: flex; gap: 14px; }
.q-n { color: var(--trace-ink); font-weight: 500; font-size: 13px; }
.q-grid li > div { display: grid; gap: 6px; }
.q-t { font-family: var(--mono); font-weight: 500; font-size: 14px; line-height: 1.25; }
.q-v { font-size: 15px; line-height: 1.5; }
@media (min-width: 900px) { .q-grid { grid-template-columns: 1fr 1fr; gap: 32px 40px; } .q-t { font-size: 16px; } .q-v { font-size: 16px; } }

/* ---------- A / K rows ---------- */
.a-row, .k-row { display: grid; gap: 20px; }
.a-body, .k-body { display: grid; gap: 20px; align-content: start; }
@media (min-width: 900px) {
  .a-row { grid-template-columns: 400px minmax(0, 1fr); gap: 64px; }
  .a-body .p--big { font-size: 20px; }
  .k-row { grid-template-columns: minmax(0, 460px) minmax(0, 460px); gap: 64px; }
}

/* ---------- Y: detail views ---------- */
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.detail a { display: grid; gap: 10px; text-decoration: none; }
.detail .cover { width: 100%; aspect-ratio: 1; object-fit: cover; }
.d-cap { display: flex; align-items: center; gap: 10px; }
.d-line { flex: 1; height: 1px; background: var(--ink); }
.d-txt { font-size: 13px; line-height: 1.45; color: var(--trace-ink); }
.detail a:hover .d-txt { text-decoration: underline; }
@media (min-width: 900px) { .details { grid-template-columns: repeat(3, minmax(0, 300px)); gap: 48px 42px; } .d-txt { font-size: 14px; } }

/* ---------- L: legend tables ---------- */
.legends { display: grid; }
.legend { border-left: 1.5px solid var(--ink); background: var(--sheet); padding: 0 14px; }
.legend > div { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.legend dt { flex: none; width: 110px; font-family: var(--mono); font-weight: 500; font-size: 13px; line-height: 1.35; }
.legend dd { font-size: 14px; line-height: 1.5; color: var(--pencil); }
@media (min-width: 900px) {
  .legends { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .legend { padding: 0 20px; }
  .legend dt { width: 150px; font-size: 14px; }
  .legend dd { font-size: 15px; }
}

/* ---------- M: revision table ---------- */
.rev { border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); }
.rev-head { display: none; }
.rev-rows li { display: grid; gap: 6px; padding: 14px; }
.rev-rows li + li { border-top: 1px solid var(--ink); }
.m-rev { font-weight: 700; font-size: 13px; }
.m-step { font-family: var(--mono); font-weight: 500; font-size: 14px; line-height: 1.3; }
.m-what { font-size: 14px; line-height: 1.5; color: var(--pencil); }
@media (min-width: 900px) {
  .rev-head, .rev-rows li { grid-template-columns: 48px 260px minmax(0, 1fr); gap: 24px; }
  .rev-head { display: grid; padding: 10px 18px; border-bottom: 1.5px solid var(--ink); }
  .rev-rows li { padding: 20px 18px; }
  .m-step, .m-what { font-size: 16px; }
}

/* ---------- F: questions ---------- */
.fqs { border-left: 1.5px solid var(--ink); background: var(--sheet); padding: 0 16px; }
.fq { padding: 16px 0; border-bottom: 1px solid var(--ink); }
.fq summary { display: flex; align-items: center; gap: 20px; cursor: pointer; list-style: none; }
.fq summary::-webkit-details-marker { display: none; }
.fq-q { flex: 1; font-weight: 700; font-size: 16px; line-height: 1.35; }
.fq-i { position: relative; width: 18px; height: 18px; flex: none; }
.fq-i::before, .fq-i::after { content: ""; position: absolute; background: var(--ink); }
.fq-i::before { left: 1px; right: 1px; top: 8px; height: 1.6px; }
.fq-i::after { top: 1px; bottom: 1px; left: 8px; width: 1.6px; }
.fq[open] .fq-i::after { display: none; }
.fq-a { margin-top: 12px; color: var(--pencil); max-width: 720px; }
@media (min-width: 900px) { .fqs { padding: 0 28px; } .fq { padding: 22px 0; } .fq-q { font-size: 19px; } }

/* ---------- footer: cyanotype sheet index ---------- */
.footer { padding: 40px var(--pad) 32px; }
.footer > .in { display: grid; gap: 24px; }
.f-top { display: grid; gap: 16px; }
.f-h { font-size: 22px; color: var(--sheet); }
.f-line { color: var(--on-blue); max-width: 420px; line-height: 1.5; }
.f-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1.5px solid var(--sheet); }
.f-index li { border-top: 1px solid var(--on-blue); }
.f-index li:nth-child(-n+2) { border-top: 0; }
.f-index li:nth-child(even) { border-left: 1px solid var(--on-blue); }
.f-index a { display: grid; gap: 6px; height: 100%; padding: 10px; text-decoration: none; }
.f-index .lab { color: var(--on-blue); }
.fi-t { font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--sheet); }
.f-index a:hover .fi-t { text-decoration: underline; }
.f-band { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.f-band .lab, .f-band a { color: var(--sheet); text-decoration: none; }
.f-band a:hover { text-decoration: underline; }
.f-soc { display: flex; gap: 10px; }
.f-band .f-soc a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1.4px solid currentColor; border-radius: 50%; color: var(--sheet); transition: background var(--hover), color var(--hover); }
.f-band .f-soc a:hover, .f-band .f-soc a:focus-visible { background: var(--sheet); color: var(--prussian); text-decoration: none; }
.f-soc svg { width: 18px; height: 18px; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; }
.f-band .linkish:hover { text-decoration: underline; }
.f-disc { font-size: 13px; line-height: 1.5; color: var(--on-blue); }
@media (min-width: 900px) {
  .footer { padding: 72px var(--pad) 48px; }
  .footer > .in { gap: 32px; }
  .f-top { grid-template-columns: minmax(0, 1fr) 420px; align-items: end; }
  .f-h { font-size: 28px; }
  .f-index { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .f-index li:nth-child(n) { border-top: 1px solid var(--on-blue); border-left: 1px solid var(--on-blue); }
  .f-index li:nth-child(-n+4) { border-top: 0; }
  .f-index li:nth-child(4n+1) { border-left: 0; }
  .f-index a { padding: 14px 16px; }
  .fi-t { font-size: 15px; }
}

/* ---------- intros (games, about, legal) ---------- */
.intro { padding: 36px var(--pad) 32px; }
.intro > .in { display: grid; gap: 20px; }
.intro .h1 { color: var(--hc); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--lc); }
.crumbs li + li::before { content: "›"; margin-right: 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--hc); }
.intro-lead { font-size: 16px; line-height: 1.55; max-width: 700px; }
.tone-blue .intro-lead { color: var(--sheet); }
.h1--legal { font-size: clamp(1.875rem, 1.35rem + 2.3vw, 3.25rem); }
.trace--sum { max-width: 760px; padding: 20px 16px; }
@media (min-width: 900px) { .intro { padding: 72px var(--pad) 64px; } .intro-lead { font-size: 19px; } .trace--sum { padding: 28px 32px; } }

/* ---------- game page ---------- */
.g-head { padding: 28px var(--pad) 20px; border-bottom: 1.5px solid var(--ink); }
.g-head-in { display: grid; gap: 20px; }
.g-title { display: grid; gap: 18px; align-content: start; }
.h1--game { font-size: clamp(1.875rem, 1.2rem + 2.9vw, 3.625rem); line-height: 1.06; }
.g-cover { display: grid; gap: 10px; }
.g-cover .cover { width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 8px 20px -4px oklch(0.24 0.01 240 / 0.14); }
.g-body { padding: 28px var(--pad) 48px; }
.g-body-in { display: grid; gap: 36px; }
.g-main { display: grid; gap: 36px; min-width: 0; }
.gb { display: grid; gap: 16px; }
.gb-h { display: flex; align-items: center; gap: 14px; }
.keys { border: 1.5px solid var(--ink); background: var(--sheet); }
.k { display: flex; align-items: center; gap: 16px; padding: 12px 14px; }
.k + .k { border-top: 1px solid var(--ink); }
.k kbd { flex: none; width: 120px; padding: 5px 10px; background: var(--film); border: 1.2px solid var(--ink); font-family: var(--mono); font-weight: 500; font-size: 12px; line-height: 1.3; }
.k span { font-size: 15px; line-height: 1.4; }
.tips { display: grid; gap: 14px; }
.tips li { display: flex; gap: 14px; }
.bullet { width: 16px; height: 16px; flex: none; margin-top: 5px; }
.sim li { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.sim .soft { font-size: 15px; }
.gq { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.gq h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.gq .p { font-size: 16px; }
.g-side { display: grid; gap: 28px; align-content: start; }
.where { display: grid; gap: 12px; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.where-t { font-family: var(--mono); font-weight: 500; font-size: 16px; }
.where .soft { font-size: 15px; }
@media (min-width: 900px) {
  .g-head { padding: 64px var(--pad) 48px; }
  .g-head-in { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; }
  .g-cover .cover { width: 280px; }
  .g-body { padding: 56px var(--pad) 88px; }
  .g-body-in { grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; }
  .g-main { gap: 56px; }
  .k kbd { width: 170px; }
  .sim li { grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: baseline; }
}
.g-main--about { gap: 44px; }
.g-main--about .h3 { font-size: clamp(19px, 0.6vw + 16px, 24px); }
.trace--about { display: grid; gap: 14px; max-width: 680px; padding: 24px 18px; }
.trace--about .h3 { color: var(--trace-ink); }
@media (min-width: 900px) { .trace--about { padding: 36px 40px; } }
.g-main--legal { gap: 36px; max-width: 760px; }
.h3--legal { font-size: clamp(18px, 0.4vw + 16px, 21px); }
.gb--legal .p { font-size: 15px; max-width: 700px; }
@media (min-width: 900px) { .gb--legal .p { font-size: 16px; } }

/* ---------- cookie ---------- */
.cookie { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 500px; margin-left: auto; background: var(--sheet); border: 1.5px solid var(--ink); box-shadow: 0 12px 32px -6px oklch(0.24 0.01 240 / 0.18); }
.cookie[hidden] { display: none; }
.ck-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--trace); border-bottom: 1.5px solid var(--ink); color: var(--trace-ink); }
.ck-head .mark { width: 22px; height: 22px; }
.ck-head h2 { flex: 1; font-family: var(--mono); font-weight: 500; font-size: 15px; }
.ck-head .lab { color: var(--trace-ink); }
.ck-body { display: grid; gap: 18px; padding: 18px 18px 20px; font-size: 15px; line-height: 1.5; }
.ck-acts { display: grid; gap: 12px; }
.ck-acts .btn { width: 100%; }
.ck-manage { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--hair); background: var(--film); }
.ck-manage[hidden] { display: none; }
.ck-opt { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; }
.ck-opt input { width: 18px; height: 18px; accent-color: var(--ink); }
.cookie .ulink { font-size: 14px; }
@media (min-width: 560px) { .ck-acts { grid-template-columns: 1fr 1fr; } .ck-body { padding: 22px 24px 24px; } }
@media (min-width: 900px) { .cookie { left: auto; right: 24px; bottom: 24px; width: 500px; } }

/* ---------- reduced motion (Figma notes): lines and preview appear instantly, the arc is already drawn ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
