/* kickoffcal.app: one stylesheet for every page. System fonts only, no
   scripts. Colours mirror the app's palette (src/core/palette.ts);
   light or dark follows the system setting. */
:root {
  color-scheme: light dark;
  --bg: #FBFAF8;
  --surface: #F3F2EF;
  --text: #171512;
  --muted: #5F5B54;
  --blue: #1463F3;
  --border: #E7E5E0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1C1B19;
    --text: #F5F3F0;
    --muted: #A5A099;
    --blue: #4C8DFF;
    --border: #32302C;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

/* One readable column, with room for a phone's rounded corners. */
.topbar, main, .site-footer {
  max-width: 42rem;
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

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

/* The app's wordmark: heavy "KickOff", regular "Cal", in the brand blue. */
.wordmark {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark span { font-weight: 400; }
.icon { display: block; border-radius: 22.5%; }

/* Home */
.hero { padding-top: 3.5rem; }
.hero .icon { margin-bottom: 1.25rem; }
.hero h1 { margin: 0; font-size: 2.75rem; line-height: 1.1; }
.tagline { margin: 0.5rem 0 0; font-size: 1.375rem; line-height: 1.35; font-weight: 600; }
.lede { margin: 1.75rem 0 0; font-size: 1.125rem; color: var(--muted); }
.panel {
  margin-top: 2.25rem;
  padding: 1.25rem 1.25rem 1.375rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
}
.panel h2 { margin: 0 0 0.5rem; font-size: 1.125rem; line-height: 1.35; }
.panel p { margin: 0; }
.links { margin: 2rem 0 0; }
.links span { margin: 0 0.5rem; color: var(--muted); }

/* Privacy and other text pages */
.topbar { padding-top: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; font-size: 1.25rem; text-decoration: none; }
.doc { padding-top: 2rem; }
.doc h1 { margin: 0; font-size: 1.875rem; line-height: 1.2; letter-spacing: -0.01em; }
.doc h2 { margin: 2.25rem 0 0.375rem; font-size: 1.1875rem; line-height: 1.35; }
.doc p { margin: 0 0 0.875rem; }
.doc ul { margin: 0 0 0.875rem; padding-left: 1.25rem; }
.doc li { margin-bottom: 0.625rem; }
.updated { color: var(--muted); font-size: 0.9375rem; }
.doc .updated { margin-top: 0.375rem; }

.site-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer p { margin: 0; }
.site-footer p:first-child { padding-top: 1.25rem; border-top: 1px solid var(--border); }
.site-footer p + p { margin-top: 0.375rem; }
.site-footer a { color: inherit; }
.site-footer span { margin: 0 0.5rem; }

@media (max-width: 26rem) {
  .hero { padding-top: 2.5rem; }
  .hero h1 { font-size: 2.375rem; }
  .tagline { font-size: 1.25rem; }
  .doc h1 { font-size: 1.625rem; }
}
