/* Fridge+ website: the app's palette (src/ui/theme.ts), Newsreader titles, readable long-form text. */
/* Fonts are self-hosted so the CSP in _headers can stay 'self'-only. */
@font-face { font-family: Newsreader; src: url(fonts/Newsreader_500Medium.ttf) format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Newsreader; src: url(fonts/Newsreader_500Medium_Italic.ttf) format('truetype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: Newsreader; src: url(fonts/Newsreader_600SemiBold.ttf) format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Newsreader; src: url(fonts/Newsreader_600SemiBold_Italic.ttf) format('truetype'); font-weight: 600; font-style: italic; font-display: swap; }
:root {
  --bg: #F6F2EB; --surface: #FFFDF9; --text: #2B2E33; --muted: #5E6166;
  --border: #E6DFD3; --accent: #2F6A63; --accent-soft: #E3EEEA; --warn: #F6E6C8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171A1B; --surface: #202426; --text: #EFEAE1; --muted: #A9ADB1;
    --border: #33383B; --accent: #93C7BE; --accent-soft: #22403C; --warn: #3D3423;
  }
}
:root[data-theme="dark"] {
  --bg: #171A1B; --surface: #202426; --text: #EFEAE1; --muted: #A9ADB1;
  --border: #33383B; --accent: #93C7BE; --accent-soft: #22403C; --warn: #3D3423;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
header, main, footer { max-width: 720px; margin: 0 auto; padding: 0 16px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 600 26px/1 Newsreader, Georgia, serif; }
.brand img { width: 26px; height: 36px; }
nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav a { text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); font-size: 15px; }
nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
h1, h2 { font-family: Newsreader, Georgia, serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: 40px; margin: 16px 0 4px; }
h2 { font-size: 26px; margin: 40px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 4px; }
.updated { color: var(--muted); margin-top: 0; }
.lead { font-size: 19px; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; margin: 20px 0; }
.draft { background: var(--warn); border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.fill { background: var(--warn); border-radius: 4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.scroll { overflow-x: auto; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
summary { font-weight: 600; cursor: pointer; }
footer { color: var(--muted); font-size: 14px; padding-top: 32px; padding-bottom: 40px; border-top: 1px solid var(--border); margin-top: 48px; }
@media (max-width: 480px) { h1 { font-size: 32px; } body { font-size: 16px; } }
/* The graphite mark disappears on dark backgrounds; swap in the light version. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img[src="mark.svg"] { content: url(mark-dark.svg); } }
:root[data-theme="dark"] img[src="mark.svg"] { content: url(mark-dark.svg); }

/* Shared bits for the launch, gift, guides and thank-you pages */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 8px; }
.wl input[type=email] { flex: 1 1 240px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.wl button, .cta { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--accent); color: var(--bg); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.wl button:focus-visible, .cta:focus-visible, .wl input:focus-visible, .share a:focus-visible { outline: 3px solid #E2A48F; outline-offset: 2px; }
.fine { font-size: 14px; color: var(--muted); margin: 0; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.share a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 20px 0; }
.cards a { display: block; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.cards b { display: block; font: 600 20px/1.2 Newsreader, Georgia, serif; margin-bottom: 6px; }
.cards span { color: var(--muted); font-size: 15px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.crumbs a { color: var(--muted); }
article ol li, article ul li { margin-bottom: 6px; }
