/* Layout: one narrow reading column; the home page opens with a lock-screen check-in card beside the pitch. */
:root {
  --bg: #FFFAF3;
  --surface: #FFF1E2;
  --fg: #2A1A14;
  --muted: #6E5A50;
  --line: #EAD8C6;
  --accent: #E4572E;
  --accent-ink: #B83E1A;
  --on-accent: #FFF4E6;
  --phone: #1E1512;
  --phone-fg: #FFF4E6;
  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110E; --surface: #231915; --fg: #F6EADF; --muted: #B9A496; --line: #3A2B24;
    --accent: #F06A43; --accent-ink: #FF8A66; --on-accent: #1A0F0B; --phone: #2C201B; --phone-fg: #FFF4E6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17110E; --surface: #231915; --fg: #F6EADF; --muted: #B9A496; --line: #3A2B24;
  --accent: #F06A43; --accent-ink: #FF8A66; --on-accent: #1A0F0B; --phone: #2C201B; --phone-fg: #FFF4E6;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }

/* Header and footer */
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--fg); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.brand svg { width: 2rem; height: 2rem; }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.site-foot { border-top: 1px solid var(--line); margin-top: 4rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem 2.5rem; font-size: .9rem; color: var(--muted); }
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* Home: hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-block: 2.5rem 3.5rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 32rem; margin: 1.25rem 0 1.75rem; }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: .95rem; }
.badge small { font-weight: 400; opacity: .75; }

/* Lock-screen Live Activity mock */
.lock { background: var(--phone); color: var(--phone-fg); border-radius: 2.25rem; padding: 2rem 1.25rem 1.5rem; max-width: 22rem; justify-self: center; width: 100%; }
.lock-time { text-align: center; font-family: var(--font-display); font-size: 3.75rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.lock-date { text-align: center; font-size: .9rem; opacity: .7; margin: .35rem 0 1.75rem; }
.activity { background: rgba(255, 244, 230, .1); border-radius: 1.4rem; padding: 1rem; display: grid; gap: .8rem; }
.activity-top { display: flex; align-items: center; gap: .6rem; font-size: .8rem; opacity: .8; }
.activity-top svg { width: 1.4rem; height: 1.4rem; }
.activity-q { font-weight: 600; font-size: 1.1rem; }
.activity-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.activity-btns span { text-align: center; padding: .6rem; border-radius: .9rem; font-weight: 700; }
.yes { background: #E4572E; color: #FFF4E6; }
.no { background: rgba(255, 244, 230, .16); }
.activity-foot { font-size: .78rem; opacity: .65; }

/* Home: steps and money */
.section { padding-block: 2.5rem; }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -.02em; margin-bottom: 1.5rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--fg); padding-top: 1rem; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.steps h3 { font-size: 1.2rem; margin: .4rem 0 .4rem; }
.steps p { margin: 0; color: var(--muted); }

.pound { background: var(--surface); border-radius: 1.5rem; padding: 2rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem; align-items: center; }
.pound-bar { display: flex; height: 3.5rem; border-radius: .75rem; overflow: hidden; font-weight: 700; font-variant-numeric: tabular-nums; }
.pound-bar .charity { flex: 70; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; padding-inline: 1rem; }
.pound-bar .us { flex: 30; background: var(--fg); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.pound-key { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--muted); margin-top: .6rem; flex-wrap: wrap; }
.pound h2 { margin-bottom: .75rem; }
.pound p { margin: 0; color: var(--muted); }

/* Legal and support pages */
.doc { max-width: 42rem; padding-block: 1.5rem 0; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.02em; }
.doc .updated { color: var(--muted); font-size: .95rem; margin: .5rem 0 2rem; }
.doc h2 { font-size: 1.35rem; margin: 2.25rem 0 .6rem; }
.doc h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }
.doc p, .doc li { max-width: 65ch; }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: .35rem; }
.table-scroll { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; }
.todo { background: #FFE58A; color: #3A2A00; padding: 0 .25rem; border-radius: 3px; }

.contact { background: var(--surface); border-radius: 1.25rem; padding: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.contact strong { font-family: var(--font-display); font-size: 1.4rem; user-select: all; word-break: break-all; }
.contact p { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; }
.copy { font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: .6rem 1.1rem; background: var(--accent); color: var(--on-accent); cursor: pointer; }
details { border-bottom: 1px solid var(--line); padding-block: .9rem; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .6rem 0 0; color: var(--muted); }

@media (max-width: 760px) {
  .hero .wrap, .pound { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .pound { padding: 1.5rem; }
}
