/* Colours come from the app's tokens.css. Same rules: no gradients, no glass, no glow. */
@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(fonts/plex-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(fonts/plex-500.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(fonts/plex-600.woff2) format("woff2"); }

:root {
  --bg: #0b0c0e; --surface: #111215; --surface-2: #1e2025;
  --line: rgba(255, 255, 255, .12);
  --text: #edeef0; --text-2: #a1a4ab;
  --blue: #4c9eff; --orange: #ff8a4c; --win: #3fb950; --loss: #f0605a;
  --ink: #0b0c0e;
  --gap: clamp(96px, 13vw, 184px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body { background: var(--bg); color: var(--text); font: 400 17px/1.55 "IBM Plex Sans", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
::selection { background: var(--orange); color: var(--ink); }
.wrap { width: min(1280px, 100% - clamp(32px, 7vw, 112px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; z-index: 9; background: var(--ink); color: var(--text); padding: 10px 16px; }
.skip:focus { left: 16px; top: 16px; }

h1, h2 { font-family: "Archivo", sans-serif; font-stretch: 118%; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(46px, 10vw, 148px); line-height: 1; letter-spacing: -.04em; }
h2 { font-size: clamp(34px, 4.5vw, 64px); line-height: 1; letter-spacing: -.03em; }
p { text-wrap: pretty; }

.half { position: relative; color: var(--ink); }
.blue { background: var(--blue); }
.orange { background: var(--orange); }

/* ---- your half ---- */
.blue { isolation: isolate; }
.blue::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: clamp(90px, 18vw, 300px); background: var(--bg); }
.marks { position: absolute; inset: 0 0 auto; width: 100%; height: min(900px, 100%); z-index: -1; }
.arc { fill: none; stroke: #79b7ff; stroke-width: 34; stroke-linecap: round; stroke-dasharray: 1; animation: fly 1.3s cubic-bezier(.2, .7, .2, 1) both; }
.ball { fill: var(--ink); animation: land .35s 1.05s cubic-bezier(.2, .7, .2, 1) both; transform-box: fill-box; transform-origin: center; }
@keyframes fly { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes land { from { transform: scale(0); } }

.top { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 22px; letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 30px; }
.top nav { display: flex; gap: 28px; font-weight: 500; font-size: 16px; }
.top nav a, footer a { text-decoration: none; }
.top nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero { padding-top: clamp(56px, 6vw, 96px); }
.hero h1 { max-width: 8.2em; }
.pitch-line { margin: clamp(24px, 2vw, 32px) 0 clamp(40px, 4vw, 56px) auto; max-width: 480px; }
.pitch-line > p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 28px 0 14px; }
.pitch-line small { font-size: 15px; }
.btn { display: inline-block; background: var(--ink); color: var(--text); font-weight: 600; text-decoration: none; padding: 15px 24px; border-radius: 8px; transition: background .15s; }
.btn:hover { background: #24272e; }
.text-link { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.shot { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }

/* ---- session ---- */
.session { padding-block: var(--gap); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.session h2 { font-size: clamp(44px, 6.4vw, 92px); margin-bottom: 28px; }
.session-copy p, .find-copy p, .mid-grid p { color: var(--text-2); max-width: 34em; }
.session-copy .try { color: var(--text); font-weight: 600; margin-top: 24px; }
.play { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.play button { border: 0; border-radius: 8px; padding: 14px 24px; font-weight: 600; }
.res { color: var(--ink); transition: transform .12s; }
.res:active { transform: translateY(2px); }
.res:disabled { opacity: .35; cursor: default; }
.win { background: var(--win); } .loss { background: var(--loss); }
.play .reset { background: none; color: var(--text-2); padding-inline: 10px; text-decoration: underline; text-underline-offset: 4px; }
.play .reset:hover { color: var(--text); }
.board { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(18px, 2.4vw, 32px); min-width: 0; }
.board-head { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px; }
.board-head span { display: block; font-size: 14px; color: var(--text-2); }
.board-head b { font-weight: 600; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pos { color: var(--win); } .neg { color: var(--loss); }
#chart { display: block; width: 100%; margin: 16px 0; overflow: visible; }
#chart text { fill: var(--text-2); font-size: 14px; }
#chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
#chips li { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; font-size: 14px; font-weight: 600; }
#chips .W { background: rgba(63, 185, 80, .16); color: var(--win); }
#chips .L { background: rgba(240, 96, 90, .16); color: var(--loss); }
.notice { margin-top: 18px; padding: 16px 18px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-weight: 500; min-height: 4.6em; display: flex; align-items: center; }
.notice.warn { background: var(--orange); color: var(--ink); font-weight: 600; }

/* ---- findings ---- */
.find + .find { margin-top: var(--gap); }
.first .find-copy { display: grid; grid-template-columns: 7fr 5fr; gap: 32px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: 48px; }
.side { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.flip { grid-template-columns: 8fr 4fr; }
.flip .find-copy { order: 1; }
.side h2 { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 20px; }
.caption { margin-top: 40px; color: var(--text-2); font-size: 15px; }

/* ---- midfield: the centre circle sits on the halfway line ---- */
.midfield { position: relative; margin-top: var(--gap); padding-block: var(--gap); border-top: 2px solid var(--line); overflow: hidden; }
.centre { position: absolute; width: clamp(360px, 46vw, 680px); left: 50%; top: 0; transform: translate(-50%, -50%); fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1.4; }
.centre .spot { fill: var(--text); stroke: none; }
.mid-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 128px); padding-top: clamp(120px, 14vw, 200px); }
.mid-grid h2 { margin-bottom: 28px; }
.mid-grid p + p { margin-top: 16px; }
dl > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
dl > div:last-child { border-bottom: 1px solid var(--line); }
dt { font-weight: 600; } dd { color: var(--text-2); }

/* ---- their half ---- */
.editions { padding-block: var(--gap) clamp(64px, 8vw, 112px); }
.editions h2 { font-size: clamp(42px, 7.2vw, 108px); letter-spacing: -.04em; max-width: 8em; }
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(48px, 6vw, 88px); border-block: 2px solid var(--ink); }
.ed-grid article { padding: 32px clamp(24px, 4vw, 64px) 44px 0; }
.ed-grid article + article { border-left: 2px solid var(--ink); padding-left: clamp(24px, 4vw, 64px); padding-right: 0; }
h3 { font-size: 18px; font-weight: 600; }
.deal { font: 750 clamp(28px, 3.4vw, 48px)/1.1 "Archivo", sans-serif; font-stretch: 118%; letter-spacing: -.03em; margin: 6px 0 20px; }
article p:not(.deal) { max-width: 30em; font-weight: 500; } article p + p:not(.deal) { margin-top: 10px; }
.final { display: flex; justify-content: space-between; align-items: center; gap: 28px 48px; margin-top: 48px; }
.final p { font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; max-width: 28em; }
.final .btn { flex: none; }
footer { display: flex; justify-content: space-between; gap: 20px 48px; padding-block: 28px 40px; font-size: 15px; }
footer p { max-width: 42em; } footer nav { display: flex; gap: 24px; }

@media (max-width: 860px) {
  .session, .first .find-copy, .side, .mid-grid { grid-template-columns: 1fr; }
  .flip .find-copy { order: 0; }
  .final, footer { flex-direction: column; align-items: flex-start; }
  .pitch-line { margin-left: 0; }
  .marks { height: 620px; }
}
@media (max-width: 700px) {
  .top nav a:not(:last-child) { display: none; }
  .ed-grid { grid-template-columns: 1fr; }
  .ed-grid article + article { border-left: 0; border-top: 2px solid var(--ink); padding-left: 0; }
  /* on a phone the panels are unreadable shrunk: keep them at a legible width and let them pan */
  .find .shot { overflow-x: auto; }
  .find .shot img { width: 780px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arc, .ball { animation: none; }
}

/* ---- 404 ---- */
.lost { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; }
.lost p { font-size: 20px; font-weight: 500; margin-top: 16px; }
