/* Gaining with Grace — recipe site styles (built on the shared tokens) */
@import url('./colors_and_type.css');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--fg1); line-height: 1.7; background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.read { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.link { color: var(--terracotta-d); font-weight: 800; }

/* NAV */
header { position: sticky; top: 0; z-index: 50; isolation: isolate; background: rgba(255,252,246,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .3s, background .3s; }
header.scrolled { background: rgba(255,252,246,.98); box-shadow: 0 8px 30px rgba(74,56,33,.08); }
nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.gwg-mark { height: 38px; }
.gwg-wordmark { font-size: 1.4rem; }
.navlinks { display: flex; gap: 28px; align-items: center; }
.navlinks a { color: var(--stone); font-weight: 700; font-size: .95rem; transition: color .2s; cursor: pointer; white-space: nowrap; position: relative; }
.navlinks a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; border-radius: 2px; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.22,1,.36,1); }
.navlinks a:hover::after, .navlinks a.active::after { transform: scaleX(1); }
.navlinks a:hover, .navlinks a.active { color: var(--forest); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--terracotta); color: var(--paper); font-weight: 700; padding: 12px 22px; border-radius: 999px; transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .3s, background .2s; font-size: .92rem; border: none; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(200,116,78,.38); }
.btn.ghost { background: transparent; color: var(--forest); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--terracotta); color: var(--terracotta-d); transform: translateY(-2px); box-shadow: none; }

/* hamburger + mobile menu */
.menu-btn { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; width: 100%; border-radius: 2px; background: var(--forest); transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .2s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; top: 74px; left: 0; right: 0; z-index: 49; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 50px rgba(74,56,33,.14); padding: 10px 28px 26px; display: none; flex-direction: column; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 15px 2px; font-weight: 700; font-size: 1.08rem; color: var(--forest); border-bottom: 1px solid var(--line); }
.mobile-menu a.active { color: var(--terracotta-d); }
.mobile-menu .mm-actions { display: flex; gap: 12px; padding-top: 18px; }
.mobile-menu .mm-actions .btn { flex: 1; justify-content: center; }

/* BLOG HEADER / HERO */
.blog-head { position: relative; overflow: hidden; background: var(--cream); padding: 84px 0 60px; border-bottom: 1px solid var(--line); }
.blog-head::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 320px at 88% -10%, var(--terracotta-12), transparent 70%),
    radial-gradient(520px 300px at -6% 110%, var(--olive-16), transparent 70%); }
.blog-head .wrap { position: relative; }
.blog-head .eyebrow { color: var(--terracotta-d); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.blog-head h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.6rem,5.4vw,4rem); color: var(--forest); letter-spacing: -.014em; line-height: 1.06; max-width: 780px; margin-bottom: 20px; }
.blog-head h1 em { font-style: italic; color: var(--terracotta); font-weight: 500; }
.blog-head p { color: var(--stone); font-size: clamp(1.08rem, 1.6vw, 1.22rem); max-width: 620px; line-height: 1.6; }
/* word-split spans for the GSAP masked-rise headline */
.blog-head h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.blog-head h1 .wi { display: inline-block; will-change: transform; }

/* FILTER */
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 32px 0 0; }
.chip { font-family: var(--font-sans); font-size: .84rem; font-weight: 700; color: var(--stone); background: var(--paper); border: 1px solid var(--line); padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: all .22s cubic-bezier(.22,1,.36,1); }
.chip:hover { border-color: var(--terracotta); color: var(--terracotta-d); transform: translateY(-1px); }
.chip.active { background: var(--forest); border-color: var(--forest); color: var(--paper); box-shadow: 0 8px 20px rgba(63,74,60,.25); }

/* FEED */
.feed { padding: 48px 0 104px; }
.empty { color: var(--stone); font-size: 1.05rem; grid-column: 1 / -1; padding: 40px 0; }
.empty code { font-family: ui-monospace, Menlo, monospace; background: var(--cream); padding: 2px 7px; border-radius: 6px; color: var(--terracotta-d); }

