@import url("fonts.css");

/* ===================== Tokens ===================== */
:root{
  --cream:#F6EFE2;
  --card:#FCF8F0;
  --ink:#2B2118;
  --muted:#5C4E3F;
  --muted-2:#7A6A57;
  --ink-strong:#3E332A;
  --brown:#8A5A2B;
  --gold:#C08A2E;
  --border:#E2D6C0;
  --border-strong:#C9B48A;
  --tint:#F1E7D3;
  --footer-bg:#2B2118;
  --footer-text:#D8C6A4;
  --footer-heading:#F1E4C9;
  --footer-border:#4A3A2A;
  --footer-muted:#A8937A;
  --green:#4C7A3C;
  --serif: Newsreader, Georgia, serif;
  --sans: Karla, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, "SFMono-Regular", Consolas, monospace;
  --max: 1180px;
}

/* ===================== Reset ===================== */
*, *::before, *::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  background:var(--cream);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16.5px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:var(--brown); text-decoration:none; }
a:hover{ color:var(--ink); text-decoration:underline; }
button{ font-family:inherit; cursor:pointer; }
input, textarea, select{ font-family:inherit; }
h1,h2,h3,p,ul,figure{ margin:0; }
::selection{ background:#E7D4AE; }
.visually-hidden{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
:focus-visible{ outline:2px solid var(--brown); outline-offset:2px; }

/* ===================== Layout ===================== */
.container{ max-width:var(--max); margin:0 auto; padding:0 24px; }
main{ display:block; }
.section{ padding:70px 24px; }
.section--tight{ padding:54px 24px 80px; }
.section--card{ background:var(--card); border-bottom:1px solid var(--border); }
.section--dark{ background:var(--footer-bg); color:#F1E4C9; }
.section--tint{ background:var(--tint); }
.border-b{ border-bottom:1px solid var(--border); }
.border-t{ border-top:1px solid var(--border); }

.grid{ display:grid; gap:22px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.flex{ display:flex; }
.flex-wrap{ flex-wrap:wrap; }
.items-center{ align-items:center; }
.justify-between{ justify-content:space-between; }
.gap-8{ gap:8px; } .gap-10{ gap:10px; } .gap-12{ gap:12px; } .gap-14{ gap:14px; } .gap-20{ gap:20px; } .gap-24{ gap:24px; }
.text-center{ text-align:center; }
.muted{ color:var(--muted); }
.muted-2{ color:var(--muted-2); }
.mono{ font-family:var(--mono); }

/* ===================== Typography ===================== */
h1,h2,h3,.font-serif{ font-family:var(--serif); font-weight:600; }
.eyebrow{ display:inline-block; font-size:12px; letter-spacing:0.2em; text-transform:uppercase; color:var(--brown); }
.eyebrow--pill{ border:1px solid var(--border); border-radius:999px; padding:6px 14px; background:var(--card); }
h1{ font-size:46px; line-height:1.1; }
h2{ font-size:38px; line-height:1.15; }
.lead{ font-size:19px; color:var(--muted); max-width:60ch; }
.balance{ text-wrap:balance; }
.pretty{ text-wrap:pretty; }

/* ===================== Buttons ===================== */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:999px; padding:13px 26px; font-weight:700; font-size:15px; border:0; background:none; line-height:1.2; }
.btn:hover{ text-decoration:none; }
.btn-lg{ padding:15px 32px; font-size:16px; }
.btn-sm{ padding:10px 18px; font-size:14px; }
.btn-primary{ background:var(--brown); color:var(--card); }
.btn-primary:hover{ background:#764a22; color:var(--card); }
.btn-dark{ background:var(--ink); color:var(--cream); }
.btn-dark:hover{ background:#443626; color:var(--cream); }
.btn-outline{ background:none; color:var(--ink); border:1.5px solid var(--brown); }
.btn-outline:hover{ background:var(--card); color:var(--ink); }
.btn-outline-soft{ background:none; color:var(--ink); border:1.5px solid var(--border); }
.btn-link{ background:none; border:0; padding:0; color:var(--brown); font-weight:700; font-size:15px; }
.btn-link:hover{ color:var(--ink); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:0.55; cursor:not-allowed; }

.chip{ border-radius:999px; padding:9px 18px; font-size:14px; font-weight:700; border:1.5px solid var(--border); background:var(--card); color:var(--ink); }
.chip.is-active{ border-color:var(--brown); background:var(--brown); color:var(--card); }

/* ===================== Header ===================== */
.topbar{ background:var(--footer-bg); color:#F1E4C9; font-size:13px; letter-spacing:0.08em; text-transform:uppercase; text-align:center; padding:9px 16px; }
.site-header{ position:sticky; top:0; z-index:40; background:var(--card); border-bottom:1px solid var(--border); }
.site-header__inner{ max-width:var(--max); margin:0 auto; padding:14px 24px; display:flex; align-items:center; gap:28px; }
.brand{ display:flex; align-items:center; gap:12px; background:none; border:0; padding:0; text-align:left; }
.brand__mark{ width:40px; height:40px; border-radius:50%; background:var(--gold); display:block; border:3px solid var(--brown); flex:none; }
.brand__name{ display:block; font-family:var(--serif); font-size:22px; font-weight:600; line-height:1.1; color:var(--ink); }
.brand__tag{ display:block; font-size:11px; letter-spacing:0.18em; text-transform:uppercase; color:var(--muted-2); }
.nav{ display:flex; gap:4px; margin-left:auto; flex-wrap:wrap; }
.nav__item{ display:flex; flex-direction:column; align-items:center; }
.nav__link{ background:none; border:0; padding:8px 12px; font-size:15px; color:var(--ink); display:block; }
.nav__link:hover{ color:var(--brown); text-decoration:none; }
.nav__dot{ height:2px; width:18px; background:var(--gold); display:block; border-radius:2px; margin-top:2px; }
.cart-btn{ background:var(--ink); color:var(--cream); border:0; border-radius:999px; padding:10px 18px; font-size:14px; font-weight:700; letter-spacing:0.04em; display:flex; gap:8px; align-items:center; white-space:nowrap; }
.cart-btn__count{ background:var(--gold); color:var(--ink); border-radius:999px; min-width:22px; text-align:center; padding:1px 7px; font-size:13px; }
.nav-toggle{ display:none; background:none; border:1px solid var(--border); border-radius:6px; padding:8px 10px; margin-left:auto; }
.nav-toggle span{ display:block; width:20px; height:2px; background:var(--ink); margin:4px 0; }

/* ===================== Hero ===================== */
.hero{ background:linear-gradient(180deg, var(--card) 0%, var(--cream) 100%); border-bottom:1px solid var(--border); }
.hero__inner{ max-width:var(--max); margin:0 auto; padding:72px 24px 64px; display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center; }
.hero h1{ font-size:58px; margin:22px 0 18px; letter-spacing:-0.02em; }
.hero__stats{ display:flex; gap:34px; margin-top:40px; flex-wrap:wrap; }
.hero__stat-num{ font-family:var(--serif); font-size:30px; color:var(--brown); }
.hero__stat-label{ font-size:14px; color:var(--muted-2); }
.hero__media{ border:1px solid var(--border); border-radius:6px; overflow:hidden; background:var(--card); aspect-ratio:4/5; }
.hero__media img{ width:100%; height:100%; object-fit:cover; }

.media-frame{ border:1px solid var(--border); border-radius:6px; overflow:hidden; background:var(--card); }
.media-frame img{ width:100%; height:100%; object-fit:cover; }
.ar-1-1{ aspect-ratio:1/1; }
.ar-4-3{ aspect-ratio:4/3; }
.ar-4-5{ aspect-ratio:4/5; }
.ar-16-9{ aspect-ratio:16/9; }
.ar-16-10{ aspect-ratio:16/10; }

/* ===================== Trust strip ===================== */
.trust-item{ display:flex; gap:12px; align-items:flex-start; }
.trust-dot{ width:10px; height:10px; background:var(--gold); border-radius:2px; margin-top:8px; flex:none; transform:rotate(45deg); }
.trust-title{ font-weight:700; font-size:15px; }
.trust-text{ font-size:14px; color:var(--muted-2); }

/* ===================== Cards / Products ===================== */
.card{ background:var(--card); border:1px solid var(--border); border-radius:4px; }
.product-card{ background:var(--cream); border:1px solid var(--border); border-radius:4px; display:flex; flex-direction:column; overflow:hidden; }
.product-card--shop{ background:var(--card); }
.product-card__link{ border:0; padding:0; background:none; display:block; text-align:left; width:100%; }
.product-card__img{ aspect-ratio:1/1; background:var(--border); overflow:hidden; }
.product-card__img img{ width:100%; height:100%; object-fit:cover; }
.product-card__body{ padding:16px 16px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-card__cat{ font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--muted-2); }
.product-card__name{ background:none; border:0; padding:0; text-align:left; font-family:var(--serif); font-size:20px; line-height:1.2; color:var(--ink); }
.product-card__short{ font-size:14px; color:var(--muted-2); }
.product-card__price{ font-weight:700; color:var(--brown); margin-top:auto; }

/* ===================== Bread assistant ===================== */
.assistant{ background:var(--card); border:1px solid var(--border); border-radius:6px; padding:34px; }
.assistant-step{ font-size:12px; letter-spacing:0.16em; text-transform:uppercase; color:var(--muted-2); margin-bottom:6px; }
.assistant-title{ font-family:var(--serif); font-size:22px; margin-bottom:16px; }
.assistant-opt{ text-align:left; border-radius:4px; padding:12px 14px; border:1.5px solid var(--border); background:var(--cream); width:100%; }
.assistant-opt.is-active{ border-color:var(--brown); background:var(--tint); }
.assistant-opt__label{ display:block; font-weight:700; font-size:15px; }
.assistant-opt__hint{ display:block; font-size:13px; color:var(--muted-2); }

.result{ margin-top:34px; border:1px solid var(--border-strong); border-radius:6px; overflow:hidden; background:var(--card); }
.result__head{ background:var(--footer-bg); color:#F1E4C9; padding:26px 34px; display:flex; justify-content:space-between; gap:20px; align-items:flex-end; flex-wrap:wrap; }
.result__eyebrow{ font-size:12px; letter-spacing:0.18em; text-transform:uppercase; color:var(--gold); }
.result__title{ font-family:var(--serif); font-size:32px; line-height:1.15; }
.result__meta{ font-size:14px; color:var(--footer-text); }
.result__body{ padding:30px 34px; display:grid; grid-template-columns:0.85fr 1.15fr; gap:40px; }
.result__tip{ margin-top:24px; background:var(--tint); border-left:3px solid var(--gold); padding:16px 18px; }
.plan-row{ display:grid; grid-template-columns:92px 1fr; gap:16px; padding:12px 0; border-top:1px solid var(--border); }
.plan-row__time{ font-family:var(--mono); font-size:13px; color:var(--brown); padding-top:2px; }

/* ===================== Guides list / rows ===================== */
.guide-row{ display:grid; grid-template-columns:60px 1fr auto; gap:20px; align-items:center; text-align:left; background:none; border:0; border-top:1px solid var(--border); padding:20px 4px; width:100%; }
.guide-row:hover{ background:var(--card); text-decoration:none; }
.guide-row__num{ font-family:var(--mono); font-size:13px; color:var(--gold); }
.guide-row__title{ display:block; font-family:var(--serif); font-size:22px; color:var(--ink); }
.guide-row__excerpt{ display:block; font-size:15px; color:var(--muted-2); }
.guide-card{ background:var(--card); border:1px solid var(--border); border-radius:4px; padding:26px 26px 24px; display:flex; flex-direction:column; }

/* ===================== Reviews ===================== */
.review{ border-left:2px solid var(--gold); padding-left:20px; }
.review__text{ font-family:var(--serif); font-size:20px; line-height:1.45; font-style:italic; margin-bottom:14px; }
.review__name{ font-size:14px; color:var(--border-strong); }

/* ===================== Forms ===================== */
.field{ border:1px solid var(--border-strong); background:var(--cream); border-radius:3px; padding:12px 14px; font-family:var(--sans); font-size:15px; width:100%; }
.field:focus{ outline:2px solid var(--brown); outline-offset:1px; }
textarea.field{ resize:vertical; }
.field-pill{ border-radius:999px; padding:13px 22px; }
.check-row{ display:flex; gap:10px; font-size:14px; color:var(--muted); align-items:flex-start; }
.check-row input{ margin-top:4px; }
.form-note{ font-size:14px; color:var(--green); min-height:1.2em; }
.form-error{ font-size:14px; color:#B23A2E; min-height:1.2em; }
label.radio-row{ display:flex; gap:10px; align-items:center; border:1px solid var(--border); border-radius:3px; padding:12px 14px; background:var(--cream); font-size:15px; }

/* ===================== Footer ===================== */
.footer{ background:var(--footer-bg); color:var(--footer-text); }
.footer__grid{ max-width:var(--max); margin:0 auto; padding:60px 24px 30px; display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; }
.footer__brand{ font-family:var(--serif); font-size:26px; color:var(--footer-heading); margin-bottom:10px; }
.footer__about{ font-size:15px; margin:0 0 14px; max-width:34ch; }
.footer__legal-block{ font-size:13px; line-height:1.8; }
.footer__col-title{ font-size:11px; letter-spacing:0.18em; text-transform:uppercase; color:var(--gold); margin-bottom:14px; }
.footer__links{ display:flex; flex-direction:column; gap:9px; align-items:flex-start; }
.footer__link{ background:none; border:0; padding:0; color:var(--footer-text); font-size:15px; text-align:left; }
.footer__link:hover{ color:var(--footer-heading); text-decoration:none; }
.footer__bottom{ max-width:var(--max); margin:0 auto; padding:18px 24px 40px; border-top:1px solid var(--footer-border); display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; font-size:13px; color:var(--footer-muted); }

/* ===================== Cart drawer ===================== */
.cart-overlay{ position:fixed; inset:0; background:rgba(43,33,24,0.45); z-index:60; border:0; padding:0; }
.cart-drawer{ position:fixed; top:0; right:0; bottom:0; width:420px; max-width:92vw; background:var(--cream); z-index:61; display:flex; flex-direction:column; border-left:1px solid var(--border-strong); transform:translateX(100%); transition:transform .25s ease; }
.cart-drawer.is-open{ transform:translateX(0); }
.cart-drawer__head{ padding:22px 24px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; background:var(--card); }
.cart-drawer__title{ font-family:var(--serif); font-size:24px; }
.cart-drawer__close{ background:none; border:0; font-size:22px; color:var(--muted-2); line-height:1; }
.cart-drawer__body{ flex:1; overflow:auto; padding:8px 24px; }
.cart-empty{ padding:50px 0; text-align:center; color:var(--muted-2); }
.cart-line{ display:grid; grid-template-columns:64px 1fr auto; gap:14px; padding:16px 0; border-bottom:1px solid var(--border); }
.cart-line__img{ width:64px; height:64px; border:1px solid var(--border); border-radius:3px; overflow:hidden; background:var(--border); }
.cart-line__img img{ width:100%; height:100%; object-fit:cover; }
.cart-line__name{ font-size:15px; font-weight:700; line-height:1.3; }
.cart-line__price{ font-size:13px; color:var(--muted-2); margin-bottom:8px; }
.qty-btn{ width:26px; height:26px; border:1px solid var(--border-strong); background:var(--card); border-radius:3px; line-height:1; }
.cart-line__total{ font-weight:700; white-space:nowrap; }
.cart-drawer__foot{ border-top:1px solid var(--border-strong); padding:20px 24px; background:var(--card); }
.cart-row{ display:flex; justify-content:space-between; font-size:15px; color:var(--muted); margin-bottom:4px; }
.cart-row--total{ font-weight:700; font-size:20px; margin-bottom:14px; }

/* ===================== Cookie banner ===================== */
.cookie-banner{ position:fixed; left:24px; right:24px; bottom:24px; z-index:70; background:var(--card); border:1px solid var(--border-strong); border-radius:6px; padding:20px 24px; display:flex; gap:22px; align-items:center; flex-wrap:wrap; box-shadow:0 10px 34px rgba(43,33,24,0.18); max-width:var(--max); margin:0 auto; }
.cookie-banner__text{ flex:1; min-width:280px; font-size:15px; color:var(--ink-strong); }

/* ===================== FAQ ===================== */
.faq-item{ border-top:1px solid var(--border); }
.faq-q{ width:100%; display:flex; justify-content:space-between; gap:20px; align-items:center; background:none; border:0; padding:18px 2px; text-align:left; font-family:var(--serif); font-size:21px; color:var(--ink); }
.faq-sign{ color:var(--brown); font-size:22px; flex:none; }
.faq-a{ margin:0 0 20px; color:var(--ink-strong); max-width:70ch; display:none; }
.faq-item.is-open .faq-a{ display:block; }

/* ===================== Recipes ===================== */
.recipe-card{ background:var(--card); border:1px solid var(--border); border-radius:4px; overflow:hidden; }
.recipe-card__body{ padding:20px; }
.recipe-card__tag{ font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--muted-2); margin-bottom:8px; }
.recipe-card__name{ font-family:var(--serif); font-size:23px; line-height:1.2; margin-bottom:8px; }
.recipe-meta{ display:flex; gap:16px; font-size:13px; color:var(--muted-2); font-family:var(--mono); flex-wrap:wrap; }

/* ===================== Spec table ===================== */
.spec-row{ display:grid; grid-template-columns:180px 1fr; gap:16px; padding:11px 0; border-bottom:1px solid var(--border); font-size:15px; }
.spec-row__k{ color:var(--muted-2); }

/* ===================== Team / about ===================== */
.team-photo{ aspect-ratio:1/1; border:1px solid var(--border); border-radius:4px; margin-bottom:12px; overflow:hidden; background:var(--border); }
.team-photo img{ width:100%; height:100%; object-fit:cover; }

/* ===================== Breadcrumb ===================== */
.crumb{ background:none; border:0; padding:0; color:var(--brown); font-size:14px; margin-bottom:22px; }

/* ===================== Utility spacing ===================== */
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;}
.mt-8{margin-top:8px;} .mt-12{margin-top:12px;} .mt-16{margin-top:16px;} .mt-20{margin-top:20px;} .mt-24{margin-top:24px;} .mt-30{margin-top:30px;} .mt-34{margin-top:34px;}
.mb-8{margin-bottom:8px;} .mb-10{margin-bottom:10px;} .mb-12{margin-bottom:12px;} .mb-14{margin-bottom:14px;} .mb-16{margin-bottom:16px;} .mb-18{margin-bottom:18px;} .mb-22{margin-bottom:22px;} .mb-26{margin-bottom:26px;} .mb-30{margin-bottom:30px;} .mb-34{margin-bottom:34px;}

/* ===================== Responsive ===================== */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns:1fr; padding:44px 20px 40px; gap:32px; }
  .hero h1{ font-size:42px; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .result__body{ grid-template-columns:1fr; }
  .footer__grid{ grid-template-columns:1fr 1fr; }
  h1{ font-size:38px; }
  h2{ font-size:30px; }
}

@media (max-width: 760px){
  body{ font-size:16px; }
  .nav-toggle{ display:inline-flex; flex-direction:column; align-items:center; justify-content:center; }
  .nav{ display:none; width:100%; margin-left:0; order:3; flex-direction:column; align-items:stretch; gap:0; }
  .nav.is-open{ display:flex; }
  .nav__item{ align-items:flex-start; border-top:1px solid var(--border); }
  .nav__link{ padding:12px 4px; width:100%; }
  .site-header__inner{ flex-wrap:wrap; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
  .result__body, section > div[style]{ }
  .footer__grid{ grid-template-columns:1fr; padding:44px 20px 24px; }
  .cart-drawer{ width:100%; max-width:100%; }
  h1{ font-size:32px; }
  .hero h1{ font-size:32px; }
  h2{ font-size:26px; }
}
