/* ==========================================================================
   Oui, oui, Baguette — styles
   To change the title font later: edit --font-title below
   (and the Google Fonts link in the <head> of each page).
   ========================================================================== */

:root {
  /* Brand colours */
  --ink:    #3B2416;   /* dark brown — text, footer */
  --red:    #A3322A;   /* accent — buttons, eyebrows */
  --tan:    #C9A57A;   /* warm crust tone */
  --cream:  #F3ECE0;   /* page background */

  /* Derived tones */
  --paper:  #FBF8F2;   /* cards, form panels */
  --sand:   #EAE0CF;   /* alternate sections */
  --line:   #DCCFBB;   /* hairlines */
  --muted:  #6E5848;   /* secondary text */
  --red-dark: #862720;
  --red-tint: #F0DCD3;

  --font-title: "Playwrite NO", "Segoe Script", cursive;
  --font-body:  "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin: 0 0 1.1rem;
}
h1, h2, h3 { font-weight: 400; margin: 0; }
.title-xl, .title-l, .title-m, .script {
  font-family: var(--font-title);
  font-weight: 300;
  letter-spacing: 0;
}
.title-xl { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.55; margin-bottom: 1.4rem; }
.title-l  { font-size: clamp(1.6rem, 3vw, 2.3rem);  line-height: 1.55; margin-bottom: 1rem; }
.title-m  { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.6; margin-bottom: .5rem; }
.script   { color: var(--red); font-size: 1.25rem; line-height: 1.6; }
.label    { font-size: .95rem; font-weight: 600; margin: 0 0 .3rem; }
.lede  { font-size: 1.08rem; color: var(--muted); max-width: 34em; }
.small { font-size: .85rem; color: var(--muted); }
.tiny  { font-size: .75rem; color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem;
  padding: .85em 1.4em; border-radius: var(--radius); border: 0;
  transition: background .15s;
}
.btn:hover { background: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn--ghost:hover { background: var(--red-tint); }
.arrow::after { content: "→"; }
.link { color: var(--red); font-weight: 600; font-size: .92rem; text-decoration: none; }
.link:hover { text-decoration: underline; }

.pill {
  display: inline-block; font-size: .74rem; font-weight: 600; line-height: 1;
  padding: .5em .85em; border-radius: 99px; background: var(--red-tint); color: var(--red-dark);
  white-space: nowrap;
}
.pill--soon { background: var(--sand); color: var(--muted); }
.pill--soldout { background: #E4DCD2; color: #8A7767; text-decoration: line-through; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 84px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 60px; width: auto; }
.brand:has(img) .brand-text { display: none; }
.brand-text { font-family: var(--font-title); font-size: 1.3rem; color: var(--red); line-height: 1.4; }

.nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.nav a {
  text-decoration: none; font-size: .92rem; padding: .4em 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); font-weight: 600; border-color: var(--red); }

/* ---------- Photos (with friendly placeholder until you add files) ---------- */
.photo {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(201,165,122,.18) 0 2px, transparent 2px 9px),
    var(--sand);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-missing::after {
  content: "Photo: " attr(data-file);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center;
  font-size: .78rem; color: var(--muted); letter-spacing: .04em;
}
.ratio-4x5  { aspect-ratio: 4 / 5; }
.ratio-1x1  { aspect-ratio: 1 / 1; }
.ratio-4x3  { aspect-ratio: 4 / 3; }
.ratio-3x2  { aspect-ratio: 3 / 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.caption { font-size: .78rem; color: var(--muted); margin-top: .6rem; }

/* round stamp on the hero photo */
.stamp {
  position: absolute; right: 18px; bottom: 18px; width: 104px; height: 104px; border-radius: 50%;
  background: var(--cream); color: var(--red);
  display: grid; place-items: center; text-align: center;
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px var(--red);
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; line-height: 1.5;
}
.stamp b { display: block; font-family: var(--font-title); font-weight: 300; font-size: 1rem; letter-spacing: 0; text-transform: none; }

/* ---------- Layout blocks ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--sand { background: var(--sand); }
.section + .section:not(.section--sand) { border-top: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split--top { align-items: start; }
.split--wide-right { grid-template-columns: 5fr 6fr; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head .title-l { margin: 0; }

/* Next-batch box (home hero) */
.next-batch { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.4rem; }
.next-batch__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .2rem; }
.next-batch__date { font-family: var(--font-title); font-weight: 300; font-size: 1.6rem; line-height: 1.7; margin: 0 0 .1rem; }
.next-batch .btn { margin-top: 1.1rem; }

/* Cards row */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.card { text-decoration: none; display: flex; flex-direction: column; }
.card .photo { margin-bottom: 1.1rem; }
.card p { color: var(--muted); font-size: .92rem; margin-bottom: .7rem; }
.card:hover .title-m { color: var(--red); }
.card .eyebrow { color: var(--red); font-size: .72rem; }
.date-tile {
  aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--sand); margin-bottom: 1.1rem;
  display: grid; place-content: center; text-align: center; gap: .2rem;
}
.date-tile__month { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.date-tile__day { font-family: var(--font-title); font-weight: 300; font-size: 3.2rem; line-height: 1.3; color: var(--red); }

/* Steps (process + how to order) */
.steps { list-style: none; padding: 0; margin: 0 0 2rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: .2rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-title); color: var(--red); font-size: 1.05rem; line-height: 1.6;
}
.steps p { margin: 0; color: var(--muted); font-size: .93rem; grid-column: 2; }
.steps .label { grid-column: 2; grid-row: 1; }