/* IMAGE PLACEHOLDER / MEDIA */
.ph { background-color: #F1E7D6; background-image: repeating-linear-gradient(135deg, #EADFCB 0 14px, #F1E7D6 14px 28px); display: flex; align-items: center; justify-content: center; }
.ph span { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .72rem; color: #A89878; background: rgba(255,252,246,.7); padding: 4px 10px; border-radius: 6px; }

/* TAGS */
.tag { display: inline-block; font-family: var(--font-sans); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta-d); background: var(--terracotta-12); padding: 5px 12px; border-radius: 999px; }

/* FEATURE */
.feature { display: grid; grid-template-columns: 1.18fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-bottom: 48px; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s; cursor: pointer; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature .ph { min-height: 420px; transition: transform .9s cubic-bezier(.22,1,.36,1); }
.feature:hover .ph { transform: scale(1.04); }
.feature .fbody { padding: 52px 48px; display: flex; flex-direction: column; gap: 18px; position: relative; background: var(--paper); }
.feature h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.8rem, 2.6vw, 2.4rem); color: var(--forest); letter-spacing: -.012em; line-height: 1.12; }
.feature p { color: var(--stone); font-size: 1.08rem; line-height: 1.62; }
.feature .meta { font-size: .86rem; color: var(--stone); font-weight: 600; margin-top: auto; }
.feature .arrow { color: var(--terracotta-d); font-weight: 800; font-size: .95rem; display: inline-flex; gap: 6px; transition: gap .25s; }
.feature:hover .arrow { gap: 12px; }

/* GRID */
.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.post { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .3s; cursor: pointer; display: flex; flex-direction: column; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #DCCFB6; }
.post .ph { height: 210px; flex: none; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.post:hover .ph { transform: scale(1.06); }
.post .pbody { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; position: relative; background: var(--paper); }
.post h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.36rem; color: var(--forest); letter-spacing: -.01em; line-height: 1.2; transition: color .2s; }
.post:hover h3 { color: var(--terracotta-d); }
.post p { color: var(--stone); font-size: .95rem; line-height: 1.55; }
.post .glance { margin-top: auto; }

/* editorial rhythm: every 7th card goes wide & horizontal */
.grid .post:nth-child(7n) { grid-column: span 2; flex-direction: row; }
.grid .post:nth-child(7n) .ph { width: 46%; height: auto; min-height: 280px; }
.grid .post:nth-child(7n) .pbody { width: 54%; padding: 34px 36px; }
.grid .post:nth-child(7n) h3 { font-size: 1.7rem; }

/* RECIPE GLANCE STRIP — quiet, hairline, editorial */
.glance { display: flex; border-top: 1px solid var(--line); padding-top: 14px; gap: 6px; }
.glance .g { flex: 1; text-align: left; }
.glance .gk { font-family: var(--font-sans); font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.glance .gv { font-family: var(--font-serif); font-size: 1.02rem; font-weight: 600; color: var(--forest); margin-top: 2px; }
.glance .gv.t { color: var(--terracotta-d); }

/* PLANNER CTA BAND */
.cta-band { margin: 44px 0 0; }
.cta-band .cta-inner { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--forest), var(--forest-2)); border-radius: 24px; padding: 44px 48px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; box-shadow: var(--shadow); }
.cta-band .cta-inner::before { content: ""; position: absolute; right: -80px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: rgba(200,116,78,.22); pointer-events: none; }
.cta-band .cta-inner::after { content: ""; position: absolute; right: 110px; bottom: -120px; width: 220px; height: 220px; border-radius: 50%; background: rgba(138,154,91,.2); pointer-events: none; }
.cta-band .cta-copy { flex: 1; min-width: 260px; position: relative; }
.cta-band .cta-copy strong { display: block; font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.7rem); color: var(--fg-on-dark-1); letter-spacing: -.01em; line-height: 1.25; margin-bottom: 8px; }
.cta-band .cta-copy span { color: var(--fg-on-dark); font-size: 1rem; line-height: 1.55; }
.cta-band .btn { position: relative; padding: 15px 28px; font-size: .98rem; }

