/* Dragflick landing page.
   The colours are the sport's own: water-turf blue, white line markings, the yellow ball, and
   the green run-off around the pitch. Yellow is used for one thing only: the way into the game. */
:root {
  --turf: #1558c4;
  --turf-dark: #1352b8;
  --night: #06173a;
  --line: #f4f7fb;
  --ball: #ffd91a;
  --runoff: #0c6a44;
  --ink: #0a1a3d;
  --display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --marking: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--line); font: 400 18px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--line); outline-offset: 3px; border-radius: 4px; }
.chalk :focus-visible { outline-color: var(--ink); }

.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 10; padding: 10px 14px; background: var(--line); color: var(--ink); border-radius: 6px; }
.skip:focus { top: 12px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2 { font-family: var(--display); margin: 0; }
h2 { font-weight: 700; font-size: clamp(40px, 6.2vw, 84px); line-height: 0.95; letter-spacing: 0.005em; margin-bottom: 0.45em; text-wrap: balance; }
.intro { max-width: 58ch; margin: 0 0 clamp(28px, 4vw, 48px); font-size: clamp(18px, 1.6vw, 21px); }

/* ---- the way in */
.btn { display: inline-block; padding: 13px 30px 14px; border-radius: 999px; background: var(--ball); color: var(--ink); font: 700 24px/1 var(--display); letter-spacing: 0.02em; text-decoration: none; box-shadow: 0 2px 0 rgba(6, 23, 58, 0.35); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(6, 23, 58, 0.35); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(6, 23, 58, 0.35); }
.btn.small { padding: 9px 20px 10px; font-size: 19px; }
.quiet { font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.quiet:hover { text-decoration-color: var(--ball); }

/* ---- top bar, over the hero */
.top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: 18px var(--gutter); }
.mark { font: 800 26px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; margin-right: auto; }
.top nav { display: flex; gap: 26px; }
.top nav a { font-weight: 500; font-size: 16px; text-decoration: none; text-underline-offset: 6px; }
.top nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---- hero: a match in progress */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--night); }
.live, .poster, .live iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
/* what is there before the match arrives (or instead of it): the pitch, watered in stripes */
.poster { background:
  linear-gradient(to right, transparent calc(50% - 2px), rgba(244, 247, 251, 0.85) calc(50% - 2px), rgba(244, 247, 251, 0.85) calc(50% + 2px), transparent calc(50% + 2px)),
  repeating-linear-gradient(to right, var(--turf) 0 9vw, var(--turf-dark) 9vw 18vw); }
.live iframe { border: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.live iframe.on { opacity: 1; }
/* shade for the words, heaviest where they sit */
.live::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(6, 23, 58, 0.94) 0%, rgba(6, 23, 58, 0.72) 24%, rgba(6, 23, 58, 0.18) 56%, rgba(6, 23, 58, 0) 70%),
  linear-gradient(to bottom, rgba(6, 23, 58, 0.6) 0, rgba(6, 23, 58, 0) 130px); }
.hero-copy { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(40px, 7vh, 84px); max-width: 1288px; width: 100%; margin: 0 auto; }
h1 { font-weight: 800; font-size: clamp(84px, 19.5vw, 290px); line-height: 0.78; letter-spacing: -0.012em; text-transform: uppercase; margin-left: -0.04em; }
.lede { max-width: 30ch; margin: clamp(18px, 2.4vw, 30px) 0 0; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.3; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: clamp(22px, 2.8vw, 34px) 0 0; }
.live-note { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(40px, 7vh, 84px); margin: 0; max-width: 22ch; text-align: right; font-size: 14px; line-height: 1.35; color: rgba(244, 247, 251, 0.78); }

/* ---- sections on the pitch: each one starts at a line */
.turf { background: repeating-linear-gradient(to right, var(--turf) 0 9vw, var(--turf-dark) 9vw 18vw); border-top: var(--marking) solid var(--line); padding: clamp(64px, 9vw, 132px) 0; scroll-margin-top: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(32px, 4.5vw, 60px) clamp(32px, 6vw, 88px); margin: clamp(28px, 4vw, 56px) 0 0; }
.features dt { font: 700 clamp(26px, 2.6vw, 34px)/1.05 var(--display); letter-spacing: 0.01em; margin-bottom: 10px; }
.features dd { margin: 0; max-width: 44ch; color: rgba(244, 247, 251, 0.9); }

