/* Tare — tare.cooking
   One stylesheet for the whole site. No JavaScript anywhere on this site.
   No cookies, and nothing is ever loaded from another company's servers.

   ⚠️⚠️ THE ONE FONT ON THIS SITE IS SELF-HOSTED, AND IT MUST STAY THAT WAY.
   fonts/fraunces-600.woff2 is served from tare.cooking itself. NEVER replace it
   with a <link> to fonts.googleapis.com: hotlinking Google Fonts transmits the
   visitor's IP address to Google, LG München I held that this breaches the GDPR
   (20 Jan 2022, 3 O 17493/20), and Germany's Abmahnung industry hunts for it.
   Self-hosting is what the SIL Open Font License permits and what keeps the
   privacy policy's "nothing is loaded from anyone else" sentence true.
   The licence travels with the font: fonts/OFL.txt.
   ⚠️ _headers must keep `font-src 'self'` in its Content-Security-Policy or the
   font is silently blocked and the site falls back to Georgia. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paper and ink. The neutrals lean olive-green, not grey — they are mixed
     towards the brand colour so the page reads as one material. */
  --bg:        #F7F4ED;
  --bg-raised: #FFFCF6;
  --bg-sunken: #EDE9DE;
  --ink:       #15180F;
  --ink-soft:  #4A5045;
  --ink-faint: #6F7568;

  --green:      #2F6B4F;  /* the app's brand green, unchanged */
  --green-ink:  #245740;  /* text on paper */
  --green-deep: #1C4433;  /* large fills */
  --green-pale: #E4EDE4;

  --rule:      #DBD5C6;
  --rule-soft: #E8E3D6;
  --warn-bg:   #FBF3E4;
  --warn-rule: #E0C88E;
  --flag:      #A8442F;   /* the "this is wrong" red — used once, on purpose */

  --on-green:      #F4F1E7;
  --on-green-soft: #C3D6C7;
  --on-mark:       #FFFCF6;   /* the utensils inside the green tile */

  --display: "Fraunces", Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 44rem;   /* the reading column */
  --wide: 46rem;      /* the document shell */
  --page: 72rem;      /* the landing-page shell */

  --shadow: 0 1px 2px rgba(21, 24, 15, 0.04), 0 8px 24px -12px rgba(21, 24, 15, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #121410;
    --bg-raised: #1B1E17;
    --bg-sunken: #0D0F0B;
    --ink:       #ECEAE0;
    --ink-soft:  #B2B7AB;
    --ink-faint: #878D80;

    --green:      #8CC9A6;
    --green-ink:  #A8DCBE;
    --green-deep: #163A2C;
    --green-pale: #1E2A21;

    --rule:      #32372E;
    --rule-soft: #242821;
    --warn-bg:   #24200F;
    --warn-rule: #5C4F26;
    --flag:      #E08B72;

    --on-green:      #EDF3EC;
    --on-green-soft: #A9C4B0;
    --on-mark:       #121410;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  border-top: 3px solid var(--green);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.375rem;
}

/* The landing page opens the shell up. Document pages keep the narrow one, so
   nothing about the legal pages' layout changes. */
.wrap--wide { max-width: var(--page); }

main { padding: 0.5rem 0 5rem; }

main > .wrap > * { max-width: var(--measure); }
main > .wrap > .full,
main > .wrap > .routes,
main > .wrap > table,
main > .wrap > .tablewrap { max-width: none; }
main > .wrap--wide > * { max-width: none; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 0 0 6px 0;
  font-weight: 600;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */

.site-head { padding: 1.5rem 0 0.5rem; }

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover .brand-name { color: var(--green-ink); }

.brand-mark {
  width: 2.125rem;
  height: 2.125rem;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--green);
  border-radius: 9px;
  color: var(--on-mark);
}

.brand-mark svg { width: 1.2rem; height: 1.2rem; }

.brand-name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
}

/* A small honest label of where the project is. Home page only. */
.head-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
}

/* ---------- Type ---------- */

h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5.2vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  text-wrap: balance;
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.2vw, 1.75rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 3rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-soft);
  text-wrap: balance;
}

h2.tight { border-top: 0; padding-top: 0; margin-top: 2.25rem; }

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  margin: 1.75rem 0 0.4rem;
}

p { margin: 0 0 1.05rem; }

.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.updated {
  font-size: 0.875rem;
  color: var(--ink-faint);
  margin: -0.35rem 0 2rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin: 0 0 0.9rem;
}