/* ARTICLE */
.article { padding: 56px 0 96px; }
.article .back { font-family: var(--font-sans); font-weight: 700; font-size: .9rem; color: var(--terracotta-d); display: inline-flex; gap: 7px; align-items: center; cursor: pointer; margin-bottom: 28px; white-space: nowrap; }
.article .ahead { margin-bottom: 30px; }
.article .ahead .tag { margin-bottom: 18px; }
.article h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.2rem,4vw,3.1rem); color: var(--forest); letter-spacing: -.012em; line-height: 1.1; margin-bottom: 18px; }
.article .byline { display: flex; align-items: center; gap: 12px; color: var(--stone); font-size: .9rem; font-weight: 600; }
.article .byline .who { color: var(--bark); }
.article .byline .avatar { width: 42px; height: 42px; border-radius: 999px; background: var(--olive-16); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 600; color: var(--olive-d); flex: none; }
.article .hero-ph { height: 420px; border-radius: 22px; margin: 34px 0 8px; }
.article .hero-cap { font-size: .82rem; color: var(--stone); text-align: center; margin-bottom: 36px; font-style: italic; }
.prose { font-size: 1.12rem; color: var(--bark); line-height: 1.8; }
.prose > p { margin-bottom: 24px; }
.prose .lead { font-size: 1.28rem; color: var(--forest); line-height: 1.55; margin-bottom: 28px; }
.prose h2 { font-family: var(--font-serif); font-weight: 600; font-size: 1.7rem; color: var(--forest); letter-spacing: -.01em; margin: 14px 0 14px; }
.prose strong { color: var(--bark); font-weight: 700; }
.prose > ul { margin: 0 0 24px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose > ul > li { padding-left: 26px; position: relative; }
.prose > ul > li::before { content: "\2192"; position: absolute; left: 0; color: var(--terracotta); font-weight: 800; }
.prose blockquote { margin: 8px 0 30px; padding: 4px 0 4px 26px; border-left: 3px solid var(--terracotta); }
.prose blockquote p { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 1.5rem; color: var(--forest); line-height: 1.4; margin: 0; }

/* INLINE RECIPE CARD */
.recipe-inline { background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 32px 32px 34px; margin: 12px 0 34px; }
.recipe-inline .rtag { margin-bottom: 14px; }
.recipe-inline h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; color: var(--forest); margin-bottom: 16px; }
.recipe-inline .glance { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 22px; gap: 8px; }
.recipe-inline .glance .g { text-align: center; }
.recipe-inline .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.recipe-inline h4 { font-family: var(--font-sans); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; }
.recipe-inline ul { font-size: 1rem; line-height: 1.7; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.recipe-inline ul li { padding-left: 18px; position: relative; }
.recipe-inline ul li::before { content: "\2022"; position: absolute; left: 2px; color: var(--terracotta); font-weight: 800; }
.recipe-inline ol { font-size: 1rem; line-height: 1.7; padding-left: 20px; color: var(--bark); display: flex; flex-direction: column; gap: 10px; }
.recipe-inline .note { font-size: .9rem; color: var(--stone); margin-top: 20px; font-style: italic; }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* FOOTER */
footer { background: var(--forest); color: var(--fg-on-dark); padding: 64px 0 32px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 34px; padding-bottom: 38px; border-bottom: 1px solid rgba(255,252,246,.1); }
.foot-brand { max-width: 330px; }
.foot-lockup { margin-bottom: 16px; }
.foot-brand p { font-size: .95rem; line-height: 1.6; }
.foot-col h5 { color: var(--paper); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; font-weight: 800; }
.foot-col a { display: block; color: var(--fg-on-dark); font-size: .95rem; margin-bottom: 10px; transition: color .2s; cursor: pointer; }
.foot-col a:hover { color: var(--terracotta); }
.copy { padding-top: 24px; font-size: .85rem; color: var(--fg-on-dark); }

/* MODAL (add a recipe via JSON) */
.modal-overlay { position: fixed; inset: 0; background: rgba(46,42,36,.55); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--paper); border-radius: 22px; padding: 34px 34px 30px; max-width: 560px; width: 100%; box-shadow: var(--shadow-lg); max-height: 90vh; overflow: auto; }
.modal h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.6rem; color: var(--forest); margin-bottom: 6px; letter-spacing: -.01em; }
.modal .sub { color: var(--stone); font-size: .96rem; margin-bottom: 18px; }
.modal .sub code { font-family: ui-monospace, Menlo, monospace; background: var(--cream); padding: 2px 7px; border-radius: 6px; color: var(--terracotta-d); font-size: .85em; }
.modal-close { float: right; background: none; border: none; font-size: 1.5rem; color: var(--stone); cursor: pointer; line-height: 1; }
#json-input { width: 100%; min-height: 240px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .85rem; line-height: 1.55; color: var(--bark); background: #FFFDF8; resize: vertical; tab-size: 2; }
#json-input:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(200,116,78,.16); }
#json-error { color: #B23B2E; font-size: .85rem; font-weight: 600; min-height: 1.2em; margin: 10px 0 0; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 16px; }

