/* ============================================================
   Three Good Bites - shared stylesheet
   Aesthetic: modern & premium. Warm cream paper, deep pine green,
   one warm amber accent used sparingly. Calm, editorial, food-adjacent.
   Anchor colors: Pine #20392E  +  Cream #F7F4ED  +  Amber #C98A45.
   Display face: Fraunces.  Body/UI: Inter.
   ============================================================ */

/* ---- 1. Design tokens ------------------------------------------ */
:root {
  --cream:       #F7F4ED;
  --cream-deep:  #EFEADD;
  --sage-wash:   #E8EEE4;
  --white:       #FFFDF9;

  --pine:        #20392E;
  --pine-deep:   #15271E;
  --pine-mid:    #3C5A49;
  --sage:        #6F8B74;
  --sage-soft:   #C4D4C4;

  --amber:       #C98A45;
  --amber-deep:  #AC712E;
  --amber-soft:  #F0DCC0;

  --ink:        #1B231D;
  --ink-soft:   #4C584E;
  --ink-faint:  #8A938A;
  --line:       #E4DDCF;
  --line-sage:  #D5E0D4;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw-wide: 1140px;
  --maxw-read: 680px;

  --radius:     18px;
  --radius-sm:  11px;
  --radius-pill: 999px;
  --shadow:     0 20px 46px rgba(27, 47, 37, 0.13);
  --shadow-sm:  0 10px 26px rgba(27, 47, 37, 0.10);
  --shadow-xs:  0 3px 10px rgba(27, 47, 37, 0.07);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- 2. Reset / base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-underline-offset: 3px; }
svg { display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }
::selection { background: var(--amber-soft); color: var(--pine-deep); }

/* ---- 3. Typography --------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.1rem); font-weight: 560; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.22rem; font-weight: 560; letter-spacing: 0; }
p  { margin: 0 0 1.1em; }
strong { font-weight: 600; }
.lead { font-size: 1.24rem; line-height: 1.6; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--amber-deep);
}
small, .fine { font-size: .82rem; line-height: 1.55; color: var(--ink-faint); }

/* ---- 4. Layout shells ------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw-wide); margin: 0 auto; padding: 0 26px; }
.read { width: 100%; max-width: var(--maxw-read); margin: 0 auto; padding: 0 26px; }
.section { padding: 84px 0; }
.section-soft { background: var(--sage-wash); }
.section-paper { background: var(--cream-deep); }
.section-tight { padding: 52px 0; }
[id] { scroll-margin-top: 92px; }
.center { text-align: center; }
.section-head { max-width: 660px; margin: 0 auto 46px; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: .7rem; }
.section-head p { color: var(--ink-soft); margin: .7rem 0 0; font-size: 1.08rem; }

/* ---- 5. Buttons ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: .82rem 1.35rem; border-radius: var(--radius-pill);
  background: var(--pine); color: var(--cream); border: 1.5px solid var(--pine);
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { background: var(--pine-deep); border-color: var(--pine-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.04rem; }
.btn--ghost { background: transparent; color: var(--pine); border-color: rgba(32,57,46,.28); }
.btn--ghost:hover { background: rgba(32,57,46,.05); border-color: var(--pine); color: var(--pine); box-shadow: none; }
.btn--amber { background: var(--amber); border-color: var(--amber); color: #2A1B08; }
.btn--amber:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

/* ---- 6. Masthead / nav ----------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,237,.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.mark { display: inline-flex; align-items: center; gap: .62rem; text-decoration: none; color: var(--ink); }
.mark__icon { width: 30px; height: 30px; flex: none; }
.mark__word {
  font-family: var(--font-display); font-weight: 560; font-size: 1.28rem;
  letter-spacing: -0.01em; color: var(--ink); line-height: 1;
}
.mark__word em { font-style: italic; color: var(--amber-deep); }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a {
  font-family: var(--font-sans); font-size: .96rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none; transition: color .15s var(--ease);
}
.nav a:hover { color: var(--pine); }
.nav a.btn { color: var(--cream); }
.nav a.btn:hover { color: var(--cream); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--ink); cursor: pointer;
  width: 42px; height: 42px; padding: 8px; margin-right: -8px;
}
.nav-toggle svg { width: 100%; height: 100%; }

/* ---- 7. Hero --------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 78px 0 70px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 82% 18%, rgba(111,139,116,.18), transparent 60%),
              radial-gradient(50% 70% at 8% 92%, rgba(201,138,69,.10), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__eyebrow { margin-bottom: 1.1rem; }
.hero h1 { margin: 0 0 1.1rem; }
.hero h1 .hl { color: var(--pine); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .26em;
  background: var(--amber-soft); border-radius: 3px; z-index: -1;
}
.hero__sub { font-size: 1.26rem; line-height: 1.55; color: var(--ink-soft); max-width: 33ch; margin: 0 0 1.7rem; }
.hero__cta { margin-bottom: 1.5rem; }
.hero__note { display: flex; align-items: center; gap: .55rem; font-size: .94rem; color: var(--ink-soft); margin: 0; }
.hero__note svg { width: 19px; height: 19px; color: var(--pine); flex: none; }

.hero__art { position: relative; min-height: 380px; display: grid; place-items: center; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(6px); z-index: 0; }
.hero__blob--1 { width: 300px; height: 300px; background: radial-gradient(circle at 35% 30%, #DCE7D8, #C7D7C5); top: 4%; right: 2%; }
.hero__blob--2 { width: 168px; height: 168px; background: radial-gradient(circle at 40% 35%, #F3E0C6, #ECCfa6); bottom: 4%; left: 4%; opacity: .85; }
.plate { position: relative; z-index: 1; width: min(330px, 78%); aspect-ratio: 1; }
.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .45rem;
  background: var(--white); color: var(--pine); font-size: .86rem; font-weight: 600;
  padding: .56rem .85rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.chip svg { width: 17px; height: 17px; flex: none; }
.chip--1 { top: 12%; left: -4%; }
.chip--2 { bottom: 14%; right: -5%; }
.chip--3 { bottom: 38%; left: -8%; }

/* ---- 8. Pillars ------------------------------------------------ */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 24px; text-decoration: none; color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  display: flex; flex-direction: column;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sage-soft); }
.pillar__badge {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sage-wash); color: var(--pine); margin-bottom: 16px;
}
.pillar__badge svg { width: 26px; height: 26px; }
.pillar__name { font-size: 1.16rem; margin: 0 0 .3rem; }
.pillar__desc { font-size: .96rem; color: var(--ink-soft); margin: 0 0 1rem; line-height: 1.55; }
.pillar__link { margin-top: auto; font-size: .9rem; font-weight: 600; color: var(--amber-deep); }