a { color: var(--green-ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

strong { font-weight: 650; }

ul, ol { margin: 0 0 1.05rem; padding-left: 1.3rem; }
li { margin-bottom: 0.45rem; }
li > ul, li > ol { margin-top: 0.45rem; }

code, .mono {
  font-family: var(--mono);
  font-size: 0.9em;
}

/* ---------- Landing: the hero ---------- */

.hero {
  display: grid;
  gap: 2.5rem 3.5rem;
  align-items: start;
  padding: 2.5rem 0 0.5rem;
}

/* Grid items default to a min-width of their content, which lets a wide child
   push the whole column past the screen. min-width:0 lets them shrink. */
.hero > * { min-width: 0; }

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 3rem 3.5rem;
    padding: 3.25rem 0 1rem;
    align-items: center;
  }
}

.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 3.75rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero .lede {
  max-width: 34rem;
  font-size: 1.1875rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.9375rem;
  color: var(--ink-faint);
  margin: 0;
  max-width: 32rem;
}

/* ---------- Landing: the scaling demonstration ---------- */

.demo {
  /* ⚠️ margin:0 is load-bearing: a <figure> carries a 40px side margin from the
     browser's own stylesheet, which widened the hero grid past the phone screen
     and cut every line of text off at the right edge. */
  margin: 0;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem 1.5rem;
}

@media (min-width: 34rem) { .demo { padding: 2rem 2rem 1.85rem; } }

.demo-head {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.25rem;
}

.demo-row { margin: 0 0 1.15rem; }

.demo-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.demo-amount {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  display: block;
}

.demo-row--bad .demo-amount { color: var(--ink-faint); }
.demo-row--bad .demo-label { color: var(--flag); }
.demo-row--good .demo-amount { color: var(--green-ink); }

.demo-rule {
  border: 0;
  border-top: 1px solid var(--rule-soft);
  margin: 0 0 1.15rem;
}

.demo-foot {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* The rungs Tare will actually land on — the app's own ladder, printed. */
.ladder {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
}

.ladder li {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--green-ink);
  background: var(--green-pale);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
}

.ladder-note {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin: 0.6rem 0 0;
}

/* ---------- Landing: features ---------- */

.section-head {
  max-width: var(--measure);
  margin: 3.5rem 0 2rem;
}

.section-head h2 {
  border-top: 0;
  padding-top: 0;
  margin: 0 0 0.5rem;
}

.section-head p { margin: 0; color: var(--ink-soft); }

.features {
  display: grid;
  gap: 2rem 2.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  max-width: none;
}

@media (min-width: 40rem) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .features { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 3rem; } }

.features li { margin: 0; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--green-pale);
  color: var(--green-ink);
  margin-bottom: 0.85rem;
}

.feature-icon svg { width: 1.3rem; height: 1.3rem; }

.features h3 { margin: 0 0 0.35rem; }
.features p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Landing: the pledge band ---------- */

.pledge {
  background: var(--green-deep);
  color: var(--on-green);
  margin: 4rem 0 0;
  padding: 3.5rem 0;
}

.pledge h2 {
  font-family: var(--display);
  color: var(--on-green);
  border-top: 0;
  padding-top: 0;
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  letter-spacing: -0.02em;
  max-width: 30ch;
  text-wrap: balance;
}

.pledge-lede {
  color: var(--on-green-soft);
  font-size: 1.0625rem;
  max-width: 42rem;
  margin: 0 0 2.5rem;
}

.pledge-list {
  display: grid;
  gap: 1.75rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 46rem) { .pledge-list { grid-template-columns: repeat(3, 1fr); } }

.pledge-list li { margin: 0; }

.pledge-list h3 {
  margin: 0 0 0.3rem;
  color: var(--on-green);
  font-size: 1rem;
  letter-spacing: 0.005em;
}

.pledge-list p {
  margin: 0;
  color: var(--on-green-soft);
  font-size: 0.9688rem;
  line-height: 1.55;
}

/* The tagline — "Only what counts." — decided 4 Sep 2026 and used identically
   in the app's About card and on the Play listing. It closes the promise band
   because that is the promise it names. ⚠️ Never beside the wordmark: the
   header and footer word stay bare (Tim's decision, CLAUDE.md §4). */
.pledge-close {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--on-green);
  margin: 2.75rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- Landing: status ---------- */

.status {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.75rem 1.75rem 1.6rem;
  margin: 4rem 0 0;
  max-width: none;
}