/* modal segmented mode toggle */
.modal-modes { display: inline-flex; gap: 4px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 6px 0 16px; }
.modal-modes .seg { border: none; background: transparent; font-family: var(--font-sans); font-weight: 700; font-size: .85rem; color: var(--stone); padding: 7px 18px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.modal-modes .seg:hover { color: var(--terracotta-d); }
.modal-modes .seg.active { background: var(--paper); color: var(--forest); box-shadow: 0 1px 3px rgba(74,56,33,.12); }

/* JOURNAL list */
.entries { display: flex; flex-direction: column; }
.entry { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); cursor: pointer; align-items: start; transition: background .15s; }
.entry:first-child { border-top: none; }
.entry:hover .entry-main h3 { color: var(--terracotta-d); }
.entry-date { font-family: var(--font-sans); font-size: .82rem; font-weight: 700; color: var(--stone); letter-spacing: .02em; padding-top: 4px; }
.entry-main { display: flex; flex-direction: column; gap: 10px; }
.entry-main .tag { align-self: flex-start; }
.entry-main h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.55rem; color: var(--forest); letter-spacing: -.01em; line-height: 1.18; transition: color .15s; }
.entry-main p { color: var(--stone); font-size: 1.02rem; line-height: 1.6; }
.entry-main .arrow { color: var(--terracotta-d); font-family: var(--font-sans); font-weight: 800; font-size: .9rem; display: inline-flex; gap: 6px; transition: gap .2s; }
.entry:hover .entry-main .arrow { gap: 10px; }

/* CALORIE CHIPS — food mentions in prose, ingredients, notes */
.cal { white-space: nowrap; border-bottom: 1px dotted var(--olive-d); cursor: help; }
.cal-k { display: inline-block; margin-left: 5px; font-family: var(--font-sans); font-size: .62em; font-weight: 800; letter-spacing: .02em; color: var(--olive-d); background: var(--olive-16); padding: 1px 7px; border-radius: 999px; vertical-align: baseline; }

/* EASIER-TO-SWALLOW PANEL (dysphagia-friendly) */
.soft-flag { display: inline-block; margin-top: 14px; font-family: var(--font-sans); font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--olive-d); background: var(--olive-16); padding: 6px 13px; border-radius: 999px; }
.soft-option { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--olive); border-radius: 14px; padding: 24px 26px 22px; margin: 10px 0 30px; }
.soft-head { display: flex; align-items: center; gap: 11px; font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; color: var(--forest); margin-bottom: 12px; }
.soft-mark { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--olive-16); position: relative; }
.soft-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--olive); }
.soft-pill { font-family: var(--font-sans); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-d); background: var(--olive-16); padding: 4px 10px; border-radius: 999px; margin-left: auto; }
.soft-option p { font-size: 1rem; color: var(--bark); line-height: 1.6; margin-bottom: 12px; }
.soft-option ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 0; }
.soft-option ul li { padding-left: 22px; position: relative; font-size: .98rem; color: var(--bark); }
.soft-option ul li::before { content: "\2192"; position: absolute; left: 0; color: var(--olive-d); font-weight: 800; }
.soft-note { font-size: .82rem !important; color: var(--stone) !important; font-style: italic; margin-bottom: 0 !important; }

