/* Joy: letters scaled to the cap height of the old text face; its short figures
   get their own scale so numbers stand as tall as capitals. */
@font-face {
  font-family: "Joy";
  src: url("assets/fonts/joy.woff2") format("woff2");
  unicode-range: U+0000-002F, U+003A-10FFFF;
  font-weight: 100 900; font-style: normal; font-display: swap;
  size-adjust: 128%;
}
@font-face {
  font-family: "Joy";
  src: url("assets/fonts/joy.woff2") format("woff2");
  unicode-range: U+0030-0039;
  font-weight: 100 900; font-style: normal; font-display: swap;
  size-adjust: 166%;
}
@font-face {
  font-family: "Joy Digits";
  src: url("assets/fonts/joy.woff2") format("woff2");
  unicode-range: U+0030-0039;
  font-weight: 100 900; font-style: normal; font-display: swap;
  size-adjust: 166%;
}
@font-face {
  font-family: "Golden Goose";
  src: url("assets/fonts/golden-goose.woff2") format("woff2");
  font-weight: 200 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Proofhouse — artisan sourdough bakery
   Black, white and the colour of the bread. Nothing else.
   ========================================================================== */

:root {
  --paper: #f7f6f3;
  --paper-2: #efede8;
  --tile: #ecebe6;
  --ink: #0e0e0d;
  --ink-2: #3b3a37;
  --mute: #75736d;
  --line: rgba(14, 14, 13, .14);
  --dark: #0e0e0d;
  --on-dark: #f4f2ed;
  --on-dark-mute: rgba(244, 242, 237, .56);
  --line-dark: rgba(244, 242, 237, .16);
  --ember: #c4682e;

  --serif: "Golden Goose", "Fraunces", Georgia, serif;
  --sans: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --nav-h: 76px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { list-style: none; padding: 0; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }

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

.label { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.label--dim { color: var(--on-dark-mute); }
.mono { font-family: var(--mono); }

.h2 {
  font: 300 clamp(44px, 6.4vw, 104px)/.92 var(--serif);
  font-variation-settings: "opsz" 144;
  letter-spacing: -.035em;
}
.h2 em { font-weight: 300; }

/* ---------- buttons & links ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 52px; padding: 0 22px 0 24px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 500 15px/1 var(--sans); letter-spacing: -.005em;
  transition: transform .16s var(--ease-out), background-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-arrow { display: inline-block; transition: transform .35s var(--ease-out); font-family: var(--mono); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--ink:hover { background: #2a2926; }
.btn--line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line:hover { --bg: var(--ink); --fg: var(--paper); }

.link { position: relative; display: inline-block; font-weight: 500; padding-bottom: 3px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .45s var(--ease-out); }
.link:hover::after { transform: scaleX(0); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gutter);
  transition: transform .5s var(--ease-out), background-color .3s ease, color .3s ease;
}
.nav.is-scrolled { background: rgba(247, 246, 243, .82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.nav.is-dark { color: var(--on-dark); background: rgba(14, 14, 13, .55); }
.nav.is-hidden { transform: translateY(-100%); }
.logo { justify-self: start; display: inline-flex; align-items: flex-start; gap: 3px; line-height: 1; }
.logo-word { font: italic 500 31px/.8 var(--serif); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; letter-spacing: -.04em; padding-bottom: .12em; }
.nav-links { display: flex; gap: 34px; font-size: 14px; }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 22px; }
.nav-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; font-size: 14px; font-weight: 500; transition: transform .16s var(--ease-out), background-color .2s ease, color .2s ease; }
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav.is-dark .nav-cta:hover { background: var(--on-dark); color: var(--ink); }
.nav-cta:active { transform: scale(.96); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 22px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 35; background: var(--ink); color: var(--on-dark); display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 24px) var(--gutter) calc(28px + env(safe-area-inset-bottom)); clip-path: circle(0% at calc(100% - 40px) 38px); transition: clip-path .7s var(--ease-in-out); }
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font: 300 clamp(44px, 13vw, 72px)/1 var(--serif); letter-spacing: -.03em; }
.menu nav a span { font: 500 12px/1 var(--mono); color: var(--on-dark-mute); }
.menu-foot { margin-top: 28px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-mute); }

/* ---------- 1 · hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: flex; flex-direction: column; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; z-index: 0; pointer-events: none; user-select: none; }
.hero-copy { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + clamp(28px, 7vh, 84px)); text-align: center; }
.hero-title {
  font: 300 clamp(84px, 17.5vw, 272px)/.84 var(--serif);
  font-variation-settings: "opsz" 144;
  letter-spacing: -.055em;
  display: flex; justify-content: center; gap: .2em;
}
.hero-title .line { display: block; overflow: hidden; padding: 0 .04em .06em; margin-bottom: -.06em; }
.hero-title .word { display: inline-block; will-change: transform; }
.hero-title em { font-weight: 300; }
.hero-row { margin: clamp(18px, 3vh, 34px) auto 0; display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2.8vh, 28px); text-align: center; }
.hero-lede { max-width: 360px; font-size: 17px; line-height: 1.5; color: var(--ink-2); text-wrap: balance; }

.hero-loaf { position: absolute; left: 50%; bottom: 0; width: min(78vw, 96vh, 1000px); aspect-ratio: 1; transform: translate(-50%, 52%); z-index: 1; pointer-events: none; }
.loaf-rise { position: absolute; inset: 0; will-change: transform; }
.loaf-spin { position: absolute; inset: 6%; will-change: transform; }
.loaf-img { width: 100%; height: 100%; object-fit: contain; animation: turn 140s linear infinite; }
.loaf-shadow { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 30, 20, .34), rgba(40, 30, 20, .14) 72%, transparent); transform: translate(3.5%, 5%) scale(1.04); filter: blur(18px); }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: turn 90s linear infinite reverse; }
.ring text { font: 500 15px var(--mono); letter-spacing: 5.2px; fill: var(--mute); }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- 2 · recipe — compact, by weight ---------- */
.recipe { padding: clamp(72px, 11vh, 120px) 0; }
.recipe-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.recipe-title { font: 300 clamp(26px, 2.6vw, 38px)/1 var(--serif); letter-spacing: -.02em; }
.recipe-yield { white-space: nowrap; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ing { display: flex; flex-direction: column; gap: 10px; padding: 22px 16px 4px; border-left: 1px solid var(--line); }
.ing:first-child { padding-left: 0; border-left: 0; }
.ing-qty { font: 300 clamp(34px, 3.4vw, 50px)/.9 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -.04em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.ing-qty em { font-weight: 300; }
.ing-qty small { display: inline-block; vertical-align: top; margin: .12em 0 0 .25em; font: 500 11px/1 var(--mono); letter-spacing: 0; color: var(--mute); }
.ing-name { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ing-bar { display: block; height: 4px; margin-top: 8px; width: calc(var(--g, 500) / 500 * 100%); min-width: 3px; background: var(--ink); transform-origin: left; }
.ing--time .ing-bar { width: 100%; background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 9px); }
.ing-pct { font: 400 12px/1 var(--mono); color: var(--mute); font-variant-numeric: tabular-nums; }

/* ---------- 3 · process (pinned, in the bakery blush) ---------- */
.proces { position: relative; color: var(--on-dark); }
.proces-pin { position: relative; height: 100svh; min-height: 640px; display: flex; align-items: center; background: var(--dark); overflow: hidden; }
.proces-grid { display: grid; grid-template-columns: 1fr minmax(0, 1.25fr) 1fr; align-items: center; gap: clamp(20px, 3vw, 48px); height: 100%; padding-top: var(--nav-h); padding-bottom: 32px; }
.proces-head .h2 { margin-top: 18px; font-size: clamp(44px, 5.2vw, 88px); white-space: nowrap; }
.proces-stage { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; justify-self: center; }
.proces-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.proces-ring circle { fill: none; stroke-width: .5; }
.proces-ring .track { stroke: var(--line-dark); }
.proces-ring .prog { stroke: var(--on-dark); stroke-dasharray: 603.2; stroke-dashoffset: 0; stroke-width: .8; }
.stage-img { position: absolute; inset: 9%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); width: 82%; height: 82%; object-fit: contain; opacity: 0; transition: opacity .7s ease; }
.stage-img.is-on { opacity: 1; }
.no-js .stage-img[data-stage="2"], .reduced .stage-img[data-stage="2"] { opacity: 1; }
.no-js .stage-img[data-stage="0"], .reduced .stage-img[data-stage="0"] { opacity: 0; }
.proces-meta { justify-self: end; width: 100%; max-width: 320px; }
.clock { font: 300 clamp(72px, 8vw, 132px)/.9 var(--mono); letter-spacing: -.07em; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.clock small { font-size: .28em; letter-spacing: 0; color: var(--on-dark-mute); }
.steps { margin-top: 28px; border-top: 1px solid var(--line-dark); }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); opacity: .32; transition: opacity .5s ease; }
.steps li.is-on { opacity: 1; }
.no-js .steps li, .reduced .steps li { opacity: 1; }
.step-n { font: 500 12px/1.6 var(--mono); color: var(--on-dark-mute); }
.steps h3 { font: 400 22px/1.2 var(--serif); letter-spacing: -.01em; }
.steps p { margin-top: 4px; font-size: 14px; color: var(--on-dark-mute); }

/* ---------- 4 · counter ---------- */
.pult { position: relative; z-index: 2; background: var(--paper); padding: clamp(72px, 11vh, 120px) 0; }
.crust { position: absolute; left: 0; right: 0; top: 1px; height: clamp(60px, 13vw, 220px); transform: translateY(-100%); background: var(--paper); border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform-origin: bottom; pointer-events: none; }
.no-js .crust, .reduced .crust { display: none; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 6vh, 64px); }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.card { position: relative; display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 1 / 1.02; background: var(--tile); border-radius: 4px; overflow: hidden; display: grid; place-items: center; transition: background-color .5s ease; }
.card-shadow { width: 76%; height: 76%; display: grid; place-items: center; filter: drop-shadow(10px 18px 16px rgba(40, 30, 20, .2)) drop-shadow(2px 3px 3px rgba(40, 30, 20, .18)); }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.1s var(--ease-out); }
.card:hover .card-media { background: #e6e4de; }
.card:hover .card-media img { transform: rotate(10deg) scale(1.035); }
.card-body { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 2px 0; }
.card-name { font: 400 clamp(22px, 1.9vw, 28px)/1.15 var(--serif); letter-spacing: -.015em; }
.card-meta { grid-column: 1 / -1; font-size: 14px; color: var(--mute); }

/* ---------- 5 · bake times ---------- */

/* ---------- 6 · visit ---------- */
.navsteva { position: relative; z-index: 2; background: var(--paper); padding: clamp(80px, 12vh, 140px) 0 clamp(90px, 14vh, 160px); border-top: 1px solid var(--line); }
.visit-grid { margin-top: clamp(40px, 7vh, 80px); display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: clamp(24px, 4vw, 64px); padding-top: 28px; border-top: 1px solid var(--ink); }
.visit-big { font: 300 clamp(26px, 2.6vw, 38px)/1.1 var(--serif); letter-spacing: -.02em; margin-bottom: 28px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours div:first-child { padding-top: 4px; }
.hours dt { color: var(--ink-2); }
.hours dd { font-family: var(--mono); font-size: 14px; text-align: right; }
.hours .is-today dt { font-weight: 600; color: var(--ink); }
.hours .is-today dt::after { content: "today"; margin-left: 10px; padding: 3px 7px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.course { padding: 22px; border-radius: 4px; background: var(--tile); display: flex; flex-direction: column; gap: 10px; align-self: start; }
.course-title { font: 400 24px/1.15 var(--serif); letter-spacing: -.015em; }
.course-meta { font-size: 13px; color: var(--mute); }
.course .link { align-self: flex-start; margin-top: 6px; }

/* ---------- 7 · footer ---------- */
.foot { background: var(--dark); color: var(--on-dark); padding: 48px 0 calc(22px + env(safe-area-inset-bottom)); }
.foot-row { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 24px clamp(32px, 6vw, 96px); padding-bottom: 36px; }
.foot .logo-word { font-size: 28px; }
.foot-addr { font-size: 15px; line-height: 1.55; }
.foot-addr span { font-size: 14px; color: var(--on-dark-mute); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.foot-links a { transition: opacity .2s ease; }
.foot-links a:hover { opacity: .6; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line-dark); font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-mute); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .proces-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; align-content: center; }
  .proces-head { grid-column: 1 / -1; }
  .proces-stage { max-width: 460px; }
  .proces-meta { justify-self: start; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .course { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-end { gap: 10px; }
  .menu-btn { display: block; }

  .hero-title { flex-direction: column; gap: 0; }
  .hero-lede { max-width: 300px; }
  .hero-loaf { width: max(118vw, 520px); transform: translate(-50%, 50%); }

  .proces-pin { height: 100svh; }
  .proces-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 14px; align-content: center; padding-top: calc(var(--nav-h) + 8px); padding-bottom: 20px; }
  .proces-head { display: flex; justify-content: space-between; align-items: flex-end; }
  .proces-head .h2 { margin-top: 0; font-size: clamp(36px, 10vw, 56px); }
  .proces-head .label { order: 2; }
  .proces-stage { max-width: min(76vw, 42svh); }
  .proces-meta { max-width: none; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
  .clock { font-size: clamp(54px, 15vw, 80px); }
  .steps { margin-top: 0; }
  .steps li { grid-template-columns: 40px 1fr; padding: 9px 0; }
  .steps h3 { font-size: 18px; }
  .steps p { font-size: 13px; }
  .js:not(.reduced) .steps li:not(.is-current) p { display: none; }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .products { grid-template-columns: 1fr 1fr; }

  .visit-grid { grid-template-columns: 1fr; }
  .foot-row { grid-template-columns: 1fr; gap: 18px; }
  .foot-base { flex-direction: column; gap: 4px; }

  .scale { grid-template-columns: 1fr 1fr; }
  .ing, .ing:first-child { padding: 18px 0 16px; border-left: 0; border-bottom: 1px solid var(--line); }
  .ing:nth-child(odd) { padding-right: 14px; }
  .ing:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .ing--time { grid-column: 1 / -1; padding-right: 0 !important; }

}

@media (max-width: 520px) {
  .hero-cta { width: 100%; max-width: 340px; min-height: 56px; }
  .products { gap: 10px; }
  .card-body { grid-template-columns: 1fr; padding-top: 12px; }
  .card-name { font-size: 19px; }
  .card-meta { font-size: 13px; }
}

@media (max-height: 720px) and (min-width: 861px) {
  .hero-title { font-size: clamp(84px, 25vh, 272px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Intro guard: hold the first frame until the animation layer takes over (2.5 s fallback) */
.js:not(.ready) [data-word] { transform: translateY(115%); }
.js:not(.ready) [data-intro], .js:not(.ready) .loaf-rise, .js:not(.ready) .nav { opacity: 0; }

/* ==========================================================================
   Golden Goose — an all-caps display face. Every display line is set in caps,
   at normal tracking; numerals fall back to the mono face.
   ========================================================================== */
.hero-title, .h2, .logo-word, .recipe-title, .card-name, .steps h3,
.visit-big, .course-title, .menu nav a{
  text-transform: uppercase;
  font-synthesis: none;
  font-variation-settings: normal;
  letter-spacing: 0;
}
.hero-title em, .h2 em { font-style: normal; font-weight: 200; }
.hero-title { font-weight: 400; font-size: clamp(64px, 12.4vw, 196px); line-height: .9; gap: .28em; }
.hero-title .line { padding: .06em .02em .04em; margin-bottom: 0; }
.h2 { font-weight: 400; font-size: clamp(34px, 4.4vw, 72px); line-height: .95; }
.proces-head .h2 { font-size: clamp(34px, 3.6vw, 60px); }
.logo-word { font: 400 21px/1 var(--serif); letter-spacing: .02em; padding-bottom: 0; }
.foot .logo-word { font-size: 20px; }
.logo { align-items: center; gap: 6px; }
.recipe-title { font-weight: 400; font-size: clamp(22px, 2.2vw, 32px); }
.ing-qty { font: 300 clamp(30px, 3vw, 44px)/.9 var(--mono); letter-spacing: -.05em; }
.card-name { font-weight: 400; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.15; }
.steps h3 { font-weight: 400; font-size: 19px; }
.visit-big { font-weight: 400; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.1; }
.course-title { font-weight: 400; font-size: 20px; line-height: 1.15; }
.menu nav a { font-weight: 400; font-size: clamp(36px, 10vw, 60px); }
@media (max-width: 860px) {
  .hero-title { font-size: clamp(56px, 19vw, 110px); gap: 0; }
  .proces-head .h2 { font-size: clamp(30px, 8.6vw, 46px); }
  .ing-qty { font-size: clamp(30px, 9vw, 44px); }
}
@media (max-height: 720px) and (min-width: 861px) {
  .hero-title { font-size: clamp(64px, 20vh, 196px); }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(196, 104, 46, .45); } 70% { box-shadow: 0 0 0 9px rgba(196, 104, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(196, 104, 46, 0); } }

/* ==========================================================================
   Process in the bakery's own colour (the blush of the hero linen)
   ========================================================================== */
:root { --blush: #fbece6; --blush-line: rgba(74, 44, 28, .14); --blush-mute: #8a7064; }
.proces { color: var(--ink); }
.proces-pin { background: var(--blush); }
.proces .label--dim { color: var(--blush-mute); }
.proces-ring .track { stroke: var(--blush-line); }
.proces-ring .prog { stroke: var(--ink); }
.stage-img { filter: drop-shadow(0 26px 30px rgba(110, 64, 32, .24)) drop-shadow(0 4px 6px rgba(110, 64, 32, .18)); }
.clock small, .step-n, .steps p { color: var(--blush-mute); }
.steps, .steps li { border-color: var(--blush-line); }
.steps li { opacity: .4; }
.steps li.is-on { opacity: 1; }
.crust { background: var(--paper); }

/* Hero: one-line intro, tight and even spacing, a wide type-only button */
.hero-row { margin-top: clamp(10px, 1.6vh, 16px); gap: clamp(14px, 2.2vh, 22px); }
.hero-lede { max-width: none; white-space: nowrap; }
.hero-cta { justify-content: center; min-width: 320px; min-height: 58px; padding: 0 56px; font: 400 18px/1 var(--serif); text-transform: uppercase; letter-spacing: .06em; font-synthesis: none; }
@media (max-width: 520px) {
  .hero-lede { white-space: normal; max-width: 320px; font-size: 16px; }
  .hero-cta { min-width: 0; width: 100%; max-width: 340px; }
}

/* Visit — compact */
.navsteva { padding: clamp(72px, 11vh, 120px) 0 clamp(80px, 12vh, 130px); }
.visit-grid { margin-top: 0; padding-top: 0; border-top: 1px solid var(--ink); grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.visit-grid > * { padding: 24px 28px 4px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.visit-grid > *:first-child { padding-left: 0; border-left: 0; }
.visit-big { margin: 0; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; }
.visit-where .btn { align-self: flex-start; margin-top: 6px; }
.hours div:first-child { padding-top: 0; }
.course { background: none; padding-right: 0; border-radius: 0; }
.course-title { font-size: clamp(20px, 1.8vw, 26px); }
@media (max-width: 860px) {
  .visit-grid { grid-template-columns: 1fr; }
  .visit-grid > *, .visit-grid > *:first-child { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .visit-grid > *:last-child { border-bottom: 0; }
}

/* Hero rhythm: equal visible gaps (headline → intro → button). The caps face
   leaves ~0.27em of empty line box under the letters, so the row pulls up by it. */
.hero-copy { --tfs: clamp(64px, 12.4vw, 196px); }
.hero-title { font-size: var(--tfs); }
.hero-row { margin-top: calc(26px - .27 * var(--tfs)); gap: 17px; }
@media (max-width: 860px) { .hero-copy { --tfs: clamp(56px, 19vw, 110px); } .hero-row { margin-top: calc(24px - .3 * var(--tfs)); } }
@media (max-height: 720px) and (min-width: 861px) { .hero-copy { --tfs: clamp(64px, 20vh, 196px); } }

/* Headline "Bread takes time": one line on desktop, stacked on phones */
.hero-copy { --tfs: clamp(56px, 9.4vw, 152px); }
@media (max-width: 860px) { .hero-copy { --tfs: clamp(52px, 18vw, 104px); } }
@media (max-height: 720px) and (min-width: 861px) { .hero-copy { --tfs: clamp(56px, 16vh, 152px); } }

/* Hero: copy sits 25px lower; the rising loaf passes over the copy */
.hero-copy { padding-top: calc(var(--nav-h) + clamp(28px, 7vh, 84px) + 25px); z-index: 1; }
.hero-loaf { z-index: 2; }
@media (max-width: 860px) {
  .hero-copy { --tfs: clamp(48px, 15.5vw, 96px); }
  .hero-loaf { transform: translate(-50%, 66%); }
}

/* Numerals in Joy: a single-weight face, so no faux bold and normal tracking */
body { font-synthesis-weight: none; }
.ing-qty, .clock, .hours dd { letter-spacing: 0; }
.clock { gap: 8px; }
.ing-qty em { font-style: normal; }

/* Joy as the text face: compact, single weight. Slightly larger figures where numbers lead. */
.ing-qty { font-size: clamp(30px, 3vw, 44px); }
.clock { font-size: clamp(72px, 8vw, 132px); }
@media (max-width: 860px) { .ing-qty { font-size: clamp(30px, 9vw, 44px); } .clock { font-size: clamp(54px, 15vw, 80px); } }
.ring text { letter-spacing: 6px; }

/* Counter: bread on the page itself, centred name and note, no prices */
.card-media, .card:hover .card-media { background: none; overflow: visible; }
.card-body { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; padding-top: 10px; }
.card-meta { grid-column: auto; }

/* Joy only where asked: the whole recipe section, and the figures in the process */
:root { --joy: "Joy", "Geist", ui-sans-serif, system-ui, sans-serif; }
.recipe .label, .recipe .ing-qty, .recipe .ing-qty small, .recipe .ing-name, .recipe .ing-pct { font-family: var(--joy); }
.proces .clock, .proces .step-n { font-family: "Joy Digits", var(--mono); }
.proces .steps p { font-family: "Joy Digits", var(--sans); }

/* ---------- polish pass ---------- */
/* Visit on tablets: address + hours side by side, the class below on its own row */
@media (min-width: 861px) and (max-width: 1100px) {
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .visit-grid > .course { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 24px; }
}
.hours dt, .hours dd { white-space: nowrap; }
.hours dd { letter-spacing: 0; }
/* the three visit columns start on one line */
.visit-grid > * { align-self: stretch; }
.course { align-self: stretch; }

/* ==========================================================================
   Buttons: cream pill, ink outline, solid offset shadow that the button
   presses into. Labels keep their current faces.
   ========================================================================== */
.btn, .btn--ink, .btn--line, .nav-cta {
  --bg: var(--paper); --fg: var(--ink);
  background: var(--bg); color: var(--fg);
  border: 2px solid var(--ink);
  box-shadow: 4px 6px 0 0 var(--ink);
  transition: transform .14s var(--ease-out), box-shadow .14s var(--ease-out), background-color .2s ease;
}
.btn:hover, .btn--ink:hover, .btn--line:hover, .nav-cta:hover {
  --bg: #fffdf9; background: var(--bg); color: var(--ink);
  transform: translate(-1px, -1px); box-shadow: 5px 7px 0 0 var(--ink);
}
.btn:active, .nav-cta:active { transform: translate(4px, 6px); box-shadow: 0 0 0 0 var(--ink); }
.nav-cta, .btn--line { font-family: var(--ui); }
.nav-cta { height: 38px; margin-right: 4px; }
.btn--line { margin-bottom: 6px; }
.hero-cta { margin-bottom: 6px; }
/* the nav keeps the ink outline readable over the blurred bar */
.nav.is-dark .nav-cta { --bg: var(--paper); color: var(--ink); }

/* Buttons in a beige a shade deeper than the hero linen */
:root { --btn: #f0dccf; --btn-hover: #f5e4d9; }
.btn, .btn--ink, .btn--line, .nav-cta, .nav.is-dark .nav-cta { --bg: var(--btn); }
.btn:hover, .btn--ink:hover, .btn--line:hover, .nav-cta:hover { --bg: var(--btn-hover); }

/* Mobile menu: the bakery's blush, centred Golden Goose links, a quiet fade */
.menu {
  background: var(--blush); color: var(--ink);
  justify-content: center; align-items: center; text-align: center;
  padding: calc(var(--nav-h) + 24px) max(16px, var(--gutter)) calc(32px + env(safe-area-inset-bottom));
  clip-path: none; opacity: 0; transition: opacity .4s ease;
}
.menu.is-open { clip-path: none; opacity: 1; }
.menu nav { align-items: center; gap: 6px; }
.menu nav a {
  display: block; padding: 8px 0; border: 0;
  font: 400 clamp(40px, 12vw, 56px)/1.05 var(--serif); text-transform: uppercase; letter-spacing: 0;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .6s var(--ease-out);
}
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: .06s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .12s; }
.menu-foot {
  position: absolute; left: 0; right: 0; bottom: calc(32px + env(safe-area-inset-bottom));
  margin: 0; display: flex; flex-direction: column; gap: 4px;
  font: 400 15px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--blush-mute);
}
.nav.is-menu { background: transparent; color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.menu-btn { box-shadow: none; border: 2px solid var(--ink); background: var(--btn); }
.menu-btn span { left: 11px; right: 11px; }
.menu-btn span:first-child { top: 14px; } .menu-btn span:last-child { top: 20px; }
@media (prefers-reduced-motion: reduce) { .menu nav a { transform: none; } }
.menu-btn { box-shadow: 3px 4px 0 0 var(--ink); transition: transform .14s var(--ease-out), box-shadow .14s var(--ease-out); }
.menu-btn:active { transform: translate(3px, 4px); box-shadow: 0 0 0 0 var(--ink); }
/* Ring around the hero loaf in the serif text face */
.ring text { font: 500 16px var(--sans); letter-spacing: 5px; }

/* Logo: the Proofhouse wordmark (vector, takes the text colour) */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo-mark { display: block; height: 22px; width: auto; transition: transform .3s var(--ease-out); }
.logo:hover .logo-mark { transform: translateY(-1px); }
.foot .logo-mark { height: 20px; }
@media (max-width: 860px) { .logo-mark { height: 18px; } }

/* ==========================================================================
   "You just clicked" card
   ========================================================================== */
.clicked { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.clicked[hidden] { display: none; }
.clicked-scrim { position: absolute; inset: 0; background: rgba(14, 14, 13, .42); opacity: 0; transition: opacity .3s ease; }
.clicked-card {
  position: relative; width: min(460px, 100%); padding: 40px 36px 36px; text-align: center;
  background: var(--blush); color: var(--ink); border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: 6px 8px 0 0 var(--ink);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .3s ease, transform .45s var(--ease-out);
}
.clicked.is-open .clicked-scrim { opacity: 1; }
.clicked.is-open .clicked-card { opacity: 1; transform: none; }
.clicked-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; font: 300 24px/1 var(--ui); color: var(--ink); transition: background-color .2s ease; }
.clicked-x:hover { background: var(--btn); }
.clicked-title { margin-top: 14px; font: 400 clamp(30px, 5vw, 40px)/1 var(--serif); text-transform: uppercase; text-wrap: balance; }
.clicked-text { margin: 16px auto 0; max-width: 340px; font-size: 17px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.clicked-actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; padding-bottom: 6px; }
.clicked-go { justify-content: center; min-height: 50px; padding: 0 24px; font: 400 15px/1 var(--serif); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 520px) {
  .clicked { align-items: end; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .clicked-card { padding: 36px 22px 26px; }
  .clicked-go { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .clicked-card { transform: none; } }
button.link { font: inherit; font-weight: 500; cursor: pointer; }

/* the closed menu must not cover the page (it is only faded out) */
.menu[hidden] { display: none; }
.menu:not(.is-open) { pointer-events: none; }
