/* Wren & Rye Bakehouse. Design DNA in DESIGN.md. */

/* Fonts (self-hosted, latin) */
@font-face { font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/marcellus-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/spectral-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/spectral-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/spectral-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/spectral-400-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 500; font-display: swap; src: url('fonts/spectral-500-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('fonts/caveat-latin.woff2') format('woff2'); }

/* Tokens */
:root {
  --linen: #ECEAE4;
  --flour: #F7F6F2;
  --jam: #A8182F;
  --jam-pressed: #85102A;
  --ember: #D4561C;
  --ember-ink: #A9430E;
  --ink: #2B1D17;
  --ink-soft: #66503F;
  --on-jam: #F7F6F2;
  --hair: rgba(102, 80, 63, 0.24);
  --hair-strong: rgba(102, 80, 63, 0.42);
  --weave: rgba(43, 29, 23, 0.03);
  --glass: rgba(247, 246, 242, 0.8);
  --shadow: 0 30px 70px -40px rgba(43, 22, 14, 0.55);
  --scrim: rgba(236, 234, 228, 0.78);

  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-body: 'Spectral', Georgia, serif;
  --font-hand: 'Caveat', 'Segoe Print', cursive;

  --s1: 4px; --s2: 8px; --s3: 14px; --s4: 22px; --s5: 40px; --s6: 56px; --s7: 96px;
  --wrap: 1180px;
  --gutter: 40px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --linen: #1C1310;
    --flour: #271B16;
    --jam: #F0596E;
    --jam-pressed: #F47A8B;
    --ember: #F08A4B;
    --ember-ink: #F08A4B;
    --ink: #EFE9DF;
    --ink-soft: #C2B2A2;
    --on-jam: #1C1310;
    --hair: rgba(239, 233, 223, 0.16);
    --hair-strong: rgba(239, 233, 223, 0.32);
    --weave: rgba(239, 233, 223, 0.025);
    --glass: rgba(28, 19, 16, 0.78);
    --shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.8);
    --scrim: rgba(28, 19, 16, 0.72);
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--ink);
  font: 400 18px/1.65 var(--font-body);
  background-color: var(--linen);
  /* couche linen weave */
  background-image:
    repeating-linear-gradient(0deg, var(--weave) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, var(--weave) 0 1px, transparent 1px 3px);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: oldstyle-nums;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0 0 var(--s3); text-wrap: pretty; }
em { font-style: italic; color: var(--jam); }
h1 em, h2 em { font-family: var(--font-body); font-weight: 400; }
a { color: var(--jam); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; background: var(--ink); color: var(--linen); text-decoration: none; }
.skip:focus { top: 12px; }

.concept-bar {
  position: relative; z-index: 20;
  padding: 7px var(--s3);
  background: var(--ink); color: var(--linen);
  font-size: 13px; text-align: center; letter-spacing: 0.02em;
}

/* Shared pieces */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 24px;
  border: 0; border-radius: 2px;
  background: var(--jam); color: var(--on-jam);
  /* stamped edge: an inner flour line 3px in */
  box-shadow: inset 0 0 0 3px var(--jam), inset 0 0 0 4px color-mix(in srgb, var(--on-jam) 60%, transparent);
  font: 600 13px/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--jam-pressed); box-shadow: inset 0 0 0 3px var(--jam-pressed), inset 0 0 0 4px color-mix(in srgb, var(--on-jam) 60%, transparent); transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }

.text-link {
  color: var(--jam); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: text-decoration-thickness .2s;
}
.text-link:hover { text-decoration-thickness: 2px; }

.note {
  font-family: var(--font-hand); font-weight: 600; font-size: 26px; line-height: 1.1;
  color: var(--ember-ink); margin: 0;
}
.price { font-variant-numeric: lining-nums tabular-nums; }

.section { padding: var(--s7) 0; }
.section-title { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -0.005em; }
.lede { max-width: 58ch; margin-top: var(--s4); color: var(--ink-soft); font-size: 18px; }

