/* Pure Goat Farms — site stylesheet.
   Palette and type carried over from the original Elementor kit:
   primary #3B2A1E, secondary #A34B2A, text #6B5642, accent #C89A3B,
   forest #202A19, cream #FFFCF6; Fraunces / Libre Franklin / Space Mono. */

:root {
  --brown: #3B2A1E;
  --brown-2: #2A1E15;
  --rust: #A34B2A;
  --rust-2: #7E3A20;
  --text: #6B5642;
  --gold: #C89A3B;
  --gold-2: #E3B655;
  --forest: #202A19;
  --forest-2: #2F3B25;
  --moss: #5A6E3C;
  --cream: #FFFCF6;
  --sand: #F5EFDD;
  --wheat: #ECE3C9;
  --line: rgba(59, 42, 30, .12);
  --shadow-sm: 0 2px 8px rgba(59, 42, 30, .06);
  --shadow: 0 18px 40px -18px rgba(59, 42, 30, .28);
  --shadow-lg: 0 40px 80px -30px rgba(59, 42, 30, .4);
  --r: 18px;
  --r-sm: 10px;
  --ff-head: "Fraunces", Georgia, serif;
  --ff-body: "Libre Franklin", system-ui, -apple-system, Segoe UI, sans-serif;
  --ff-mono: "Space Mono", ui-monospace, monospace;
  --container: 1180px;
  --header-h: 78px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 17px/1.7 var(--ff-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--brown); }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--brown); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 600; color: var(--rust); }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