.status > :last-child { margin-bottom: 0; }

.status h2 {
  margin: 0 0 0.6rem;
  border: 0;
  padding: 0;
  font-size: 1.35rem;
}

.status p { max-width: 42rem; }

.status-mail {
  font-weight: 650;
  font-size: 1.0625rem;
}

/* ---------- Route cards (delete-account) ---------- */

.routes {
  display: grid;
  gap: 1rem;
  margin: 0 0 2rem;
}

@media (min-width: 38rem) {
  .routes { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

.route {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.4rem 1.4rem 1.5rem;
}

.route h2 {
  border-top: 0;
  padding-top: 0;
  margin: 0.5rem 0 0.5rem;
  font-size: 1.25rem;
}

.route p:last-child, .route ol:last-child, .route ul:last-child { margin-bottom: 0; }

.route-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-ink);
  background: var(--green-pale);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.route ol { padding-left: 1.15rem; }

.mailto {
  display: inline-block;
  font-weight: 650;
  font-size: 1.0625rem;
  word-break: break-word;
}

/* ---------- Callouts ---------- */

.callout {
  background: var(--bg-sunken);
  border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0;
  padding: 1.05rem 1.2rem;
  margin: 0 0 2rem;
}

.callout.warn {
  background: var(--warn-bg);
  border-left-color: var(--warn-rule);
}

.callout > :last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; }

.callout h2 {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  border-top: 0;
  padding-top: 0;
  margin: 0 0 0.4rem;
}

/* ---------- Keeps / removes lists ---------- */

.ledger { margin: 0 0 1.5rem; padding: 0; list-style: none; }

.ledger li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.7rem;
}

.ledger li::before {
  position: absolute;
  left: 0;
  top: -0.02em;
  font-weight: 700;
  font-size: 1.05em;
}

.ledger.gone li::before { content: "\2715"; color: var(--flag); }
.ledger.stays li::before { content: "\2713"; color: var(--green-ink); }

/* ---------- Tables ---------- */

.tablewrap { overflow-x: auto; margin: 0 0 1.75rem; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.9688rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.85rem 0.65rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

th {
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

td:first-child { font-weight: 600; white-space: nowrap; padding-right: 1.5rem; }

/* A table needs its own 30rem plus the wrap's 2.75rem of gutters, so below 32.75rem
   it cannot fit the screen at all. It does not merely need dragging sideways: because
   the label column above never wraps, it takes its widest label's full width and the
   detail column is squeezed on whatever is left, which on a phone pushed single rows
   past 1,600px of mostly empty height with their text off the right edge.

   So below 34rem a row stops being a row and becomes a block: the label on its own
   line, its detail directly beneath, full width, nothing to scroll. The thead is only
   VISUALLY hidden, never removed, because a screen reader still announces the column
   names and a stacked row already puts every label beside its own value.

   The rest of this file is mobile-first; this one query is written the other way round
   on purpose, so that every table rule above it is left exactly as it was. */
@media (max-width: 33.9375rem) {
  .tablewrap { overflow-x: visible; }

  table { min-width: 0; }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  tbody tr {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--rule-soft);
  }

  tbody tr:last-child { border-bottom: 0; }

  tbody td {
    display: block;
    padding: 0;
    border-bottom: 0;
  }

  tbody td:first-child {
    white-space: normal;
    padding-right: 0;
    margin-bottom: 0.2rem;
    color: var(--ink);
  }
}

/* ---------- Footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--bg-sunken);
  padding: 3rem 0 3.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-top: 0;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.foot-word {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}

/* The name means something. This is the only place the site says so. */
.foot-gloss {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-faint);
  font-size: 0.9375rem;
  margin: 0;
}

.foot-links {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.foot-links a { font-weight: 600; }

.foot-note { margin: 0; max-width: var(--measure); }
.foot-note + .foot-note { margin-top: 0.6rem; }

/* ---------- Print ---------- */

@media print {
  body { border-top: 0; background: #fff; color: #000; }
  .site-foot, .skip, .head-tag { border: 0; background: #fff; }
  a { color: #000; }
  .route, .callout, .status, .demo { border: 1px solid #999; background: #fff; box-shadow: none; }
  .pledge { background: #fff; color: #000; padding: 1rem 0; }
  .pledge h2, .pledge-list h3, .pledge-close { color: #000; }
  .pledge-close { border-top-color: #999; }
  .pledge-lede, .pledge-list p { color: #333; }
}
