/* getmealcents.com — one stylesheet, app palette (src/design/tokens.ts), no third-party requests. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/BricolageGrotesque_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #fff8ee;
  --surface: #ffffff;
  --sunken: #f4eadb;
  --border: #e8dcc8;
  --ink: #1c1a17;
  --muted: #6b645a;
  --green: #1f7a4d;
  --green-tint: #e3f1e8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1c1a17;
    --sunken: #24211d;
    --border: #2e2a25;
    --ink: #fff8ee;
    --muted: #b5ac9e;
    --green: #4cc08a;
    --green-tint: #173826;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
}
main, header.site, footer.site { max-width: 720px; margin: 0 auto; padding: 0 20px; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
td:first-child { font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  td { border: 0; padding: 2px 0; }
  td:nth-child(3) { color: var(--muted); font-size: 14px; }
}
.toc { font-size: 15px; color: var(--muted); line-height: 2; margin: 8px 0 8px; }
ol li, ul li { margin: 4px 0; }
h2[id], h3[id] { scroll-margin-top: 16px; }

header.site { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 8px; }
header.site a.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
header.site a.brand img { width: 32px; height: 32px; border-radius: 8px; }
header.site nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 15px; }
header.site nav a:hover, header.site nav a[aria-current='page'] { color: var(--green); }

h1, h2 { font-family: 'Bricolage Grotesque', -apple-system, sans-serif; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 8vw, 56px); margin: 40px 0 12px; }
h2 { font-size: 24px; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, li { color: var(--ink); }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 24px; }
.muted { color: var(--muted); }
a { color: var(--green); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px 22px; margin: 16px 0; }
.card p:first-child, .card h3:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.pill { display: inline-block; background: var(--green-tint); color: var(--green); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 15px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); margin: 24px 0; }
.grid .card { margin: 0; }
.grid h3 { margin-top: 0; }

.hero { display: flex; align-items: center; gap: 20px; margin-top: 32px; }
.hero img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12); }
.hero h1 { margin: 0; }
h1, h2, h3, p, li { overflow-wrap: break-word; }
@media (max-width: 560px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero img { width: 72px; height: 72px; border-radius: 18px; }
  header.site nav a { margin-left: 12px; }
}

footer.site { padding-top: 40px; padding-bottom: 48px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); }
