/* ONDULÉ shared styles: tokens, type, header, bag, buttons, forms, footer. */
:root {
  --milk: #f3ede4;
  --paper: #fbf8f3;
  --stone: #e5dacb;
  --stone-2: #d6c8b5;
  --ink: #22160f;
  --ink-2: #5a4434;
  --crema: #b06a32;
  --crema-d: #87491c;
  --matcha: #6f8a55;
  --ube: #8a7bb8;
  --night: #17100b;
  --line: rgba(34, 22, 15, .14);
  --r: 18px;
  --gut: clamp(16px, 3.6vw, 56px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --slow: cubic-bezier(.6, 0, .2, 1);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.rm { scroll-behavior: auto; }
body { margin: 0; background: var(--milk); color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.55; overflow-x: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--crema-d); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: #f1c99c; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 99px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1520px; margin: 0 auto; padding: 0 var(--gut); }

/* type */
.d { font-family: var(--serif); font-weight: 400; line-height: .92; letter-spacing: -.02em; margin: 0; }
.d em { font-style: italic; }
.d-xl { font-size: clamp(56px, 10vw, 176px); }
.d-l { font-size: clamp(44px, 6.6vw, 112px); }
.d-m { font-size: clamp(34px, 4vw, 64px); }
.k { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 18px; color: var(--ink-2); }
.on-dark .k { color: #d9c7b2; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; max-width: 34em; margin: 0; color: var(--ink-2); }
.on-dark .lede { color: #e6d9ca; }
.num { font-variant-numeric: tabular-nums; }

/* buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 99px;
  background: var(--bg); color: var(--fg); border: 0; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .01em;
  transition: transform .35s var(--ease), background-color .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(34, 22, 15, .55); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-milk { --bg: var(--paper); --fg: var(--ink); }
.btn-crema { --bg: var(--crema-d); --fg: #fff; }
.btn-ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor, 0 12px 26px -14px rgba(0, 0, 0, .4); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.link { font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.link::after { content: '\2192'; transition: transform .3s var(--ease); }
.link:hover::after { transform: translateX(4px); }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gut); color: var(--paper); transition: background-color .35s, color .35s, box-shadow .35s; }
.top.solid, .solid-top .top { background: rgba(243, 237, 228, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.top nav { display: flex; gap: clamp(16px, 2.2vw, 36px); align-items: center; }
.top nav.r { justify-content: flex-end; }
.top nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 6px 0; position: relative; }
.top nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top nav a:not(.btn):hover::after, .top nav a[aria-current="page"]::after { transform: scaleX(1); }
.logo { text-decoration: none; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo b { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: .06em; }
.logo svg { width: 64px; height: 8px; margin-top: 3px; }
.bag-btn { min-height: 42px; padding: 0 18px; font-size: 14px; position: relative; }
.top:not(.solid) .bag-btn { --bg: var(--paper); --fg: var(--ink); }
body.solid-top .top .bag-btn { --bg: var(--ink); --fg: var(--paper); }
.top.solid .bag-btn { --bg: var(--ink); --fg: var(--paper); }
.bag-btn b { min-width: 20px; height: 20px; border-radius: 99px; background: var(--crema-d); color: #fff; font-size: 11.5px; display: inline-grid; place-items: center; padding: 0 5px; }
.bag-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.1); } }
.menu-btn { display: none; min-height: 42px; padding: 0 18px; }
@media (max-width: 960px) {
  .top { grid-template-columns: auto 1fr; }
  .top nav.l { display: none; }
  .top nav.r a:not(.btn) { display: none; }
  .logo { order: -1; align-items: flex-start; }
  .menu-btn { display: inline-flex; }
}
.drawer-nav { position: fixed; inset: 0; z-index: 70; background: var(--night); color: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: 90px var(--gut) 40px; gap: 6px; transform: translateY(-100%); transition: transform .6s var(--slow); visibility: hidden; }
.drawer-nav.open { transform: none; visibility: visible; }
.drawer-nav a { font-family: var(--serif); font-size: clamp(40px, 11vw, 72px); line-height: 1.05; text-decoration: none; }
.drawer-nav .x { position: absolute; top: 18px; right: var(--gut); }

/* bag */
.bag-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(23, 16, 11, .45); opacity: 0; pointer-events: none; transition: opacity .35s; }
.bag-scrim.open { opacity: 1; pointer-events: auto; }
.bag { position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .5s var(--slow); visibility: hidden; }
.bag.open { transform: none; visibility: visible; }
.bag > header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.bag h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--milk); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.bag .lines { flex: 1; overflow: auto; padding: 8px 24px; }
.bag > footer { padding: 20px 24px 26px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.sum { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; }
.fine { font-size: 13px; color: var(--ink-2); margin: 0; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: var(--stone); }
.line h3 { margin: 0; font-size: 16px; }
.line p { margin: 2px 0 8px; font-size: 13px; color: var(--ink-2); }
.line .pr { font-weight: 700; }
.qty { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); }
.qty button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 18px; border-radius: 50%; }
.qty span { min-width: 20px; text-align: center; font-weight: 700; }
.empty { padding: 40px 0; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 90; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); padding: 14px 22px; border-radius: 99px; font-weight: 600; font-size: 15px; transition: transform .45s var(--ease), opacity .3s, visibility .3s; max-width: calc(100% - 32px); text-align: center; opacity: 0; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* media helpers */
.media { position: relative; overflow: hidden; background: var(--stone); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.credit { position: absolute; right: 12px; bottom: 10px; margin: 0; font-size: 11px; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); z-index: 2; }
.credit.dark { color: var(--ink-2); text-shadow: none; }

/* reveal: only elements an observer watches get .rv-wait, from JS */
.rv-wait { opacity: 0; transform: translateY(26px); }
.rv-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* forms */
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.field input, .field select, .field textarea { min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--stone-2); background: var(--paper); width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--crema-d); outline-offset: 1px; }
.field .err { color: #9b2c1c; font-size: 13px; font-weight: 600; min-height: 1em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span, button.chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--stone-2); font-weight: 600; font-size: 14.5px; cursor: pointer; background: var(--paper); border: 0; transition: background-color .2s, color .2s, box-shadow .2s; }
.chip input:checked + span, button.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--crema-d); outline-offset: 2px; }

