/* Don't Be Fat web pages. White page, black type, one visual: the red/green rubber stamp from the app.
   No shadows, gradients or blur. Green and red appear only on stamps. */
@font-face { font-family: "Inter Tight"; src: url("/fonts/InterTight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #FFFFFF; --ink: #111111; --muted: #5C5C5C; --hairline: #D6D6D3;
  --go: #138A36; --no: #D7261E;
  --sans: "Inter Tight", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --spring: cubic-bezier(0.3, 1.25, 0.5, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 40px; } }
.caps { font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

header.top { border-bottom: 1px solid var(--hairline); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { font-weight: 900; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; text-transform: uppercase; }
.tools { display: flex; align-items: center; gap: 16px; }
header nav { display: flex; gap: 16px; }
header nav a { text-decoration: none; }
header nav a:hover, header nav a[aria-current] { text-decoration: underline; }
.snd { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--ink); cursor: pointer; font: 700 12px/1 var(--sans); letter-spacing: 0.14em; -webkit-tap-highlight-color: transparent; }
.snd svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.snd svg .fill { fill: currentColor; stroke: none; }
.snd[aria-pressed="false"] .on, .snd[aria-pressed="true"] .off { display: none; }
@media (max-width: 480px) { header nav { display: none; } }

/* Hero: the stamp on a plain sheet, tap to see the next meal. */
.hero .wrap { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 44px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 64px; padding-bottom: 72px; } }
h1 { font-weight: 900; font-size: clamp(44px, 6.4vw, 76px); line-height: 0.95; letter-spacing: -0.03em; margin: 0 0 20px; text-transform: uppercase; }
.lede { font-size: 20px; line-height: 1.45; max-width: 30em; margin: 0 0 26px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 8px 20px; background: var(--ink); color: var(--paper); border-radius: 10px; }
.store b { font-weight: 600; font-size: 18px; line-height: 1.2; }
.store small { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #A8A8A8; }

.sheet { position: relative; width: 100%; padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); text-align: left; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sheet:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.sheet > span { display: block; }
.sheet .meal { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.sheet .meal b { font-weight: 600; }
.sheet .pad { display: grid; place-items: center; min-height: 250px; padding: 28px 12px; overflow: hidden; }
@media (min-width: 900px) { .sheet .pad { min-height: 320px; } }
.sheet .said { padding: 14px 16px 16px; border-top: 1px solid var(--hairline); min-height: 84px; }
.sheet .said span { display: block; color: var(--muted); font-size: 14px; }
.sheet .said q { font-size: 19px; font-weight: 600; quotes: "\201C" "\201D"; }
.sheet .hint { position: absolute; right: 12px; top: -26px; color: var(--muted); }

.stamp { display: inline-block; padding: 0.12em 0.32em 0.08em; border: 0.12em solid currentColor; border-radius: 0.14em;
  font-weight: 900; font-size: clamp(40px, 10vw, 78px); line-height: 0.95; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap;
  transform: rotate(-8deg); filter: url(#ink); }
.stamp.go { color: var(--go); }
.stamp.no { color: var(--no); }
.stamp.small { font-size: 20px; border-width: 3px; margin: 6px 4px; vertical-align: middle; transform: rotate(-4deg); }
.stamp.slam { animation: slam .42s var(--spring) both; }
@keyframes slam { 0% { transform: rotate(-14deg) scale(1.9); opacity: 0; } 35% { opacity: 1; } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }

/* Numbered sections with hairline rows. */
section.part { border-top: 1px solid var(--hairline); }
section.part .wrap { display: grid; gap: 8px 40px; padding-top: 36px; padding-bottom: 40px; }
@media (min-width: 880px) { section.part .wrap { grid-template-columns: 240px 1fr; } }
section.part h2 { font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -0.015em; margin: 6px 0 0; }
.body { max-width: 40em; }
.body p { margin: 0 0 14px; }
.body h3 { font-weight: 700; font-size: 19px; margin: 22px 0 6px; }
.body h3:first-child { margin-top: 6px; }
ol.steps, ul.rows { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--hairline); counter-reset: s; }
ol.steps li, ul.rows li { padding: 12px 0 12px 36px; border-bottom: 1px solid var(--hairline); position: relative; }
ol.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 4px; font-weight: 800; }
ul.rows li::before { content: "\2013"; position: absolute; left: 6px; font-weight: 600; }
.packs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.packs li { display: grid; grid-template-columns: 170px 1fr; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.packs b { font-weight: 700; }
.packs q { quotes: "\201C" "\201D"; }
@media (max-width: 560px) { .packs li { grid-template-columns: 1fr; } }

table.plans { width: 100%; border-collapse: collapse; margin: 0 0 14px; border-top: 1px solid var(--hairline); }
table.plans td { padding: 12px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
table.plans td:first-child { font-weight: 700; width: 26%; padding-right: 12px; }
table.plans td:nth-child(2) { white-space: nowrap; padding-right: 12px; font-variant-numeric: tabular-nums; }
table.plans td:last-child { color: var(--muted); }
@media (max-width: 560px) {
  table.plans tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--hairline); }
  table.plans td { border-bottom: 0; width: auto !important; }
  table.plans td:last-child { grid-column: 1 / -1; padding-top: 0; font-size: 15px; }
}
.small { color: var(--muted); font-size: 15px; }

/* Legal pages */
.doc main.wrap { max-width: 780px; }
.doc-head { padding: 40px 0 26px; border-bottom: 1px solid var(--hairline); margin-bottom: 8px; }
.doc-head h1 { font-size: clamp(38px, 7vw, 60px); margin: 14px 0 12px; }
.doc-head p { margin: 0; color: var(--muted); }
.doc h2 { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; margin: 34px 0 8px; }
.doc p, .doc li { max-width: 40em; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

footer { border-top: 1px solid var(--hairline); padding: 28px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer a { text-decoration: none; } footer a:hover { text-decoration: underline; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.sheet, .store { transition: transform .3s var(--spring); }
.sheet:active, .store:active { transform: scale(.985); transition: transform .1s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .stamp.slam { animation: none; }
  .sheet:active, .store:active { transform: none; }
}
.defs, .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
