@font-face {
  font-family: FoodMix;
  src: url("../assets/fonts/century-gothic-regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffcf7;
  --cream: #fcf0dd;
  --ink: #322418;
  --body: #604d3b;
  --line: #e6d4bd;
  --orange: #f18325;
  --accent: #903e13;
  --radius: 22px;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.wrap { width: min(1200px, calc(100% - clamp(32px, 8vw, 128px))); margin-inline: auto; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
button, input { font: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-family: FoodMix, system-ui, sans-serif; font-weight: 400; }
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); letter-spacing: -.042em; }
h2 { font-size: clamp(1.65rem, 3.25vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2.05rem); letter-spacing: -.025em; }
p { margin: 0; color: var(--body); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 3; inset: 12px auto auto 12px; padding: 8px; background: var(--paper); }
.site-header { border-block-end: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 7px 22px;
  min-height: 66px;
}
.brand { justify-self: start; }
.brand img { width: clamp(108px, 13vw, 151px); height: auto; }
.header-inner nav { display: flex; flex-wrap: wrap; gap: 8px clamp(16px, 3vw, 36px); }
.header-inner nav a {
  padding-block: 4px;
  font-size: .9rem;
  text-decoration: none;
  color: var(--body);
}
.header-inner nav a:hover, .header-inner nav [aria-current="page"] { color: var(--accent); text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  margin-block-start: clamp(18px, 3.5vw, 44px);
  border: 1px solid #efdfc8;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}
.hero-copy { align-self: center; padding: clamp(26px, 3.8vw, 54px) clamp(26px, 5vw, 72px); }
.product { color: var(--accent); font-size: .9rem; font-weight: 650; }
.hero-product { margin-block-end: 16px; }
.hero h1 span { display: block; color: var(--accent); }
.hero-description { max-width: 34ch; margin-block: 18px 24px; font-size: clamp(1rem, 1.55vw, 1.18rem); }
.hero-photo { position: relative; min-height: 305px; background: #e7cdac; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 52%; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button-primary { background: var(--orange); }
.button-primary:hover { background: #f89642; box-shadow: 0 3px 12px #9f591c23; }
.button-outline { border-color: #bda58b; background: var(--paper); }
.button-outline:hover { border-color: var(--accent); background: #fff3e2; }
.button:disabled { opacity: .58; cursor: default; }
.catalogue { margin-block-start: clamp(32px, 5.2vw, 67px); scroll-margin-top: 20px; }
.catalogue-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-block-end: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 42px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--paper);
  color: var(--body);
  font-size: .9rem;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.filter:hover { border-color: #bf916a; }
.filter[aria-pressed="true"] { border-color: #f0c496; background: #ffecd5; color: #683417; font-weight: 650; }
.request-note { margin-block: 0 20px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.5vw, 28px); }
.recipe-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.card-photo, .detail-photo { display: block; overflow: hidden; background: #e7cdac; }
.card-photo { aspect-ratio: 1.93; }
.card-photo img, .detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--ciabatta img { object-position: 52% 71%; }
.photo--baguette img { object-position: 55% 1%; }
.card-copy { padding: clamp(18px, 2.5vw, 29px); }
.card-copy h3 { margin-block: 5px 8px; }
.card-action { margin-block-start: 16px; font-size: .94rem; }
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 15px;
  margin-block-start: clamp(32px, 6vw, 74px);
  padding-block: 19px;
  border-block-start: 1px solid var(--line);
  font-size: .88rem;
  color: var(--body);
}

.crumbs { display: flex; flex-wrap: wrap; gap: 8px 11px; margin-block: 18px 20px; font-size: .92rem; color: var(--body); }
.crumbs a { color: var(--accent); }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(21px, 4vw, 58px); }
.detail-copy h1 { margin-block: 7px 13px; font-size: clamp(2.6rem, 5vw, 4.7rem); }
.detail-copy > p:not(.product) { font-size: 1.12rem; }
.detail-photo { aspect-ratio: 2.08; border-radius: 17px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 19px; }
.demo-note { margin-block: 23px; padding: 11px 15px; border-inline-start: 3px solid var(--orange); background: #fff3e2; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(14px, 2.2vw, 26px); }
.recipe-panel { padding: clamp(16px, 2.8vw, 32px); border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.recipe-panel h2, .product-callout h2 { font-size: clamp(1.46rem, 2.6vw, 2.3rem); }
#ingredients { scroll-margin-top: 20px; }
.batch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 11px;
  margin-block-start: 17px;
  padding: 11px 12px;
  border-radius: 9px;
  background: var(--cream);
}
.batch label { font-size: .9rem; font-weight: 650; }
.batch input {
  width: 6rem;
  min-height: 44px;
  padding: 5px 7px;
  border: 1px solid #bba186;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.batch input[aria-invalid="true"] { border-color: var(--accent); }
.batch p { font-size: .9rem; }
table { width: 100%; margin-block: 13px; border-collapse: collapse; text-align: left; }
th, td { padding: 9px 4px; border-block-end: 1px solid var(--line); }
th { font-weight: 650; }
thead { color: var(--body); font-size: .9rem; }
td { text-align: right; overflow-wrap: anywhere; }
thead th:last-child { text-align: right; }
output { color: var(--accent); font-weight: 700; }
.error { margin-block: 9px; color: var(--accent); }
.dosage-request { margin-block-start: 3px; }
.method ol { display: grid; gap: 11px; padding-inline-start: 1.45rem; margin-block: 17px 0; }
.method li { padding-inline-start: 3px; }
.method li::marker { color: var(--accent); font-weight: 650; }
.method strong, .method span { display: block; }
.method span { color: var(--body); font-size: .94rem; }
.product-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-block-start: 22px;
  padding: clamp(17px, 2.8vw, 32px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--cream);
}
.product-callout p { margin-block-start: 6px; }

@media (max-width: 700px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 0; padding-block: 11px; }
  .header-inner nav { grid-row: 2; grid-column: 1/-1; }
  .hero, .detail-hero, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 24px; }
  .hero h1 span { display: inline; }
  .hero-photo { min-height: 0; aspect-ratio: 2.1; }
  .detail-photo { aspect-ratio: 2.25; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .button, .filter { transition: none; }
}
@media print {
  :root { background: #fff; color: #000; }
  .site-header, .site-footer, .skip, .crumbs, .detail-photo, .detail-actions, .batch,
  .product-callout, .dosage-request { display: none; }
  .wrap { width: 100%; }
  .detail-hero, .detail-grid { display: block; }
  .detail-copy h1 { font-size: 29pt; }
  .demo-note { margin-block: 12px; }
  .recipe-panel { margin-block: 10px; padding: 0; border: 0; break-inside: avoid; }
}