button { font: inherit; }
::selection { background: var(--gold-2); color: var(--brown); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: #8a7a68; }
.small { font-size: .9rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--brown); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- eyebrow / buttons ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font: 700 .78rem/1 var(--ff-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--rust); margin: 0 0 1.1em;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(200,154,59,.6); animation: pulse 2.2s infinite; }
.eyebrow--light { color: var(--gold-2); }
.eyebrow__icon .ico { width: 18px; height: 18px; }
.cat-num { background: var(--rust); color: #fff; padding: 4px 7px; border-radius: 6px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(200,154,59,0); } 100% { box-shadow: 0 0 0 0 rgba(200,154,59,0); } }

.btn {
  --bg: var(--brown); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: .98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(59,42,30,.55); }
.btn:hover::after { transform: translateX(120%); }
.btn .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--rust { --bg: var(--rust); }
.btn--rust:hover { background: var(--rust-2); }
.btn--gold { --bg: var(--gold); --fg: var(--brown); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { --bg: transparent; --fg: var(--brown); border-color: rgba(59,42,30,.25); }
.btn--ghost:hover { border-color: var(--brown); background: var(--brown); --fg: #fff; }
.btn--ghost-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: #fff; --fg: var(--brown); }
.btn--lg { padding: 1em 1.8em; font-size: 1.02rem; }
.btn--sm { padding: .6em 1.15em; font-size: .9rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--rust); text-decoration: none; }
.link-arrow .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover .ico, a:hover > .link-arrow .ico { transform: translateX(4px); }

.ico { width: 22px; height: 22px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 252, 246, .82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(59,42,30,.35); border-color: var(--line); background: rgba(255,252,246,.94); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .site-header__inner { height: 64px; }
.brand img { width: 220px; transition: width .3s var(--ease); }
.site-header.is-scrolled .brand img { width: 190px; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; display: flex; align-items: center; }
.main-nav > ul > li > a {
  position: relative; padding: 10px 12px; color: var(--brown); font-weight: 600; font-size: .96rem; text-decoration: none;
}
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav > ul > li:hover > a::after, .main-nav > ul > li.is-active > a::after { transform: scaleX(1); }
.sub-toggle { background: none; border: 0; padding: 4px; margin-left: -8px; color: var(--brown); cursor: pointer; }
.sub-toggle .ico { width: 16px; height: 16px; transition: transform .3s; }
.has-sub:hover .sub-toggle .ico, .has-sub.is-open .sub-toggle .ico { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 6px); left: -8px; min-width: 270px; list-style: none; margin: 0; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .28s var(--ease);
}
.sub::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--brown); text-decoration: none; font-size: .93rem; font-weight: 500; }
.sub a:hover { background: var(--sand); color: var(--rust); }
.nav-toggle { display: none; background: none; border: 0; color: var(--brown); padding: 8px; cursor: pointer; }
.nav-toggle .ico { width: 28px; height: 28px; }
.nav-toggle .ico-close { display: none; }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--rust)); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section--tight { padding: clamp(36px, 5vw, 60px) 0 clamp(64px, 8vw, 96px); }
.section--sand { background: var(--sand); }
.section--forest { background: var(--forest); color: #d9d4c4; }
.section--forest h2, .section--forest h3 { color: #fff; }
.section--forest a:not(.btn):not(.tool-card) { color: var(--gold-2); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; }
.section-head p:last-child { margin-bottom: 0; }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { max-width: 640px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.hero__bg, .page-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blob--1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(227,182,85,.55), transparent 65%); top: -160px; right: -80px; }
.blob--2 { width: 440px; height: 440px; background: radial-gradient(circle, rgba(163,75,42,.28), transparent 65%); bottom: -180px; left: -120px; animation-duration: 22s; }
.blob--3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(90,110,60,.25), transparent 65%); top: 40%; left: 40%; animation-duration: 26s; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }
.grain { position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.h1-brand { display: block; font-size: .42em; font-weight: 700; letter-spacing: .02em; color: var(--rust); margin-bottom: .35em; }
.hero h1 em { font-style: italic; font-weight: 600; background: linear-gradient(100deg, var(--rust), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.hero__actions--center { justify-content: center; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; font-weight: 500; color: var(--brown); }
.hero__trust li { display: flex; align-items: center; gap: 6px; }
.hero__trust .ico { width: 18px; height: 18px; color: var(--moss); }

.hero__media { position: relative; justify-self: center; width: min(480px, 100%); }
.hero__frame {
  position: relative; aspect-ratio: 1; overflow: hidden;
  border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
  box-shadow: var(--shadow-lg); animation: morph 14s ease-in-out infinite;
  border: 8px solid #fff;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
@keyframes morph { 50% { border-radius: 58% 42% 45% 55% / 45% 58% 42% 55%; } }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7); border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite;
}
.float-chip strong { font: 800 1.9rem/1 var(--ff-head); color: var(--rust); }
.float-chip span { font-size: .8rem; line-height: 1.25; font-weight: 600; color: var(--brown); max-width: 90px; }
.float-chip .ico { color: var(--gold); }
.float-chip--a { left: -28px; top: 14%; }
.float-chip--b { right: -20px; top: 52%; animation-delay: -2s; }
.float-chip--c { left: 6%; bottom: -4%; animation-delay: -4s; }
.float-chip--c span { max-width: none; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.spin-badge { position: absolute; right: -10px; top: -26px; width: 128px; height: 128px; }
.spin-badge circle { fill: var(--brown); }
.spin-badge text { fill: var(--gold-2); font: 700 13.5px var(--ff-mono); letter-spacing: 2.5px; }
.spin-badge text { animation: spin 22s linear infinite; transform-origin: 100px 100px; transform-box: view-box; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(59,42,30,.3); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--rust); animation: scrolly 1.8s infinite; }
@keyframes scrolly { 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--brown); color: var(--wheat); padding: 18px 0; transform: rotate(-1.2deg) scale(1.02); margin: -12px 0 0; }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marquee 34s linear infinite; font: 600 1.35rem/1 var(--ff-head); white-space: nowrap; }
.marquee .sep { color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { padding: 56px 0 10px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat strong { display: block; font: 800 clamp(2.4rem, 4vw, 3.2rem)/1 var(--ff-head); color: var(--rust); margin-bottom: 8px; }
.stat span { font-size: .92rem; font-weight: 500; }

/* ---------- ear-tag cards ---------- */
.tag-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.ear-tag {
  position: relative; display: flex; flex-direction: column; padding: 34px 22px 24px; min-height: 300px;
  border-radius: 26px 26px 26px 80px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .3s;
  transform-style: preserve-3d;
}
.ear-tag:hover { box-shadow: var(--shadow-lg); color: var(--text); }
.ear-tag__hole { position: absolute; top: 16px; right: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 2px 3px rgba(0,0,0,.18); }
.ear-tag__num { font: 700 .8rem var(--ff-mono); color: var(--gold); letter-spacing: .1em; }
.ear-tag__icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 14px 0 16px; border-radius: 14px; background: var(--sand); color: var(--rust); transition: transform .4s var(--ease), background .3s, color .3s; }
.ear-tag:hover .ear-tag__icon { transform: rotate(-8deg) scale(1.08); background: var(--rust); color: #fff; }
.ear-tag h3 { margin-bottom: .45em; font-size: 1.22rem; }
.ear-tag p { font-size: .93rem; line-height: 1.55; flex: 1; }
.ear-tag__count { display: flex; align-items: center; gap: 6px; font: 700 .78rem var(--ff-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--brown); }
.ear-tag__count .ico { width: 16px; height: 16px; transition: transform .3s; }
.ear-tag:hover .ear-tag__count .ico { transform: translateX(4px); }
.ear-tag--dark { background: var(--brown); color: var(--wheat); border-color: transparent; }
.ear-tag--dark h3 { color: var(--gold-2); }
.ear-tag--dark .ear-tag__icon { background: rgba(255,255,255,.08); color: var(--gold-2); }
.ear-tag--dark .ear-tag__count { color: #fff; }
.ear-tag--dark .ear-tag__hole { background: var(--brown-2); }
.ear-tag--dark:hover { color: var(--wheat); }

/* ---------- quick milk widget ---------- */
.milk-quick__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.milk-widget { background: #fff; border-radius: 26px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.chip-row, .filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--brown); border-radius: 999px;
  padding: 8px 15px; font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none; transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--rust); color: var(--rust); transform: translateY(-1px); }
.chip.is-on { background: var(--brown); border-color: var(--brown); color: #fff; }
.range-label { display: block; margin: 22px 0 8px; font-weight: 600; color: var(--brown); font-size: .95rem; }
.range-label output { font: 700 1rem var(--ff-mono); color: var(--rust); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--gold) var(--p, 50%), var(--wheat) var(--p, 50%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--rust); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--rust); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: grab; }
.milk-widget__body { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center; margin-top: 26px; }
.pail-viz { position: relative; width: 140px; height: 150px; margin: 0 auto; }
.pail-viz__pail { position: absolute; bottom: 0; left: 10px; right: 10px; height: 120px; overflow: hidden; background: linear-gradient(90deg, #d7d9dc, #f4f5f6 40%, #c4c7cb); clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); }
.pail-viz__milk { position: absolute; left: 0; right: 0; bottom: 0; height: var(--fill, 40%); background: linear-gradient(#fffef9, #f3ecd9); transition: height .8s var(--ease); }
.pail-viz__wave { position: absolute; left: -50%; width: 200%; height: 16px; bottom: calc(var(--fill, 40%) - 8px); background: radial-gradient(circle at 10px -4px, transparent 12px, #fffef9 13px) 0 0/20px 16px repeat-x; animation: wave 2.4s linear infinite; transition: bottom .8s var(--ease); }
@keyframes wave { to { transform: translateX(20px); } }
.pail-viz__handle { position: absolute; top: 0; left: 18px; right: 18px; height: 60px; border: 4px solid #9aa0a6; border-bottom: 0; border-radius: 60px 60px 0 0; }
.milk-widget__stats, .out-stats { display: grid; gap: 12px; margin: 0; }
.milk-widget__stats div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); }
.milk-widget__stats dt { font-weight: 600; color: var(--brown); font-size: .92rem; }
.milk-widget__stats dd { margin: 0; font: 800 1.35rem var(--ff-head); color: var(--rust); text-align: right; }
.milk-widget__stats dd small { display: block; font: 500 .75rem var(--ff-body); color: var(--text); }

/* ---------- posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-grid--home { grid-template-columns: 1.15fr 1fr; grid-auto-rows: auto; }
.post-grid--home .post-card--feature { grid-row: span 3; }
.post-grid--home .post-card--feature .post-card__img { aspect-ratio: 16 / 10; }
.post-grid--home .post-card--feature .post-card__title { font-size: 1.6rem; }
.post-grid--home .post-card:not(.post-card--feature) { display: grid; grid-template-columns: 190px 1fr; }
.post-grid--home .post-card:not(.post-card--feature) .post-card__img { aspect-ratio: auto; height: 100%; min-height: 150px; }
.post-grid--home .post-card:not(.post-card--feature) .post-card__body { padding: 18px 20px; }
.post-grid--home .post-card:not(.post-card--feature) .post-card__title { font-size: 1.08rem; }
.post-grid--home .post-card:not(.post-card--feature) .post-card__excerpt { display: none; }
.post-grid__item { display: flex; }
.post-grid__item > .post-card { flex: 1; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--wheat); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.07); }
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .82rem; margin-bottom: 10px; }
.post-card__title { font-size: 1.24rem; color: var(--brown); margin-bottom: .5em; }
.post-card__title a { color: inherit; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100%/0 2px no-repeat; transition: background-size .45s var(--ease); }
.post-card:hover .post-card__title a { background-size: 100% 2px; }
.post-card__excerpt { font-size: .95rem; line-height: 1.6; flex: 1; }
.tag { display: inline-block; font: 700 .72rem/1 var(--ff-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--rust); background: rgba(163,75,42,.08); padding: 6px 9px; border-radius: 6px; text-decoration: none; }
.tag:hover { background: var(--rust); color: #fff; }

/* ---------- tools ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--r); text-decoration: none;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #d9d4c4; overflow: hidden;
  transition: transform .45s var(--ease), border-color .3s, background .3s;
}
.tool-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(227,182,85,.18), transparent 45%); opacity: 0; transition: opacity .3s; }
.tool-card:hover::before { opacity: 1; }
.tool-card:hover { border-color: rgba(227,182,85,.5); color: #d9d4c4; }
.tool-card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--gold); color: var(--brown); margin-bottom: 8px; }
.tool-card__kicker { font: 700 .72rem var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.tool-card__title { font: 700 1.25rem/1.2 var(--ff-head); color: #fff; }
.tool-card__desc { font-size: .93rem; line-height: 1.55; flex: 1; }
.tool-card .link-arrow { color: var(--gold-2); margin-top: 6px; }
.section:not(.section--forest) .tool-card, .section--sand .tool-card { background: #fff; border-color: var(--line); color: var(--text); box-shadow: var(--shadow-sm); }
.section:not(.section--forest) .tool-card .tool-card__title { color: var(--brown); }
.section:not(.section--forest) .tool-card .tool-card__kicker, .section:not(.section--forest) .tool-card .link-arrow { color: var(--rust); }
.section:not(.section--forest) .tool-card:hover { box-shadow: var(--shadow-lg); }
.tool-grid--3 { margin-bottom: 0; }

/* ---------- why / story ---------- */
.why__grid, .story__grid, .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split--center { align-items: center; }
.why__media, .split__media { position: relative; }
.why__media img, .split__media img { border-radius: 30px; box-shadow: var(--shadow-lg); aspect-ratio: 1; object-fit: cover; width: 100%; }
.why__media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px dashed var(--gold); border-radius: 30px; z-index: -1; }
.why__badge { position: absolute; right: -16px; bottom: 30px; background: var(--rust); color: #fff; padding: 18px 22px; border-radius: 18px; box-shadow: var(--shadow); text-align: center; animation: bob 7s ease-in-out infinite; }
.why__badge strong { display: block; font: 800 2rem/1 var(--ff-head); }
.why__badge span { font-size: .8rem; }
.why__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.why__list li { display: flex; gap: 18px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.why__list li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.why__n { font: 700 .85rem var(--ff-mono); color: #fff; background: var(--brown); border-radius: 10px; min-width: 40px; height: 40px; display: grid; place-items: center; }
.why__list h3 { font-size: 1.1rem; margin-bottom: .3em; }
.why__list p { margin: 0; font-size: .95rem; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--rust)); }
.timeline__item { position: relative; padding: 0 0 26px; }
.timeline__item::before { content: ""; position: absolute; left: -30px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 3px solid var(--rust); }
.timeline__year { font: 700 .78rem var(--ff-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--rust); }
.timeline__item p { margin: 4px 0 0; color: var(--brown); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { margin: 2.2em 0; }
.faq__item { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 12px; overflow: hidden; transition: box-shadow .3s; }
.faq__item[open] { box-shadow: var(--shadow); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font: 600 1.08rem/1.35 var(--ff-head); color: var(--brown); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sand); transition: background .3s, transform .4s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--rust); transition: transform .4s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--rust); transform: rotate(180deg); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding: 0 22px 6px; animation: fadeDown .4s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }
.faq--group h2 { font-size: 1.6rem; margin-top: 1.2em; }

/* ---------- CTA band + footer ---------- */
.cta-band { position: relative; background: linear-gradient(120deg, var(--rust) 0%, var(--rust-2) 55%, var(--brown) 100%); color: #f6e9dd; padding: clamp(50px, 7vw, 80px) 0; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 480px; height: 480px; right: -120px; top: -220px; border-radius: 50%; border: 60px solid rgba(255,255,255,.05); }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { background: var(--forest); color: #b9b4a3; padding: 70px 0 0; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1.5fr; gap: 36px; }
.site-footer__brand img { width: 210px; margin-bottom: 18px; }
.site-footer h4 { color: var(--gold-2); font-size: 1.05rem; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d9d4c4; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; }
.footer-mail .ico { width: 18px; height: 18px; color: var(--gold); }
.news-form { display: grid; gap: 10px; }
.news-form input[type="email"] { width: 100%; padding: 13px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; font: inherit; }
.news-form input::placeholder { color: #9d9886; }
.news-form input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.1); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 54px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
.pgf-aff-footer { text-align: center; font-size: 12px; opacity: .75; padding: 0 16px 22px; margin: 0; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--brown); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .4s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--rust); }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 300; transform: translate(-50%, 30px); opacity: 0; background: var(--brown); color: #fff; padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow-lg); transition: all .45s var(--ease); font-weight: 500; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- interior heroes ---------- */
.page-hero { position: relative; padding: clamp(30px, 4vw, 50px) 0 clamp(40px, 6vw, 70px); overflow: hidden; }
.page-hero h1 { max-width: 880px; font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.page-hero__lead { font-size: 1.15rem; max-width: 700px; }
.page-hero--slim { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-hero .filter-bar { margin-top: 26px; align-items: center; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .85rem; }
.crumbs li { color: #8a7a68; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gold); }
.crumbs a { color: var(--brown); text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--rust); }
.search-field { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.search-field .ico { width: 18px; height: 18px; color: #8a7a68; }
.search-field input { border: 0; outline: 0; background: none; font: inherit; color: var(--brown); width: 180px; }
.search-field--wide { margin: 18px 0 0; width: min(520px, 100%); padding: 10px 18px; }
.search-field--wide input { width: 100%; }
.empty-state { text-align: center; padding: 30px; color: #8a7a68; }
.big-404 { font: 800 clamp(6rem, 18vw, 11rem)/1 var(--ff-head); margin: 0; background: linear-gradient(120deg, var(--gold), var(--rust)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- steps / herd / about ---------- */
.steps, .herd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step, .herd-card { padding: 30px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s; }
.step:hover, .herd-card:hover { box-shadow: var(--shadow-lg); }
.step__n { display: inline-block; font: 800 2.6rem/1 var(--ff-head); color: transparent; -webkit-text-stroke: 1.5px var(--gold); margin-bottom: 14px; }
.herd-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--sand); color: var(--rust); margin-bottom: 16px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; font-weight: 500; }
.check-list .ico { color: var(--gold-2); }

/* ---------- contact / forms ---------- */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label, .field__label { font-weight: 600; color: var(--brown); font-size: .93rem; }
.field .opt { font-weight: 400; color: #8a7a68; font-size: .82rem; }
.field input:not([type="range"]):not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #d8cfbd; border-radius: 12px; background: #fff;
  color: var(--brown); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A34B2A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/18px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 4px rgba(163,75,42,.12); }
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; margin-bottom: 22px; }
.notice p, .notice ul { margin: 0; }
.notice--ok { background: #e9f2e2; color: #2f532e; }
.notice--err { background: #fbe9e2; color: var(--rust-2); }
.contact__info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.info-card h3 { font-size: 1.08rem; margin-bottom: .2em; }
.info-card p { margin: 0; }
.info-card__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--sand); color: var(--rust); }
.info-card--tip { background: var(--brown); color: var(--wheat); border-color: transparent; }
.info-card--tip h3 { color: var(--gold-2); }
.info-card--tip a { color: #fff; }
.info-card--tip .info-card__icon { background: rgba(255,255,255,.08); color: var(--gold-2); }

/* ---------- start here ---------- */
.path { list-style: none; margin: 0; padding: 0; position: relative; }
.path::before { content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: repeating-linear-gradient(var(--gold) 0 8px, transparent 8px 16px); }
.path__step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 22px; margin-bottom: 26px; }
.path__n { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brown); color: var(--gold-2); font: 700 1.1rem var(--ff-mono); box-shadow: 0 0 0 8px var(--cream); }
.path__body { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; box-shadow: var(--shadow-sm); }
.path__body h2 { font-size: 1.45rem; }
.path__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.path__links a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--sand); color: var(--brown); font-weight: 600; font-size: .9rem; text-decoration: none; }
.path__links a:hover { background: var(--rust); color: #fff; }
.path__links .ico { width: 16px; height: 16px; }
.checklist-card { background: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.checklist-card ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.checklist-card label { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: background .2s; color: var(--brown); font-weight: 500; }
.checklist-card label:hover { background: var(--cream); }
.checklist-card input { width: 20px; height: 20px; accent-color: var(--rust); }
.checklist-card input:checked + * , .checklist-card label:has(input:checked) { text-decoration: line-through; color: #8a7a68; background: #f3f6ee; }
.checklist-card__score { font-weight: 600; color: var(--brown); }
.checklist-card__score strong { font: 800 1.6rem var(--ff-head); color: var(--rust); }

.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.sitemap-grid h2 { font-size: 1.3rem; }
.sitemap-grid ul { padding-left: 18px; }

/* ---------- article ---------- */
.post-hero { position: relative; padding: clamp(26px, 4vw, 46px) 0 0; overflow: hidden; }
.post-hero__inner { max-width: 980px; }
.post-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.post-hero__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.post-hero__byline { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: #8a7a68; }
.post-hero__byline span { display: inline-flex; align-items: center; gap: 6px; }
.post-hero__byline .ico { width: 16px; height: 16px; }
.post-hero__byline a { color: var(--brown); font-weight: 600; text-decoration: none; }
.post-hero__img { margin: 26px 0 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; background: var(--wheat); }
.post-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 270px; gap: 46px; padding-top: 50px; padding-bottom: 70px; align-items: start; }
.post-layout--tool { grid-template-columns: minmax(0, 1fr) 300px; padding: 0; }
.post-toc { position: sticky; top: calc(var(--header-h) + 20px); }
.post-toc__inner { max-height: calc(100vh - 140px); overflow: auto; padding-right: 6px; }
.post-toc__title { font: 700 .75rem var(--ff-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--rust); margin-bottom: 12px; }
.post-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.post-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: #8a7a68; font-size: .86rem; line-height: 1.4; text-decoration: none; transition: all .2s; }
.post-toc a:hover { color: var(--brown); }
.post-toc a.is-active { color: var(--rust); border-color: var(--rust); font-weight: 600; }
.post-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.side-card p { font-size: .92rem; }
.side-card__kicker { font: 700 .72rem var(--ff-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--rust); margin-bottom: 8px; }
.side-card__title { font: 700 1.15rem/1.25 var(--ff-head); color: var(--brown); }
.side-card--tool { background: linear-gradient(160deg, var(--brown), var(--forest)); border: 0; color: var(--wheat); }
.side-card--tool .side-card__title { color: #fff; }
.side-card--tool .side-card__kicker { color: var(--gold-2); }
.side-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--gold); color: var(--brown); margin-bottom: 14px; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-links a { display: flex; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 8px; color: var(--brown); text-decoration: none; font-size: .9rem; font-weight: 500; line-height: 1.35; }
.side-links a:hover { background: var(--sand); color: var(--rust); }
.side-links .ico { width: 18px; height: 18px; color: var(--gold); }

.prose { font-size: 1.07rem; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin-top: 1.7em; }
.prose h3 { font-size: 1.28rem; margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--rust); }
.prose strong { color: var(--brown); }
.prose figure { margin: 1.8em 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.prose th { background: var(--brown); color: #fff; text-align: left; font-weight: 600; padding: 13px 16px; }
.prose td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) { background: var(--cream); }
.prose tbody tr:hover { background: var(--sand); }
.prose figure:has(table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose img { border-radius: 14px; }
.cta-inline { padding: 16px 20px; border-radius: 14px; background: var(--sand); border-left: 4px solid var(--gold); font-weight: 500; }
.quick-answer { position: relative; margin: 0 0 2em; padding: 24px 26px 22px; border-radius: 18px; background: linear-gradient(135deg, #fff8e6, #fff); border: 1.5px solid rgba(200,154,59,.45); box-shadow: 0 12px 30px -20px rgba(200,154,59,.8); }
.quick-answer .qa-label { display: inline-block; margin: 0 0 8px; font: 700 .72rem var(--ff-mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--gold); padding: 5px 9px; border-radius: 6px; }
.quick-answer p:last-child { margin-bottom: 0; }

.bar-chart { margin: 1.8em 0; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 70px; gap: 12px; align-items: center; font-size: .92rem; }
.bar-label { font-weight: 600; color: var(--brown); }
.bar-track { height: 14px; border-radius: 10px; background: var(--sand); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: calc(var(--v) / var(--max) * 100%); border-radius: 10px; background: linear-gradient(90deg, var(--gold), var(--rust)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.bar-chart.is-in .bar-fill { transform: scaleX(1); }
.bar-val { font: 700 .82rem var(--ff-mono); color: var(--rust); text-align: right; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2.4em 0 1.6em; padding-top: 24px; border-top: 1px solid var(--line); font-size: .92rem; }
.share span { font-weight: 600; color: var(--brown); }
.share a, .share button { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--brown); text-decoration: none; font-weight: 600; font-size: .85rem; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--brown); color: #fff; border-color: var(--brown); }
.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 18px; background: var(--sand); }
.author-box img { border-radius: 50%; flex: none; }
.author-box p { margin: 0; font-size: .95rem; }
.author-box__name { font: 700 1.05rem var(--ff-head) !important; color: var(--brown); margin-bottom: 4px !important; }

/* Affiliate boxes (class names carried over from the original site). */
.pgf-aff-box { margin: 1.9em 0; padding: 1.1em 1.3em; border: 1px solid rgba(90,110,60,.3); border-left: 4px solid var(--moss); border-radius: 12px; background: rgba(90,110,60,.06); }
.pgf-aff-label { margin: 0 0 .55em !important; font: 700 .74rem var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--moss); }
.pgf-aff-box ul { margin: 0 !important; padding: 0 !important; list-style: none !important; display: grid; gap: .6em; }
.pgf-aff-box li { margin: 0 !important; }
.pgf-aff-box a { font-weight: 700; }
.pgf-aff-note { display: block; font-size: .88em; opacity: .8; }
.pgf-aff-cta { margin: .7em 0 0 !important; font-size: .8em; opacity: .7; }
.pgf-aff-disclosure { font-size: .85em; font-style: italic; opacity: .8; }

/* Original embedded calculators inside the two legacy posts. */
#goat-milk-tool, #goat-cheese-tool { margin: 2em auto !important; }
#goat-milk-tool h2, #goat-cheese-tool h2 { margin-top: 0 !important; }

/* ---------- tool UI ---------- */
.tool-wrap { max-width: 1000px; }
.tool { background: #fff; border-radius: 28px; padding: clamp(22px, 4vw, 42px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: relative; overflow: hidden; }
.tool::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--gold), var(--rust), var(--moss)); }
.tool__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.tool__fields { display: grid; gap: 18px; }
.tool__fields--row { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 26px; }
.tool__out { background: linear-gradient(160deg, var(--brown), var(--forest)); color: var(--wheat); border-radius: 22px; padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); }
.out-label { margin: 0 0 6px; font: 700 .74rem var(--ff-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.out-big { margin: 0; font: 800 clamp(2rem, 4vw, 2.8rem)/1.05 var(--ff-head); color: #fff; }
.out-sub { margin: 8px 0 0; font-size: .92rem; }
.tool__out .out-stats { grid-template-columns: repeat(3, 1fr); margin-top: 22px; }
.out-stats div { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.07); }
.out-stats dt { font-size: .75rem; opacity: .8; }
.out-stats dd { margin: 4px 0 0; font: 700 1.05rem var(--ff-head); color: #fff; }
.out-stats--4 { grid-template-columns: repeat(4, 1fr); margin-top: 18px; }
.tool > .out-stats div, .out-stats--4 div { background: var(--cream); border: 1px solid var(--line); }
.out-stats--4 dt { color: var(--text); opacity: 1; }
.out-stats--4 dd { color: var(--rust); font-size: 1.3rem; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--sand); gap: 4px; }
.seg button { border: 0; background: none; padding: 9px 14px; border-radius: 9px; font-weight: 600; color: var(--brown); cursor: pointer; font-size: .9rem; }
.seg button.is-on { background: #fff; color: var(--rust); box-shadow: var(--shadow-sm); }
.day-split { display: flex; gap: 4px; height: 38px; margin-top: 20px; }
.day-split span { flex: var(--w) 1 0; border-radius: 8px; background: linear-gradient(var(--gold-2), var(--gold)); display: grid; place-items: center; color: var(--brown); font: 700 .72rem var(--ff-mono); transition: flex .6s var(--ease); min-width: 0; overflow: hidden; }
.day-split span.kid { background: rgba(255,255,255,.12); color: var(--wheat); }
.tool__chart { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.tool__chart svg { width: 100%; height: auto; }
.tool__chart .grid line { stroke: rgba(59,42,30,.1); }
.tool__chart .axis text { font: 11px var(--ff-mono); fill: #8a7a68; }
.tool__chart .area { fill: url(#peGrad); }
.tool__chart .line { fill: none; stroke: var(--rust); stroke-width: 3; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s var(--ease) forwards; }
.tool__chart .peak circle { fill: var(--gold); stroke: #fff; stroke-width: 3; }
.tool__chart .peak text { font: 700 12px var(--ff-mono); fill: var(--brown); }
.tool__chart .you circle { fill: var(--moss); stroke: #fff; stroke-width: 3; }
.tool__chart .hover-line { stroke: var(--brown); stroke-dasharray: 4 4; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart-tip { position: absolute; pointer-events: none; background: var(--brown); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: .82rem; transform: translate(-50%, -110%); white-space: nowrap; box-shadow: var(--shadow); }
.goat-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 6px; }
.goat-row span { width: 34px; height: 34px; border-radius: 10px; background: var(--gold); color: var(--brown); display: grid; place-items: center; animation: pop .45s var(--ease) backwards; }
.goat-row span .ico { width: 22px; height: 22px; }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
.due-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 28px; border-radius: 22px; background: linear-gradient(160deg, var(--brown), var(--forest)); color: var(--wheat); }
.due-card__count { text-align: center; padding: 14px 20px; border-radius: 16px; background: rgba(255,255,255,.08); }
.due-card__count strong { display: block; font: 800 2.4rem/1 var(--ff-head); color: var(--gold-2); }
.due-card__count span { font-size: .85rem; }
.gest-bar { position: relative; height: 12px; border-radius: 10px; background: var(--sand); margin: 26px 0 8px; overflow: visible; }
.gest-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--gold), var(--rust)); transition: width 1s var(--ease); }
.gest-bar__today { position: absolute; top: -6px; width: 4px; height: 24px; margin-left: -2px; border-radius: 3px; background: var(--brown); display: none; }
.timeline-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.timeline-list li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream); animation: fadeDown .4s var(--ease) backwards; }
.timeline-list li.is-past { opacity: .55; }
.timeline-list li.is-next { border-color: var(--rust); background: #fff; box-shadow: var(--shadow); }
.timeline-list .tl-date { font: 700 .85rem var(--ff-mono); color: var(--rust); }
.timeline-list .tl-day { display: block; font-size: .75rem; color: #8a7a68; font-weight: 400; }
.timeline-list strong { color: var(--brown); display: block; }
.timeline-list p { margin: 2px 0 0; font-size: .92rem; }
.feed-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 24px; }
.feed-group { border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; background: var(--cream); }
.feed-group legend { font: 700 .78rem var(--ff-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--rust); padding: 0 6px; }
.feed-out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feed-tile { padding: 20px; border-radius: 18px; background: var(--sand); }
.feed-tile .out-label { color: var(--rust); }
.feed-tile .out-big { color: var(--brown); font-size: 1.9rem; }
.feed-tile__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--rust); margin-bottom: 12px; }
.feed-tile--dark { background: var(--brown); color: var(--wheat); }
.feed-tile--dark .out-big { color: #fff; }
.feed-tile--dark .out-label { color: var(--gold-2); }
.quiz__progress { height: 6px; border-radius: 6px; background: var(--sand); margin-bottom: 26px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--rust)); transition: width .5s var(--ease); }
.quiz__q { border: 0; padding: 0; margin: 0; animation: fadeDown .45s var(--ease); }
.quiz__q legend { font: 700 1.5rem/1.25 var(--ff-head); color: var(--brown); margin-bottom: 18px; }
.quiz__n { font: 700 .8rem var(--ff-mono); color: var(--rust); vertical-align: middle; margin-right: 6px; }
.quiz__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.opt-card { position: relative; cursor: pointer; }
.opt-card input { position: absolute; opacity: 0; }
.opt-card span { display: block; padding: 20px; border-radius: 16px; border: 2px solid var(--line); background: var(--cream); font-weight: 600; color: var(--brown); transition: all .25s var(--ease); }
.opt-card:hover span { border-color: var(--gold); transform: translateY(-3px); }
.opt-card input:checked + span { border-color: var(--rust); background: #fff; color: var(--rust); box-shadow: var(--shadow); }
.opt-card input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.quiz__nav { margin-top: 18px; min-height: 40px; }
.match-list { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 14px; }
.match-list li { display: grid; grid-template-columns: 70px 1fr; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--cream); animation: fadeDown .5s var(--ease) backwards; }
.match-list li:first-child { background: linear-gradient(160deg, var(--brown), var(--forest)); color: var(--wheat); border: 0; }
.match-list li:first-child h3 { color: #fff; }
.match-list li:first-child .match-ring { --c: var(--gold-2); }
.match-ring { --c: var(--rust); width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--pct) * 1%), rgba(0,0,0,.08) 0); font: 700 .95rem var(--ff-mono); position: relative; }
.match-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--cream); }
.match-list li:first-child .match-ring::before { background: var(--brown); }
.match-ring b { position: relative; }
.match-list h3 { margin: 0 0 4px; font-size: 1.2rem; }
.match-list p { margin: 0; font-size: .92rem; }
.conv__in { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.conv__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.conv__cell { padding: 16px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); transition: transform .3s var(--ease); }
.conv__cell:hover { transform: translateY(-3px); }
.conv__cell strong { display: block; font: 800 1.5rem/1.1 var(--ff-head); color: var(--rust); }
.conv__cell span { font-size: .82rem; font-weight: 600; color: var(--brown); }
.conv__cell.is-from { background: var(--brown); border-color: var(--brown); }
.conv__cell.is-from strong { color: var(--gold-2); }
.conv__cell.is-from span { color: var(--wheat); }

/* ---------- reveal & tilt effects ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.tilt { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tool__chart .line { stroke-dashoffset: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .tag-grid { grid-template-columns: repeat(3, 1fr); }
  .post-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .post-layout .post-side { display: none; }
  .post-layout--tool .post-side { display: grid; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer__news { grid-column: span 2; }
}
@media (max-width: 1020px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 18px; padding: 22px 20px 40px;
    background: var(--cream); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-open .nav-toggle .ico-open { display: none; }
  .nav-open .nav-toggle .ico-close { display: block; }
  .nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a { flex: 1; padding: 16px 4px; font-size: 1.15rem; font-family: var(--ff-head); }
  .main-nav > ul > li > a::after { display: none; }
  .sub-toggle { margin: 0; padding: 12px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 8px; background: none; display: none; width: 100%; min-width: 0; }
  .has-sub.is-open > .sub { display: block; }
  .has-sub:hover .sub-toggle .ico { transform: none; }
  .has-sub.is-open .sub-toggle .ico { transform: rotate(180deg); }
  .nav-cta { align-self: flex-start; }
  .brand img, .site-header.is-scrolled .brand img { width: 180px; }
  .hero__grid, .milk-quick__grid, .why__grid, .story__grid, .split, .contact, .tool__grid { grid-template-columns: 1fr; }
  .hero__media { margin-top: 20px; width: min(420px, 86%); }
  .post-grid, .post-grid--home, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid--home { grid-template-columns: 1fr; }
  .post-grid--home .post-card--feature { grid-row: auto; }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-toc { position: static; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
  .post-toc__inner { max-height: none; }
  .post-layout--tool { grid-template-columns: 1fr; }
  .steps, .herd-grid { grid-template-columns: 1fr; }
  .feed-out { grid-template-columns: repeat(2, 1fr); }
  .tool__out { position: static; }
  .why__media { order: -1; max-width: 520px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .tag-grid, .post-grid, .post-grid--home, .tool-grid, .feed-groups, .stats__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid--home .post-card:not(.post-card--feature) { grid-template-columns: 120px 1fr; }
  .post-grid--home .post-card:not(.post-card--feature) .post-card__img { min-height: 120px; }
  .ear-tag { min-height: 0; }
  .float-chip--a { left: -12px; }
  .float-chip--b { right: -10px; }
  .spin-badge { width: 96px; height: 96px; right: -6px; top: -16px; }
  .milk-widget__body { grid-template-columns: 1fr; }
  .form__row, .conv__in { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand, .site-footer__news { grid-column: span 2; }
  .out-stats--4, .tool__out .out-stats { grid-template-columns: repeat(2, 1fr); }
  .feed-out { grid-template-columns: 1fr; }
  .timeline-list li { grid-template-columns: 1fr; gap: 4px; }
  .bar-row { grid-template-columns: 96px 1fr 56px; font-size: .82rem; }
  .search-field { margin-left: 0; width: 100%; }
  .search-field input { width: 100%; }
  .path__step { grid-template-columns: 1fr; }
  .path::before { display: none; }
  .path__n { width: 50px; height: 50px; box-shadow: none; }
  .hero__scroll { display: none; }
  .why__badge { right: 8px; }
  .why__media::before { inset: 14px -10px -14px 14px; }
  .quiz__q legend { font-size: 1.25rem; }
  .match-list li { grid-template-columns: 56px 1fr; gap: 12px; }
  .match-ring { width: 56px; height: 56px; font-size: .8rem; }
}
.post-grid--home .post-card:not(.post-card--feature) .post-card__img img { object-position: 88% center; }
