/* Hearth & Bean. Brand tokens live here; change a color once and it updates everywhere. */
@font-face { font-family: "Young Serif"; src: url("../fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --espresso: #2B1D16;   /* text, footer */
  --mocha: #6B4F3F;      /* secondary text */
  --cream: #FBF6EE;      /* page background */
  --oat: #F1E6D6;        /* cards, panels */
  --terracotta: #A9492A; /* primary buttons, links, logo */
  --sage: #56664B;       /* secondary accent, tags */
  --honey: #D9A441;      /* highlights, focus ring. Never for text on light backgrounds */
  --line: #E3D5C1;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--espresso);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 1.1em 0 .3em; color: var(--mocha); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--espresso); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 8px; }
.muted { color: var(--mocha); }
.small { font-size: .9rem; }
.eyebrow { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--sage); margin-bottom: .6em; }
.lede { font-size: 1.15rem; color: var(--mocha); max-width: 38em; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand img { width: 170px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: var(--espresso); text-decoration: none; font-weight: 500; padding: 10px 2px; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--terracotta); box-shadow: inset 0 -2px 0 currentColor; }
.nav-toggle { background: none; border: 1px solid var(--line); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; display: block; width: 18px; height: 2px; background: var(--espresso); border-radius: 2px; position: relative; }
.nav-toggle-bar::before { position: absolute; top: -6px; } .nav-toggle-bar::after { position: absolute; top: 6px; }
@media (max-width: 859px) {
  .js .nav-toggle { display: grid; }
  .js .site-nav { flex-basis: 100%; display: none; padding-bottom: 12px; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { box-shadow: none; }
}
@media (min-width: 860px) { .nav-toggle { display: none !important; } .brand img { width: 190px; } }

/* Banners */
.demo-banner { background: #FFF3D6; border-bottom: 1px solid #EBD39A; color: var(--espresso); font-size: .95rem; padding: 10px 0; }
.dev-notes { margin-top: 16px; background: #fff; border: 2px dashed var(--honey); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .9rem; }
.dev-notes ul { margin: .3em 0 0; padding-left: 1.2em; }
.dev-notes-inline { margin-top: 12px; font-size: .85rem; background: #fff; border: 1px dashed var(--honey); border-radius: 8px; padding: 6px 10px; }
.notice { background: var(--oat); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .95rem; max-width: 46em; }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--terracotta); color: var(--cream); }
.btn-primary:hover { background: #8F3B21; }
.btn-secondary { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-secondary:hover { background: var(--espresso); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.chip { font: inherit; font-size: .95rem; font-weight: 500; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--espresso); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.chip[aria-pressed="true"] { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.chip-link:hover { border-color: var(--terracotta); color: var(--terracotta); }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .03em; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.badge-untested { background: #FFF3D6; color: #6A4A0C; border: 1px solid #EBD39A; }
.badge-tested { background: #E4EADF; color: #3A4732; border: 1px solid #C5D1BC; }
.badge-soon { background: var(--espresso); color: var(--cream); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--cream), var(--oat)); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; gap: 24px; padding-block: 40px 0; align-items: end; }
.hero-copy { padding-bottom: 8px; }
.hero-art { max-width: 340px; margin: 0 auto; width: 100%; }
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.2fr 1fr; padding-top: 72px; gap: 48px; }
  .hero-copy { padding-bottom: 72px; }
  .hero-art { max-width: 420px; }
}

/* Sections, grids, cards */
.section { padding-block: 40px 8px; }
.section-title { margin-bottom: 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.more { font-weight: 600; text-decoration: none; }
.page-head { padding-block: 40px 16px; }
.grid { display: grid; gap: 20px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-gear { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-bottom: 32px; }
.grid-paths { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-link:hover h3 { color: var(--terracotta); }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { margin-bottom: .3em; }
.card .meta { font-size: .9rem; color: var(--mocha); margin: 0; }
.gear-card ul { padding-left: 1.1em; margin: 0 0 1em; }

/* Photo or placeholder. Arch top is the brand's signature shape. */
.photo { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.card .photo { aspect-ratio: 4 / 3; }
.photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--mocha); font-size: .85rem; font-weight: 500; }
.photo-placeholder img { width: 48px; opacity: .9; }
.photo-oat { background: var(--oat); }
.photo-sage { background: #DDE3D6; }
.photo-honey { background: #F5E3BC; }
.recipe-photo .photo { border-radius: var(--radius); }

/* Path cards */
.path-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 120px 120px var(--radius) var(--radius); text-decoration: none; color: var(--cream); min-height: 160px; justify-content: flex-end; }
.path-card:hover .path-title { text-decoration: underline; text-underline-offset: 4px; }
.path-terracotta { background: var(--terracotta); }
.path-sage { background: var(--sage); }
.path-espresso { background: var(--espresso); }
.path-kicker { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.path-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; line-height: 1.1; }
.path-text { font-size: .95rem; }
.method-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* Promo */
.promo { background: var(--espresso); color: var(--cream); border-radius: var(--radius); padding: 32px 24px; }
.promo .eyebrow { color: var(--honey); }
.promo .badge-soon { background: var(--honey); color: var(--espresso); margin-left: 6px; }
.promo .btn-primary { background: var(--cream); color: var(--espresso); }
.promo .btn-primary:hover { background: var(--oat); }
.promo p { max-width: 36em; color: #EADFD2; }
.honesty { padding-bottom: 56px; }
.honesty h3 { font-size: 1.15rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.empty { padding: 24px; background: var(--oat); border-radius: var(--radius); }

/* Recipe and corner pages */
.crumbs { font-size: .9rem; padding-top: 24px; color: var(--mocha); }
.crumbs a { color: var(--mocha); }
.recipe-head { display: grid; gap: 24px; padding-block: 16px 24px; align-items: center; }
.recipe-photo { max-width: 260px; width: 100%; margin-inline: auto; }
@media (min-width: 860px) { .recipe-photo { max-width: 360px; margin-inline: 0; } }
@media (min-width: 860px) { .recipe-head { grid-template-columns: 1.4fr 1fr; gap: 48px; } .recipe-photo { justify-self: end; } }
.test-status { font-size: .95rem; color: var(--mocha); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 0; margin: 0 0 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { padding: 14px 18px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--sage); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.recipe-grid { display: grid; gap: 28px; padding-bottom: 56px; }
@media (min-width: 860px) { .recipe-grid { grid-template-columns: 340px 1fr; gap: 48px; align-items: start; } }
.panel { background: var(--oat); border-radius: var(--radius); padding: 20px 22px; }
.panel h2 { font-size: 1.35rem; }
.ingredients, .equipment, .checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ingredients li, .equipment li, .checklist li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--sage); }
.qty { font-weight: 600; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1.5em; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--terracotta); color: var(--cream); display: grid; place-items: center; font-weight: 600; font-size: .95rem; }
.prose { max-width: 42em; }
.prose h2 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.page { padding-bottom: 56px; }
.link-list { padding-left: 1.2em; }

/* Guide page */
.guide-hero { display: grid; gap: 32px; padding-block: 40px 64px; }
@media (min-width: 860px) { .guide-hero { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.guide-copy h2 { font-size: 1.4rem; margin-top: 1.2em; }
.guide-copy .btn { margin-top: 4px; }
.cover { aspect-ratio: 3 / 4; max-width: 260px; margin: 0 auto; background: var(--terracotta); color: var(--cream); border-radius: 140px 140px 14px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; box-shadow: 0 18px 40px -20px rgba(43,29,22,.5); }
.cover img { margin-bottom: 16px; }
.cover-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; margin: 0; }
.cover-title { font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2rem); line-height: 1.08; font-weight: 400; margin: 10px 0; text-wrap: balance; }
.cover-sub { margin: 0; color: #F4D9CB; }

/* Footer */
.site-footer { background: var(--espresso); color: #EADFD2; padding-block: 40px; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand img { width: 180px; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--cream); }
.footer-small { font-size: .85rem; color: #CDBFAF; margin: 0; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.nav-toggle[hidden] { display: none; }
@media (min-width: 860px) { .path-card { min-height: 210px; } }
.photo-wrap { margin: 0; position: relative; }
.ai-note { position: absolute; left: 10px; bottom: 10px; background: rgba(43,29,22,.78); color: var(--cream); font-size: .72rem; padding: 3px 10px; border-radius: 999px; }

.hero-photo { margin: 0 auto 28px; max-width: 420px; }
.hero-photo .photo { aspect-ratio: 4 / 5; object-position: 42% 50%; border-radius: 999px 999px var(--radius) var(--radius); }
.about-photo { margin: 0 0 28px; }
.about-photo .photo { border-radius: var(--radius); }

/* Full-width hero photo */
.hero-full { position: relative; background: var(--espresso); color: var(--cream); border-bottom: 0; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; z-index: -2; }
.hero-full::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(43,29,22,.82) 0%, rgba(43,29,22,.55) 45%, rgba(43,29,22,0) 85%); }
.hero-full .hero-inner { grid-template-columns: 1fr; padding-block: 72px; min-height: 460px; align-items: center; }
.hero-full .hero-copy { max-width: 560px; padding-bottom: 0; }
.hero-full h1, .hero-full .lede { color: var(--cream); }
.hero-full .eyebrow { color: var(--honey); }
.hero-full .btn-secondary { color: var(--cream); border-color: var(--cream); }
.hero-full .btn-secondary:hover { background: var(--cream); color: var(--espresso); }
@media (min-width: 860px) { .hero-full .hero-inner { grid-template-columns: 1fr; padding-top: 112px; padding-bottom: 112px; min-height: 560px; } }
@media (max-width: 859px) { .hero-full::before { background: linear-gradient(180deg, rgba(43,29,22,.55), rgba(43,29,22,.85)); } .hero-bg { object-position: 62% 50%; } }

/* Gear picks on recipe and corner pages */
.gear-picks { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.gear-pick-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.gear-pick { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--espresso); }
.gear-pick:hover { border-color: var(--terracotta); }
.gear-pick-maker { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.gear-pick-name { font-family: var(--font-display, inherit); font-weight: 600; }
.gear-pick-why { font-size: .9rem; color: var(--mocha); }
.gear-pick-cta { font-size: .85rem; font-weight: 600; color: var(--terracotta); margin-top: 4px; }

/* ===== Smooth interactions =====
   One easing curve for everything so hover states feel related and unhurried. */
:root { --ease: cubic-bezier(.22, 1, .36, 1); --lift-shadow: 0 14px 30px -14px rgba(43, 29, 22, .35); }

/* Buttons: a color sweeps in from the left, the button lifts slightly, the arrow glides. */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sweep, var(--espresso)); transform: translateX(-102%); border-radius: inherit; transition: transform .6s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: var(--lift-shadow); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; transition-duration: .12s; }
.btn [aria-hidden="true"] { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover [aria-hidden="true"], .btn:focus-visible [aria-hidden="true"] { transform: translate(3px, -3px); }

.btn-primary, .btn-primary:hover { background: var(--terracotta); color: var(--cream); }
.btn-primary { --sweep: var(--espresso); }
.btn-secondary, .btn-secondary:hover { background: transparent; }
.btn-secondary { --sweep: var(--espresso); }
.btn-secondary:hover, .btn-secondary:focus-visible { color: var(--cream); border-color: var(--espresso); }
.promo .btn-primary, .promo .btn-primary:hover { background: var(--cream); color: var(--espresso); }
.promo .btn-primary { --sweep: var(--honey); }
.hero-full .btn-secondary, .hero-full .btn-secondary:hover { background: transparent; }
.hero-full .btn-secondary { --sweep: var(--cream); }
.hero-full .btn-secondary:hover, .hero-full .btn-secondary:focus-visible { color: var(--espresso); border-color: var(--cream); }

/* Navigation: a thin line grows from the left instead of snapping on. */
.site-nav a { transition: color .4s var(--ease); background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: color .4s var(--ease), background-size .5s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { box-shadow: none; background-size: 100% 2px; }
@media (max-width: 859px) { .js .site-nav a:hover { background-size: 0 2px; } }

/* Filter chips and in-text links */
.chip { transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
.chip:hover { transform: translateY(-1px); }
.chip-link:hover { box-shadow: 0 8px 18px -12px rgba(43, 29, 22, .45); }
a { transition: color .3s var(--ease), text-decoration-color .3s var(--ease); }
a:hover { text-decoration-thickness: 1px; text-decoration-color: currentColor; }
.more { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease), color .3s var(--ease); padding-bottom: 2px; }
.more:hover { background-size: 100% 1.5px; }

/* Cards: lift, soft shadow, slow photo zoom, no color jump */
.card { transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s var(--ease); }
.card:hover, .card:focus-within { transform: translateY(-5px); box-shadow: var(--lift-shadow); border-color: transparent; }
.card .photo-wrap, .card .photo-placeholder { overflow: hidden; }
.card .photo { transition: transform 1s var(--ease); }
.card:hover .photo { transform: scale(1.045); }
.card-link:hover h3 { color: inherit; }
.card-body h3 { transition: color .4s var(--ease); }

/* Home path cards */
.path-card { position: relative; overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.path-card:hover .path-title { text-decoration: none; }
.path-card::after { content: "→"; position: absolute; right: 24px; bottom: 22px; font-size: 1.4rem; opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.path-card:hover, .path-card:focus-visible { transform: translateY(-6px); box-shadow: var(--lift-shadow); }
.path-card:hover::after, .path-card:focus-visible::after { opacity: 1; transform: translateX(0); }

/* Gear picks */
.gear-pick { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease); }
.gear-pick:hover, .gear-pick:focus-visible { transform: translateY(-3px); box-shadow: var(--lift-shadow); }
.gear-pick-cta span { display: inline-block; transition: transform .45s var(--ease); }
.gear-pick:hover .gear-pick-cta span { transform: translateX(5px); }

/* Anchor jumps and respect for reduced motion */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .btn:hover, .card:hover, .path-card:hover, .gear-pick:hover, .chip:hover { transform: none; }
}

/* Gear category filter */
.gear-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; position: sticky; top: 0; z-index: 5; padding: 10px 0; background: var(--cream); }
.gear-filter .chip { gap: 6px; }
.gear-count { font-size: .75rem; opacity: .7; }
.gear-section[hidden] { display: none; }