/* footer */
.ft { background: var(--night); color: #efe5d9; padding: clamp(60px, 8vw, 120px) 0 0; overflow: hidden; }
.ft-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.ft h2 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 16px; color: #cdb9a3; font-weight: 700; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft a { text-decoration: none; }
.ft a:hover { text-decoration: underline; }
.ft-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 60px; padding-top: 22px; border-top: 1px solid rgba(239, 229, 217, .16); }
.ft-note { font-size: 13.5px; color: #cdb9a3; margin: 0; max-width: 46em; }
.ft-note a { text-decoration: underline; color: #efe5d9; }
.ft-big { font-family: var(--serif); white-space: nowrap; line-height: .78; margin: 40px 0 0; text-align: center; color: #efe5d9; letter-spacing: .02em; font-size: 20vw; transform: translateY(8%); }
@media (max-width: 860px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-grid > div:first-child { grid-column: 1 / -1; } }

/* the map (home and bars) */
.map { width: 100%; height: auto; }
.map .river { fill: none; stroke: #9fb3bf; stroke-width: 2.2; stroke-linecap: round; }
.map .grid { fill: none; stroke: rgba(34, 22, 15, .16); stroke-width: .35; }
.map .road { fill: none; stroke: rgba(34, 22, 15, .22); stroke-width: .6; }
.map .lbl { font-size: 2.4px; fill: var(--ink-2); letter-spacing: .1px; font-family: var(--sans); }
.map .pin circle:not(.halo) { fill: var(--ink); }
.map .pin.on circle:not(.halo) { fill: var(--crema-d); }
.map .pin text { font-size: 2.9px; font-weight: 700; fill: var(--ink); font-family: var(--sans); }
.map .halo { fill: rgba(135, 73, 28, .25); animation: halo 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.rm .map .halo { animation: none; }