/* Process gallery (about page) */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 32px); }
.process__item .photo { margin-bottom: 1.1rem; }
.process__num { font-family: var(--font-title); color: var(--red); font-size: 1rem; line-height: 1.6; }
.process__item p { color: var(--muted); font-size: .93rem; }
.finished { margin-top: clamp(32px, 5vw, 56px); }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.product .photo { margin-bottom: 1.1rem; }
.product__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.product__head .title-m { margin: 0; }
.product__price { font-family: var(--font-title); color: var(--red); font-size: 1.15rem; white-space: nowrap; }
.product__tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 600; margin: .2rem 0 .6rem; }
.product__desc { color: var(--muted); font-size: .93rem; }
.product__meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Status box (order page header) */
.status-box { background: var(--sand); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.status-box .next-batch__date { font-size: 1.35rem; }

/* Form panel */
.form-layout { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 3vw, 36px); }
.tally-slot iframe { width: 100%; border: 0; min-height: 420px; }
.tally-placeholder {
  border: 1.5px dashed var(--tan); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
  color: var(--muted); font-size: .9rem; background: rgba(255,255,255,.4);
}
.tally-placeholder code { background: var(--sand); padding: .1em .4em; border-radius: 3px; font-size: .85em; }

.facts { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: 0 .8rem; padding: .9rem 0; }
.facts svg { width: 20px; height: 20px; color: var(--red); margin-top: 2px; }
.facts p { margin: 0; color: var(--muted); font-size: .9rem; grid-column: 2; }

.closed-note { background: var(--sand); border-radius: var(--radius); padding: 1.5rem; text-align: center; }

