/* mealplan-md site. A market-stall look: pine green, tomato, lettuce, soft serif headlines.
   Keep the focus ring, the skip link and the 3-width check. */
:root {
  --paper: #f7f8f2;
  --panel: #eaf0e4;
  --ink: #0e2b21;
  --muted: #4d6258;
  --line: #cfdac9;
  --pine: #0e2b21;
  --pine-2: #17402f;
  --tomato: #e8392a;
  --tomato-ink: #ffffff;
  --lettuce: #c9f26b;
  --display: "Fraunces", "Iowan Old Style", "Charter", "Palatino Linotype", Georgia, serif;
  --text: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tomato); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 3px; }
.dark :focus-visible { outline-color: var(--lettuce); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; font-variation-settings: "SOFT" 100, "WONK" 1; }
h2 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.02em; }
h3 { font-size: 22px; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: .86em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--lettuce); color: var(--pine); padding: 8px 14px; z-index: 10; font-weight: 700; }
.skip:focus { top: 12px; }

/* Top bar, on the dark hero */
.top { background: var(--pine); color: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-weight: 500; font-size: 16px; color: #fff; text-decoration: none; }
.wordmark img { width: 32px; height: 32px; }
.nav { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: #dfe9d9; text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--lettuce); text-decoration: underline; }

section { padding: clamp(64px, 9vw, 112px) 0; }
.section-lede { color: var(--muted); margin-top: 14px; max-width: 58ch; font-size: 19px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--tomato); margin-bottom: 14px; }

/* Hero */
.dark { background: var(--pine); color: #fff; }
.hero { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(72px, 9vw, 120px); overflow-x: clip; position: relative; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 18px; background: repeating-linear-gradient(90deg, var(--tomato) 0 22px, var(--lettuce) 22px 44px, var(--paper) 44px 66px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.chip { display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; background: var(--lettuce); color: var(--pine); padding: 6px 12px; border-radius: 99px; font-weight: 500; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); letter-spacing: -.025em; margin-top: 22px; color: #fff; }
.hero h1 em { font-style: italic; color: var(--lettuce); }
.lede { font-size: 20px; color: #cfdcc9; margin-top: 22px; max-width: 50ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-block; background: var(--tomato); color: var(--tomato-ink); text-decoration: none; padding: 14px 24px; border-radius: 99px; font-weight: 700; font-size: 16px; border: 2px solid var(--tomato); }
.btn:hover { background: #ff5442; border-color: #ff5442; }
.btn-quiet { background: transparent; color: #fff; border-color: #5f7d6e; }
.btn-quiet:hover { background: transparent; border-color: var(--lettuce); color: var(--lettuce); }
.one-liner { margin-top: 26px; }
.one-liner code { display: inline-block; background: var(--pine-2); border: 1px solid #2d5744; color: #e9f2e3; padding: 9px 14px; border-radius: 8px; overflow-wrap: anywhere; }

.hero-art { position: relative; padding: 0 0 8% 0; }
.hero-art .plan { display: block; transform: rotate(-2deg); box-shadow: 0 3px 6px rgba(0,0,0,.2), 0 34px 70px rgba(0,0,0,.45); border-radius: 4px; background: #fff; }
.hero-art .phone { position: absolute; right: -2%; bottom: 0; width: 25%; transform: rotate(4deg); box-shadow: 0 3px 6px rgba(0,0,0,.25), 0 26px 50px rgba(0,0,0,.5); border-radius: 18px; border: 6px solid #0a1b15; background: #fff; }
.hero-art .list { position: absolute; left: -3%; bottom: -3%; width: 20%; transform: rotate(-5deg); box-shadow: 0 3px 6px rgba(0,0,0,.25), 0 22px 44px rgba(0,0,0,.45); border-radius: 3px; }
.magnet { position: absolute; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 3px 6px rgba(0,0,0,.35); z-index: 2; }
.magnet.m1 { background: var(--tomato); top: -4px; left: 14%; }
.magnet.m2 { background: var(--lettuce); top: 0; right: 10%; }

/* Three outputs */
.outputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 52px; align-items: start; }
.outputs figure { margin: 0; }
.outputs .frame { background: var(--panel); border-radius: 16px; padding: 22px; display: grid; place-items: center; aspect-ratio: 1 / 1.08; }
.outputs img { box-shadow: 0 2px 4px rgba(14,43,33,.12), 0 18px 36px rgba(14,43,33,.18); background: #fff; max-height: 100%; width: auto; }
.outputs .wide img { width: 100%; max-height: none; }
.outputs figcaption { margin-top: 18px; color: var(--muted); font-size: 16px; }
.outputs figcaption h3 { color: var(--ink); margin-bottom: 6px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 52px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-size: 56px; line-height: 1; color: var(--tomato); font-weight: 800; margin-bottom: 10px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 17px; }
.ask { margin: 40px 0 0; font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; max-width: 30ch; border-left: 5px solid var(--lettuce); padding-left: 22px; font-style: italic; }

/* Unit rules */
.rules { background: var(--pine); color: #fff; }
.rules h2 { color: #fff; }
.rules .section-lede { color: #cfdcc9; }
.rules .kicker { color: var(--lettuce); }
.sums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 44px 0 0; padding: 0; list-style: none; }
.sums li { background: var(--pine-2); border: 1px solid #2d5744; border-radius: 14px; padding: 20px 22px; display: grid; gap: 8px; }
.sums .in { font-family: var(--mono); color: #cfdcc9; font-size: 15px; overflow-wrap: anywhere; }
.sums .out { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--lettuce); overflow-wrap: anywhere; }
.sums .why { font-size: 15px; color: #a9c2b3; }

/* Themes */
.band { background: var(--panel); }
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; margin-top: 52px; }
.themes figure { margin: 0; }
.themes a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 4px rgba(14,43,33,.12), 0 16px 32px rgba(14,43,33,.16); transition: transform .2s; }
.themes a:hover { transform: translateY(-4px); }
.themes figcaption { margin-top: 14px; color: var(--muted); font-size: 16px; }
.themes figcaption b { font-family: var(--mono); color: var(--ink); margin-right: 8px; font-weight: 500; }

/* Examples */
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; margin: 52px 0 0; padding: 0; list-style: none; }
.examples li { display: grid; gap: 14px; align-content: start; }
.examples img { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 24px rgba(14,43,33,.1); }
.examples h3 { font-size: 20px; }
.examples p { color: var(--muted); font-size: 15px; margin-top: -8px; }
.examples .links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; font-weight: 600; margin-top: -4px; }

/* Install */
.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.install h3 { font-size: 20px; }
.install pre { margin: 14px 0 0; background: var(--pine); color: #e9f2e3; padding: 18px; border-radius: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.note { color: var(--muted); margin-top: 24px; font-size: 16px; }

.foot { background: var(--pine); color: #cfdcc9; padding: 48px 0 64px; font-size: 16px; }
.foot a { color: var(--lettuce); }
.foot-row { display: grid; gap: 12px; }
.foot .wordmark { color: #fff; }

.lost { min-height: 60vh; display: flex; align-items: center; }
.lost h1 { font-size: clamp(36px, 5vw, 56px); margin-top: 12px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .outputs, .steps, .install { grid-template-columns: minmax(0, 1fr); }
  .outputs .frame { aspect-ratio: auto; }
  .outputs img { max-height: 520px; }
  .themes, .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sums { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .nav { gap: 16px; }
  .themes, .examples { grid-template-columns: minmax(0, 1fr); }
  .hero-art .phone { width: 30%; right: 0; }
  .hero-art .list { display: none; }
  .ask { font-size: 22px; }
}