/* Lame-score divider: short slashes like the cuts on a loaf */
.score {
  height: 18px; max-width: var(--wrap); margin: 0 auto;
  background: repeating-linear-gradient(115deg, transparent 0 16px, var(--ember) 16px 18px, transparent 18px 30px);
  opacity: .45;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

/* Header */
.site-header { position: absolute; left: 0; right: 0; z-index: 10; }
.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  max-width: 1440px; margin: 0 auto; padding: var(--s4) var(--gutter); height: 84px;
}
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--jam); line-height: 1; }
.wordmark-name { font-family: var(--font-display); font-size: 30px; letter-spacing: 0.01em; }
.amp { font-family: var(--font-body); font-style: italic; }
.wordmark-script { font-family: var(--font-hand); font-weight: 600; font-size: 22px; color: var(--ink); margin: -2px 0 0 38px; transform: rotate(-3deg); }
.site-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: var(--ink); text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 10px 0; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--jam); border-bottom-color: currentColor; }
.site-nav .nav-phone { color: var(--jam); letter-spacing: 0.08em; font-variant-numeric: lining-nums; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100dvh - 32px);
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(48px, 9vh, 96px) clamp(var(--gutter), 6vw, 110px);
  overflow: hidden;
}
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero::before { /* keeps the nav readable over the photo */
  content: ""; position: absolute; inset: 0 0 auto; height: 170px; z-index: -1;
  background: linear-gradient(var(--scrim), transparent);
}
.hero-frame {
  position: relative; max-width: 620px;
  padding: 42px 40px 40px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid color-mix(in srgb, var(--ember) 60%, transparent);
  box-shadow: var(--shadow);
}
.hero-bar { /* ember-to-jam bar along the bottom edge (a real element so GSAP can draw it) */
  position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, var(--ember), var(--jam));
  transform-origin: left;
}
.hero-eyebrow { font-size: 15px; font-style: italic; color: var(--jam); margin-bottom: var(--s4); }
.hero h1 { font-size: clamp(42px, 4.8vw, 62px); line-height: 1; }
.hero h1 em { display: block; padding-bottom: 4px; line-height: 1.08; }
.hero-sub { margin: var(--s4) 0 var(--s5); max-width: 40ch; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) 28px; }
.hero-note { position: absolute; right: 22px; bottom: -40px; transform: rotate(-4deg); color: var(--ember-ink); text-shadow: 0 1px 0 var(--linen); }
.note-arrow { display: inline-block; transform: rotate(180deg) translateY(4px); }

/* Desktop: photo is 12% taller than the hero so it can drift on scroll (script.js) */
@media (min-width: 761px) {
  .hero-photo { top: -6%; height: 112%; }
}

/* Motion (GSAP via js/vendor/motion.js + script.js). Starting states apply only while
   html.motion-on is set, so nothing stays hidden if scripts fail or motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  html.motion-on .hero-frame { clip-path: inset(0 0 100% 0); }
  html.motion-on .hero-eyebrow,
  html.motion-on .hero h1,
  html.motion-on .hero-sub,
  html.motion-on .hero-actions,
  html.motion-on .hero-note,
  html.motion-on .plate { opacity: 0; }
  html.motion-on .hero-bar,
  html.motion-on .score { transform: scaleX(0); transform-origin: left; }
}
.btn[data-motion="magnet"] { display: inline-flex; }

/* This week's bake */
.bake-head { display: flex; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; }
.bake-note { transform: rotate(-3deg) translateY(-6px); }
.tabs { display: flex; gap: 34px; margin: var(--s6) 0 0; border-bottom: 1px solid var(--hair-strong); }
.tab {
  position: relative; padding: 14px 0; border: 0; background: none; cursor: pointer;
  color: var(--ink-soft); font: 600 12px/1 var(--font-body); letter-spacing: 0.2em; text-transform: uppercase;
  min-height: 44px;
}
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--jam);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.bake-panels { position: relative; }
.bake-list { list-style: none; margin: 0; padding: 0; }
.bake-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: var(--s5);
  padding: 26px 0; border-bottom: 1px solid var(--hair);
}
.bake-thumb { display: none; }
.bake-name { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; transition: color .3s, transform .4s var(--ease); }
.bake-row:hover .bake-name { color: var(--jam); transform: translateX(6px); }
.bake-desc { margin: 6px 0 0; color: var(--ink-soft); font-style: italic; font-size: 16px; max-width: 52ch; }
.bake-meta { margin: 0; display: grid; justify-items: end; text-align: right; gap: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.bake-meta .price { font-size: 17px; letter-spacing: 0.02em; text-transform: none; color: var(--ink); font-weight: 500; }
.bake-reserve {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  color: var(--jam); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.bake-reserve:hover { text-decoration-thickness: 2px; }

.cursor-preview {
  position: fixed; left: 0; top: 0; z-index: 8; margin: 0; width: 220px; pointer-events: none;
  border: 1px solid var(--ember); box-shadow: 0 24px 50px -24px rgba(43, 22, 14, 0.7);
  background: var(--flour); padding: 6px;
  opacity: 0; transform: translate3d(-999px, 0, 0) rotate(-2deg);
  transition: opacity .25s ease;
}
.cursor-preview.on { opacity: 1; }

/* Process plates (scroll-snap strip) */
.plates {
  list-style: none; margin: var(--s6) 0 0; padding: 18px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 34px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: var(--s5);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--hair-strong) transparent;
}
.plate {
  position: relative; scroll-snap-align: start;
  padding: 12px 12px 22px; background: var(--flour);
  box-shadow: 0 30px 60px -34px rgba(43, 22, 14, 0.5);
  transform: rotate(-1.6deg);
}
.plate:nth-child(even) { transform: rotate(1.2deg); margin-top: 26px; }
.plate::before { /* ember tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 84px; height: 22px; margin-left: -42px;
  background: color-mix(in srgb, var(--ember) 42%, transparent);
  transform: rotate(-4deg);
}
.plate img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }

/* BounceCards (React Bits port, script.js): on desktop the plates fan out like a hand of photos.
   script.js adds .is-fanned only when motion is allowed; otherwise the row above is used. */
.process { overflow-x: clip; }
.plates.is-fanned {
  display: block; position: relative; overflow: visible;
  max-width: var(--wrap); margin: var(--s6) auto 0; padding: 0;
}
.plates.is-fanned .plate {
  position: absolute; top: 24px; left: 50%; width: 236px; margin: 0;
  transition: box-shadow .3s ease;
  will-change: transform;
}
.plates.is-fanned .plate[data-active] { box-shadow: 0 40px 70px -30px rgba(43, 22, 14, 0.6); }
.plate-time { margin: var(--s3) 0 0; font-family: var(--font-hand); font-weight: 600; font-size: 28px; line-height: 1; color: var(--jam); }
.plate-title { font-size: 25px; margin: 4px 0 var(--s2); }
.plate p:last-child { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* Jam */
.jam-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(var(--s5), 7vw, 110px); align-items: center; }
.jam-photo { margin: 0; position: relative; }
.jam-photo-clip { aspect-ratio: 4 / 5; overflow: hidden; box-shadow: var(--shadow); }
.jam-photo-clip img { width: 100%; height: 114%; margin-top: -7%; object-fit: cover; }
.jam-photo::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--hair-strong); z-index: -1; }
.jam-copy .section-title { margin-bottom: var(--s5); }
.jam-copy p { max-width: 54ch; font-size: 17px; }
.dropcap::first-letter {
  float: left; font-family: var(--font-display); font-size: 76px; line-height: 0.8;
  color: var(--ember); padding: 6px 10px 0 0;
}
.jam-buy { margin-top: var(--s4); font-weight: 500; }
.jam-buy .price { color: var(--jam); font-size: 20px; }
.jam-note { margin-top: var(--s3); transform: rotate(-3deg); display: inline-block; }

