/* Hollow Oak Bakehouse. One signature: the lamps come on as you scroll (two registered 4K stills, opacity only). */
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --night: #0f1215;
  --night-2: #171a1e;
  --oak: #1c1610;
  --cream: #efe7da;
  --cream-2: #e6dccb;
  --ink: #231a12;
  --ink-soft: #5b4c3e;
  --on-dark: #efe7da;
  --on-dark-soft: #b9b1a5;
  --amber: #e2ab61;
  --rust: #8c3a1a;
  --line-dark: rgba(239, 231, 218, 0.18);
  --line-cream: rgba(35, 26, 18, 0.2);
  --display: "Fraunces", Georgia, serif;
  --ui: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(20px, 4.4vw, 64px);
  --header-h: 72px;
  --story: 720px; /* pinned scroll distance: about 7 wheel notches */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); color: var(--on-dark); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; }
html, body, * { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { margin: 0; font: 400 17px/1.55 var(--ui); background: var(--night); }
img, picture { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; margin: 0; line-height: 1; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.6rem); }
h2 em, h1 em { font-style: italic; font-weight: 400; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { margin: 0 0 18px; opacity: 0.85; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
:target, [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 16px; background: var(--cream); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus, .skip-link:focus-visible { transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font: 600 16px/1 var(--ui); text-decoration: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer; background: none; color: inherit; transition: background-color .2s, color .2s; }
.btn--solid { background: var(--amber); color: #1a130c; }
.btn--solid:hover { background: #ecbd7c; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--text { padding: 0 4px; text-decoration: underline; text-underline-offset: 0.3em; }
.btn--line { border-color: currentColor; }

/* Header: transparent over the story, solid after it */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); color: var(--on-dark); }
.site-header.is-solid { background: var(--night); border-bottom: 1px solid var(--line-dark); }
.wordmark { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.wordmark__name { font: 400 26px/1 var(--display); letter-spacing: -0.01em; }
.wordmark__sub { font-size: 11px; opacity: 0.75; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__link { text-decoration: none; font-size: 15.5px; padding: 12px 0; }
.site-nav__link:hover { text-decoration: underline; }
.site-nav__tel { text-decoration: none; font-size: 12.5px; padding: 12px 0; }

/* Hero story */
.hero { position: relative; height: calc(100svh + var(--story)); background: var(--night); }
.hero__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__layer, .hero__layer img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__layer img { object-fit: cover; object-position: 64% 50%; }
.hero__layer--lit { opacity: 0; will-change: opacity; }
.hero.is-off .hero__media { visibility: hidden; }
.hero__copy { position: absolute; left: var(--gutter); bottom: clamp(32px, 7vh, 72px); width: min(600px, 48vw); }
.hero__status { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--on-dark); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--on-dark-soft); }
.dot.is-open { background: #8fd18a; }
.hero__title { font-size: clamp(3.4rem, 1.2rem + 6.4vw, 7.6rem); line-height: 0.94; margin-bottom: 26px; color: var(--on-dark); }
.hero__title em { color: var(--amber); }
.hero__lead { font-size: clamp(17px, 0.9rem + 0.35vw, 19.5px); max-width: 30em; color: var(--on-dark); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 28px 0 30px; }
.timeline { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.timeline li { flex: 1; padding: 12px 14px 0 0; font-size: 11.5px; color: var(--on-dark-soft); transition: color .3s; }
.timeline li span { display: block; font-size: 13px; color: inherit; margin-bottom: 2px; }
.timeline li.is-on { color: var(--amber); }
.readout { position: absolute; top: calc(var(--header-h) + 28px); right: var(--gutter); margin: 0; padding: 14px 16px; min-width: 228px; background: rgba(15, 18, 21, 0.82); border: 1px solid var(--line-dark); }
.readout div { display: flex; justify-content: space-between; gap: 24px; padding: 3px 0; }
.readout dt { color: var(--on-dark-soft); }
.readout dd { margin: 0; color: var(--on-dark); font-variant-numeric: tabular-nums; }

/* This week's bakes */
.bakes { background: var(--cream); color: var(--ink); padding: clamp(80px, 11vw, 150px) var(--gutter) clamp(72px, 9vw, 120px); }
.bakes__head { max-width: 1440px; margin: 0 auto 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; align-items: end; }
.bakes__head .eyebrow { grid-column: 1 / -1; color: var(--rust); }
.bakes__intro { color: var(--ink-soft); max-width: 30em; margin: 0; justify-self: end; }
.tray { position: relative; max-width: 1440px; margin: 0 auto; }
.tray img { width: 100%; height: auto; }
.pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.9); background: rgba(24, 18, 12, 0.72); color: #fff; font: 400 15px/1 var(--mono); cursor: pointer; transition: background-color .2s; }
.pin:hover, .pin.is-added { background: var(--rust); }
.menu { list-style: none; margin: 0 auto; padding: 0; max-width: 1440px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-cream); }
.menu li { padding: 26px 24px 8px 0; display: grid; grid-template-rows: auto auto 1fr auto; }
.menu__num { color: var(--rust); margin-bottom: 14px; }
.menu h3 { font-size: clamp(1.6rem, 1.1rem + 1vw, 2.2rem); margin-bottom: 10px; }
.menu p { color: var(--ink-soft); font-size: 15.5px; max-width: 24em; }
.menu__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px dashed var(--line-cream); }
.menu__price { font: 400 15px/1 var(--mono); }
.menu__add { min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); background: none; color: var(--ink); font: 600 14.5px/1 var(--ui); border-radius: 2px; cursor: pointer; }
.menu__add:hover { background: var(--ink); color: var(--cream); }
.bakes :focus-visible, .order :focus-visible { outline-color: var(--rust); }

/* Pickup */
.pickup { position: relative; min-height: 100svh; background: var(--oak); color: var(--ink); overflow: hidden; display: flex; align-items: center; }
.pickup__img { position: absolute; inset: 0; }
.pickup__img img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
.pickup__copy { position: relative; width: min(470px, 34vw); margin-left: var(--gutter); padding: 120px 0 80px; }
.pickup__copy .eyebrow { color: var(--rust); }
.pickup__copy h2 { margin-bottom: 36px; }
.pickup__copy h2 em { color: var(--rust); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-cream); }
.steps li p { margin: 0; color: #3a2d22; }
.steps .mono { padding-top: 4px; color: var(--rust); }

/* Order */
.order { background: var(--cream); color: var(--ink); padding: clamp(80px, 10vw, 140px) var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 110px); max-width: 1568px; margin: 0 auto; }
.order__intro .eyebrow { color: var(--rust); }
.order__intro h2 { margin-bottom: 26px; }
.order__intro p { color: var(--ink-soft); max-width: 30em; }
.order__phone a { color: var(--ink); }
.order__form, .order__done { border-top: 2px solid var(--ink); padding-top: 26px; }
.field { margin-bottom: 26px; }
.field label, legend { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 10px; padding: 0; }
.field input { width: 100%; min-height: 50px; padding: 0 14px; font: 400 17px/1 var(--ui); color: var(--ink); background: #f8f3ea; border: 1px solid #8c7d6d; border-radius: 2px; }
.field input:focus-visible { outline: 2px solid var(--rust); outline-offset: 0; border-color: var(--rust); }
.field__err { color: #9a2a10; font-size: 15px; margin: 8px 0 0; }
fieldset { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-cream); }
.qty__name { font-size: 16.5px; }
.qty__name small { display: block; font: 400 12.5px/1.4 var(--mono); letter-spacing: 0.06em; color: var(--ink-soft); }
.stepper { display: flex; align-items: center; }
.stepper button { width: 44px; height: 44px; border: 1px solid #8c7d6d; background: #f8f3ea; color: var(--ink); font: 400 20px/1 var(--ui); cursor: pointer; border-radius: 2px; }
.stepper output { width: 44px; text-align: center; font: 400 16px/1 var(--mono); }
.slots { display: flex; flex-wrap: wrap; gap: 10px; }
.slots legend { width: 100%; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1px solid #8c7d6d; border-radius: 2px; font-size: 15.5px; }
.slot input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.slot input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 2px; }
.order__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; }
.order__total { margin: 0; color: var(--ink); }
.order .btn--solid { background: var(--rust); color: #fbf4ea; }
.order .btn--solid:hover { background: #6f2b10; }
.order__demo { margin: 18px 0 0; color: var(--ink-soft); font-size: 11.5px; }
.order__done h3 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); margin-bottom: 20px; }
.order__done .eyebrow { color: var(--rust); }
.order__done p { color: var(--ink-soft); }
.order__done .btn--line { color: var(--ink); margin-top: 8px; }

/* Cakes */
.cakes { background: var(--night-2); padding: clamp(80px, 10vw, 140px) var(--gutter); }
.cakes > * { max-width: 1440px; margin-left: auto; margin-right: auto; }
.cakes h2 { margin-bottom: 40px; }
.cakes__rows { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.cakes__rows > div { padding: 28px 40px 8px 0; }
.cakes__rows h3 { font-size: 2rem; margin-bottom: 12px; }
.cakes__rows p { color: var(--on-dark-soft); max-width: 30em; }
.cakes__cta { margin-top: 20px; color: var(--on-dark-soft); }
.cakes__cta a { color: var(--on-dark); }

/* Visit */
.visit { padding: clamp(80px, 10vw, 140px) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1568px; margin: 0 auto; }
.visit h2 { margin-bottom: 22px; }
.visit__now { color: var(--amber); }
.hours { width: 100%; border-collapse: collapse; align-self: end; }
.hours caption { text-align: left; padding-bottom: 12px; color: var(--on-dark-soft); }
.hours th, .hours td { text-align: left; font-weight: 400; padding: 16px 0; border-top: 1px solid var(--line-dark); font-size: 17px; }
.hours td { text-align: right; font-family: var(--mono); font-size: 14px; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--amber); }

/* Footer */
.site-footer { padding: 40px var(--gutter) 40px; border-top: 1px solid var(--line-dark); }
.site-footer__mark { font: 300 clamp(4rem, 2rem + 12vw, 15rem)/0.9 var(--display); letter-spacing: -0.03em; margin: 0 0 28px; color: #2a2e33; }
.site-footer__mark::before { content: attr(data-word); }
.tel-link { display: inline-block; padding: 12px 0; }
.wordmark { padding: 12px 0; }
.legal a { padding: 12px 6px !important; }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 15px; color: var(--on-dark-soft); }
.site-footer__row p { margin: 0; }
.site-footer a { color: var(--on-dark); display: inline-block; padding: 12px 0; }
.legal { display: flex; gap: 24px; }
.site-footer__row > p, .legal { align-self: center; }

/* Tablet: shorter nav */
@media (max-width: 1100px) {
  .site-nav__link { display: none; }
}

/* Phone: the story becomes a photo band with the copy under it */
@media (max-width: 759px) {
  :root { --header-h: 60px; --story: 560px; }
  body { font-size: 16.5px; }
  .site-header { padding: 0 16px; background: var(--night); border-bottom: 1px solid var(--line-dark); }
  .hero__stage { padding-top: var(--header-h); }
  .wordmark__sub { display: none; }
  .wordmark__name { font-size: 23px; }
  .site-nav { gap: 14px; }
  .site-nav .btn--sm { min-height: 44px; }
  .site-nav__tel { display: none; }
  .hero__stage { display: flex; flex-direction: column; }
  .hero__media { position: relative; inset: auto; flex: 1 1 auto; min-height: 30svh; }
  .hero__layer img { object-position: 50% 50%; }
  .readout { display: none; }
  .hero__copy { position: relative; left: auto; bottom: auto; width: auto; padding: 22px 16px 22px; background: var(--night); }
  .hero__status { margin-bottom: 12px; font-size: 11px; }
  .hero__title { font-size: clamp(2.7rem, 11.5vw, 3.4rem); margin-bottom: 12px; }
  .hero__lead { font-size: 15.5px; margin-bottom: 0; }
  .hero__actions { margin: 16px 0 16px; gap: 10px 16px; }
  .hero__actions .btn--text { display: none; }
  .timeline li { font-size: 10.5px; padding-top: 10px; }
  .timeline li span { font-size: 12px; }
  .bakes__head { grid-template-columns: 1fr; }
  .bakes__intro { justify-self: start; }
  .tray { margin: 0 -16px; }
  .pin { left: var(--px); top: var(--py); }
  .menu { grid-template-columns: 1fr; }
  .menu li { padding-right: 0; }
  .pickup { display: block; min-height: 0; background: var(--cream); }
  .pickup__img { position: relative; inset: auto; }
  .pickup__img img { height: auto; aspect-ratio: 4 / 5; }
  .pickup__copy { width: auto; margin: 0; padding: 48px 16px 72px; }
  .steps li { grid-template-columns: 1fr; gap: 6px; }
  .order { grid-template-columns: 1fr; }
  .cakes__rows, .visit { grid-template-columns: 1fr; }
  .site-footer__row { flex-direction: column; }
}
@media (max-width: 759px) and (max-height: 720px) {
  .hero__lead { display: none; }
}

/* Reduced motion: no pin, show the lit morning */
@media (prefers-reduced-motion: reduce) {
  .hero { height: 100svh; }
  .hero__layer--lit { opacity: 1; }
  .btn, .pin, .site-header, .timeline li { transition: none; }
}