/* ---- controls: the white of the lines, for reading */
.chalk { background: var(--line); color: var(--ink); padding: clamp(64px, 9vw, 132px) 0; }
.table-scroll { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 17px; }
thead th { font: 600 15px/1.2 var(--body); text-align: left; padding: 0 16px 12px 0; color: rgba(10, 26, 61, 0.66); border-bottom: 2px solid var(--ink); }
tbody th { font: 700 22px/1.1 var(--display); letter-spacing: 0.01em; text-align: left; white-space: nowrap; }
tbody th, tbody td { padding: 13px 16px 13px 0; border-bottom: 1px solid rgba(10, 26, 61, 0.14); vertical-align: middle; }
kbd { display: inline-block; min-width: 2em; padding: 3px 8px 4px; border: 2px solid var(--ink); border-bottom-width: 4px; border-radius: 7px; background: #fff; font: 600 15px/1.1 var(--body); text-align: center; }

/* ---- clubs */
.clubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 20px; }
.clubs li { display: grid; justify-items: start; gap: 14px; font-weight: 500; line-height: 1.25; }
.clubs img { width: 96px; height: 96px; padding: 14px; object-fit: contain; background: var(--line); border-radius: 50%; }

/* ---- the last section is the shooting circle; the button is the ball on the penalty spot */
.circle { --w: min(100vw, 1100px); position: relative; background: repeating-linear-gradient(to right, var(--turf) 0 9vw, var(--turf-dark) 9vw 18vw); border-top: var(--marking) solid var(--line); padding-top: clamp(56px, 8vw, 110px); text-align: center; overflow: hidden; }
.circle-copy { position: relative; z-index: 1; height: calc(var(--w) * 0.52 + 2.4em + clamp(40px, 6vw, 84px)); }
.circle h2 { margin: 0; padding: 0 var(--gutter); }
.circle p { position: absolute; left: 0; right: 0; top: calc(clamp(40px, 6.2vw, 84px) * 0.95 + 14px); margin: 0; padding: 0 var(--gutter); }
/* the backline runs the full width of the page, not just of the drawing */
.circle::after { content: ''; position: absolute; left: 0; right: 0; bottom: calc(var(--w) * 0.05 - 2px); height: var(--marking); background: var(--line); }
.d { position: absolute; left: 50%; bottom: 0; width: var(--w); height: calc(var(--w) * 0.52); transform: translateX(-50%); fill: none; stroke: var(--line); stroke-width: 4; overflow: visible; }
.d path, .d line, .d rect { vector-effect: non-scaling-stroke; }
.d .dots { stroke-dasharray: 14 22; opacity: 0.85; }
.d rect { fill: rgba(6, 23, 58, 0.35); }
/* 0.181 of the drawing's width above its bottom edge is where the penalty spot is */
.btn.spot { position: absolute; left: 50%; bottom: calc(var(--w) * 0.181); transform: translate(-50%, 50%); display: grid; place-items: center; width: clamp(104px, 13vw, 150px); height: clamp(104px, 13vw, 150px); padding: 0 10px; border-radius: 50%; font-size: clamp(21px, 2.3vw, 28px); line-height: 0.95; box-shadow: 0 0 0 10px rgba(255, 217, 26, 0.18), 0 10px 26px rgba(6, 23, 58, 0.5); }
.btn.spot:hover { transform: translate(-50%, 50%) scale(1.05); box-shadow: 0 0 0 14px rgba(255, 217, 26, 0.22), 0 14px 30px rgba(6, 23, 58, 0.5); }

/* ---- the run-off */
.runoff { background: var(--runoff); padding: 34px 0 40px; font-size: 16px; }
.runoff p { margin: 0; }
.runoff .small { margin-top: 6px; font-size: 14px; color: rgba(244, 247, 251, 0.8); }
.runoff a { font-weight: 600; text-underline-offset: 4px; }

@media (max-width: 760px) {
  /* while the analytics question is up it sits at the bottom: keep the hero's buttons above it */
  .has-consent .hero { padding-bottom: calc(var(--consent-h, 150px) + 20px); }
  .top nav { display: none; }
  .live-note { position: relative; right: auto; bottom: auto; max-width: none; text-align: left; padding: 0 var(--gutter) 28px; margin-top: -12px; }
  .hero-copy { padding-bottom: 32px; }
  tbody th { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .live iframe { transition: none; }
  .btn:hover, .btn.spot:hover { transform: none; }
  .btn.spot:hover { transform: translate(-50%, 50%); }
}