/* Questions */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s6); align-items: start; }
.faq-grid .section-title { position: sticky; top: 40px; }
.faq-list details { border-top: 1px solid var(--hair-strong); }
.faq-list details:last-child { border-bottom: 1px solid var(--hair-strong); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 23px; line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-body); font-size: 28px; color: var(--jam); transition: transform .3s var(--ease); flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--jam); }
.faq-list details p { max-width: 60ch; color: var(--ink-soft); font-size: 17px; padding-bottom: var(--s4); margin: 0; }

/* Reserve + visit */
.visit-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s6); margin-top: var(--s5); align-items: start; }
.order-panel { background: var(--flour); padding: var(--s5); border: 1px solid var(--hair); box-shadow: var(--shadow); scroll-margin-top: 24px; }
.field { display: grid; gap: var(--s2); margin-bottom: var(--s4); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.optional { text-transform: none; letter-spacing: 0; font-weight: 400; font-style: italic; color: var(--ink-soft); font-size: 14px; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 17px/1.4 var(--font-body); color: var(--ink);
  background: var(--linen); border: 1px solid var(--hair-strong); border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea { resize: vertical; min-height: 110px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-soft); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--jam); outline-offset: 0; border-color: var(--jam); }
.invalid { border-color: var(--jam); box-shadow: inset 4px 0 0 var(--jam); }
.help { margin: 0; font-size: 15px; color: var(--ink-soft); font-style: italic; }
.form-note { margin: var(--s3) 0 0; min-height: 1.6em; font-weight: 500; color: var(--jam); }
.honey { position: absolute; left: -9999px; }

