@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --night: #17403c;      /* hero and footer: deep eucalyptus */
  --night-deep: #10302d;
  --paper: #fbf5ea;      /* page background: warm cream */
  --card: #fffdf8;
  --ink: #1d2a28;
  --muted: #5b6662;
  --line: #e3d9c6;
  --clay: #c4572e;       /* the cat */
  --wattle: #f0b94a;     /* highlights */
  --on-night: #f6efe1;
  --on-night-muted: #b9cdc7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13201e;
    --card: #1a2b28;
    --ink: #ece6da;
    --muted: #a3b2ad;
    --line: #2c403c;
    --clay: #e2794f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.65 "Figtree", system-ui, sans-serif;
}

h1, h2, h3, .brand { font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; letter-spacing: -0.01em; }

a { color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--wattle); }

.wrap { max-width: 780px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Hero: night sky over the rooftops, header included */
.hero { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.hero a { color: var(--on-night); }

.hero .moon { position: absolute; top: 84px; right: max(6vw, 24px); width: 56px; height: 56px; color: var(--wattle); opacity: 0.9; }
.hero.small .moon { top: 74px; width: 40px; height: 40px; }
@media (max-width: 600px) { .hero .moon, .hero.small .moon { top: 66px; right: 20px; width: 34px; height: 34px; } }

header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand svg { width: 36px; height: 36px; color: var(--clay); }
nav { display: flex; gap: 20px; font-weight: 600; font-size: 0.98rem; }
nav a { text-decoration: none; color: var(--on-night-muted) !important; }
nav a:hover, nav a[aria-current="page"] { color: var(--on-night) !important; text-decoration: underline; text-decoration-color: var(--wattle); }

.hero-text { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 28px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.08; font-weight: 800; margin: 0 0 18px; max-width: 14em; }
.hero.small h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 6px; }
.hero h1 em { font-style: normal; color: var(--wattle); }
.hero .lead { font-size: 1.2rem; color: var(--on-night-muted); margin: 0; max-width: 34em; }

.rooftops { display: block; width: 100%; height: 90px; color: var(--paper); margin-top: -1px; }

main.wrap { padding-top: 36px; padding-bottom: 72px; }
h2 { font-size: 1.6rem; line-height: 1.2; margin: 44px 0 12px; }
h3 { font-size: 1.15rem; margin: 28px 0 6px; }
.meta { color: var(--muted); font-size: 0.95rem; }
.hero .meta { color: var(--on-night-muted); }

.eyebrow { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--clay); margin: 0 0 4px; }

/* App card: solid offset shadow, like a sticker */
.card { background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 24px 26px; margin: 18px 0 8px; box-shadow: 7px 7px 0 var(--clay); }
.card h2 { margin: 0 0 6px; }
.tag { display: inline-block; background: var(--wattle); color: #2a2110; border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }
.card ul { padding-left: 1.2em; }
.card li::marker { color: var(--clay); }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 28px; margin-top: 10px; }
.values h3 { margin: 0 0 4px; }
.values p { margin: 0; color: var(--muted); }
.values > div { border-top: 3px solid var(--wattle); padding-top: 12px; }

table { border-collapse: collapse; width: 100%; font-size: 0.96rem; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { font-family: "Bricolage Grotesque", sans-serif; }
.scroll { overflow-x: auto; }

footer { background: var(--night-deep); color: var(--on-night-muted); font-size: 0.9rem; }
footer .wrap { padding-top: 26px; padding-bottom: 30px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--on-night); }

.hero .eyebrow { color: var(--wattle); }
.hero .eyebrow a { color: var(--wattle); text-decoration: none; }
.hero .eyebrow a:hover { text-decoration: underline; }
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 6px; }
.steps li::marker { color: var(--clay); font-weight: 700; }
main.wrap > :first-child { margin-top: 0; }
