/* Shared by the static pages (contact.html, privacy.html). Same "Deal Ledger"
   tokens and self-hosted Manrope as the app (src/styles/base.css) and the
   prerendered recipe pages (scripts/prerender-recipes.js), so every page a
   visitor reaches reads as one brand. The theme follows the one chosen in the
   app (the inline script in each page's head), else the system setting. */

@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --bg: #f2f0eb; --card: #fff; --text: rgba(0, 0, 0, 0.87); --muted: rgba(0, 0, 0, 0.58);
  --link: #00754a; --brand: #006241; --line: #d6dbde; --soft: #d4e9e2; --chip-ink: #1e3932;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14251f; --card: #1e3932; --text: #fff; --muted: rgba(255, 255, 255, 0.7);
  --link: #5cbf92; --brand: #9ad3b8; --line: rgba(255, 255, 255, 0.18); --soft: rgba(255, 255, 255, 0.14); --chip-ink: #fff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #14251f; --card: #1e3932; --text: #fff; --muted: rgba(255, 255, 255, 0.7);
    --link: #5cbf92; --brand: #9ad3b8; --line: rgba(255, 255, 255, 0.18); --soft: rgba(255, 255, 255, 0.14); --chip-ink: #fff;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); caret-color: var(--link); accent-color: var(--link); }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.65; letter-spacing: -0.01em;
  font-family: Manrope, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--soft); color: var(--chip-ink); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 28px 22px 80px; }

/* Brand lockup = the way home, as on the recipe pages. */
header.top { margin-bottom: 40px; }
header.top a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brand); font-size: 1.1rem; font-weight: 700; text-decoration: none;
}
.mark { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); }
.mark::before { content: ""; width: 17px; height: 17px; border-radius: 50%; background: var(--bg); }
.mark::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

h1 { margin: 0 0 8px; color: var(--brand); font-size: 2.25rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
h2 { margin: 40px 0 10px; font-size: 1.15rem; font-weight: 700; line-height: 1.3; text-wrap: balance; }
p, ul { margin: 0 0 14px; max-width: 68ch; }
ul { padding-left: 20px; }
li { margin-bottom: 6px; }
li::marker { color: var(--muted); }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: from-font; }
a:hover { color: var(--brand); }
code { padding: 1px 6px; border-radius: 6px; background: var(--soft); font-size: 0.88em; }

/* Under the title: last-updated date or a one-line lede. */
.updated, .lede { margin: 0 0 32px; color: var(--muted); font-size: 0.95rem; }

/* Contact: the address is the page's whole point, so it gets a card. */
.email-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
  margin: 0 0 8px; padding: 22px 24px; border-radius: 12px; background: var(--card);
  box-shadow: 0 0 0.5px rgba(0, 0, 0, 0.14), 0 1px 1px rgba(0, 0, 0, 0.24);
}
.email-card .label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.email-card .address { color: var(--text); font-size: 1.3rem; font-weight: 700; overflow-wrap: anywhere; text-decoration: none; }
.email-card .btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 50px;
  background: #00754a; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.email-card .btn:hover { background: #006241; color: #fff; }
:root[data-theme="dark"] .email-card .btn { background: #5cbf92; color: #0f1c17; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .email-card .btn { background: #5cbf92; color: #0f1c17; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  .email-card { padding: 18px; }
  .email-card .btn { width: 100%; justify-content: center; }
}