.bake-card { position: relative; padding: var(--s5) var(--s5) 30px; background: var(--flour); border: 1px dashed var(--hair-strong); }
.bake-card-title { font-size: 30px; }
.open-status { margin: 6px 0 var(--s4); font-style: italic; color: var(--ink-soft); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.hours th, .hours td { padding: 9px 0; text-align: left; font-weight: 400; border-bottom: 1px dotted var(--hair-strong); }
.hours td { text-align: right; }
.hours .rest { color: var(--ink-soft); font-style: italic; }
.hours tr.today th, .hours tr.today td { color: var(--jam); font-weight: 600; }
.hours tr.today th::after {
  content: "baking today"; margin-left: 10px; padding: 2px 7px;
  font: 600 10px/1.4 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid currentColor; vertical-align: 2px; display: inline-block; transform: rotate(-2deg);
}
.hours tr.today.rest th::after { content: "resting today"; }
.hours tr.today.rest th, .hours tr.today.rest td { color: var(--ink-soft); }
.card-note { margin-top: var(--s3); text-align: right; font-size: 23px; transform: rotate(-2deg); }

.visit-address { font-style: normal; margin: var(--s5) 0 var(--s4); }
.visit-address p { margin-bottom: var(--s2); }
.map-box { border: 1px solid var(--hair-strong); padding: var(--s4); display: grid; gap: var(--s2); justify-items: start; min-height: 120px; align-content: center; }
.map-box iframe { width: 100%; height: 300px; border: 0; }
.map-load {
  min-height: 44px; padding: 10px 18px; border: 1px solid var(--jam); border-radius: 2px; background: transparent; color: var(--jam);
  font: 600 12px/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s;
}
.map-load:hover { background: var(--jam); color: var(--on-jam); }
.map-hint { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* Footer */
.site-footer { padding: var(--s6) 0 var(--s5); border-top: 1px dashed var(--hair-strong); margin-top: var(--s5); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1.4fr; gap: var(--s5); font-size: 15px; color: var(--ink-soft); }
.wordmark--footer { margin-bottom: var(--s2); }
.wordmark--footer .wordmark-name { font-size: 26px; color: var(--jam); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a, .footer-small a { color: var(--ink); text-underline-offset: 3px; }
.footer-links a { display: inline-block; padding: 8px 0; }
.footer-links a:hover, .footer-small a:hover { color: var(--jam); }
.footer-small p { margin-bottom: var(--s2); }


/* Simple pages (privacy, terms, 404) */
.page-header { position: static; border-bottom: 1px dashed var(--hair-strong); }
.page { max-width: 760px; margin: 0 auto; padding: var(--s6) var(--gutter) var(--s7); }
.page h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; margin-bottom: var(--s4); }
.page h2 { font-size: 28px; margin: var(--s5) 0 var(--s3); }
.page p, .page li { font-size: 17px; }
.page .updated { color: var(--ink-soft); font-style: italic; }
.lost { min-height: 70vh; display: grid; align-content: center; }
.lost .btn { justify-self: start; margin-top: var(--s4); }

/* Tablet */
@media (max-width: 960px) {
  :root { --gutter: 28px; }
  .site-nav ul { gap: 20px; }
  .jam-grid, .faq-grid, .visit-grid { grid-template-columns: 1fr; }
  .faq-grid .section-title { position: static; }
  .jam-photo { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-small { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --gutter: 16px; --s7: 64px; }
  body { font-size: 17px; }
  .header-row { height: 72px; padding: 12px var(--gutter); }
  .wordmark-name { font-size: 26px; }
  .wordmark-script { font-size: 19px; margin-left: 30px; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px;
    background: var(--glass); border: 1px solid var(--hair-strong); border-radius: 2px; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .25s var(--ease), background-color .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; top: 72px; left: var(--gutter); right: var(--gutter);
    background: var(--flour); border: 1px solid var(--hair-strong); box-shadow: var(--shadow); padding: var(--s2) var(--s4);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--hair); }
  .site-nav li:last-child a { border-bottom: 0; }

  .hero { display: block; min-height: 0; padding: 0; overflow: visible; }
  .hero-photo { position: relative; height: 42vh; min-height: 260px; object-position: 70% 50%; }
  .hero::before { height: 120px; }
  .hero-frame { margin: -72px var(--gutter) 0; padding: 26px 22px 26px; }
  .hero-eyebrow { margin-bottom: var(--s3); }
  .concept-bar { font-size: 12px; padding: 6px 10px; }
  .hero h1 { font-size: clamp(36px, 10vw, 50px); }
  .hero-sub { margin: var(--s3) 0 var(--s4); font-size: 17px; line-height: 1.55; }
  .hero-note { position: static; margin-top: var(--s4); transform: rotate(-3deg); font-size: 23px; text-shadow: none; }
  .hero + .score { margin-top: var(--s5); }

  .bake-row { grid-template-columns: 76px 1fr; gap: var(--s2) var(--s3); padding: 20px 0; }
  .bake-thumb { display: block; grid-row: span 2; width: 76px; aspect-ratio: 4 / 5; object-fit: cover; align-self: start; }
  .bake-meta { justify-items: start; text-align: left; grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
  .bake-reserve { grid-column: 2; min-height: 40px; }
  .bake-desc { font-size: 15px; }

  .plates { grid-auto-columns: 78vw; gap: var(--s4); }
  .order-panel, .bake-card { padding: var(--s4); }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }
}


/* Portfolio sample copy (tools/export-samples.py): the link back to the studio in the sample bar */
.concept-bar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.concept-bar a:hover { color: inherit; text-decoration-thickness: 2px; }
.sample-note { margin-top: 12px; max-width: 60ch; }
