/* Fridgeside — fridgeside.com
   Static, no build step, matching the house pattern. The palette is the app's own
   daytime board (BoardTheme.day) so the site and the product look like one thing. */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1c1a17;
  --ink-soft: #706b64;
  --rule: #e6e0d6;
  --accent: #2a9959;
  --accent-ink: #17512f;
  --star: #ee9e21;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --surface: #161617;
    --ink: #ece7de;
    --ink-soft: #9a938a;
    --rule: #2a2a2c;
    --accent: #45b273;
    --accent-ink: #cdeedc;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
        "Segoe UI", system-ui, sans-serif;
}

/* Header */
.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.25rem;
  max-width: 62rem;
  margin: 0 auto;
}

.wordmark {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site nav a { color: var(--ink-soft); text-decoration: none; }
.site nav a:hover { color: var(--ink); text-decoration: underline; }

/* Layout */
main {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

section { padding: 2.4rem 0; border-top: 1px solid var(--rule); }
section:first-child { border-top: 0; padding-top: 1rem; }

h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.35rem;
}

p { max-width: var(--measure); margin: 0 0 1rem; }

a { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { a { color: var(--accent); } }

.lead { font-size: 1.2rem; max-width: 38rem; }

.sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: -0.3rem;
}

.fineprint { color: var(--ink-soft); font-size: 0.92rem; }

/* Call to action */
.cta { margin: 1.6rem 0 0.6rem; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover { filter: brightness(1.06); }

/* The price anchor — the argument, without naming anybody */
.anchor-table {
  margin-top: 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  max-width: 40rem;
}

.anchor-table > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--rule);
}

.anchor-table > div:first-child { border-top: 0; }
.anchor-table > div > span:last-child { color: var(--ink-soft); white-space: nowrap; }
.anchor-table .ours { font-weight: 700; }

/* On a narrow phone the price is wider than the column it's fighting for, and a
   nowrap price inside an overflow:hidden card silently loses its last words —
   "$180–600 + a yearly plan" clipped to "a yearly plar". The anchor IS the
   argument, so it stacks rather than truncates. */
@media (max-width: 26rem) {
  .anchor-table > div {
    display: block;
  }
  .anchor-table > div > span:last-child {
    display: block;
    white-space: normal;
    margin-top: 0.15rem;
  }
}
.anchor-table .ours > span:last-child { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) {
  .anchor-table .ours > span:last-child { color: var(--accent); }
}

/* Three panes */
.panes {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.panes > div {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
}

.panes h3 { margin-top: 0; }
.panes p { margin-bottom: 0; }

/* Long-form guide pages */
.guide ol, .guide ul { max-width: var(--measure); padding-left: 1.3rem; }
.guide li { margin-bottom: 0.5rem; }

.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--star);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  max-width: var(--measure);
  margin: 1.2rem 0;
}

.callout p:last-child { margin-bottom: 0; }

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 1.6rem 1.25rem 3rem;
  max-width: 62rem;
  margin: 0 auto;
}

footer p { margin: 0 0 0.4rem; }
footer a { color: var(--ink-soft); }
