@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
/* The face the game prints card names in, so the guides' headings read like the cards on the table. */
@font-face { font-family: "Onthestack Title"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/onthestack-title-bold.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --bg: #1b1b1b;
  --surface: #222222;
  --border: #333333;
  --text: #dddddd;
  --text-dim: #aaaaaa;
  --bone: #f2eee5;
  --lavender: #c999e6;
  --brand: #731fa1;
  --title: "Onthestack Title", Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--lavender); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { margin: 0; color: var(--bone); font-family: var(--title); font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 20px; padding-bottom: 20px; font-size: 14px; font-weight: 600; }
.top a { color: var(--text-dim); text-decoration: none; }
.top a:hover, .top a[aria-current="page"] { color: var(--bone); }
.top a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lavender); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.top .home { margin-right: auto; }
.top .home img { display: block; width: auto; height: 26px; }

.intro { position: relative; padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(56px, 9vw, 112px); }
.intro::before { content: ""; position: absolute; z-index: -1; inset: -40px auto auto 0; width: min(720px, 90%); height: 420px; background: radial-gradient(closest-side, rgb(115 31 161 / 0.32), transparent); pointer-events: none; }
.intro h1 { max-width: 12em; font-size: clamp(46px, 8.4vw, 96px); line-height: 0.98; }
.intro .pitch { margin-top: 28px; max-width: 32em; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; }
.act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; }
.act .note { font-size: 14px; color: var(--text-dim); }
.play { display: inline-block; padding: 14px 30px; border: 1px solid #c26d42; border-radius: 999px; background: linear-gradient(#e67b3b, #df6834 40%, #d8a055); box-shadow: inset 0 1px 0 #ffe1a3, 0 4px 18px #71241e; color: white; text-decoration: none; font-weight: 700; }
.play:hover { filter: brightness(1.08); }
.play:focus-visible { outline: 2px solid #ffe1a3; outline-offset: 3px; border-radius: 999px; }

/* Prose sections: heading in the left column, text at a readable measure on the right. */
.part { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--border); }
.part h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.05; }
.part > :not(h2) { max-width: 40em; }
.part p + p { margin-top: 16px; }
@media (min-width: 900px) {
  .part { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 56px; padding-top: 72px; padding-bottom: 72px; }
  .part > h2 { grid-row: 1 / span 9; }
  .part > :not(h2) { grid-column: 2; }
  .part > :not(h2) + :not(h2) { margin-top: 18px; }
}

/* The setup sequence: numbered pips joined by a rail, with the screenshot held alongside on wide screens. */
.setup { padding-top: 56px; padding-bottom: 72px; border-top: 1px solid var(--border); }
.setup h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; }
.setup-body { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 900px) {
  .setup-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .setup-body figure { position: sticky; top: 32px; }
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 32px 64px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  font: 700 22px/1 var(--title); color: var(--bone);
  background: var(--surface); border: 2px solid var(--lavender);
  box-shadow: 0 0 22px rgb(115 31 161 / 0.55);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 42px; bottom: 0; width: 2px; background: linear-gradient(var(--lavender), rgb(201 153 230 / 0.15)); }
.steps li:last-child { padding-bottom: 0; }
.steps h3 { font-size: 23px; line-height: 1.2; }
.steps p { margin-top: 6px; color: var(--text); }

figure { margin: 0; }
.part figure { margin-top: 16px; max-width: none; }
figure img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); box-shadow: 0 18px 44px rgb(0 0 0 / 0.55); }
figcaption { margin-top: 12px; color: var(--text-dim); font-size: 14px; }

/* AI levels are ordered, so each carries a pip meter of how hard it plays. */
.levels { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; max-width: none !important; }
.levels li { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.levels li:last-child { border-color: rgb(201 153 230 / 0.45); }
.levels .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.levels h3 { font-size: 26px; line-height: 1.1; }
.pips { display: flex; gap: 5px; }
.pips i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--lavender); }
.levels li:nth-child(1) .pips i:nth-child(-n + 1),
.levels li:nth-child(2) .pips i:nth-child(-n + 2),
.levels li:nth-child(3) .pips i { background: var(--lavender); }
.levels p { margin-top: 8px; font-size: 15px; }
@media (min-width: 640px) { .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.closing { padding-bottom: 96px; }
.closing .play { justify-self: start; margin-top: 16px; }

footer { padding: 32px 0 48px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0 0 12px; padding: 0; font-size: 14px; }

@media (max-width: 560px) {
  .top .home { flex-basis: 100%; }
  .steps li { padding-left: 56px; }
  .steps li::before { width: 38px; height: 38px; font-size: 20px; }
  .steps li:not(:last-child)::after { left: 18px; top: 38px; }
}
