:root {
  --ink: #211821;
  --muted: #6f626c;
  --paper: #fffdfb;
  --cream: #fff5e9;
  --berry: #a3165c;
  --berry-dark: #6f0f40;
  --plum: #35112f;
  --gold: #eeaa38;
  --line: #eadde4;
  --shadow: 0 18px 50px rgba(70, 20, 53, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 8%, rgba(238,170,56,.12), transparent 22rem),
    linear-gradient(180deg, #fffdfb 0%, #fff9f4 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; }
.skip-link:focus { left: 12px; padding: 10px 14px; background: #fff; border-radius: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(234,221,228,.9);
  background: rgba(255,253,251,.93);
  backdrop-filter: blur(16px);
}
.header-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; display: inline-flex; align-items: baseline; gap: 9px; letter-spacing: -.05em; }
.brand strong { color: var(--plum); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.8vw, 2rem); }
.brand em { color: var(--berry); font-family: Georgia, serif; font-size: 1.08rem; }
.desktop-nav { display: flex; align-items: center; gap: 26px; }
.desktop-nav a { color: var(--muted); font-size: .95rem; font-weight: 750; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--berry); }
.planner-announcement { color: #fff; background: var(--berry); }
.planner-announcement a { display: block; padding: 9px 0; font-size: .86rem; text-align: center; text-decoration: none; }
.planner-announcement span { margin-left: 9px; color: #fff2bd; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }

.hero { padding: clamp(34px, 6vw, 78px) 0 34px; }
.hero-copy { max-width: 860px; margin-bottom: 32px; }
.eyebrow { color: var(--berry); font-size: .78rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; letter-spacing: -.025em; }
h1 { margin: 10px 0 16px; max-width: 900px; font-size: clamp(2.55rem, 7vw, 5.9rem); }
.hero h1 span { color: var(--berry); font-style: italic; }
.hero-copy p { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); }

.featured-grid { display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: repeat(2, minmax(210px, 1fr)); gap: 18px; }
.feature-card { position: relative; min-height: 220px; overflow: hidden; border-radius: var(--radius); color: #fff; box-shadow: var(--shadow); text-decoration: none; isolation: isolate; }
.feature-card:first-child { grid-row: 1 / 3; min-height: 500px; }
.feature-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feature-card:hover img { transform: scale(1.035); }
.feature-card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, transparent 25%, rgba(20,7,17,.88) 100%); }
.feature-copy { position: absolute; inset: auto 0 0; z-index: 1; padding: 26px; }
.feature-copy h2, .feature-copy h3 { margin: 9px 0 5px; color: #fff; }
.feature-copy h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.feature-copy h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); }
.view-pill, .video-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; font-size: .78rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.view-pill { padding: 8px 11px; background: var(--gold); color: #29180a; }
.video-pill { padding: 6px 9px; background: rgba(163,22,92,.92); color: #fff; }

.start-spotlight { padding: clamp(58px, 8vw, 104px) 0; background: var(--plum); color: #fff; }
.start-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(28px, 6vw, 74px); }
.start-copy h2, .guide-intro h2 { margin: 8px 0 18px; font-size: clamp(2.2rem, 4.5vw, 4rem); }
.start-copy p { max-width: 650px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.05rem; }
.start-spotlight .eyebrow { color: var(--gold); }
.macro-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 26px; }
.macro-row span { display: inline-flex; align-items: baseline; gap: 7px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .92rem; font-weight: 750; }
.macro-row b { color: var(--gold); font-family: Georgia, serif; font-size: 1.45rem; }
.start-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.primary-btn, .download-btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 10px 19px; border-radius: 999px; color: #2c1809; background: var(--gold); font-weight: 850; text-decoration: none; box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.primary-btn:hover, .download-btn:hover { background: #f6ba52; transform: translateY(-1px); }
.text-link { color: #fff; font-weight: 800; text-underline-offset: 4px; }
.net-carb-card { padding: clamp(24px, 4vw, 38px); border: 1px solid rgba(255,255,255,.14); border-radius: 26px; background: linear-gradient(150deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); box-shadow: 0 22px 60px rgba(0,0,0,.19); }
.net-carb-card h3 { margin: 6px 0 20px; font-size: clamp(2rem, 3vw, 3rem); }
.net-formula { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; align-items: center; padding: 20px; border-radius: 17px; color: var(--plum); background: var(--cream); }
.net-formula span, .net-formula strong { font-weight: 850; }
.net-formula b { color: var(--berry); font-size: 1.35rem; }
.net-carb-card p { color: rgba(255,255,255,.78); font-size: .9rem; }
.net-carb-card > a { color: var(--gold); font-weight: 800; }

.guide-section { padding: clamp(64px, 9vw, 116px) 0; overflow: hidden; background: linear-gradient(135deg, #fff7ed, #fffdfb 60%); }
.guide-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(30px, 6vw, 78px); }
.guide-intro h2 { color: var(--plum); }
.guide-intro > p { color: var(--muted); font-size: 1.06rem; }
.guide-intro ul { padding-left: 1.2em; color: var(--plum); font-weight: 730; }
.guide-turn { min-height: 480px; perspective: 1800px; }
.guide-turn-inner { position: relative; min-height: 480px; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.78,.25,1); }
.guide-turn.is-unlocked .guide-turn-inner { transform: rotateY(180deg); }
.guide-face { position: absolute; inset: 0; display: grid; grid-template-columns: .66fr 1fr; align-items: center; gap: clamp(22px, 4vw, 42px); min-height: 480px; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: var(--shadow); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.guide-face h3 { margin: 4px 0 10px; color: var(--plum); font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.guide-face p { color: var(--muted); }
.guide-back { transform: rotateY(180deg); background: var(--plum); color: #fff; }
.guide-back h3 { color: #fff; }
.guide-back p { color: rgba(255,255,255,.76); }
.guide-back img { width: 100%; max-height: 390px; object-fit: contain; border-radius: 8px; box-shadow: 0 18px 38px rgba(0,0,0,.3); }
.mini-cover { display: flex; min-height: 330px; flex-direction: column; justify-content: flex-start; padding: 30px 24px; border-radius: 8px; color: #fff; background: var(--plum); box-shadow: 0 18px 38px rgba(53,17,47,.24); }
.mini-cover span { font-family: Georgia, serif; font-size: 1.6rem; font-weight: 800; }
.mini-cover b { margin-top: 5px; color: var(--gold); line-height: 1.14; }
.mini-cover small { margin-top: 8px; font-size: .64rem; font-weight: 850; }
.guide-front label { display: block; margin: 18px 0 7px; color: var(--plum); font-size: .86rem; font-weight: 850; }
.email-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.email-row input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #d9c7d1; border-radius: 13px; outline: none; }
.email-row input:focus { border-color: var(--berry); box-shadow: 0 0 0 4px rgba(163,22,92,.12); }
.email-row button, .guide-unlock { min-height: 50px; padding: 8px 15px; border: 0; border-radius: 13px; color: #fff; background: var(--berry); font-weight: 850; cursor: pointer; }
.guide-unlock { display: inline-flex; width: 100%; margin-top: 18px; align-items: center; justify-content: center; font-size: 1rem; }
.guide-unlock:hover { background: #be176b; transform: translateY(-1px); }
.guide-note { margin: 9px 0 0; font-size: .75rem; line-height: 1.4; }
.form-status { min-height: 1.4em; margin: 6px 0 0; color: #a43131 !important; font-size: .82rem; font-weight: 700; }
.download-btn { margin-top: 8px; }
.turn-back { display: block; margin: 14px 0 0; padding: 0; border: 0; color: rgba(255,255,255,.78); background: transparent; font-weight: 750; cursor: pointer; }
.turn-back:hover { color: #fff; }

.start-page { padding: clamp(56px, 8vw, 100px) 0 90px; }
.start-page h1 { margin-top: 10px; font-size: clamp(2.7rem, 6vw, 5.2rem); }
.start-lead { color: var(--muted); font-size: 1.16rem; }
.start-page .macro-row { margin: 28px 0 38px; }
.start-page .macro-row span { border-color: var(--line); color: var(--plum); background: #fff; box-shadow: 0 8px 22px rgba(70,20,53,.06); }
.macro-row-large span { padding: 13px 18px; }
.macro-row-large b { font-size: 1.75rem; }
.net-carb-wide { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; margin: 0 0 34px; padding: clamp(24px, 4vw, 38px); border: 2px solid var(--gold); border-radius: 24px; background: var(--cream); }
.net-carb-wide h2 { margin: 5px 0 0; color: var(--plum); font-size: clamp(1.7rem, 3.3vw, 2.7rem); }
.net-carb-wide p { margin: 0; color: var(--muted); }
.start-reading { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.start-reading article { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 12px 36px rgba(70,20,53,.06); }
.start-reading h2 { margin: 8px 0 12px; font-size: 2rem; }
.start-reading h2 a { text-decoration: none; }
.start-reading p { color: var(--muted); }
.secondary-btn { color: #fff; background: var(--berry); }
.secondary-btn:hover { background: var(--berry-dark); }
.start-disclaimer { margin-top: 28px; padding: 20px 22px; border-left: 4px solid var(--berry); background: #f7eef3; color: #5b4b52; font-size: .9rem; }

.calculator-page { min-height: 100vh; background: #f7f1f5; }
.calculator-heading { padding: clamp(42px, 6vw, 72px) 0 110px; color: #fff; background: radial-gradient(circle at 82% 16%, rgba(238,170,56,.2), transparent 24rem), var(--plum); }
.calculator-heading .eyebrow { color: var(--gold); }
.calculator-heading h1 { margin: 9px 0 13px; max-width: 930px; font-size: clamp(2.7rem, 6vw, 5.2rem); }
.calculator-heading p { max-width: 690px; margin: 0; color: rgba(255,255,255,.77); font-size: 1.05rem; }
.calculator-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; width: fit-content; margin-top: 25px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.08); font-size: .9rem; font-weight: 780; }
.calculator-formula b { color: var(--gold); font-size: 1.25rem; }
.calculator-formula strong { color: var(--gold); }
.calculator-workspace { padding: 0 0 90px; }
.calculator-shell { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: 22px; margin-top: -68px; }
.calculator-inputs, .calculator-results { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 18px 50px rgba(49,18,43,.12); }
.calculator-results { position: sticky; top: 98px; }
.calculator-panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.calculator-panel-title h2 { margin: 4px 0 0; color: var(--plum); font-size: clamp(1.8rem, 3vw, 2.45rem); }
.calculator-reset, .calculator-copy { min-height: 42px; flex: 0 0 auto; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--berry); background: #fff; font-size: .84rem; font-weight: 820; cursor: pointer; }
.calculator-reset:hover, .calculator-copy:hover { border-color: var(--berry); background: #fff6fa; }
.calculator-inputs label { display: block; }
.calculator-inputs label > span { display: block; margin-bottom: 6px; color: var(--plum); font-size: .86rem; font-weight: 820; }
.calculator-inputs label small { color: var(--muted); font-size: .76rem; font-weight: 620; }
.calculator-inputs input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #d9c7d1; border-radius: 13px; color: var(--ink); background: #fffdfb; outline: none; }
.calculator-inputs input:focus { border-color: var(--berry); box-shadow: 0 0 0 4px rgba(163,22,92,.11); }
.field-wide { margin-bottom: 16px; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calculator-privacy { margin: 18px 0 0; color: var(--muted); font-size: .78rem; }
.net-result { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 22px; border: 2px solid var(--gold); border-radius: 20px; background: var(--cream); }
.net-result > span { align-self: center; color: var(--berry); font-weight: 850; }
.net-result > strong { color: var(--plum); font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; }
.net-result > strong b { font-weight: 800; }
.net-result small { grid-column: 1 / -1; margin-top: 8px; color: var(--muted); }
.nutrition-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 18px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--line); }
.nutrition-summary div { display: flex; min-height: 75px; flex-direction: column; justify-content: center; padding: 12px 14px; background: #fff; }
.nutrition-summary span { color: var(--muted); font-size: .76rem; font-weight: 750; }
.nutrition-summary strong { color: var(--plum); font-size: 1.05rem; }
.macro-results { padding-top: 3px; }
.macro-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.macro-results-heading h3 { margin: 5px 0 0; color: var(--plum); font-size: 1.4rem; }
.macro-results-heading > span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.macro-bar { display: flex; width: 100%; height: 17px; margin: 15px 0 12px; overflow: hidden; border-radius: 999px; background: #eee5eb; }
.macro-bar span { width: 0; transition: width .25s ease; }
.macro-fat { background: var(--berry); }
.macro-protein { background: var(--gold); }
.macro-carbs { background: #4f725a; }
.macro-key { display: flex; flex-wrap: wrap; gap: 13px; }
.macro-key span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; }
.macro-key i { width: 10px; height: 10px; border-radius: 50%; }
.fat-dot { background: var(--berry); }
.protein-dot { background: var(--gold); }
.carb-dot { background: #4f725a; }
.macro-results > p { margin: 12px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.calculator-warning { margin: 16px 0 0; padding: 12px 14px; border: 1px solid #e4a091; border-radius: 13px; color: #772c22; background: #fff1ef; font-size: .84rem; }
.copy-status { min-height: 1.4em; margin: 10px 0 0; color: var(--berry); font-size: .8rem; font-weight: 750; }
.calculator-notes { padding-top: 38px; }
.calculator-notes h2 { margin: 0 0 18px; color: var(--plum); font-size: 2rem; }
.calculator-notes > div:not(.start-disclaimer) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.calculator-notes > div:not(.start-disclaimer) p { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.75); color: var(--muted); font-size: .9rem; }
.calculator-notes strong { color: var(--plum); }

.planners-page { min-height: 100vh; background: linear-gradient(180deg, var(--paper), #fff7ed); }
.planner-hero { padding: clamp(48px, 7vw, 88px) 0; color: #fff; background: radial-gradient(circle at 86% 12%, rgba(238,170,56,.24), transparent 24rem), var(--plum); }
.planner-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(30px, 6vw, 72px); }
.planner-hero .eyebrow { color: var(--gold); }
.planner-hero h1 { margin: 9px 0 15px; max-width: 760px; font-size: clamp(2.7rem, 6vw, 5.3rem); }
.planner-hero p { max-width: 700px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.08rem; }
.planner-hero-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.planner-hero-list span { display: flex; min-height: 58px; align-items: center; justify-content: center; padding: 10px; border: 1px solid rgba(255,255,255,.17); border-radius: 16px; background: rgba(255,255,255,.08); font-family: Georgia, serif; font-size: 1.08rem; font-weight: 750; }
.planner-collection { padding: clamp(58px, 8vw, 98px) 0; }
.planner-intro { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 30px; }
.planner-intro h2 { margin: 5px 0 0; color: var(--plum); font-size: clamp(2.1rem, 4vw, 3.5rem); }
.planner-intro p { max-width: 480px; margin: 0; color: var(--muted); }
.planner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.planner-card { overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: #fff; box-shadow: 0 14px 42px rgba(70,20,53,.09); }
.planner-cover-wrap { position: relative; padding: 24px 24px 0; background: linear-gradient(135deg, #f8edf3, var(--cream)); }
.planner-cover-wrap img { width: 100%; max-height: 340px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 14px 19px rgba(53,17,47,.16)); }
.planner-cover-wrap span { position: absolute; top: 18px; right: 18px; padding: 7px 10px; border-radius: 999px; color: #fff; background: var(--berry); font-size: .74rem; font-weight: 850; }
.planner-card-copy { padding: 24px; }
.planner-card-copy h2 { margin: 7px 0 11px; color: var(--plum); font-size: 1.72rem; }
.planner-card-copy p { color: var(--muted); font-size: .92rem; }
.planner-card-copy ul { min-height: 92px; padding-left: 1.15em; color: var(--plum); font-size: .86rem; font-weight: 690; }
.planner-card-copy .primary-btn { width: 100%; text-align: center; }
.planner-method { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 28px; margin-top: 38px; padding: clamp(24px, 4vw, 36px); border: 2px solid var(--gold); border-radius: 24px; background: var(--cream); }
.planner-method h2 { margin: 6px 0 0; color: var(--plum); font-size: clamp(1.7rem, 3vw, 2.45rem); }
.planner-method p { margin: 0; color: var(--muted); font-size: .92rem; }
.planner-method > a { color: var(--berry); font-weight: 850; white-space: nowrap; }
.planner-disclaimer { margin: 22px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }

.section { padding: clamp(52px, 7vw, 92px) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 6px 0 0; font-size: clamp(2rem, 4vw, 3.4rem); }
.section-heading p { max-width: 480px; margin: 0; color: var(--muted); }
.search-panel { display: grid; grid-template-columns: minmax(220px, 1fr); gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.8); box-shadow: 0 12px 36px rgba(70,20,53,.06); }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 16px; top: 50%; width: 22px; transform: translateY(-50%); color: var(--berry); }
.recipe-search { width: 100%; min-height: 54px; padding: 0 18px 0 50px; border: 1px solid #d9c7d1; border-radius: 15px; color: var(--ink); background: #fff; outline: none; }
.recipe-search:focus { border-color: var(--berry); box-shadow: 0 0 0 4px rgba(163,22,92,.12); }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-btn { min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--plum); background: #fff; font-weight: 760; cursor: pointer; }
.filter-btn:hover, .filter-btn.is-active { border-color: var(--berry); color: #fff; background: var(--berry); }

.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.recipe-card { overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: #fff; box-shadow: 0 10px 30px rgba(70,20,53,.065); transition: transform .25s ease, box-shadow .25s ease; }
.recipe-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.recipe-card[hidden] { display: none; }
.card-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--plum), var(--berry)); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.recipe-card:hover .card-image img { transform: scale(1.04); }
.card-image .video-pill { position: absolute; top: 13px; left: 13px; }
.card-body { padding: 19px 20px 22px; }
.card-body h3 { margin: 7px 0 10px; font-size: 1.42rem; }
.card-body h3 a { text-decoration: none; }
.card-body p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: .93rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-meta { color: var(--berry); font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.show-more { display: block; min-height: 50px; margin: 30px auto 0; padding: 10px 22px; border: 0; border-radius: 999px; color: #fff; background: var(--plum); font-weight: 800; cursor: pointer; }
.show-more:hover { background: var(--berry); }
.empty-state { padding: 44px 20px; color: var(--muted); text-align: center; }

.vault-intro { padding: 58px 0 20px; }
.vault-intro h1 { max-width: 760px; font-size: clamp(2.5rem, 6vw, 5rem); }
.vault-intro p { max-width: 760px; color: var(--muted); }
.vault-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 28px 0 80px; }
.vault-card { padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.vault-card h2 { margin: 8px 0 10px; font-size: 1.55rem; }
.vault-card h2 a { text-decoration: none; }
.vault-card p { margin: 0; color: var(--muted); }

.article-shell { width: min(820px, calc(100% - 36px)); margin-inline: auto; }
.article-header { padding: clamp(45px, 7vw, 86px) 0 28px; }
.article-header h1 { margin: 9px 0 16px; font-size: clamp(2.5rem, 6vw, 5rem); }
.article-meta { color: var(--muted); }
.article-hero { width: min(1050px, calc(100% - 36px)); max-height: 680px; margin: 0 auto 36px; border-radius: 28px; object-fit: cover; box-shadow: var(--shadow); }
.article-content { padding: 12px 0 80px; }
.article-content h2, .article-content h3 { margin-top: 2.2em; color: var(--plum); }
.article-content p { margin: 1.15em 0; }
.article-content ul, .article-content ol { padding-left: 1.35em; }
.article-content img { height: auto; margin: 28px auto; border-radius: 18px; }
.article-content iframe { width: 100%; aspect-ratio: 16/9; height: auto; margin: 26px 0; border: 0; border-radius: 20px; box-shadow: var(--shadow); }
.article-content .wprm-fallback-recipe { margin: 34px 0; padding: 26px; border: 2px solid var(--gold); border-radius: 22px; background: var(--cream); }
.article-content .wprm-fallback-recipe-name { font-family: Georgia, serif; font-size: 2rem; }
.article-content .wprm-fallback-recipe-ingredients, .article-content .wprm-fallback-recipe-instructions { margin-top: 24px; }
.article-content a { color: var(--berry); }
.article-toolbar { display: flex; gap: 12px; margin: 0 0 28px; }
.action-btn { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--plum); background: #fff; font-weight: 750; cursor: pointer; text-decoration: none; }
.action-btn:hover { border-color: var(--berry); color: var(--berry); }
.disclaimer { padding: 22px; border-left: 4px solid var(--gold); background: var(--cream); color: #5b4b52; font-size: .92rem; }

.site-footer { padding: 42px 0; color: rgba(255,255,255,.76); background: var(--plum); }
.footer-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.footer-brand { color: #fff; font-family: Georgia, serif; font-size: 1.55rem; }
.footer-copy { max-width: 660px; font-size: .88rem; }
.footer-copyright { margin-top: 14px; color: rgba(255,255,255,.92); font-size: .88rem; font-weight: 700; }
.footer-copyright a { color: #fff; text-underline-offset: 3px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: #fff; font-size: .9rem; }

@media (max-width: 860px) {
  .featured-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .feature-card:first-child { grid-column: 1 / 3; grid-row: auto; min-height: 410px; }
  .feature-card:not(:first-child) { min-height: 280px; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-grid, .guide-layout { grid-template-columns: 1fr; }
  .guide-turn { min-height: 500px; }
  .guide-turn-inner, .guide-face { min-height: 500px; }
  .net-carb-wide { grid-template-columns: 1fr; gap: 10px; }
  .calculator-shell { grid-template-columns: 1fr; }
  .calculator-results { position: static; }
  .calculator-notes > div:not(.start-disclaimer) { grid-template-columns: 1fr; }
  .planner-hero-grid { grid-template-columns: 1fr; }
  .planner-grid { grid-template-columns: 1fr 1fr; }
  .planner-card:last-child { grid-column: 1 / -1; width: min(100%, 560px); justify-self: center; }
  .planner-method { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell, .article-shell { width: min(100% - 26px, 1180px); }
  .header-row { min-height: 68px; }
  .desktop-nav { gap: 13px; }
  .desktop-nav a { font-size: .84rem; }
  .desktop-nav a:nth-child(3), .desktop-nav a:nth-child(4), .desktop-nav a:nth-child(5), .desktop-nav a:nth-child(6) { display: none; }
  .planner-announcement a { font-size: .78rem; line-height: 1.35; }
  .planner-announcement span { display: block; margin: 2px 0 0; }
  .hero { padding-top: 30px; }
  h1 { font-size: clamp(2.45rem, 14vw, 4.2rem); }
  .featured-grid { display: grid; grid-template-columns: 1fr; }
  .feature-card:first-child { grid-column: auto; min-height: 430px; }
  .feature-card:not(:first-child) { min-height: 260px; }
  .section-heading, .footer-row { align-items: flex-start; flex-direction: column; }
  .recipe-grid, .vault-grid { grid-template-columns: 1fr; }
  .guide-turn, .guide-turn-inner, .guide-face { min-height: 690px; }
  .guide-face { grid-template-columns: 1fr; align-content: center; }
  .mini-cover { min-height: 250px; }
  .guide-back img { max-height: 330px; }
  .email-row { grid-template-columns: 1fr; }
  .start-reading { grid-template-columns: 1fr; }
  .calculator-heading { padding-bottom: 94px; }
  .calculator-formula { gap: 6px; font-size: .76rem; }
  .calculator-shell { margin-top: -56px; }
  .input-grid { grid-template-columns: 1fr; }
  .nutrition-summary { grid-template-columns: repeat(2, 1fr); }
  .macro-results-heading { align-items: flex-start; flex-direction: column; }
  .planner-hero-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .planner-hero-list span { min-height: 48px; padding: 7px 4px; font-size: .82rem; }
  .planner-intro { align-items: flex-start; flex-direction: column; }
  .planner-grid { grid-template-columns: 1fr; }
  .planner-card:last-child { grid-column: auto; width: 100%; }
  .article-hero { width: calc(100% - 26px); border-radius: 18px; }
  .article-content .wprm-fallback-recipe { padding: 20px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-turn-inner { transition: none; }
  .feature-card img, .recipe-card, .recipe-card img { transition: none; }
  .macro-bar span { transition: none; }
}

@media print {
  .site-header, .site-footer, .article-toolbar, .article-hero, .article-content iframe { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .article-header { padding-top: 0; }
  .article-content .wprm-fallback-recipe { border: 1px solid #999; background: #fff; }
  .calculator-heading { padding: 0 0 20px; color: #000; background: #fff; }
  .calculator-heading .eyebrow, .calculator-heading p { color: #333; }
  .calculator-workspace { padding-bottom: 0; }
  .calculator-shell { display: block; margin-top: 0; }
  .calculator-inputs, .calculator-notes { display: none; }
  .calculator-results { position: static; box-shadow: none; }
  .calculator-copy { display: none; }
}
