/* Pantry Time — shared tokens and base styles (landing page + recipe page).
   No frameworks, no external fonts: the system font stack only. */
:root {
  color-scheme: light dark;
  --bg: #fbf8f1;
  --bg-2: #f3eee2;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e7e1d4;
  --accent: #2f7d4f;
  --accent-soft: #e3f1e7;
  --accent-text: #ffffff;
  --danger: #b3261e;
  /* brand palette, from the app icon's jar of layered ingredients */
  --cream: #f4e3c1;
  --leaf: #7db356;
  --honey: #f2b632;
  --tomato: #db4a2f;
  --cocoa: #8b5a3c;
  --copper: #c9773b;
  --glass: #8fbdb4;
  --shadow: 0 1px 2px rgba(29, 29, 31, .06), 0 12px 32px rgba(29, 29, 31, .08);
  --radius: 18px;
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141512;
    --bg-2: #1b1d19;
    --card: #1f221d;
    --text: #f3f2ee;
    --muted: #a7a69f;
    --line: #34372f;
    --accent: #6cc48c;
    --accent-soft: #1f3327;
    --accent-text: #0e1a12;
    --danger: #f2b8b5;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* Author styles (display: block on images, flex on rows) would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.01em; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--card); color: var(--text); padding: 10px 14px; border-radius: 10px; z-index: 100; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

/* Inline glyph sprite (kept out of layout without display:none, so <use> always resolves) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon-lg { margin: 0 auto 18px; border-radius: 22%; }
.page-center { max-width: 560px; text-align: center; padding: 64px 0; }
.page-center h1 { font-size: 1.8rem; }
.page-center p { margin: 12px 0 24px; }

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }

/* Buttons */
.btn {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; font-weight: 600; padding: 12px 20px; border-radius: 999px; cursor: pointer;
  text-decoration: none; line-height: 1.2; min-height: 44px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.btn.large { padding: 15px 26px; font-size: 1.05rem; }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* Site footer (shared) */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0 48px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer a { color: inherit; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
