/* Peas Of Mind website. Brand colours from the app (src/theme/tokens.ts). Fonts are self-hosted:
   loading them from Google's servers would send every visitor's IP address to Google. */
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url(/fonts/dm-sans-latin-400-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: "DM Sans"; font-weight: 400; font-display: swap; src: url(/fonts/dm-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url(/fonts/dm-sans-latin-500-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: "DM Sans"; font-weight: 500; font-display: swap; src: url(/fonts/dm-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url(/fonts/dm-sans-latin-700-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: "DM Sans"; font-weight: 700; font-display: swap; src: url(/fonts/dm-sans-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url(/fonts/fraunces-latin-600-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: "Fraunces"; font-weight: 600; font-display: swap; src: url(/fonts/fraunces-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --forest: #304D3B;
  --forest-deep: #24392C;
  --cream: #EDE9DD;
  --paper: #F7F5EF;
  --leaf: #668541;
  --gold: #E3A540;
  --ink: #1C2620;
  --muted: #555E57;
  --line: #D9D5C8;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--leaf); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---- header / footer */
.site-header { padding-block: 22px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 600 1.35rem/1 var(--serif); }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.nav { display: flex; gap: 22px; font-size: 0.95rem; font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--forest); }

.site-footer { margin-top: 80px; border-top: 1px solid var(--line); padding-block: 32px 48px; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }

/* ---- home: hero */
.hero { padding-block: 40px 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { font: 600 clamp(2.5rem, 5.4vw, 4.1rem)/1.04 var(--serif); letter-spacing: -0.02em; margin: 0 0 22px; color: var(--forest-deep); max-width: 13ch; }
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 46ch; margin: 0 0 32px; }
.soon { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 20px 12px 16px; line-height: 1.2; }
.soon svg { flex: none; }
.soon small { display: block; font-size: 0.75rem; color: #C9CEC9; }
.soon strong { font-size: 1.05rem; font-weight: 700; }

/* the week table: the one showpiece */
.week { background: var(--forest); color: var(--cream); border-radius: 28px; padding: 28px 28px 24px; position: relative; }
.week h2 { font: 600 1.35rem/1.2 var(--serif); margin: 0 0 4px; color: #fff; }
.week .range { font-size: 0.9rem; color: #B9C6BC; margin: 0 0 18px; }
.week ol { list-style: none; margin: 0; padding: 0; }
.week li { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid rgba(237, 233, 221, 0.16); }
.week li:first-child { border-top: 0; }
.week .day { font-weight: 700; font-size: 0.9rem; color: var(--gold); }
.week .dish { font-weight: 500; }
.week .kcal { font-size: 0.85rem; color: #B9C6BC; font-variant-numeric: tabular-nums; }
.week li.today { background: rgba(237, 233, 221, 0.08); margin-inline: -12px; padding-inline: 12px; border-radius: 12px; border-top-color: transparent; }
.week li.today + li { border-top-color: transparent; }

.basket { background: #fff; color: var(--ink); border-radius: 20px; padding: 18px 20px; margin: 22px -44px -48px 56px; box-shadow: 0 18px 40px -18px rgba(36, 57, 44, 0.45); }
.basket h3 { margin: 0 0 10px; font: 700 0.95rem/1.3 var(--sans); }
.basket ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.basket li { display: flex; align-items: center; gap: 10px; }
.basket li span.qty { margin-left: auto; color: var(--muted); font-size: 0.85rem; }
.tick { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); flex: none; }
.tick.on { background: var(--gold); border-color: var(--gold); position: relative; }
.tick.on::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.basket li.done .name { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(85, 94, 87, 0.6); }

/* ---- home: what it does */
.does { padding-block: 72px 24px; }
.does h2, .promise h2 { font: 600 clamp(1.8rem, 3.2vw, 2.4rem)/1.15 var(--serif); margin: 0 0 40px; color: var(--forest-deep); max-width: 22ch; }
.does dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; margin: 0; }
.does dt { font: 600 1.3rem/1.3 var(--serif); color: var(--forest); margin-bottom: 8px; }
.does dt small { font: 700 0.7rem/1 var(--sans, sans-serif); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.does dd { margin: 0; color: var(--muted); max-width: 44ch; }

.plans { padding-block: 72px 0; }
.plans .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.plans h2 { font: 600 clamp(1.8rem, 3.2vw, 2.4rem)/1.15 var(--serif); margin: 0; color: var(--forest-deep); max-width: 22ch; }
.plans p { margin: 0 0 14px; max-width: 52ch; color: var(--muted); }
.plans p strong { color: var(--ink); }
.promise { margin-block: 80px -80px; background: var(--cream); padding-block: 64px; }
.promise .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.promise h2 { margin-bottom: 0; }
.promise p { margin: 0 0 14px; max-width: 52ch; }

/* ---- long-form pages (privacy, deletion, support) */
.doc { padding-block: 32px 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font: 600 clamp(2.1rem, 4.4vw, 3rem)/1.1 var(--serif); letter-spacing: -0.015em; margin: 8px 0 12px; color: var(--forest-deep); }
.doc .updated { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font: 600 1.45rem/1.25 var(--serif); margin: 48px 0 12px; color: var(--forest); }
.doc h3 { font: 700 1.05rem/1.35 var(--sans); margin: 28px 0 8px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 8px; }
.doc .summary { background: var(--cream); border-radius: 20px; padding: 22px 26px; margin-bottom: 8px; }
.doc .summary p { margin: 0 0 8px; }
.doc .summary p:last-child { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.97rem; margin: 12px 0 8px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; }
.table-scroll { overflow-x: auto; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: 18px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.95rem; }
.mail { display: inline-block; background: var(--forest); color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 12px; font-weight: 700; }
.mail:hover { background: var(--forest-deep); color: #fff; }
.doc details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.doc summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.doc details p { margin: 10px 0 0; color: var(--ink); }

/* ---- small screens */
@media (max-width: 860px) {
  .hero .wrap, .promise .wrap, .plans .wrap { grid-template-columns: 1fr; gap: 40px; }
  .basket { margin: 22px -8px -36px 24px; }
  .does dl { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-bottom: 72px; }
}
@media (max-width: 560px) {
  .nav { display: none; }
  .week { padding: 22px 20px 20px; border-radius: 22px; }
  .basket { margin: 18px 0 -28px 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