/* Calendar */
.calendar { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.bake {
  display: grid; grid-template-columns: 72px 1fr auto 180px; align-items: center; gap: 1.5rem;
  padding: 1.4rem 1.2rem; border-bottom: 1px solid var(--line);
}
.bake--open { background: var(--paper); border: 1px solid var(--red); border-radius: 8px; margin: .6rem 0; }
.bake--soldout { opacity: .7; }
.bake__date { text-align: center; line-height: 1.1; }
.bake__month { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.bake__day { font-family: var(--font-title); font-weight: 300; font-size: 2.2rem; line-height: 1.5; display: block; }
.bake__title { font-family: var(--font-title); font-weight: 300; font-size: 1.25rem; line-height: 1.7; margin: 0; }
.bake__meta { margin: 0; font-size: .84rem; color: var(--muted); }
.bake__action { text-align: right; }
.bake__action .script { font-size: 1rem; color: var(--muted); }
.empty { padding: 2rem 0; color: var(--muted); }

/* Signup band */
.signup { background: var(--sand); border-radius: 8px; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 6vw, 64px); }
.signup .panel { background: var(--paper); margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 56px 0 28px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(243,236,224,.18); }
.footer-brand { font-family: var(--font-title); font-weight: 300; font-size: 1.6rem; line-height: 1.5; margin: 0; color: var(--cream); }
.footer-tag { font-size: .85rem; opacity: .75; margin: .9rem 0 0; }
.footer-cols { display: flex; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; }
.footer-cols h4 { margin: 0 0 .4rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .7; }
.footer-cols p { margin: 0; font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 20px; font-size: .78rem; opacity: .65; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .process { grid-template-columns: 1fr 1fr; }
  .cards > :last-child, .process > :last-child { grid-column: 1 / -1; }
  .form-layout, .signup { grid-template-columns: 1fr; }
  .bake { grid-template-columns: 60px 1fr auto; }
  .bake__action { grid-column: 2 / -1; text-align: left; }
  .bake__action .script { display: none; }
}
@media (max-width: 720px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: .2rem; padding-top: 14px; padding-bottom: 6px; min-height: 0; }
  .nav { gap: 1.2rem; width: 100%; overflow-x: auto; }
  .split, .split--wide-right, .products, .cards, .process { grid-template-columns: 1fr; }
  .cards > :last-child, .process > :last-child { grid-column: auto; }
  .bake { grid-template-columns: 52px 1fr; gap: .4rem 1rem; padding: 1.2rem .8rem; }
  .bake__status { grid-column: 2; }
  .bake__day { font-size: 1.8rem; }
  .stamp { width: 84px; height: 84px; right: 12px; bottom: 12px; }
}

/* Home hero photo: wide shot on desktop, mobile crop on phones */
.hero-fig { aspect-ratio: 1 / 1; }
.hero-fig picture { display: block; height: 100%; }
.pos-top img { object-position: center 20%; }

/* Product showcase + gallery (order page) */
.product-show { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.gallery__caption { min-height: 1.4em; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: .8rem; }
.thumb { padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius); }
.thumb .photo { display: block; border-radius: var(--radius); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s, opacity .15s; opacity: .75; }
.thumb:hover .photo { opacity: 1; }
.thumb[aria-pressed="true"] .photo { outline-color: var(--red); opacity: 1; }
.thumb .photo.is-missing::after { content: ""; }
.options { display: grid; gap: 12px; }
.option { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; }
.option__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.option .product__tag { margin: .1rem 0 .4rem; }

@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process > :last-child { grid-column: auto; }
  .product-show { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-template-columns: repeat(7, minmax(56px, 1fr)); overflow-x: auto; }
}
@media (max-width: 720px) {
  .hero-fig { aspect-ratio: 3 / 2; }
  .home-hero .hero-photo { order: -1; }
  .process { grid-template-columns: 1fr; }
}
.gallery, .product-info { min-width: 0; }

/* Process as text-only steps (photos hidden until you're happy with them) */
.process--text .photo { display: none; }
.process--text .process__item { border-top: 1px solid var(--tan); padding-top: 1.2rem; }
.process--text .process__num { display: block; font-size: 2.4rem; line-height: 1.5; margin-bottom: .4rem; }
.stamp .heart { display: block; font-style: normal; color: var(--ink); font-size: .95rem; letter-spacing: 0; line-height: 1; margin-top: 2px; }
.special { display: flex; gap: .8rem; align-items: flex-start; margin: 1.6rem 0 0; font-size: .92rem; color: var(--muted); }
.special svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 2px; }
.special strong { color: var(--ink); }
.special a { color: var(--red); font-weight: 600; }
.gallery__thumbs { margin-top: 1rem; }
.facts a, .small a { color: var(--red); }

