/* Presser site, revision after "The P is too big": option 2's ink page, cream type and one green line,
   with the P kept only inside a small header lockup. The game block carries the detail: the app icon
   and one real season's results. Layout: one narrow column; header, sentence, game block, footer. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

html.ink {
  --page: #171919;   /* near-black, slightly warm, never pure black */
  --ink: #F0EEE7;    /* cream type, never pure white */
  --ink2: #A7AAA1;   /* secondary text */
  --line: #2C2F2E;   /* hairlines */
  --accent: #2FB17F; /* Counter Press green: the one green line, wins in the strip, focus */
  --draw: #7D817A;
  --loss: #3B3F3D;
  color-scheme: dark;
}
:root {
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 20px;
}
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-text-size-adjust: 100%; }
.wrap { max-width: 40rem; margin: 0 auto; padding-inline: var(--gutter); }
svg { display: block; }

/* Header */
.top { padding-block: max(22px, env(safe-area-inset-top, 0px)) 0; }
.brand { display: inline-block; color: var(--ink); }
.brand svg { height: 28px; width: auto; }

/* Home */
.home-page { padding-block: 0 8px; }
h1 { font: 800 clamp(2rem, 8.6vw, 3rem)/1.04 var(--display); letter-spacing: -0.025em; margin: 64px 0 0; max-width: 15ch; text-wrap: balance; }
.game { margin-top: 48px; border-left: 4px solid var(--accent); padding-left: 16px; }
.gh { display: flex; align-items: center; gap: 14px; }
.gh img { width: 60px; height: 60px; border-radius: 14px; display: block; flex: none; }
.game h2 { font: 800 1.5rem/1.1 var(--display); letter-spacing: -0.015em; margin: 0; }
.game .sub { color: var(--ink2); margin: 4px 0 0; }
.game > p { margin: 16px 0 0; max-width: 58ch; }

/* One champion's season, match by match (real engine output) */
.form { margin: 22px 0 0; padding: 0; }
.strip { display: grid; grid-template-columns: repeat(19, 1fr); gap: 4px; max-width: 26rem; }
.strip i { display: block; aspect-ratio: 1; border-radius: 2px; animation: presser-fill var(--dur-cell) var(--ease-fill) both; animation-delay: calc(var(--i) * var(--step)); }
.strip i.w, .key i.w { background: var(--accent); }
.strip i.d, .key i.d { background: var(--draw); }
.strip i.l, .key i.l { background: var(--loss); }
.form p { color: var(--ink2); font-size: 0.875rem; margin: 10px 0 0; max-width: 46ch; }
.key { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 16px; color: var(--ink2); font-size: 0.8125rem; }
.key li { display: flex; align-items: center; gap: 6px; }
.key i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* Links and footer */
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.brand { text-decoration: none; }
.foot { padding-block: 22px max(32px, env(safe-area-inset-bottom, 0px)); margin-top: 48px; }
.foot nav { display: flex; gap: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.foot nav a { color: var(--ink2); }
.foot .legal { margin: 12px 0 0; font-size: 0.8125rem; color: var(--ink2); }

/* Inner pages */
.doc { padding-block: 36px 8px; }
.doc h1 { font-size: clamp(2.1rem, 9.5vw, 3rem); margin: 0 0 14px; }
.doc h2 { font: 800 1.2rem/1.2 var(--display); margin: 28px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc p { margin: 0 0 14px; max-width: 62ch; }
.facts { margin: 8px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0 20px; }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--ink2); }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } .facts dd { border-top: 0; padding-top: 0; } }

@media (min-width: 900px) {
  .wrap { max-width: 46rem; }
  .brand svg { height: 34px; }
  h1 { margin-top: 96px; }
}
