:root {
  --bg: #f6efe4;
  --paper: #fffaf2;
  --alt: #efe5d4;
  --ink: #2b1e14;
  --muted: #6d5c4d;
  --line: #e2d4bd;
  --crust: #b5652a;
  --crust-dark: #8f4a1a;
  --ok: #3f6b3a;
  --warn: #9a4a12;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(74, 45, 20, .10);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--crust-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--crust); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--crust-dark); margin-bottom: .8em; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--alt); }
.section-lead { color: var(--muted); max-width: 60ch; margin-bottom: 2em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--crust); color: #fff; font: 600 1rem var(--sans); padding: 14px 26px; border: 2px solid var(--crust); border-radius: 999px; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--crust-dark); border-color: var(--crust-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--crust-dark); }
.btn-ghost:hover { background: rgba(181, 101, 42, .1); border-color: var(--crust); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 239, 228, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.45rem/1 var(--serif); }
.brand svg { width: 38px; height: 38px; }
.brand small { display: block; font: 500 .68rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.site-header nav { margin-left: auto; display: flex; gap: 26px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-header nav a:hover { color: var(--crust-dark); }

/* Hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.2em; }
.next-bake { font-size: .95rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: inline-block; margin: 0; }
.next-bake:empty { display: none; }
.next-bake strong { color: var(--crust-dark); }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { border-radius: 28px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: .88rem; }
.facts { list-style: none; padding: 0; margin-top: clamp(36px, 6vw, 72px); margin-bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.facts li { padding: 22px 18px 26px; border-right: 1px solid var(--line); }
.facts li:first-child { padding-left: 0; }
.facts li:last-child { border-right: 0; }
.facts strong { display: block; font: 600 1.25rem var(--serif); }
.facts span { color: var(--muted); font-size: .92rem; }

/* Products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img, .card-art svg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body p { font-size: .95rem; color: var(--muted); }
.allergens { font-size: .8rem !important; margin-top: auto; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font: 600 1.35rem var(--serif); white-space: nowrap; }
.price small { font: 400 .8rem var(--sans); color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2em 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }
.num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--crust); color: #fff; font: 600 1.2rem var(--serif); margin-bottom: 16px; }

/* Delivery */
.delivery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 2em; }
.delivery article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.delivery p { font-size: .97rem; color: var(--muted); }
.delivery .when { color: var(--crust-dark); font-weight: 600; }
.delivery .rule { margin: 0; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink); font-size: .92rem; }
.note { margin: 22px 0 0; padding: 16px 20px; border-left: 4px solid var(--crust); background: var(--paper); border-radius: 0 12px 12px 0; font-size: .97rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about img { border-radius: 24px; box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.8em; }
.ticks li { padding: 7px 0 7px 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 16px; height: 9px; border-left: 2.500px solid var(--crust); border-bottom: 2.500px solid var(--crust); transform: rotate(-45deg) scale(.8); }

/* Order form */
.order { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
fieldset { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 24px; margin: 0 0 20px; min-width: 0; }
legend { font: 600 1.2rem var(--serif); padding: 0 8px; }
.line { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-name { flex: 1; font-weight: 500; }
.line-name small { display: block; color: var(--muted); font-weight: 400; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.3rem; color: var(--crust-dark); cursor: pointer; border-radius: 50%; }
.stepper button:hover { background: var(--alt); }
.stepper input { width: 38px; border: 0; text-align: center; font: 600 1rem var(--sans); background: none; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; height: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; transition: border-color .15s, background .15s; }
.choice strong { display: block; font-size: .95rem; line-height: 1.3; }
.choice small { color: var(--muted); }
.choice input:checked + span { border-color: var(--crust); background: #fdf1e3; }
.choice input:focus-visible + span { outline: 3px solid var(--crust); outline-offset: 2px; }

.field { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 14px; }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: 400 1rem var(--sans); color: var(--ink); background: #fff; border: 1px solid #d3c3a8; border-radius: 10px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--crust); border-color: var(--crust); }
.field .invalid, .check.invalid span { border-color: #b3261e; color: #b3261e; }
.field-help { font-size: .88rem; color: var(--muted); margin: -4px 0 14px; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row .field { flex: 1 1 160px; }
.field-row .grow { flex: 2 1 220px; }
.opt { color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--crust); flex: none; }

.summary { position: sticky; top: 92px; background: var(--ink); color: #f6efe4; border-radius: var(--radius); padding: 26px; }
.summary h3 { color: #fff; }
.summary ul { list-style: none; padding: 0; margin: 0 0 14px; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .95rem; }
.summary li.empty { color: #bfae9b; }
.sum-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .95rem; }
.sum-row.total { font: 600 1.5rem var(--serif); color: #fff; }
.sum-hint { font-size: .88rem; border-radius: 10px; padding: 10px 12px; margin: 6px 0 16px; background: rgba(255, 255, 255, .08); }
.sum-hint:empty { display: none; }
.sum-hint.warn { background: #f7d9b8; color: #5a2b08; }
.sum-hint.ok { background: #d5e6cf; color: #23401f; }
.form-msg { font-size: .92rem; margin: 14px 0 0; }
.form-msg:empty { display: none; }
.form-msg.err { color: #ffb4a8; }
.form-msg.done { color: #cfe8c8; }
.form-msg a { color: #ffd9b0; }

/* FAQ */
details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--serif); color: var(--crust); }
details[open] summary::after { content: "–"; }
details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #d9cbb8; padding: 56px 0 96px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-brand { font: 700 1.6rem var(--serif); color: #fff; margin-bottom: .3em; }
.foot-h { font-weight: 600; color: #fff; margin-bottom: .4em; }
.site-footer a { color: #ffd9b0; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; color: #a99a88; }

.mobile-cta { display: none; }

@media (max-width: 1000px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .order { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header nav { display: none; }
  .bar .btn { margin-left: auto; }
  .hero-grid, .about { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li { padding: 16px 12px; border-bottom: 1px solid var(--line); }
  .facts li:nth-child(odd) { padding-left: 0; }
  .facts li:nth-child(even) { border-right: 0; }
  .steps, .delivery, .choices, .foot-grid { grid-template-columns: 1fr; }
  fieldset { padding: 18px 16px; }
  .mobile-cta { display: flex; justify-content: center; gap: 8px; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40; background: var(--crust); color: #fff; font-weight: 600; text-decoration: none; padding: 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
  .mobile-cta.hide { display: none; }
}
@media (max-width: 480px) {
  .products { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
