/* Telly Fixtures website: shared styles for the landing page, privacy policy and terms.
   Plain CSS on purpose: no web fonts (they would tell a font host who visits), no scripts,
   and the theme simply follows the phone's setting. Colours match the app and meet
   WCAG AA (4.5:1) in both themes. Every font size is in rem, so the phone's font size works. */

:root {
  color-scheme: light dark;
  --bg: #f4f5f2;
  --surface: #ffffff;
  --text: #15191a;
  --muted: #5a6361;
  --line: #d9ddd7;
  --accent: #0b6b3a;
  --accent-soft: #e2f1e8;
  --warn-bg: #fff4d6;
  --warn-text: #6b4900;
  --warn-line: #b98a1d;
  --sky: #c24e00;
  --tnt: #b4169e;
  --other: #4a5553;
  --pill-text: #ffffff;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111412;
    --surface: #1b201d;
    --text: #eef1ee;
    --muted: #a9b2ae;
    --line: #333b36;
    --accent: #4cc283;
    --accent-soft: #17301f;
    --warn-bg: #3a3014;
    --warn-text: #f3d48a;
    --warn-line: #a98a3a;
    --sky: #ff9a4d;
    --tnt: #f06ae0;
    --other: #b5c0bc;
    --pill-text: #111412;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: .5rem .75rem; border-radius: 8px; z-index: 2; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 16px; }

/* Header and footer */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: .625rem; padding-top: .625rem; padding-bottom: .625rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; color: var(--text); font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 9px; display: block; }

.foot { margin-top: 2.5rem; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .875rem; }
.foot .wrap { padding-top: 1.25rem; padding-bottom: 2rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-bottom: .75rem; font-size: 1rem; }
.foot nav a { display: inline-block; padding: .25rem 0; }
.foot p { margin: .5rem 0 0; }

/* Text */
h1 { font-size: 1.875rem; line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -.01em; }
h2 { font-size: 1.375rem; line-height: 1.25; margin: 2.25rem 0 .625rem; }
h3 { font-size: 1.0625rem; line-height: 1.3; margin: 1.25rem 0 .25rem; }
p { margin: 0 0 .75rem; }
ul { margin: 0 0 .75rem; padding-left: 1.25rem; }
li { margin-bottom: .375rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Landing page */
.hero { padding: 1.75rem 0 .25rem; }
.tagline { font-size: 1.125rem; font-weight: 600; color: var(--accent); margin-bottom: .5rem; }
.lead { font-size: 1.0625rem; }
.green { color: var(--accent); }

.sample { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 1.25rem 0 .375rem; overflow: hidden; }
.row { display: flex; gap: .75rem; padding: .625rem .875rem; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .time { flex: 0 0 auto; width: 3.25rem; text-align: center; font-weight: 700; }
.row .time img { display: block; width: 2rem; height: 2rem; margin: .25rem auto 0; }
.row .what { min-width: 0; font-size: .9375rem; }
.row .what strong { display: block; }
.row .what .sub { display: block; color: var(--muted); font-size: .875rem; }
.pill { display: inline-block; margin-top: .25rem; padding: .0625rem .5rem; border-radius: 6px; background: var(--other); color: var(--pill-text); font-size: .75rem; font-weight: 600; }
.pill.sky { background: var(--sky); }
.pill.tnt { background: var(--tnt); }

.sports { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .5rem; }
.sports li { margin: 0; display: flex; align-items: center; gap: .75rem; padding: .625rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sports img { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; }
.sports li > div { min-width: 0; }
.sports strong { display: block; }
.sports span { display: block; color: var(--muted); font-size: .875rem; line-height: 1.35; }

.stages { list-style: none; margin: .75rem 0; padding: 0; display: grid; gap: .5rem; }
.stages li { margin: 0; padding: .75rem .875rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stages strong { display: block; }
.stages .pay { border: 2px solid var(--accent); }
.stages .pay strong { font-size: 1.1875rem; line-height: 1.3; margin-bottom: .25rem; }

/* Privacy policy and terms */
.doc { padding-top: 1.5rem; }
.doc h2 { font-size: 1.1875rem; margin-top: 1.75rem; }

/* A placeholder George has to fill in before anything is published. Deliberately loud. */
.placeholder { background: var(--warn-bg); color: var(--warn-text); border: 1px dashed var(--warn-line); border-radius: 4px; padding: 0 .3125rem; font-weight: 700; }

