/* ORVELLE · the bakery page, stage 6: + the taste row, "For you", the offer ribbon, the newsletter card and FLIP moves. 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-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.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); }
.btn-link.small { font-size: 13px; text-decoration: underline; text-underline-offset: 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; }
.hero-slot:empty { display: none; }
.hero-slot { margin-top: 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-ghost { color: #FCF9F3; border-color: rgba(255, 255, 255, .35); }
.foot .btn-ghost:hover { border-color: #fff; }
.foot .btn-link { color: #FCF9F3; }
.inspector { list-style: none; padding: 0 !important; font: 500 12px/1.4 ui-monospace, 'SF Mono', Menlo, monospace; }
.inspector li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); margin: 0 !important; color: #EFE6DA !important; font-size: 12px !important; }
.inspector li span:last-child { color: #BFAE99; }
.inspector li.gone { color: #A69580 !important; text-decoration: line-through; }

/* ---------------------------------------------------------- consent-driven features (mounted by gated scripts) */
/* analytics: the oven counter and heat badges */
.oven { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); animation: rise .5s var(--ease) both; }
.oven-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #D9480F; flex: none; }
.oven-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(217, 72, 15, .35); animation: ping 1.8s var(--ease) infinite; }
.oven b { font: 700 18px/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.oven small { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.heat { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .04em; color: #fff; background: var(--heat, #C2410C); box-shadow: 0 2px 8px rgba(60, 30, 10, .18); animation: rise .45s var(--ease) both; animation-delay: var(--d, 0s); }
.heat i { display: block; width: 26px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.heat i::before { content: ''; display: block; height: 100%; width: var(--w, 50%); background: #fff; border-radius: 2px; }
.heat.out, .oven.out, .taste.out, .ribbon.out, .news.out { animation: fall .3s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes fall { to { opacity: 0; transform: translateY(6px); } }

/* personalisation: "because you like" */
.taste { margin: 0 0 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(135deg, var(--paper), var(--butter)); animation: rise .5s var(--ease) both; }
.taste-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.taste h2 { font-size: clamp(26px, 3vw, 36px); }
.taste-head p { margin: 0; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font: 600 13px/1 var(--sans); color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.pick { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: rgba(255, 253, 248, .8); border: 1px solid var(--line); min-width: 0; }
.pick img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.pick b { display: block; font: 600 17px/1.15 var(--serif); }
.pick span { font-size: 12px; color: var(--muted); }
.pick > div { min-width: 0; }
.card .yours { position: absolute; right: 12px; top: 12px; z-index: 2; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 10px/26px var(--sans); letter-spacing: .1em; text-transform: uppercase; animation: rise .4s var(--ease) both; }

/* marketing: the ribbon and the newsletter card */
.ribbon { background: var(--ink); color: #F5EBDD; animation: rise .45s var(--ease) both; }
.ribbon-in { display: flex; align-items: center; justify-content: center; gap: 12px 20px; min-height: 48px; padding: 6px var(--gut); font-size: 13.5px; text-align: center; flex-wrap: wrap; }
.ribbon b { color: #E7C88E; font-weight: 600; }
.ribbon code { font: 700 12px/1 var(--sans); letter-spacing: .08em; padding: 5px 8px; border: 1px dashed rgba(231, 200, 142, .7); border-radius: 6px; color: #fff; }
.ribbon-x { width: 44px; height: 44px; border: 0; background: none; color: inherit; display: inline-grid; place-items: center; border-radius: 50%; }
.ribbon-x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.news { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 16px 32px; padding: 28px 32px; border-radius: var(--r); background: var(--ink); color: #F5EBDD; animation: rise .5s var(--ease) both; min-width: 0; }
.news .eyebrow { color: #E7C88E; }
.news h3 { font-size: 30px; color: #FCF9F3; }
.news p { margin: 0; font-size: 14px; color: #D9CDBE; }
.news form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; }
.news form label, .news form .demo { grid-column: 1 / -1; }
.news button { padding: 0 20px; }
.news .eyebrow { margin-bottom: 10px; }
.news label { font-size: 12px; color: #D9CDBE; }
.news input { min-height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; padding: 0 14px; font: 500 15px/1 var(--sans); width: 100%; }
.news input:focus-visible { outline-color: #E7C88E; }
.news button { min-height: 46px; border-radius: 999px; border: 0; background: #E7C88E; color: var(--ink); font: 700 13px/1 var(--sans); }
.news .demo { font-size: 12px; color: #BFAE99; }

/* offscreen sections skip their layout and paint until they come near the viewport */
.story, .visit, .foot { content-visibility: auto; contain-intrinsic-size: auto 720px; }
.taste { content-visibility: auto; contain-intrinsic-size: auto 250px; }
.taste > .pending { content-visibility: hidden; contain-intrinsic-size: auto 44px; }
.taste > .picks.pending { contain-intrinsic-size: auto 74px; }
@media (max-width: 860px) { .taste { contain-intrinsic-size: auto 470px; } }
.card { content-visibility: auto; contain-intrinsic-size: auto 520px; }

/* FLIP moves */
.card.moving { z-index: 1; }

/* ---------------------------------------------------------- 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; }
  .picks { grid-template-columns: minmax(0, 1fr); }
  .news { grid-template-columns: minmax(0, 1fr); padding: 22px; }
}
@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); }
  .taste { padding: 18px; }
  .news form { grid-template-columns: minmax(0, 1fr); }
  .news h3 { font-size: 26px; }
}
@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; }
}
