:root {
  color-scheme: dark;
  --ink: #151412;
  --panel: #1d1b18;
  --panel-hover: #24211d;
  --paper: #f8f0e1;
  --muted: #b8ada0;
  --faint: #a09386;
  --line: #3a342d;
  --accent: #ff8158;
  --accent-hover: #ff9d7c;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  background: var(--ink);
  color: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--accent); }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.eyebrow { font: 600 .7rem/1.4 var(--mono); letter-spacing: .105em; text-transform: uppercase; }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 10; padding: 12px; color: var(--ink); background: var(--accent); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 67px; display: flex; align-items: center; gap: 30px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.07rem; font-weight: 750; letter-spacing: -.035em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 34px; margin-inline: auto; }
.main-nav a { padding-block: 23px; color: var(--muted); text-decoration: none; font-weight: 550; font-size: .86rem; }
.main-nav .nav-primary, .main-nav a:hover { color: var(--paper); }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border: 1px solid transparent; border-radius: 5px; background: none; color: inherit; text-decoration: none; font-weight: 660; font-size: .84rem; line-height: 1.2; transition: background-color .16s, border-color .16s, color .16s; }
.button .icon { width: 1.13rem; height: 1.13rem; }
.button.outline { border-color: var(--line); }
.button.outline:hover { border-color: var(--faint); background: var(--panel-hover); }
.surprise { min-height: 38px; }
.surprise .icon { color: var(--accent); }
.button.primary { min-height: 47px; gap: 21px; background: var(--accent); color: #1b1410; }
.button.primary:hover { background: var(--accent-hover); }

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 76% 52%, #38251e 0%, #211a16 33%, transparent 65%), var(--ink);
}
.hero-inner {
  position: relative;
  min-height: 515px;
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: 22px;
}
.hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background: repeating-linear-gradient(90deg, #a97e5a25 0 1px, transparent 1px 12.5%);
  mask-image: linear-gradient(90deg, transparent 15%, #000 73%);
}
.hero-copy { position: relative; z-index: 1; padding: 40px 0 28px; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 10px; letter-spacing: .16em; }
.signal { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin: 20px 0 19px; font-size: clamp(4rem, 7.5vw, 7.35rem); font-weight: 800; line-height: .91; letter-spacing: -.081em; }
.hero h1 em { color: var(--accent); font: italic 500 1.035em/.89 Georgia, "Times New Roman", serif; letter-spacing: -.081em; }
.intro { max-width: 365px; color: #d3c5b7; font-size: clamp(.94rem, 1.3vw, 1.095rem); line-height: 1.55; }
.hero .primary { margin-top: 25px; }
.hero-index { grid-column: 1 / -1; position: relative; display: flex; gap: 18px; align-items: center; border-top: 1px solid #493b31; min-height: 48px; color: var(--faint); }
.hero-index span + span { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-index b { color: var(--paper); }
.hero-display { position: relative; align-self: center; width: min(100%, 554px); margin-inline: auto; }
.plate-guide { display: flex; justify-content: space-between; gap: 10px; width: 100%; color: var(--faint); font: .62rem/1.4 var(--mono); letter-spacing: .13em; }
.plate-guide span:first-child { display: flex; align-items: center; gap: 8px; }
.plate-guide span:first-child::before { content: "+"; color: var(--accent); font-size: .85rem; line-height: 1; }
.plate-caption { padding-top: 3px; }
.plate-caption span:first-child::before { content: "—"; }
.plate-caption span:last-child { color: var(--accent); }
.poster-deck { position: relative; width: 100%; aspect-ratio: 1.47; margin-block: 6px; }
.plate {
  position: absolute;
  width: 37%;
  background: #b6a38b;
  box-shadow: 0 18px 32px #0008, 0 3px 6px #0005;
  border: 1px solid #e1c09d60;
  border-radius: 2px;
  transform: rotate(var(--tilt));
  transition: transform .22s ease, box-shadow .22s ease;
}
.plate img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 1px; }
.plate span { position: absolute; bottom: 5px; right: 5px; border-radius: 2px; padding: 3px 5px; color: var(--paper); background: var(--ink); font: .63rem/1 var(--mono); }
.plate-left { --tilt: -13deg; top: 14%; left: 10%; }
.plate-right { --tilt: 12deg; top: 15%; right: 9%; }
.plate-centre { --tilt: -3deg; top: 4%; left: 31%; width: 39%; z-index: 1; }
.plate:hover, .plate:focus-visible { z-index: 2; transform: translateY(-8px) rotate(0); box-shadow: 0 22px 36px #000b; }

.catalogue { padding-block: 38px 60px; scroll-margin-top: 24px; }
.catalogue:focus { outline-offset: 7px; }
.catalogue-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 22px; }
.catalogue-heading .eyebrow { display: flex; align-items: center; gap: 7px; }
.catalogue-heading .eyebrow .icon { width: .88rem; height: .88rem; }
.catalogue h2 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1.01; letter-spacing: -.065em; margin-top: 7px; }
.catalogue h2 span { color: var(--accent); }
.search-box { width: min(100%, 340px); display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; color: var(--muted); }
.search-box:focus-within { border-color: var(--accent); }
.search-box > .icon { width: 19px; height: 19px; }
.search-box input { width: 100%; min-width: 0; height: 43px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--paper); font-size: .88rem; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.search-box kbd { border: 1px solid var(--line); border-radius: 3px; min-width: 21px; padding: 2px 5px; text-align: center; font: .72rem/1.25 var(--mono); }
.filter-bar { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.quick-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  white-space: nowrap;
}
.chip:hover { color: var(--paper); border-color: var(--faint); }
.chip[aria-pressed="true"] { color: var(--ink); background: var(--paper); border-color: var(--paper); font-weight: 700; }
.select-control { display: inline-flex; align-items: center; position: relative; color: var(--muted); }
.select-control select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  appearance: none;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: inherit;
  background: var(--panel);
  font-size: .8rem;
  cursor: pointer;
  text-overflow: ellipsis;
}
.select-control select:hover { color: var(--paper); border-color: var(--faint); }
.select-control:not(.sort) { min-width: 155px; max-width: 226px; }
.select-control > .icon { position: absolute; right: 9px; pointer-events: none; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; }
.result-bar .eyebrow { color: var(--faint); }
.sort { gap: 6px; font-size: .78rem; }
.sort select { background: transparent; color: var(--paper); border-color: transparent; min-height: 33px; padding-left: 4px; }

.poster-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.poster-card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; transition: border-color .16s, background-color .16s; }
.poster-card:hover, .poster-card:focus-within { border-color: var(--faint); background: var(--panel-hover); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: inherit; }
.card-art { position: relative; overflow: hidden; aspect-ratio: 2 / 3; background: #2c2722; border-radius: 4px 4px 0 0; }
.card-art img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.card-link:hover img { transform: scale(1.022); }
.card-number, .card-arrow { position: absolute; top: 10px; border: 1px solid #ffffff20; color: var(--paper); background: #161412ef; border-radius: 4px; }
.card-number { left: 10px; padding: 5px 7px; font-size: .68rem; letter-spacing: .085em; }
.card-arrow { right: 10px; width: 32px; height: 32px; display: grid; place-items: center; opacity: 0; transition: opacity .16s; }
.card-link:is(:hover, :focus-visible) .card-arrow { opacity: 1; }
.card-info { padding: 14px 14px 17px; }
.card-category { color: var(--accent); font-size: .61rem; letter-spacing: .075em; }
.card-info h3 { margin-top: 6px; color: var(--paper); font-size: clamp(.99rem, 1.45vw, 1.19rem); font-weight: 690; line-height: 1.16; letter-spacing: -.027em; overflow-wrap: anywhere; }
.card-context { margin-top: 6px; color: var(--muted); font-size: .79rem; line-height: 1.35; }
.empty-state { padding: 50px 20px; border: 1px dashed var(--line); text-align: center; }
.empty-state p { color: var(--muted); margin: 7px 0 17px; }

.site-footer { border-top: 1px solid var(--line); background: #1a1815; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-block: 40px; }
.footer-copy { max-width: 600px; }
.footer-copy h2 { margin: 6px 0 9px; font-size: 1.7rem; letter-spacing: -.05em; }
.footer-copy p:not(.eyebrow) { color: var(--muted); line-height: 1.6; font-size: .9rem; }
.footer-copy .footnote { margin-top: 14px; }
.footer-inner .button { flex-shrink: 0; }

body:has(.style-dialog[open]) { overflow: hidden; }
.style-dialog {
  width: min(960px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid #50463d;
  border-radius: 8px;
  color: var(--paper);
  background: var(--panel);
  box-shadow: 0 20px 90px #0009;
  overscroll-behavior: contain;
}
.style-dialog::backdrop { background: #080706d9; backdrop-filter: blur(5px); }
.dialog-toolbar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.dialog-toolbar .eyebrow { color: var(--muted); }
.dialog-actions { display: flex; gap: 6px; }
.icon-button { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 4px; background: var(--ink); color: var(--paper); }
.icon-button:hover:not(:disabled) { border-color: var(--faint); background: var(--panel-hover); }
.icon-button:disabled { opacity: .32; cursor: default; }
.close-button { margin-left: 5px; color: var(--accent); }
.dialog-content { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 42px); align-items: start; padding: clamp(18px, 2.8vw, 32px); }
.detail-figure { width: 100%; }
.detail-figure img { margin-inline: auto; width: 100%; height: auto; max-height: min(69vh, 630px); object-fit: contain; background: var(--ink); }
.detail-figure figcaption { margin-top: 9px; color: var(--muted); font-size: .8rem; text-align: right; }
.detail-figure a { display: inline-flex; align-items: center; gap: 4px; text-underline-offset: 3px; }
.detail-figure a:hover { color: var(--paper); }
.detail-copy h2 { margin: 6px 0 8px; font-size: clamp(1.9rem, 4vw, 3.5rem); font-weight: 750; letter-spacing: -.057em; line-height: 1; overflow-wrap: anywhere; }
.detail-context { color: var(--muted); font: .77rem/1.5 var(--mono); }
.detail-description { margin-top: 17px; font-size: 1rem; line-height: 1.5; }
.detail-copy dl { margin: 19px 0; }
.detail-copy dl div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.detail-copy dt { color: var(--accent); font: .69rem/1.5 var(--mono); text-transform: uppercase; }
.detail-copy dd { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.4; }
.brief { border: 1px solid var(--line); border-radius: 5px; }
.brief summary { display: flex; align-items: center; justify-content: space-between; padding: 12px; cursor: pointer; font-size: .87rem; font-weight: 650; list-style: none; }
.brief summary::-webkit-details-marker { display: none; }
.brief[open] summary { border-bottom: 1px solid var(--line); }
.brief[open] summary .icon { transform: rotate(180deg); }
.brief-body { padding: 10px; background: var(--ink); }
.brief-body .button { min-height: 34px; }
.copy-status { display: inline-block; margin-left: 5px; color: var(--muted); font-size: .75rem; }
.brief pre { max-height: 16rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 0 7px; color: var(--muted); font: .77rem/1.65 var(--mono); }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 72px); }
  .hero-inner { min-height: 460px; }
  .poster-grid { gap: 14px; }
}
@media (max-width: 850px) {
  .shell { width: calc(100% - 48px); }
  .hero-inner { min-height: 421px; column-gap: 12px; }
  .hero h1 { font-size: clamp(3.25rem, 8.5vw, 5rem); }
  .plate-guide { font-size: .55rem; letter-spacing: .08em; }
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { gap: 12px; min-height: 59px; }
  .wordmark img { width: 28px; height: 28px; }
  .main-nav { gap: 12px; margin-right: 0; }
  .main-nav a { padding-block: 16px; }
  .main-nav .nav-primary { display: none; }
  .surprise { gap: 5px; min-height: 34px; padding-inline: 9px; font-size: .75rem; }
  .surprise .icon { width: .97rem; height: .97rem; }
  .hero { background: radial-gradient(ellipse at 61% 67%, #38251e 0%, #211a16 37%, transparent 73%), var(--ink); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 0 25px; }
  .hero h1 { font-size: clamp(3.45rem, 13.5vw, 5rem); margin-block: 17px 16px; }
  .hero .primary { margin-top: 20px; }
  .hero-display { width: min(100%, 470px); margin-bottom: 17px; }
  .plate-guide { font-size: .6rem; }
  .hero-index { gap: 10px; min-height: 44px; font-size: .59rem; }
  .hero-index span + span { padding-left: 10px; }
  .catalogue { padding-block: 30px 44px; }
  .catalogue-heading { align-items: stretch; flex-direction: column; gap: 14px; margin-bottom: 13px; }
  .search-box { width: 100%; }
  .search-box input { font-size: 1rem; }
  .search-box kbd { display: none; }
  .filter-bar { flex-wrap: wrap; padding-bottom: 12px; }
  .quick-filters { gap: 6px; }
  .chip { padding: 0 9px; min-height: 33px; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .card-info { padding: 10px 9px 13px; }
  .card-number { top: 7px; left: 7px; }
  .card-context { font-size: .73rem; }
  .footer-inner { flex-direction: column; }
  .style-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .dialog-content { grid-template-columns: 1fr; }
  .detail-figure { max-width: 335px; margin-inline: auto; }
  .detail-figure img { max-height: 57dvh; }
}
@media (max-width: 345px) {
  .header-inner { justify-content: space-between; }
  .main-nav { display: none; }
  .hero-copy .eyebrow { letter-spacing: .09em; }
  .hero h1 { font-size: 3.05rem; }
  .hero-index { letter-spacing: .06em; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
