/* Colours from packages/ui/tokens.ts: day, and night for dark mode. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f4f6f1;
  --border: #e4e8df;
  --ink: #18241b;
  --ink-muted: #5e6b60;
  --green: #2e6b3f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1520;
    --surface: #16212f;
    --border: #24324a;
    --ink: #e4ecf4;
    --ink-muted: #9aaabd;
    --green: #74c69a;
  }
}

@font-face {
  font-family: 'Caprasimo';
  src: url('/fonts/caprasimo.ttf') format('truetype');
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    17px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    system-ui,
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

header,
main,
footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  padding-top: 24px;
}

main {
  padding-bottom: 48px;
}

a {
  color: var(--green);
  text-underline-offset: 2px;
}

.wordmark {
  font-family: 'Caprasimo', serif;
  font-weight: 400;
  color: var(--green);
  text-decoration: none;
  font-size: 24px;
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 32px 0 8px;
}

h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 32px 0 8px;
}

p {
  margin: 0 0 12px;
  overflow-wrap: break-word;
}

.muted {
  color: var(--ink-muted);
  font-size: 15px;
}

.hero {
  text-align: center;
  padding-top: 15vh;
}

.hero img {
  border-radius: 26px;
  box-shadow: 0 6px 20px rgba(24, 36, 27, 0.18);
}

.hero h1.wordmark {
  font-size: 56px;
  margin: 24px 0 4px;
}

.lead {
  font-size: 22px;
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  padding-bottom: 40px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

footer a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 15px;
  /* Touch targets ≥ 44 pt, as in the app */
  display: inline-block;
  padding: 12px 0;
}

footer a[aria-current='page'] {
  color: var(--ink);
}