/* JOURNAL hover treatment */
.entry { border-radius: 16px; padding: 32px 22px; margin: 0 -22px; border-top: none; box-shadow: inset 0 1px 0 var(--line); }
.entry:first-child { box-shadow: none; }
.entry:hover { background: var(--cream); box-shadow: none; }
.entry:hover + .entry { box-shadow: none; }

/* PLANNER — onboarding form */
.planner-form { background: var(--cream); border: 1px solid var(--line); border-radius: 24px; padding: 44px 44px 40px; display: flex; flex-direction: column; gap: 30px; }
.pf-step { display: flex; gap: 18px; align-items: flex-start; }
.pf-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--olive-16); color: var(--olive-d); font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.pf-field { flex: 1; }
.pf-field > label { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.18rem; color: var(--forest); margin-bottom: 12px; }
.pf-select { position: relative; }
.pf-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--terracotta-d); border-bottom: 2px solid var(--terracotta-d); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.planner-form select, .planner-form input[type="text"], .planner-form input[type="number"] { width: 100%; appearance: none; -webkit-appearance: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 44px 14px 16px; font-family: var(--font-sans); font-size: .98rem; color: var(--bark); transition: border-color .2s, box-shadow .2s; }
.planner-form input[type="text"], .planner-form input[type="number"] { padding-right: 16px; }
.planner-form select:focus, .planner-form input[type="text"]:focus, .planner-form input[type="number"]:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(200,116,78,.16); }
.planner-form input::placeholder { color: var(--stone); opacity: .7; }
.pf-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-check { cursor: pointer; }
.pill-check input { position: absolute; opacity: 0; pointer-events: none; }
.pill-check span { display: inline-block; font-size: .9rem; font-weight: 700; color: var(--stone); background: var(--paper); border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; transition: all .22s cubic-bezier(.22,1,.36,1); }
.pill-check:hover span { border-color: var(--terracotta); color: var(--terracotta-d); }
.pill-check input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--paper); box-shadow: 0 8px 20px rgba(63,74,60,.22); }
.pill-check input:focus-visible + span { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.pf-submit { width: 100%; justify-content: center; padding: 16px 28px; font-size: 1rem; margin-top: 4px; }
.pf-note { font-size: .85rem; color: var(--stone); text-align: center; font-style: italic; }
.pf-hint { font-size: .84rem; color: var(--stone); margin-top: 8px; }
.pf-hint .link { font-weight: 700; }

/* PLANNER — plan view */
.plan-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.plan-head h1 { margin-bottom: 10px; }
.plan-meta { font-weight: 600; }
.plan-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 6px; }
.planner-wrap { max-width: 1020px; }
.plan-days { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }
.plan-day { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px 28px; transition: box-shadow .3s, border-color .3s; }
.plan-day:hover { box-shadow: var(--shadow); border-color: #DCCFB6; }
.pd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.pd-head h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; color: var(--forest); letter-spacing: -.01em; }
.pd-kcal { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; color: var(--terracotta-d); white-space: nowrap; }
.plan-meals { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.meal-card { background: var(--cream); border: 1px solid transparent; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color .25s, background .25s; }
.meal-card:hover { border-color: var(--line); background: #FBF5EA; }
.mc-label { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-d); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mc-label span { color: var(--terracotta-d); letter-spacing: .02em; }
.mc-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.08rem; color: var(--forest); line-height: 1.25; }
.meal-card p { font-size: .85rem; color: var(--stone); line-height: 1.5; flex: 1; }
.mc-links { display: flex; gap: 14px; margin-top: 4px; }
.mc-links a { font-size: .8rem; font-weight: 800; color: var(--terracotta-d); }
.mc-links a:hover { color: var(--terracotta); }

/* PLANNER — grocery list */
.grocery-card { background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 30px 32px; margin-bottom: 26px; }
.gc-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.gc-head h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.45rem; color: var(--forest); }
.gc-sub { font-size: .85rem; color: var(--stone); font-style: italic; }
.gc-cat { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta-d); margin: 18px 0 8px; }
.gc-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.gc-list li { break-inside: avoid; margin: 3px 0; }
.gc-list label { display: flex; gap: 9px; align-items: baseline; cursor: pointer; font-size: .93rem; color: var(--bark); }
.gc-list input { accent-color: var(--olive-d); transform: translateY(1px); cursor: pointer; }
.gc-list input:checked + span { color: var(--stone); text-decoration: line-through; }
.gc-note { font-size: .85rem; color: var(--stone); font-style: italic; margin-top: 14px; }