/* ---- 9. Cards / grid ------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__thumb { position: relative; aspect-ratio: 16 / 10; display: block; }
.card__thumb .tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(247,244,237,.92); color: var(--pine); font-size: .72rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; padding: .34rem .6rem; border-radius: var(--radius-pill);
}
.card__body { padding: 20px 22px 24px; }
.card__kicker { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sage); margin-bottom: .5rem; }
.card__title { font-family: var(--font-display); font-weight: 560; font-size: 1.2rem; line-height: 1.25; color: var(--ink); }
.thumb-a { background: linear-gradient(135deg, #2C4A3A, #20392E); }
.thumb-b { background: linear-gradient(135deg, #8AA790, #6F8B74); }
.thumb-c { background: linear-gradient(135deg, #E7C79A, #C98A45); }
.thumb-d { background: linear-gradient(135deg, #DCE7D8, #B9CDB6); }
.thumb-e { background: linear-gradient(135deg, #EFEADD, #D9D0BC); }
.thumb-f { background: linear-gradient(135deg, #466954, #3C5A49); }

/* ---- 10. Mission band ------------------------------------------ */
.mission { background: var(--pine); color: var(--cream); padding: 80px 0; }
.mission .wrap { display: grid; grid-template-columns: 86px 1fr; gap: 32px; align-items: start; max-width: 980px; }
.mission__icon { width: 86px; height: 86px; }
.mission h2 { color: var(--cream); margin: 0 0 .8rem; }
.mission p { color: rgba(247,244,237,.84); font-size: 1.14rem; margin: 0 0 1em; }
.mission p:last-child { margin-bottom: 0; }
.mission strong { color: #fff; }
.mission a { color: var(--amber-soft); }

/* ---- 11. Newsletter -------------------------------------------- */
.signup .inner {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 52px 40px; box-shadow: var(--shadow-sm);
}
.signup .eyebrow { display: block; margin-bottom: .7rem; }
.signup h2 { margin: 0 0 .6rem; }
.signup p { color: var(--ink-soft); margin: 0 auto 1.6rem; max-width: 46ch; }
.signup form { display: flex; gap: .7rem; max-width: 460px; margin: 0 auto; }
.signup input {
  flex: 1; font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  padding: .85rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: var(--cream);
}
.signup input:focus { outline: none; border-color: var(--pine); }
.signup .fine { margin: 1.1rem 0 0; }

/* ---- 12. Footer ------------------------------------------------ */
.site-footer { background: var(--pine-deep); color: rgba(247,244,237,.72); padding: 64px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(247,244,237,.14); }
.site-footer .mark__word { color: var(--cream); }
.site-footer .mark__word em { color: var(--amber); }
.footer-blurb { margin: 1rem 0 0; max-width: 38ch; font-size: .96rem; color: rgba(247,244,237,.66); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer-col h4 { font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,244,237,.5); margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: rgba(247,244,237,.82); text-decoration: none; font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.legal-note { font-size: .8rem; line-height: 1.7; color: rgba(247,244,237,.5); margin: 28px 0 0; max-width: 92ch; }

/* ---- 13. Article base ------------------------------------------ */
.article { padding: 56px 0 72px; }
.article h1 { margin-bottom: .5rem; }
.article .meta { color: var(--ink-faint); font-size: .92rem; margin-bottom: 2rem; }
.article p, .article li { font-size: 1.12rem; line-height: 1.75; color: #28332A; }
.article h2 { margin: 2.2rem 0 .8rem; }
.article h3 { margin: 1.6rem 0 .5rem; }
.article img { border-radius: var(--radius); margin: 1.6rem 0; }
.article blockquote { margin: 1.6rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 3px solid var(--amber); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.4; color: var(--pine); }
.ph { background: var(--cream-deep); border: 1px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; color: var(--ink-faint); font-size: .85rem; aspect-ratio: 16/9; }
.ad-bar { background: var(--pine-deep); color: rgba(247,244,237,.8); text-align: center; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; padding: .5rem; }
.disclosure { background: var(--cream-deep); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .84rem; color: var(--ink-soft); margin: 1.4rem 0; }

/* article header + byline */
.article-header { text-align: left; padding-top: 10px; }
.byline { color: var(--ink-faint); font-size: .92rem; margin: .7rem 0 0; }
.byline strong { color: var(--ink-soft); }

/* hero / inline figure with graceful fallback (photo over a brand gradient) */
.figure-hero { max-width: var(--maxw-read); margin: 26px auto 10px; padding: 0 26px; }
.figure-hero .frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #2C4A3A, #20392E); box-shadow: var(--shadow-sm); }
.figure-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.img-credit { font-size: .72rem; color: var(--ink-faint); margin: .5rem 0 0; text-align: right; }

/* card thumbnails: photo fills, gradient class shows through if it fails */
.card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* pull quote */
.pull { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.35; color: var(--pine); border-left: 3px solid var(--amber); padding-left: 1.1rem; margin: 1.9rem 0; }

/* proof: numeric spec */
.spec { display: flex; gap: 14px; margin: 1.7rem 0; }
.spec > div { flex: 1; background: var(--sage-wash); border: 1px solid var(--line-sage); border-radius: var(--radius-sm); padding: 16px 12px; text-align: center; }
.spec .n { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--pine); line-height: 1; }
.spec .l { font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); margin-top: .35rem; }

/* proof: non-numeric chips */
.proof { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.6rem 0; padding: 0; list-style: none; }
.proof li { display: inline-flex; align-items: center; gap: .45rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .45rem .9rem; font-size: .9rem; font-weight: 600; color: var(--pine); }
.proof li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }

/* CTA block */
.cta-block { background: var(--cream-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; text-align: center; margin: 2rem 0; }
.cta-block .sub { margin: .85rem 0 0; }

/* listicle entries */
.entry { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); align-items: start; }
.entry__rank { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--sage); line-height: .9; }
.entry__tag { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-deep); margin: 0 0 .25rem; }
.entry__name { font-size: 1.3rem; margin: 0 0 .5rem; }
.entry--hero { background: var(--white); border: 1px solid var(--sage-soft); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin-top: 14px; }
.entry--hero .entry__rank { color: var(--amber); }

/* featured grid modifier: centered 2-up */
.grid--feature { grid-template-columns: repeat(2, 1fr); max-width: 940px; margin-left: auto; margin-right: auto; }

/* document pages (about / privacy / terms) */
.doc { padding: 52px 0 72px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .4rem; }
.doc h2 { font-size: 1.4rem; margin: 2rem 0 .6rem; }
.doc p, .doc li { font-size: 1.06rem; line-height: 1.7; color: #28332A; }
.doc ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.doc li { margin-bottom: .5rem; }
.doc .updated { color: var(--ink-faint); font-size: .9rem; margin: 0 0 1.6rem; }
.doc em { color: var(--ink-soft); }

/* footer nav (article + legal pages) */
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 1.1rem 1.4rem; padding: 0; margin: 1.1rem 0 0; }
.footer-nav a { color: rgba(247,244,237,.82); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: #fff; }

/* ---- 14. Reveal ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- 15. Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero__art { order: -1; min-height: 300px; }
  .hero__sub { max-width: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .mission .wrap { grid-template-columns: 1fr; gap: 18px; }
  .mission__icon { width: 64px; height: 64px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .section { padding: 60px 0; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 10px 26px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
  .nav-toggle { display: block; }
  .pillars { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .signup form { flex-direction: column; }
  .signup .inner { padding: 38px 24px; }
  .hero__cta .btn { flex: 1; justify-content: center; }
  .spec { flex-direction: column; }
  .entry, .entry--hero { grid-template-columns: 40px 1fr; gap: 12px; }
  .figure-hero { padding: 0 20px; }
}

/* ---- 16. Accessibility ----------------------------------------- */
a:focus-visible, .btn:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