/* ---------- Home banner ---------- */
.banner { position: relative; overflow: hidden; background: var(--ink); }
.banner__img, .banner__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner__img img { object-fit: cover; object-position: center 55%; }
.banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(40,24,14,.88) 0%, rgba(40,24,14,.78) 35%, rgba(40,24,14,.4) 58%, rgba(40,24,14,.08) 80%, rgba(40,24,14,0) 100%);
}
.banner__inner { position: relative; z-index: 1; min-height: clamp(460px, 50vw, 680px); display: flex; align-items: center; }
.banner__text { max-width: 33rem; padding: 64px 0; color: var(--cream); }
.banner__text .eyebrow { color: var(--tan); }
.banner__text .title-xl { color: var(--cream); }
.banner__text .lede { color: rgba(243,236,224,.88); }

/* Next-bake strip under the banner */
.next-strip { background: var(--sand); border-bottom: 1px solid var(--line); }
.next-batch--strip { display: flex; align-items: center; gap: 1rem 2.5rem; flex-wrap: wrap; margin: 0; padding: 22px 0; border: 0; }
.next-batch--strip .nb-main { min-width: 15rem; }
.next-batch--strip .next-batch__top { justify-content: flex-start; gap: .8rem; }
.next-batch--strip .next-batch__date { margin: 0; }
.next-batch--strip .nb-info { flex: 1 1 14rem; }
.next-batch--strip .btn { margin: 0; }

/* Gallery thumbnails keep the photo's own 4:5 shape (no cropping) */
.thumb .photo.ratio-1x1 { aspect-ratio: 4 / 5; }

@media (max-width: 720px) {
  .banner { background: var(--cream); }
  .banner::after { display: none; }
  .banner__img { position: relative; display: block; aspect-ratio: 3 / 2; }
  .banner__img img { position: absolute; }
  .banner__inner { min-height: 0; }
  .banner__text { color: var(--ink); padding: 28px 0 8px; }
  .banner__text .eyebrow { color: var(--red); }
  .banner__text .title-xl { color: var(--ink); }
  .banner__text .lede { color: var(--muted); }
  .next-strip { background: var(--cream); border: 0; }
  .next-batch--strip { border-top: 1px solid var(--line); padding: 20px 0 8px; }
}
.date-tile { aspect-ratio: 4 / 5; }
.next-strip .pill--soon { background: var(--cream); }

/* Logo in the header */
.brand .logo-svg { display: block; height: 82px; width: auto; overflow: visible; }
@media (max-width: 720px) { .brand .logo-svg { height: 60px; } }

/* Footer food-safety line + privacy page */
.footer-food { font-size: .82rem; opacity: .75; margin: 20px 0 0; }
.site-footer .footer-bottom a { text-decoration: underline; }
.prose p { color: var(--muted); font-size: 1.02rem; }
.prose a { color: var(--red); }

/* Clickable next-bake box (order page) + linked step */
a.status-box--link { display: block; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
a.status-box--link:hover { box-shadow: inset 0 0 0 1.5px var(--red); }
a.status-box--link { cursor: pointer; }
.steps .label a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* Make the embedded Tally order form a little more compact
   (Tally's own size settings need a paid plan, so we scale it here) */
/* (zoom removed: it broke taps inside the embedded form) */

/* Banner title on two lines */
.banner .banner__title { font-size: clamp(1.75rem, 3.3vw, 2.9rem); line-height: 1.6; }
.banner__text { max-width: 38rem; }
@media (min-width: 400px) { .banner__title .nowrap { white-space: nowrap; } }
.banner__text .lede { max-width: 31rem; }

/* Next bakes header photo */
.nb-photo .photo { border-radius: var(--radius); }
/* Banner text sits slightly below centre */
@media (min-width: 721px) { .banner__text { padding-top: 120px; padding-bottom: 40px; } }

/* Email signup: compact form, bottom lined up with the photo */
.signup { align-items: end; }
.signup .panel { padding: 8px 12px; }
.tally-slot[data-tally="signup"] iframe { min-height: 0; }

/* Baking instructions section (order page) */
.bake-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.bake-grid li { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 18px 16px; }
.bake-grid__num { display: block; font-family: var(--font-title); color: var(--red); font-size: 1.6rem; line-height: 1.4; margin-bottom: .4rem; }
.bake-grid p { margin: 0; font-size: .92rem; color: var(--ink); }
@media (max-width: 1000px) { .bake-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .bake-grid { grid-template-columns: 1fr 1fr; } }