/* PLANNER — helpful tools */
.gentle-tools { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 30px 32px; margin-bottom: 30px; }
.gt-head h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.45rem; color: var(--forest); margin-bottom: 4px; }
.gt-head p { font-size: .88rem; color: var(--stone); margin-bottom: 18px; }
.gt-head a { color: var(--terracotta-d); font-weight: 800; }
.gt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.tool-mini { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s; }
.tool-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-mini strong { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; color: var(--forest); }
.tool-mini p { font-size: .85rem; color: var(--stone); line-height: 1.5; flex: 1; }
.tool-mini a { font-size: .8rem; font-weight: 800; color: var(--terracotta-d); }

.plan-foot { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 10px 0 0; }
.plan-history { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 20px; }
.plan-history h4 { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; color: var(--forest); margin-bottom: 10px; }
.plan-history h4 span { font-family: var(--font-sans); font-size: .8rem; font-weight: 600; color: var(--stone); }
.plan-history ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.plan-history a { font-size: .92rem; font-weight: 700; color: var(--terracotta-d); }

/* SOFT BAND — easier-to-swallow focus on the home page */
.soft-band { padding: 0 0 104px; }
.soft-band-inner { display: flex; gap: 44px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--olive); border-radius: 24px; padding: 48px 52px; }
.sb-mark { flex: none; width: 88px; height: 88px; border-radius: 50%; background: var(--olive-16); position: relative; margin-top: 6px; }
.sb-mark span { position: absolute; inset: 24px; border-radius: 50%; background: var(--olive); }
.sb-copy .eyebrow { color: var(--olive-d); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.sb-copy h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--forest); letter-spacing: -.01em; margin-bottom: 14px; }
.sb-copy p { color: var(--bark); font-size: 1.05rem; line-height: 1.7; max-width: 70ch; }
.sb-note { font-size: .85rem !important; color: var(--stone) !important; font-style: italic; margin-top: 12px; }
.sb-links { margin-top: 18px; display: flex; gap: 26px; flex-wrap: wrap; }

