/* ORVELLE · the bakery page, stage 1: the page: tokens, nav, hero, the counter of eight, the story, visit, footer. Light only: the OS colour scheme is never read. */
:root {
  --bg: #F7F2EA; --paper: #FCF9F3; --card: #FFFDF8; --ink: #1C1917; --ink-2: #44403C; --muted: #6B625A;
  --line: #E4DACD; --line-2: #D6C9B8; --gold: #A16207; --gold-2: #B8862E; --cocoa: #3B2A20; --red: #A8322A;
  --blush: #EFDCD2; --sage: #E1E5D5; --butter: #F3E6C6;
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif; --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px; --wrap: 1240px; --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: only light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
em { font-style: italic; font-weight: 500; color: var(--gold); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
/* controls that only work with JavaScript (the consent buttons, "On this device") are not shown without it */
:root:not(.js) [data-js-only] { display: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 14px/1 var(--sans); letter-spacing: .02em; text-decoration: none; border: 1px solid transparent; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.btn-dark { background: var(--ink); color: #FCF9F3; }
.btn-dark:hover { background: var(--cocoa); }
.btn-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 14px/1 var(--sans); text-decoration: none; color: var(--ink); background: none; border: 0; padding: 0; }
.btn-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s var(--ease); }
.btn-link:hover svg { transform: translateX(3px); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(247, 242, 234, .92); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 var(--serif); letter-spacing: .28em; min-height: 44px; }
.logo svg { width: 34px; height: 34px; color: var(--gold); }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font: 500 14px/1 var(--sans); text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.basket { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); }
.basket svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.basket-n { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--gold); color: #fff; font: 700 11px/22px var(--sans); text-align: center; }
.basket.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }

/* hero */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(48px, 6.6vw, 96px); font-weight: 600; letter-spacing: -0.02em; }
.lede { font-size: clamp(16px, 1.25vw, 18px); color: var(--ink-2); max-width: 34em; margin: 24px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 40px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.facts dt { font: 600 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font: 500 18px/1.3 var(--serif); }
.hero-art { margin: 0; position: relative; }
.hero-art img { width: 100%; aspect-ratio: 14 / 17; object-fit: cover; border-radius: 999px 999px var(--r) var(--r); background: var(--butter); }
.hero-art figcaption { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); background: rgba(252, 249, 243, .9); padding: 8px 12px; border-radius: 999px; }

/* sections */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 24px; margin-bottom: 36px; }
.sec-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.sec-head h2 { font-size: clamp(34px, 4vw, 56px); }
.sec-note { margin: 0; color: var(--muted); font-size: 14px; }
.counter { padding: clamp(40px, 6vw, 88px) 0; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; gap: clamp(14px, 2vw, 28px); }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--butter); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-badges { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.card h3 { font-size: 24px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.price { font: 600 20px/1 var(--serif); }
.add { min-height: 44px; min-width: 72px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; font: 600 13px/1 var(--sans); transition: background .2s var(--ease), color .2s var(--ease); }
.add:hover { background: var(--ink); color: var(--paper); }
.add.added { background: var(--ink); color: var(--paper); }

/* story + visit */
.story { padding: clamp(40px, 6vw, 88px) 0; background: var(--paper); border-block: 1px solid var(--line); }
.story-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.story-art { margin: 0; }
.story-art img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story h2 { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 20px; }
.story p { color: var(--ink-2); max-width: 32em; }
.story .btn { margin-top: 12px; }
.visit { padding: clamp(40px, 6vw, 88px) 0; }
.visit-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.visit h2 { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 16px; }
.visit p { color: var(--ink-2); max-width: 30em; margin: 0; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours td { text-align: right; font-family: var(--serif); font-size: 19px; }

/* footer */
.foot { background: var(--cocoa); color: #EFE6DA; padding: 56px 0 72px; }
.foot-in { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 40px; }
.logo-text { font: 600 22px/1 var(--serif); letter-spacing: .28em; margin: 0 0 12px; }
.foot p, .foot li { font-size: 14px; color: #D9CDBE; }
.foot h2 { font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #E7C88E; margin-bottom: 14px; }
.foot ul { padding-left: 18px; margin: 0 0 12px; }
.foot li { margin-bottom: 6px; }
.foot b { color: #FCF9F3; font-weight: 600; }
.foot .btn-link { color: #FCF9F3; }

/* offscreen sections skip their layout and paint until they come near the viewport */
.story, .visit, .foot { content-visibility: auto; contain-intrinsic-size: auto 720px; }
.card { content-visibility: auto; contain-intrinsic-size: auto 520px; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero-in, .story-in, .visit-in { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 520px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { gap: 18px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav nav { margin-left: auto; }
  .nav-in { height: 64px; }
  .facts { grid-template-columns: repeat(2, auto); gap: 12px 28px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .card h3 { font-size: 20px; }
  .card-body { padding: 12px 12px 14px; }
  .card p { font-size: 13px; }
  .card-foot { flex-wrap: wrap; }
  .add { min-width: 64px; padding: 0 14px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .grid { gap: 10px; }
  .card h3 { font-size: 18px; }
  .price { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
