/* heady: Rod Rack. Rules in docs/directions.md. */

@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-grotesque-var.woff2") format("woff2"); font-weight: 400 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-var.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic-var.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }
/* Fallbacks sized to the web fonts, so text doesn't jump when they arrive */
@font-face { font-family: "Bricolage fallback"; src: local("Arial Narrow"), local("Arial"), local("Helvetica Neue"); size-adjust: 96%; ascent-override: 92%; descent-override: 24%; }
@font-face { font-family: "Newsreader fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 94%; ascent-override: 96%; descent-override: 28%; }

:root {
  --ground: #0e0b12;
  --ground-2: #15111b;
  --case: #000;
  --ink: #e8e2f6;
  --mute: #a59eba;
  --rule: #2a2535;
  --lens: #cbbff0;
  --lens-ink: #120e1a;
  --tape: #f3efe6;
  --tape-ink: #0d0a10;
  --heat: #ffc478;
  --ui: "Bricolage", "Bricolage fallback", "Arial Narrow", Arial, sans-serif;
  --read: "Newsreader", "Newsreader fallback", Georgia, serif;
  --pad: clamp(16px, 3vw, 40px);
  --maxw: 1440px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 19px/1.6 var(--read); font-variant-numeric: lining-nums; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--lens); }
:focus-visible { outline: 2px solid var(--lens); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; color: inherit; }
.ui { font-family: var(--ui); }
.mute { color: var(--mute); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.read { max-width: 40rem; }

.skip { position: absolute; left: 8px; top: -60px; background: var(--lens); color: var(--lens-ink); padding: 8px 14px; font: 600 16px var(--ui); z-index: 50; border-radius: 4px; }
.skip:focus { top: 8px; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.word { font: 800 32px/1 var(--ui); font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.word svg { width: 14px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font: 500 16px var(--ui); }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lens); text-underline-offset: 0.35em; }
.bag-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--lens); color: var(--lens-ink); border: 0; border-radius: 999px; padding: 7px 15px; font: 600 15px var(--ui); text-decoration: none; cursor: pointer; }
.bag-btn .n { font-variant-numeric: tabular-nums; }
.menu { display: none; }
@media (max-width: 760px) {
  .nav .opt { display: none; }
  .site-head .wrap { min-height: 60px; }
  .word { font-size: 26px; }
  .menu { display: block; position: relative; font: 500 16px var(--ui); }
  .menu summary { list-style: none; cursor: pointer; padding: 6px 2px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { text-decoration: underline; text-decoration-color: var(--lens); }
  .menu ul { position: absolute; right: -8px; top: 40px; z-index: 30; list-style: none; margin: 0; padding: 10px 0; background: var(--ground-2); border: 1px solid var(--rule); min-width: 200px; }
  .menu li a { display: block; padding: 10px 18px; text-decoration: none; }
}
@media (max-width: 400px) {
  .site-head .wrap { gap: 10px; }
  .word { font-size: 22px; gap: 7px; }
  .word svg { width: 11px; height: 27px; }
  .nav { gap: 10px; font-size: 15px; }
  .bag-btn { padding: 6px 11px; font-size: 14px; gap: 6px; }
}

/* Type */
.h-page { font: 650 clamp(38px, 5.6vw, 76px)/0.96 var(--ui); font-stretch: 86%; letter-spacing: -0.02em; }
.h-maker { font: 800 clamp(52px, 9vw, 132px)/0.86 var(--ui); font-stretch: 75%; text-transform: uppercase; letter-spacing: 0; }
.h-sec { font: italic 400 clamp(30px, 3.6vw, 46px)/1.08 var(--read); letter-spacing: -0.005em; }
.h-sub { font: 650 22px/1.2 var(--ui); font-stretch: 92%; }
.label { font: 800 15px/1.15 var(--ui); font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.03em; }
.lede { font-size: clamp(19px, 1.6vw, 22px); color: var(--mute); max-width: 38rem; }
.price { font: 600 18px var(--ui); font-variant-numeric: tabular-nums; }
.tape { display: inline-block; background: var(--tape); color: var(--tape-ink); font: 800 13px/1 var(--ui); font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 7px 4px; border-radius: 1px; transform: rotate(-1.2deg); }
.tape.sold { background: var(--lens); }

/* Photo cases */
.case { background: var(--case); position: relative; overflow: hidden; }
.case img { width: 100%; height: 100%; object-fit: contain; }
.sq { aspect-ratio: 1 / 1; }

/* The rack */
.rack-zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(20px, 3vw, 40px); align-items: end; padding-top: 28px; padding-bottom: 56px; }
.rack { list-style: none; margin: 0; padding: 30px 10px 0; display: flex; align-items: flex-end; gap: clamp(5px, 0.7vw, 11px); height: 560px; border-bottom: 12px solid #221d2b; position: relative; }
.rack::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 4px; background: #2f2939; }
.rack li { flex: 1 1 0; min-width: 0; height: var(--h); display: flex; }
.rod { --c1: #9a95ad; --c2: var(--c1); --c3: var(--c1); position: relative; flex: 1; border-radius: 6px 6px 1px 1px; text-decoration: none; display: flex; align-items: flex-end; justify-content: center; color: var(--tape-ink);
  background:
    linear-gradient(90deg, rgba(0,0,0,.62) 0, rgba(0,0,0,.06) 21%, rgba(255,255,255,.52) 31%, rgba(255,255,255,0) 43%, rgba(0,0,0,0) 66%, rgba(0,0,0,.66) 100%),
    linear-gradient(90deg, transparent 46%, color-mix(in srgb, var(--c2) 70%, white) 46% 54%, transparent 54%),
    var(--c1);
  transition: transform .28s cubic-bezier(.2,.7,.3,1), filter .28s; }
.rod.twist { background:
    linear-gradient(90deg, rgba(0,0,0,.62) 0, rgba(0,0,0,.06) 21%, rgba(255,255,255,.52) 31%, rgba(255,255,255,0) 43%, rgba(0,0,0,0) 66%, rgba(0,0,0,.66) 100%),
    repeating-linear-gradient(162deg, var(--c1) 0 14px, var(--c2) 14px 22px, var(--c3) 22px 27px, var(--c1) 27px 40px); }
.rod.clear { background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0, rgba(255,255,255,.08) 21%, rgba(255,255,255,.62) 31%, rgba(255,255,255,.1) 43%, rgba(255,255,255,.04) 66%, rgba(0,0,0,.6) 100%),
    linear-gradient(90deg, transparent 46%, color-mix(in srgb, var(--c2) 60%, white) 46% 54%, transparent 54%),
    color-mix(in srgb, var(--c1) 55%, #2a2733); }
.rod .tag { writing-mode: vertical-rl; transform: rotate(180deg); background: var(--tape); color: var(--tape-ink); font: 800 clamp(13px, 1.25vw, 19px)/1 var(--ui); font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.03em; padding: 12px 3px; margin-bottom: 12px; border-radius: 1px; white-space: nowrap; max-height: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; }
.rod .count { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font: 700 12px var(--ui); font-variant-numeric: tabular-nums; color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.rod::before { content: ""; position: absolute; left: -12px; right: -12px; top: -34px; height: 84px; border-radius: 50%; background: radial-gradient(closest-side, #fff8e8, rgba(255,196,120,.85) 42%, rgba(255,120,50,0) 100%); opacity: 0; transition: opacity .28s; pointer-events: none; }
.rod:hover, .rod:focus-visible, .rod.hot { transform: translateY(-16px); filter: brightness(1.12) saturate(1.15); }
.rod:hover::before, .rod:focus-visible::before, .rod.hot::before { opacity: 1; }
.rod:focus-visible { outline-offset: 4px; }
.preview { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.preview .case { aspect-ratio: 1 / 1; }
.preview .who { margin-top: 14px; }
.preview .who a { text-decoration: none; }
.preview .who .h-maker { font-size: clamp(40px, 4.4vw, 64px); }
.preview p { margin: 6px 0 0; color: var(--mute); font-size: 17px; }

/* the rack on its side (phones) */
.rack-h { list-style: none; margin: 0; padding: 0; display: none; }
.rack-h a { --c1: #9a95ad; --c2: var(--c1); --c3: var(--c1); display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 50px; margin: 9px 0; padding: 0 12px; border-radius: 1px 7px 7px 1px; text-decoration: none; color: var(--tape-ink);
  background:
    linear-gradient(180deg, rgba(0,0,0,.6) 0, rgba(0,0,0,.05) 22%, rgba(255,255,255,.46) 32%, rgba(255,255,255,0) 44%, rgba(0,0,0,0) 66%, rgba(0,0,0,.62) 100%),
    linear-gradient(180deg, transparent 46%, color-mix(in srgb, var(--c2) 70%, white) 46% 54%, transparent 54%),
    var(--c1); }
.rack-h a.twist { background: linear-gradient(180deg, rgba(0,0,0,.6) 0, rgba(0,0,0,.05) 22%, rgba(255,255,255,.46) 32%, rgba(255,255,255,0) 44%, rgba(0,0,0,0) 66%, rgba(0,0,0,.62) 100%), repeating-linear-gradient(72deg, var(--c1) 0 14px, var(--c2) 14px 22px, var(--c3) 22px 27px, var(--c1) 27px 40px); }
.rack-h a.clear { background: linear-gradient(180deg, rgba(0,0,0,.55) 0, rgba(255,255,255,.08) 22%, rgba(255,255,255,.6) 32%, rgba(255,255,255,.08) 44%, rgba(0,0,0,0) 66%, rgba(0,0,0,.6) 100%), color-mix(in srgb, var(--c1) 55%, #2a2733); }
.rack-h .tag { background: var(--tape); font: 800 18px/1 var(--ui); font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.03em; padding: 6px 8px 5px; border-radius: 1px; }
.rack-h .count { font: 700 13px var(--ui); background: rgba(13,10,16,.82); color: #fff; padding: 3px 9px; border-radius: 9px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .rack-zone { display: block; padding-bottom: 32px; }
  .rack, .preview { display: none; }
  .rack-h { display: block; }
}

/* Piece cards */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px clamp(14px, 1.6vw, 24px); list-style: none; margin: 0; padding: 0; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid, .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; } }
.card { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.card .case { aspect-ratio: 1 / 1; }
.card .case .tape { position: absolute; left: 10px; top: 10px; }
.card .mk { margin-top: 12px; }
.card .nm { font-size: 18px; line-height: 1.3; margin-top: 2px; }
.card .pr { font: 600 16px var(--ui); font-variant-numeric: tabular-nums; color: var(--mute); margin-top: 4px; }
.card:hover .nm { text-decoration: underline; text-decoration-color: var(--lens); text-underline-offset: 0.2em; }
@media (max-width: 760px) { .card .nm { font-size: 16px; } .card .mk { font-size: 13px; } }

/* Sections */
.sec { padding: clamp(36px, 5vw, 72px) 0; border-top: 1px solid var(--rule); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head a { font: 500 16px var(--ui); }
.page-head { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }
.page-head .lede { margin-top: 18px; }
.crumbs { font: 500 14px var(--ui); color: var(--mute); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--rule); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Filters (gallery) */
.filters { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 0 0 30px; font: 500 15px var(--ui); }
.filters label { display: inline-flex; flex-direction: column; gap: 4px; color: var(--mute); }
.filters select { font: 500 16px var(--ui); color: var(--ink); background: var(--ground-2); border: 1px solid var(--rule); border-radius: 4px; padding: 7px 10px; min-width: 150px; }
.filters .count { margin-left: auto; color: var(--mute); }
.filters[hidden] { display: none; }
@media (max-width: 760px) { .filters { gap: 10px; } .filters label { flex: 1 1 45%; } .filters select { min-width: 0; width: 100%; } .filters .count { margin-left: 0; width: 100%; } }

/* Piece page */
.piece { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); padding-top: 28px; padding-bottom: 56px; }
@media (max-width: 900px) { .piece { grid-template-columns: 1fr; padding-top: 0; } }
.viewer .main { aspect-ratio: 1 / 1; }
.viewer .main img { cursor: zoom-in; }
.viewer .main figcaption { position: absolute; left: 12px; bottom: 10px; font: 500 14px var(--ui); color: var(--mute); }
.thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.thumbs a { display: block; aspect-ratio: 1 / 1; background: var(--case); border: 1px solid transparent; }
.thumbs a[aria-current="true"] { border-color: var(--lens); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.allviews { margin-top: 18px; }
.allviews figure { margin: 0 0 12px; }
.allviews figcaption { font: 500 14px var(--ui); color: var(--mute); margin-top: 6px; }
.js .allviews { display: none; }
@media (max-width: 900px) {
  .viewer { margin: 0 calc(var(--pad) * -1); }
  .thumbs { padding: 0 var(--pad); grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
}
.info { align-self: start; position: sticky; top: 20px; }
@media (max-width: 900px) { .info { position: static; } }
.info .mk { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.info .mk a { text-decoration: none; }
.info h1 { font: 650 clamp(32px, 3.4vw, 48px)/1.02 var(--ui); font-stretch: 88%; letter-spacing: -0.015em; }
.info .price { font-size: 26px; margin: 18px 0 4px; }
.info .note { color: var(--mute); font-size: 17px; margin: 8px 0 0; }
.buy { margin: 22px 0 10px; display: grid; gap: 12px; }
.buy fieldset { border: 0; padding: 0; margin: 0 0 6px; }
.buy legend { font: 600 15px var(--ui); margin-bottom: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches label { position: relative; font: 500 15px var(--ui); }
.swatches input { position: absolute; opacity: 0; inset: 0; }
.swatches span { display: inline-block; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; }
.swatches input:checked + span { border-color: var(--lens); background: rgba(203, 191, 240, 0.12); }
.swatches input:focus-visible + span { outline: 2px solid var(--lens); outline-offset: 2px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--lens); color: var(--lens-ink); font: 650 18px var(--ui); text-decoration: none; cursor: pointer; }
.btn:hover { background: #ddd3fb; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn.ghost:hover { border-color: var(--lens); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.buy .btn { width: 100%; }
.buy .nojs { display: grid; gap: 8px; }
.js .buy .nojs { display: none; }
.buy .withjs { display: none; }
.js .buy .withjs { display: grid; gap: 12px; }
.lines { font: 500 15px/1.45 var(--ui); color: var(--mute); display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.lines strong { color: var(--ink); font-weight: 600; }
.facts { margin: 28px 0 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 600 15px/1.5 var(--ui); color: var(--mute); }
.facts dd { margin: 0; font-size: 17px; line-height: 1.5; }
@media (max-width: 420px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.maker-block { margin-top: 34px; padding: 22px; background: var(--ground-2); border: 1px solid var(--rule); }
.maker-block .h-maker { font-size: clamp(34px, 3.4vw, 48px); }
.maker-block p { font-size: 17px; margin: 10px 0 0; }
.ask { margin-top: 26px; }

/* Lightbox */
dialog.zoom { padding: 0; border: 0; background: #000; color: var(--ink); width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; }
dialog.zoom::backdrop { background: rgba(0,0,0,.9); }
dialog.zoom .stage { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; }
dialog.zoom img { max-width: none; width: min(100vw, 100dvh); height: auto; cursor: zoom-out; }
dialog.zoom.full img { width: auto; }
dialog.zoom .bar { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font: 500 15px var(--ui); background: linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,0)); }
dialog.zoom button { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 999px; padding: 8px 16px; cursor: pointer; font: 600 15px var(--ui); }

/* Maker page */
.maker-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; padding: clamp(28px, 5vw, 64px) 0 40px; }
@media (max-width: 900px) { .maker-head { grid-template-columns: 1fr; } }
.maker-rod { height: 18px; border-radius: 1px 9px 9px 1px; margin: 18px 0 22px; max-width: 520px; }
.factlist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.factlist li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
.factlist .src { display: block; font: 500 14px var(--ui); color: var(--mute); margin-top: 3px; }
.factlist .src a { color: var(--mute); }

/* Long-form (guides, techniques) */
.article { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); padding-bottom: 64px; }
@media (max-width: 1000px) { .article { grid-template-columns: minmax(0, 1fr); } }
.prose h2 { font: italic 400 clamp(28px, 3vw, 38px)/1.12 var(--read); margin: 1.6em 0 0.5em; }
.prose h3 { font: 650 21px/1.25 var(--ui); font-stretch: 92%; margin: 1.5em 0 0.4em; }
.prose p, .prose li { max-width: 40rem; }
.prose ol, .prose ul { margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose table { width: 100%; border-collapse: collapse; font: 500 16px/1.45 var(--ui); margin: 1em 0 1.6em; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { color: var(--mute); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; }
.prose blockquote { margin: 1.2em 0; padding-left: 18px; border-left: 3px solid var(--lens); color: var(--mute); }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font: 500 14px var(--ui); color: var(--mute); margin-top: 8px; }
.side { align-self: start; position: sticky; top: 20px; display: grid; gap: 14px; }
@media (max-width: 1000px) { .side { position: static; } }
.updated { font: 500 14px var(--ui); color: var(--mute); margin-top: 14px; }
.sources { font: 500 15px/1.5 var(--ui); color: var(--mute); }
.sources li { margin-bottom: 6px; }
.sources a { color: var(--mute); }
.diagram { background: var(--ground-2); border: 1px solid var(--rule); padding: 18px; margin: 1.4em 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { margin-top: 10px; }

/* Tables of pieces */
.ptable { width: 100%; border-collapse: collapse; font: 500 16px/1.4 var(--ui); }
.ptable th, .ptable td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ptable th { color: var(--mute); font-weight: 600; }
.ptable td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* Bag */
dialog.bag { padding: 0; border: 0; margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(460px, 100vw); background: var(--ground-2); color: var(--ink); border-left: 1px solid var(--rule); }
dialog.bag::backdrop { background: rgba(5, 3, 8, .72); }
.bag-in { display: flex; flex-direction: column; height: 100%; }
.bag-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.bag-top h2 { font: 650 24px var(--ui); font-stretch: 88%; }
.bag-close { background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; cursor: pointer; font: 500 15px var(--ui); }
.bag-items { list-style: none; margin: 0; padding: 8px 20px; overflow-y: auto; flex: 1; }
.bag-items li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.bag-items .case { width: 72px; height: 72px; }
.bag-items .nm { font-size: 17px; line-height: 1.3; }
.bag-items .sub { font: 500 14px var(--ui); color: var(--mute); }
.bag-items .rm { background: none; border: 0; padding: 0; color: var(--mute); text-decoration: underline; font: 500 14px var(--ui); cursor: pointer; margin-top: 6px; }
.bag-items .p { font: 600 16px var(--ui); font-variant-numeric: tabular-nums; }
.bag-empty { padding: 24px 20px; color: var(--mute); }
.bag-foot { padding: 16px 20px 22px; border-top: 1px solid var(--rule); display: grid; gap: 10px; }
.bag-foot .sum { display: flex; justify-content: space-between; font: 650 19px var(--ui); font-variant-numeric: tabular-nums; }
.bag-foot .lines { font-size: 14px; }
.bag-foot .note { font: 500 13px/1.45 var(--ui); color: var(--mute); margin: 0; }

/* Age gate */
.gate { position: fixed; inset: 0; z-index: 60; background: rgba(8, 6, 11, .97); display: grid; place-items: center; padding: 24px; }
.gate[hidden] { display: none; }
.gate-box { max-width: 30rem; text-align: left; }
.gate-box .h-page { font-size: clamp(34px, 5vw, 54px); }
.gate-box p { color: var(--mute); margin: 16px 0 24px; }
.gate-box .row { display: flex; flex-wrap: wrap; gap: 12px; }
.adult-line { font: 500 15px var(--ui); color: var(--mute); }

/* Forms */
.form { display: grid; gap: 16px; max-width: 34rem; }
.form label { display: grid; gap: 6px; font: 600 15px var(--ui); }
.form input, .form textarea { font: 400 18px var(--read); color: var(--ink); background: var(--ground-2); border: 1px solid var(--rule); border-radius: 4px; padding: 11px 12px; width: 100%; }
.form textarea { min-height: 160px; resize: vertical; }
.form .hint { font: 500 14px var(--ui); color: var(--mute); }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); margin-top: 40px; padding: 44px 0 56px; font: 500 15px/1.6 var(--ui); color: var(--mute); }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.site-foot h2 { font: 650 15px var(--ui); color: var(--ink); margin-bottom: 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--ink); }
.site-foot .fine { margin-top: 30px; display: grid; gap: 6px; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .cols > div:first-child { grid-column: 1 / -1; } }

/* Home */
.home-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: end; padding-top: clamp(28px, 4vw, 52px); }
@media (max-width: 900px) { .home-head { grid-template-columns: 1fr; } }
.tech-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); list-style: none; padding: 0; margin: 0; }
@media (max-width: 760px) { .tech-strip { grid-template-columns: 1fr; } }
.tech-strip a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none; padding: 12px; background: var(--ground-2); border: 1px solid var(--rule); }
.tech-strip a:hover { border-color: var(--lens); }
.tech-strip .case { width: 96px; height: 96px; }
.tech-strip strong { font: 650 21px/1.15 var(--ui); font-stretch: 90%; display: block; }
.tech-strip span { font-size: 16px; color: var(--mute); line-height: 1.4; display: block; margin-top: 4px; }
.notice { background: var(--ground-2); border: 1px solid var(--rule); padding: 18px 20px; font-size: 17px; }

/* 404 */
.lost { padding: 72px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .rod:hover, .rod:focus-visible, .rod.hot { transform: none; }
}

@media print {
  .site-head nav, .bag-btn, .gate, .buy, .site-foot { display: none !important; }
  body { background: #fff; color: #000; }
}
