/* Slot Radar — design tokens
   ground: deep plum, not black. accent: gold, reserved for multipliers only. */
:root {
  --ink:        #17111c;
  --surface:    #221a29;
  --surface-2:  #2d2335;
  --line:       #3a2e44;
  --gold:       #e9b44c;
  --teal:       #7fd1c1;
  --rose:       #e2726e;
  --paper:      #f2ede6;
  --muted:      #a093ac;

  --display: "Archivo", system-ui, sans-serif;
  --body:    "IBM Plex Sans", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  --gap: clamp(1rem, 3vw, 2rem);
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--paper); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--gold); color: var(--ink); padding: .5rem 1rem; }

/* --- masthead --- */
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem var(--gap);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.wordmark span { color: var(--gold); }
.masthead nav { display: flex; gap: 1.25rem; }
.masthead nav a {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.masthead nav a:hover { color: var(--paper); }
.masthead nav a.is-active { color: var(--gold); }

/* --- hero --- */
.hero { padding: clamp(3rem, 9vw, 6rem) var(--gap) 2.5rem; max-width: 60rem; }
.hero.compact { padding-bottom: 1.5rem; }
.eyebrow {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 1rem;
}
.eyebrow a { color: var(--teal); }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 7.5vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.02em; margin: 0 0 1rem;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.lede { color: var(--muted); max-width: var(--measure); margin: 0; font-size: 1.05rem; }
.links { font-family: var(--mono); font-size: .82rem; margin-top: 1rem; }

.section-head {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
  padding: 0 var(--gap); margin: 0 0 1.25rem;
}

/* --- release rail (signature element) --- */
.rail { padding-bottom: 3rem; }
.rail-day {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--gap);
  padding: 1.5rem var(--gap);
  border-top: 1px solid var(--line);
}
.rail-marker {
  display: flex; flex-direction: column; align-items: flex-start;
  font-family: var(--mono); line-height: 1; position: sticky; top: 1rem;
}
.rail-dow { font-size: .7rem; letter-spacing: .18em; color: var(--muted); }
.rail-dom {
  font-family: var(--display); font-weight: 800; font-size: 2.6rem;
  margin: .15rem 0; color: var(--paper);
}
.rail-mon { font-size: .7rem; letter-spacing: .18em; color: var(--muted); }
.rail-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }

/* --- cards --- */
.grid-section { padding-bottom: 3rem; }
.grid {
  display: grid; gap: 1rem; padding: 0 var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.card:hover { border-color: var(--gold); }
.card-link { display: block; padding: 1.1rem; text-decoration: none; color: inherit; }
.card-studio {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}
.card-name {
  font-family: var(--display); font-weight: 600; font-size: 1.2rem;
  margin: .3rem 0 .6rem; line-height: 1.15;
}

/* the multiplier is the loudest thing on the page — on purpose */
.maxwin {
  font-family: var(--display); font-weight: 800; color: var(--gold);
  line-height: .9; margin: 0 0 .9rem; display: flex; align-items: baseline; gap: .1em;
}
.maxwin-num { font-size: 2.5rem; letter-spacing: -.03em; }
.maxwin-x { font-size: 1.3rem; opacity: .7; }
.detail-maxwin { margin: 1.5rem 0 2rem; }
.detail-maxwin .maxwin-num { font-size: clamp(3.5rem, 12vw, 6rem); }
.detail-maxwin .maxwin-x { font-size: 2rem; }
.maxwin-label {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); font-weight: 400;
  align-self: center; margin-left: .75rem;
}

.card-stats { display: flex; flex-wrap: wrap; gap: .9rem; margin: 0 0 .8rem; }
.card-stats div { min-width: 0; }
.card-stats dt {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.card-stats dd { font-family: var(--mono); font-size: .85rem; margin: .15rem 0 0; }
.card-date { font-family: var(--mono); font-size: .74rem; color: var(--muted); margin: 0; }

/* --- pills --- */
.pill {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .15rem .5rem; border-radius: 2px;
  border: 1px solid currentColor;
}
.vol-low, .vol-medium { color: var(--teal); }
.vol-medium-high, .vol-high { color: var(--gold); }
.vol-extreme { color: var(--rose); }

/* --- detail page --- */
.detail { padding: clamp(2.5rem, 7vw, 4.5rem) var(--gap) 4rem; max-width: 52rem; }
.detail h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.2rem, 6.5vw, 3.6rem); line-height: 1.03;
  letter-spacing: -.02em; margin: 0 0 .75rem;
}
.detail h2 {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
  margin: 2.5rem 0 .75rem; font-weight: 400;
}
.detail-date { font-family: var(--mono); font-size: .85rem; color: var(--muted); margin: 0; }

.spec { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .88rem; }
.spec th, .spec td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.spec th { font-weight: 400; color: var(--muted); }
.spec td { text-align: right; }

.mechanics, .sources { list-style: none; padding: 0; margin: 0; }
.mechanics li {
  display: inline-block; font-family: var(--mono); font-size: .8rem;
  border: 1px solid var(--line); padding: .3rem .6rem; margin: 0 .4rem .4rem 0;
}
.sources li { font-family: var(--mono); font-size: .82rem; padding: .3rem 0; }
.prose { max-width: var(--measure); }

/* --- studios --- */
.studios { list-style: none; margin: 0; padding: 0 var(--gap) 4rem; display: grid;
  gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.studio { background: var(--ink); padding: 1.25rem 0; }
.studio h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin: 0; }
.studio a { text-decoration: none; }
.studio a:hover h3 { color: var(--gold); }
.studio-meta, .studio-count {
  font-family: var(--mono); font-size: .74rem; color: var(--muted); margin: .25rem 0 0;
}
.studio-known { margin: .5rem 0 0; max-width: var(--measure); }

.empty { color: var(--muted); padding: 0 var(--gap); font-family: var(--mono); font-size: .9rem; }
code { font-family: var(--mono); background: var(--surface-2); padding: .1rem .35rem; }

/* --- footer --- */
.footer {
  border-top: 1px solid var(--line); padding: 2rem var(--gap) 3rem;
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
}
.footer-warn { color: var(--paper); margin: 0 0 .5rem; }
.footer-meta { margin: 0; max-width: var(--measure); }

@media (max-width: 40rem) {
  .rail-day { grid-template-columns: 1fr; gap: .75rem; }
  .rail-marker { flex-direction: row; align-items: baseline; gap: .5rem; position: static; }
  .rail-dom { font-size: 1.6rem; margin: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .card { transition: border-color .18s ease; }
}
