/* The palette is the app's own, published by @cooked/design-tokens'
   cssVariables() and pasted here verbatim (tests/design/web-landing-tokens.test.ts
   keeps the two from drifting). Light only, like the app (decision 0039). No
   webfont is fetched: Manrope where the reader has it, the platform face
   otherwise. */
:root {
  --canvas: #FFFFFF;
  --soft: #EFEFEF;
  --ink: #111111;
  --ink-secondary: #6B6B6B;
  --divider: #E5E5E5;
  --action: #111111;
  --on-action: #FFFFFF;
  --capture: #FFFFFF;
  --on-capture: #111111;
  --brand-sage: #90A790;
  --privacy: #6B6B6B;
  --privacy-surface: #EFEFEF;
  --on-media: #FFFFFF;
  --control-outline: #D4D4D4;
  --danger-text: #C8102E;
  --danger-surface: #FBEAEC;
  --on-danger: #FFFFFF;
  --attention-text: #111111;
  --attention-surface: #EFEFEF;
  --ink-tertiary: #A3A3A3;
  --dock-surface: #FFFFFF;
  --dock-selected: #EFEFEF;
  --dock-inactive: #6B6B6B;
  --success-text: #111111;
  --success-surface: #EFEFEF;
  --band-green: #15803D;
  --band-green-surface: #DCF3E4;
  --band-orange: #B45309;
  --band-orange-surface: #FCE9C8;
  --band-red: #B91C1C;
  --band-red-surface: #FBDADA;
  --tint-text: #111111;
  --tint-surface: #EFEFEF;
  --ochre-text: #111111;
  --ochre-surface: #EFEFEF;
  --pin-text: #C8102E;
  --pin-surface: #EFEFEF;
  --advisory-mark: #111111;
  --advisory-surface: #EFEFEF;
  --bezel: #0B0B0D;
  --payoff: #FFD166;
  --chef-mark: #89A48B;
  --jade: #89A48B;
  --jade-wash: #EEF4EE;
  --jade-edge: #DCE7DC;
  --jade-ink: #3F5B43;
  --yum: #FF3040;
  --unread: #FF3040;
  --level-easy: #111111;
  --level-medium: #111111;
  --level-hard: #111111;
}

/* Shared page roles use the published tokens. The legal and app-link pages
   retain their platform typography; landing.css loads the app's Manrope
   locally for the redesigned homepage. */
:root {
  --ground: var(--canvas);
  --band: var(--success-surface);
  --card: var(--soft);
  --serif: ui-serif, 'New York', 'Iowan Old Style', 'Source Serif 4', Charter, Georgia, 'Noto Serif', serif;
  --sans: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 1240px;
  --spill: clamp(56px, 9vw, 150px);
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ground);
  font-synthesis: none;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
a { color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2 { font-family: var(--serif); color: var(--ink); margin: 0; }

.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 99;
  background: var(--ink);
  color: var(--on-action);
  padding: 14px 18px;
  border-radius: 12px;
}
.skip:focus { top: 12px; }

/* The header, main and footer every page shares. */
.header {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  --mark: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand img { height: var(--mark); width: auto; }
.brand .mark {
  width: var(--mark);
  height: var(--mark);
  border-radius: 22%;
  flex: none;
}
.brand .word { margin-left: calc(var(--mark) * -40 / 163 + 2px); }
main {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
  flex: 1 0 auto;
}
footer {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 28px var(--gutter) 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  color: var(--ink-secondary);
  font-size: 14px;
}
footer a { color: var(--ink); text-underline-offset: 3px; }
footer a:hover { text-decoration-thickness: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.heart { margin-left: 4px; }

/* Store buttons: ink, the app's action colour, on the grey band and on the card (16.4:1 on both). */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  min-width: 176px;
  padding: 8px 20px 8px 16px;
  border-radius: 14px;
  background: var(--action);
  color: var(--on-action);
  text-decoration: none;
}
.store:hover { background: var(--ink-secondary); }
.store svg { width: 24px; height: 28px; fill: currentColor; flex-shrink: 0; }
.store-copy { display: flex; flex-direction: column; line-height: 1.1; }
.store-copy small { font-size: 12px; font-weight: 600; opacity: 0.8; white-space: nowrap; }
.store-copy strong { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }

.toast {
  position: fixed;
  z-index: 20;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 20px;
  max-width: calc(100vw - 32px);
  width: max-content;
  background: var(--ink);
  color: var(--on-action);
  border-radius: 14px;
  font-size: 15px;
  text-align: center;
}

/* Small-screen shared chrome, including the legal and app-link pages. */
@media (max-width: 640px) {
  .brand { --mark: 32px; }
  .header { padding-top: 14px; padding-bottom: 14px; }
  footer { flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