/* CALCULATORS */
.unit-toggle { display: flex; justify-content: center; gap: 4px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: max-content; margin: 0 auto 30px; }
.ut-btn { border: none; background: transparent; font-family: var(--font-sans); font-weight: 700; font-size: .88rem; color: var(--stone); padding: 9px 22px; border-radius: 999px; cursor: pointer; transition: all .25s cubic-bezier(.22,1,.36,1); }
.ut-btn:hover { color: var(--terracotta-d); }
.ut-btn.active { background: var(--forest); color: var(--paper); box-shadow: 0 6px 16px rgba(63,74,60,.22); }
.h-us { display: flex; align-items: center; gap: 6px; }
.h-us input { width: 62px; }
.h-sep { font-size: .7rem; font-weight: 800; color: var(--stone); text-transform: uppercase; }
body[data-units="metric"] .h-us { display: none; }
body[data-units="us"] .h-metric { display: none; }
.calc-list { display: flex; flex-direction: column; gap: 30px; max-width: 880px; margin: 0 auto; }
.calc-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 40px 44px; scroll-margin-top: 90px; }
.calc-card .tag { margin-bottom: 14px; }
.calc-card h2 { font-family: var(--font-serif); font-weight: 600; font-size: 1.7rem; color: var(--forest); letter-spacing: -.01em; margin-bottom: 8px; }
.calc-card > p { color: var(--stone); font-size: .98rem; line-height: 1.6; max-width: 64ch; margin-bottom: 22px; }
.calc-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 22px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 130px; }
.cf-field label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.cf-field input, .cf-field select { appearance: none; -webkit-appearance: none; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-family: var(--font-sans); font-size: .95rem; color: var(--bark); width: 100%; transition: border-color .2s, box-shadow .2s; }
.cf-field input:focus, .cf-field select:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(200,116,78,.16); }
.cf-select { position: relative; }
.cf-select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--terracotta-d); border-bottom: 2px solid var(--terracotta-d); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.cf-select select { padding-right: 36px; }
.calc-result { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; display: flex; gap: 36px; flex-wrap: wrap; }
.cr-item { min-width: 130px; }
.cr-num { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--terracotta-d); letter-spacing: -.01em; line-height: 1.1; }
.cr-num small { font-size: .55em; color: var(--stone); font-weight: 500; }
.cr-label { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); margin-top: 4px; }
.cr-note { flex-basis: 100%; font-size: .9rem; color: var(--bark); line-height: 1.55; }
.cr-note strong { color: var(--forest); }
.booster-grid { flex-basis: 100%; margin-top: 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.booster-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .3s; }
.booster-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #DCCFB6; }
.booster-card .bc-img { display: block; height: 120px; background-size: cover; background-position: center; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.booster-card:hover .bc-img { transform: scale(1.06); }
.booster-card .bc-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 15px; position: relative; background: var(--paper); }
.booster-card b { font-family: var(--font-serif); font-weight: 600; font-size: 1.02rem; color: var(--forest); line-height: 1.2; }
.booster-card .bc-brand { font-size: .75rem; font-weight: 600; color: var(--stone); }
.booster-card .bc-kcal { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--olive-d); }
.booster-card .bc-need { font-size: .85rem; color: var(--stone); line-height: 1.45; }
.booster-card .bc-need b { font-family: var(--font-sans); font-size: .9rem; color: var(--terracotta-d); }
.booster-card .bc-shop { margin-top: 7px; font-size: .8rem; font-weight: 800; color: var(--terracotta-d); }
.bc-disclosure { font-size: .78rem !important; color: var(--stone) !important; font-style: italic; }
.bc-disclosure a { color: var(--terracotta-d); font-weight: 700; }
.calc-refs { margin-top: 18px; font-size: .82rem; color: var(--stone); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 14px; }
.calc-refs a { color: var(--terracotta-d); font-weight: 700; }
.calc-disclaimer { max-width: 880px; margin: 34px auto 0; font-size: .85rem; color: var(--stone); font-style: italic; text-align: center; }

/* FREE GUIDE */
.guide-list { display: flex; flex-direction: column; gap: 24px; max-width: 880px; margin: 0 auto; }
.guide-recipe { display: grid; grid-template-columns: 230px 1fr; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s; }
.guide-recipe:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.guide-recipe img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gr-body { padding: 26px 30px; display: flex; flex-direction: column; gap: 8px; }
.gr-meta { font-size: .78rem; font-weight: 700; color: var(--olive-d); letter-spacing: .04em; }
.gr-body h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem; color: var(--forest); line-height: 1.2; }
.gr-body p { font-size: .95rem; color: var(--stone); line-height: 1.55; }
.gr-note { font-size: .85rem !important; font-style: italic; }
.gr-body a { font-weight: 800; font-size: .9rem; color: var(--terracotta-d); margin-top: 2px; }
.signup-band { max-width: 880px; margin: 44px auto 0; position: relative; overflow: hidden; background: linear-gradient(115deg, var(--forest), var(--forest-2)); border-radius: 24px; padding: 44px 48px; }
.signup-band h2 { font-family: var(--font-serif); font-weight: 600; font-size: 1.7rem; color: var(--fg-on-dark-1); margin-bottom: 8px; }
.signup-band p { color: var(--fg-on-dark); font-size: .98rem; margin-bottom: 18px; }
.signup-band form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-band input[type="email"] { flex: 1; min-width: 220px; border: none; border-radius: 999px; padding: 14px 20px; font-family: var(--font-sans); font-size: .95rem; color: var(--bark); background: var(--paper); }
.signup-band input[type="email"]:focus { outline: 2px solid var(--terracotta); }
.signup-band .fineprint { font-size: .8rem; opacity: .75; margin: 14px 0 0; }

/* TOOLS PAGE */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tool-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .3s; }
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #DCCFB6; }
.tool-card .tag { align-self: flex-start; margin-bottom: 4px; }
.tool-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; color: var(--forest); line-height: 1.2; }
.tool-card p { font-size: .93rem; color: var(--stone); line-height: 1.55; flex: 1; }
.tool-card a { font-weight: 800; font-size: .9rem; color: var(--terracotta-d); display: inline-flex; gap: 6px; transition: gap .2s; }
.tool-card a:hover { gap: 10px; }
.tc-links { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--line); padding-top: 12px; }
.tc-links a { display: flex; align-items: baseline; gap: 8px; font-size: .88rem; transition: color .2s; }
/* the generic card-link hover animates gap, which shifts text — pin it here */
.tc-links a:hover { gap: 8px; color: var(--terracotta); }
.tc-links a span { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--olive-d); background: var(--olive-16); padding: 3px 9px; border-radius: 999px; flex: none; }
.tools-note { margin-top: 36px; font-size: .85rem; color: var(--stone); font-style: italic; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .grid .post:nth-child(7n) { grid-column: span 2; }
  .feature .fbody { padding: 40px 36px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature .ph { min-height: 260px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .navlinks { display: none; }
  .menu-btn { display: flex; }
  .blog-head { padding: 56px 0 44px; }
  .filters { padding-top: 26px; }
  .feed { padding: 36px 0 72px; }
  .grid { grid-template-columns: 1fr; gap: 22px; }
  .grid .post:nth-child(7n) { grid-column: auto; flex-direction: column; }
  .grid .post:nth-child(7n) .ph { width: 100%; height: 210px; min-height: 0; }
  .grid .post:nth-child(7n) .pbody { width: 100%; padding: 24px 26px 26px; }
  .grid .post:nth-child(7n) h3 { font-size: 1.36rem; }
  .cta-band .cta-inner { padding: 32px 26px; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .recipe-inline { padding: 24px 20px 26px; }
  .recipe-inline .cols { grid-template-columns: 1fr; }
  .article .hero-ph { height: 250px; }
  .entry { grid-template-columns: 1fr; gap: 8px; padding: 26px 16px; margin: 0 -16px; }
  .entry-date { padding-top: 0; }
  .planner-form { padding: 30px 22px 28px; border-radius: 20px; }
  .pf-num { display: none; }
  .plan-day { padding: 20px 18px 22px; }
  .plan-head { align-items: flex-start; }
  .grocery-card, .gentle-tools { padding: 24px 20px; }
  .gc-list { columns: 1; }
  .tool-grid { grid-template-columns: 1fr; }
  .soft-band { padding-bottom: 72px; }
  .soft-band-inner { flex-direction: column; gap: 20px; padding: 30px 24px; }
  .sb-mark { width: 64px; height: 64px; }
  .sb-mark span { inset: 18px; }
  .calc-card { padding: 28px 22px; }
  .calc-result { gap: 20px; padding: 18px 18px; }
  .guide-recipe { grid-template-columns: 1fr; }
  .guide-recipe img { height: 190px; }
  .signup-band { padding: 30px 24px; }
  .gwg-wordmark { font-size: 1.2rem; }
  .gwg-mark { height: 32px; }
}

/* MOTION SAFETY */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
