:root{color-scheme:light}body{margin:0;font:14px system-ui,sans-serif;background:#F6F3EE}img{max-width:100%}[hidden]{display:none!important}

/* ---- tokens.css ---- */
/* =====================================================================
   TOKENS — every colour is sampled from the shop's photos or logo.
   The site is paper-light by brand; dark sections are "black wrap".
   ===================================================================== */
:root {
  color-scheme: light;
  --paper: #F6F3EE;
  --paper-2: #EEEAE2;
  --paper-3: #E6E1D7;
  --cream: #EDE7DA;
  --wall: #CFCFC7;
  --line: #C9C7BD;
  --line-soft: #DEDBD2;
  --sage: #9CA596;
  --euca: #5E6E5C;
  --ink: #2F1C15;
  --ink-2: #5B4A42;
  --ink-3: #8A7B73;
  --rose: #B0111F;
  --ribbon: #7E1B2B;
  --heart: #F4A9B1;
  --heart-2: #E58FA1;
  --wrap: #1B1A1A;
  --wrap-2: #2B2A2C;
  --wrap-hi: #3A393D;
  --sun: #F0B323;
  --sky: #A9C4DD;
  --walnut: #6A4B30;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--ink-2);
  --faint: var(--ink-3);
  --surface: #FBFAF7;
  --border: var(--line);

  /* Bodoni has no Thai: Thai characters set in the display stack (prices,
     labels) fall through, per glyph, to Anuphan instead of a system font */
  --f-display: 'Bodoni Moda', 'Bodoni 72', Didot, 'Times New Roman', Georgia, 'Anuphan', serif;
  --f-thai-display: 'Chonburi', 'Anuphan', 'Leelawadee UI', Thonburi, serif;
  --f-body: 'Anuphan', 'Leelawadee UI', Thonburi, 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Charm', 'Leelawadee UI', cursive;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 180ms;
  --t: 420ms;
  --t-slow: 700ms;
  --t-cine: 1100ms;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  /* never less than the notch or rounded corner in landscape (viewport-fit=cover) */
  --gutter: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --max: 1440px;
  --measure: 62ch;
  --radius: 2px;
  --header-h: 64px;
  --strip-h: 32px;
  --doorstep-h: 60px;

  --sheet: 0 1px 0 rgba(255,255,255,.7) inset, 0 1px 0 rgba(47,28,21,.05), 0 14px 28px -18px rgba(47,28,21,.28);
  --sheet-stack: 0 1px 0 #fff inset, 0 6px 0 -3px var(--paper-2), 0 12px 0 -6px var(--line-soft), 0 18px 24px -18px rgba(47,28,21,.28);
  --sheet-lift: 0 1px 0 rgba(255,255,255,.7) inset, 0 2px 0 rgba(47,28,21,.06), 0 26px 40px -22px rgba(47,28,21,.42);
  --focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink);
}

/* Black-wrap sections: local overrides only, never a global dark theme */
.wrap-dark {
  --bg: var(--wrap);
  --fg: var(--paper);
  --muted: #D9D3C8;
  --faint: #A9A39A;
  --surface: var(--wrap-2);
  --border: #3E3C3F;
  --focus: 0 0 0 2px var(--wrap), 0 0 0 4px var(--heart);
  color-scheme: dark;
}

/* ---- base.css ---- */
/* =====================================================================
   BASE — reset, layout primitives, accessibility
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (max-width: 767px) { html { scroll-padding-bottom: calc(var(--doorstep-h) + env(safe-area-inset-bottom, 0px) + 12px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: 0;
}
html:lang(en) body { font-size: 16px; line-height: 1.55; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a, button, label, summary, [role="button"] { -webkit-tap-highlight-color: transparent; }
button, .btn, .chip, .seg, .lang-switch, #doorstep a { -webkit-user-select: none; user-select: none; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
address { font-style: normal; }
:focus { outline: none; }
/* the ring is a box-shadow; the transparent outline is what Windows contrast
   themes (forced colours) paint, since they drop shadows */
:focus-visible { box-shadow: var(--focus); border-radius: var(--radius); outline: 2px solid transparent; outline-offset: 2px; }
[tabindex="-1"]:focus-visible, #main:focus-visible { box-shadow: none; outline: none; }
@media (forced-colors: active) {
  .input:focus, .select:focus, .textarea:focus, .check input:focus-visible + .box { outline: 2px solid Highlight; outline-offset: 2px; }
  .window:has(input:focus-visible), .radio-card:has(input:focus-visible) { outline: 2px solid Highlight; outline-offset: 2px; }
}
::selection { background: var(--heart); color: var(--ink); }

.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 200; }
.skip:focus { top: 8px; position: fixed; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* layout */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); }
.section { padding-block: clamp(48px, 8vw, 112px); }
.section-tight { padding-block: clamp(32px, 5vw, 64px); }
main { display: block; min-height: 60vh; }
#main:empty { min-height: 100vh; min-height: 100svh; }
#main[data-route] { position: relative; }
body[data-route] { padding-bottom: 0; }

/* pleated paper divider — the studio pedestals */
.pleat {
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--paper) 0 10px, var(--paper-2) 10px 12px, var(--paper-3) 12px 14px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.wrap-dark .pleat { background: repeating-linear-gradient(90deg, var(--wrap) 0 10px, var(--wrap-2) 10px 12px, var(--wrap-hi) 12px 14px); border-color: var(--wrap-hi); }

/* hairlines */
.rule { border-top: 1px solid var(--line); }
.rule-ink { border-top: 1px solid var(--ink); }

/* paper sheet */
.sheet {
  background: var(--surface);
  box-shadow: var(--sheet);
  border-radius: var(--radius);
}
.sheet-stack { background: var(--surface); box-shadow: var(--sheet-stack); border-radius: var(--radius); }
.sheet-fold { position: relative; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.sheet-fold::after { content: ''; position: absolute; top: 0; right: 0; width: 22px; height: 22px; background: linear-gradient(225deg, var(--paper-3) 0 50%, var(--paper-2) 50%); }

/* receipt with pleated (zigzag) edges */
.receipt {
  background: var(--cream);
  color: var(--ink);
  padding: 28px 24px;
  clip-path: polygon(0 8px, 3% 0, 6% 8px, 9% 0, 12% 8px, 15% 0, 18% 8px, 21% 0, 24% 8px, 27% 0, 30% 8px, 33% 0, 36% 8px, 39% 0, 42% 8px, 45% 0, 48% 8px, 51% 0, 54% 8px, 57% 0, 60% 8px, 63% 0, 66% 8px, 69% 0, 72% 8px, 75% 0, 78% 8px, 81% 0, 84% 8px, 87% 0, 90% 8px, 93% 0, 96% 8px, 100% 0, 100% calc(100% - 8px), 96% 100%, 93% calc(100% - 8px), 90% 100%, 87% calc(100% - 8px), 84% 100%, 81% calc(100% - 8px), 78% 100%, 75% calc(100% - 8px), 72% 100%, 69% calc(100% - 8px), 66% 100%, 63% calc(100% - 8px), 60% 100%, 57% calc(100% - 8px), 54% 100%, 51% calc(100% - 8px), 48% 100%, 45% calc(100% - 8px), 42% 100%, 39% calc(100% - 8px), 36% 100%, 33% calc(100% - 8px), 30% 100%, 27% calc(100% - 8px), 24% 100%, 21% calc(100% - 8px), 18% 100%, 15% calc(100% - 8px), 12% 100%, 9% calc(100% - 8px), 6% 100%, 3% calc(100% - 8px), 0 100%);
}

/* the message card */
.card-paper {
  background: #FBFAF7;
  border: 1px solid #E6E2DA;
  box-shadow: 2px 3px 0 var(--paper-2), 0 12px 24px -16px rgba(47,28,21,.3);
  background-image: linear-gradient(90deg, transparent 49.7%, rgba(47,28,21,.05) 50%, transparent 50.3%);
  position: relative;
}
.card-paper .heart-tag { position: absolute; top: 10px; right: 10px; }

/* utilities */
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.center { display: flex; align-items: center; gap: var(--s3); }
.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s6); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.rose { color: var(--rose); }
.euca { color: var(--euca); }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }
.only-mobile { display: none; }
@media (max-width: 767px) { .only-mobile { display: initial; } .only-desktop { display: none !important; } }

/* horizontal rails */
.rail { display: flex; gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: var(--s3); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
/* cards follow their bouquet's posted size, so they are not stretched to the tallest one */
.rail { align-items: flex-start; }
.rail-bleed { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }

/* loader */
.loader { position: fixed; inset: 0; z-index: 400; background: var(--paper); display: grid; place-content: center; justify-items: center; gap: 18px; transition: opacity var(--t) var(--ease), visibility var(--t); }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
/* safety valve: the curtain lifts on its own if the boot script never runs */
.loader { animation: loaderGiveUp 0s linear 8s forwards; }
@keyframes loaderGiveUp { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.loader-heart path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 480ms var(--ease) forwards, fillHeart 260ms 460ms forwards, tilt 200ms 720ms var(--ease) forwards; transform-origin: 50% 50%; }
.loader-word { font-family: var(--f-display); font-size: 11px; letter-spacing: .32em; color: var(--ink); opacity: 0; animation: fadeIn 300ms 520ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillHeart { to { fill: var(--heart); stroke: var(--heart-2); } }
@keyframes tilt { to { transform: rotate(-8deg); } }
@keyframes fadeIn { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .loader-heart path { animation: none; fill: var(--heart); stroke: var(--heart-2); stroke-dashoffset: 0; transform: rotate(-8deg); } .loader-word { animation: none; opacity: 1; } }

/* toasts */
#toasts { position: fixed; left: 50%; bottom: calc(var(--doorstep-h) + 16px); transform: translateX(-50%); z-index: 350; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 768px) { #toasts { bottom: 24px; } }
.toast { pointer-events: auto; background: var(--surface); color: var(--ink); box-shadow: var(--sheet-lift); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 15px; animation: toastIn var(--t) var(--ease); }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .toast.is-out { animation: none; opacity: 0; } }
.toast.is-out { animation: toastOut var(--t-fast) var(--ease) forwards; }
.toast a { text-decoration: underline; text-underline-offset: .2em; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---- type.css ---- */
/* =====================================================================
   TYPE — Bodoni Moda (Latin display) · Chonburi (Thai display) · Anuphan
   Thai never gets letter-spacing, italics or tight line-height.
   ===================================================================== */
.display, .h1, .h2, .h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; }
.display:lang(th), .h1:lang(th), .h2:lang(th), .h3:lang(th),
:lang(th) .display, :lang(th) .h1, :lang(th) .h2, :lang(th) .h3 { font-family: var(--f-thai-display); letter-spacing: 0; line-height: 1.32; font-weight: 400; }

.display { font-size: clamp(38px, 6.4vw, 84px); font-variation-settings: 'opsz' 96; }
.h1 { font-size: clamp(34px, 5vw, 64px); font-variation-settings: 'opsz' 72; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); font-variation-settings: 'opsz' 48; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); font-variation-settings: 'opsz' 28; }
.h4 { font-family: var(--f-body); font-weight: 500; font-size: 18px; line-height: 1.4; }
:lang(th) .display { font-size: clamp(34px, 5.6vw, 72px); }
:lang(th) .h1 { font-size: clamp(30px, 4.4vw, 56px); }
:lang(th) .h2 { font-size: clamp(26px, 3.2vw, 40px); }
:lang(th) .h3 { font-family: var(--f-body); font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; }

.italic { font-style: italic; }
:lang(th) .italic { font-style: normal; }
.serif { font-family: var(--f-display); }
.headword { font-family: var(--f-display); font-style: italic; font-weight: 400; font-variation-settings: 'opsz' 60; letter-spacing: 0; }
.headword .n { font-style: normal; font-variation-settings: 'opsz' 14; font-size: .5em; vertical-align: .35em; margin-left: .12em; }

.eyebrow { font-family: var(--f-body); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.eyebrow:lang(th), :lang(th) .eyebrow { letter-spacing: 0; text-transform: none; font-size: 13px; }
.eyebrow-serif { font-family: var(--f-display); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }

.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; max-width: 48ch; color: var(--muted); }
:lang(th) .lede { line-height: 1.75; }
.small { font-size: 14px; line-height: 1.55; }
:lang(th) .small { line-height: 1.7; }
.tiny { font-size: 12px; line-height: 1.5; color: var(--muted); }
:lang(th) .tiny { line-height: 1.65; }

.price { font-family: var(--f-display); font-weight: 500; font-variation-settings: 'opsz' 24; font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap; }
.price-lg { font-size: clamp(26px, 3vw, 36px); }
.price-md { font-size: 22px; }
.price-sm { font-size: 18px; }

.hand { font-family: var(--f-hand); font-size: 26px; line-height: 1.5; color: var(--ink); }
:lang(th) .hand { line-height: 1.7; }

.thai { font-family: var(--f-body); letter-spacing: 0; }
:lang(th) a, a:lang(th) { text-underline-offset: .22em; text-decoration-skip-ink: none; }
.link { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; text-decoration-color: var(--line); transition: text-decoration-color var(--t-fast); }
.link:hover { text-decoration-color: var(--ribbon); }
.measure { max-width: var(--measure); }
.prose p { margin-bottom: 1.1em; }
.caps { text-transform: uppercase; letter-spacing: .1em; font-size: .78em; }
:lang(th) .caps { text-transform: none; letter-spacing: 0; font-size: 1em; }
.num { font-variant-numeric: tabular-nums; }

/* ---- components.css ---- */
/* =====================================================================
   COMPONENTS — buttons, chips, forms, cards, heart tag, ribbon, calendar
   ===================================================================== */

/* ---- buttons: rectangles, folded corner on primary, ribbon-tail on secondary ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; font-family: var(--f-body); font-weight: 500; font-size: 15px; line-height: 1.2; letter-spacing: .01em; border: 1px solid var(--ink); color: var(--ink); background: transparent; border-radius: var(--radius); transition: transform var(--t-fast) var(--ease), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); white-space: nowrap; text-align: center; }
/* hover styles only where there is a real pointer: on a phone they would stick after a tap */
@media (hover: hover) { .btn:hover { background: var(--paper-2); } }
.btn:active { transform: translateY(1px); }
/* a long label wraps on a small phone instead of pushing the page sideways */
.btn { max-width: 100%; }
@media (max-width: 400px) { .btn { white-space: normal; } }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
@media (hover: hover) { .btn-primary:hover { background: #3F2A21; } }
/* the clip-path cuts any outer ring, so focus is an inset paper line on the ink */
.btn-primary:focus-visible { box-shadow: none; outline: 2px solid var(--paper); outline-offset: -5px; }
.wrap-dark .btn-primary:focus-visible, .viewer-side .acts .btn-primary:focus-visible { outline-color: var(--ink); }
.btn-rose:focus-visible { box-shadow: none; outline: 2px solid #fff; outline-offset: -4px; }
.btn-rose { background: var(--rose); border-color: var(--rose); color: #fff; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
@media (hover: hover) { .btn-rose:hover { background: var(--ribbon); } }
.btn-ghost { border-color: transparent; padding-inline: 8px; }
@media (hover: hover) { .btn-ghost:hover { background: transparent; text-decoration: underline; text-underline-offset: .2em; } }
.btn-line { border-color: var(--line); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.wrap-dark .btn { border-color: var(--paper); color: var(--paper); }
@media (hover: hover) { .wrap-dark .btn:hover { background: var(--wrap-2); } }
.wrap-dark .btn-primary { background: var(--paper); color: var(--ink); }
.btn .ico { width: 18px; height: 18px; flex: 0 0 auto; }

/* text link with drawn underline */
.tlink { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; padding-bottom: 2px; background-image: linear-gradient(var(--ribbon), var(--ribbon)); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size var(--t-fast) var(--ease); }
.tlink:focus-visible { background-size: 100% 1px; }
.tlink .arrow { transition: transform var(--t-fast) var(--ease); }
@media (hover: hover) { .tlink:hover { background-size: 100% 1px; } .tlink:hover .arrow { transform: translateX(4px); } }

/* ---- chips: rectangular, hairline, heart fill when selected ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-2); border-radius: var(--radius); transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
@media (hover: hover) { .chip:hover { border-color: var(--ink); color: var(--ink); } }
.chip:active { background: var(--paper-2); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--heart); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.chip .sw { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(47,28,21,.2); }
.wrap-dark .chip { background: var(--wrap-2); color: var(--paper); border-color: var(--border); }

/* ---- heart tag: the pink sticker on every bouquet ---- */
.heart-tag { display: inline-grid; place-items: center; width: 44px; height: 42px; position: relative; transform: rotate(-8deg); filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); transition: transform var(--t-fast) var(--ease); flex: 0 0 auto; }
.heart-tag svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.heart-tag path { fill: var(--heart); stroke: #fff; stroke-width: 1.5; }
.heart-tag .txt { position: relative; font-family: var(--f-display); font-size: 5.5px; line-height: 1.1; letter-spacing: .04em; text-align: center; color: var(--ink); text-transform: uppercase; margin-top: -3px; }
.heart-tag.sm { width: 30px; height: 28px; }
.heart-tag.sm .txt { font-size: 3.8px; }
.heart-tag.lg { width: 72px; height: 68px; }
.heart-tag.lg .txt { font-size: 9px; }
.heart-tag.flat { transform: rotate(0); }
.heart-tag.press { animation: press var(--t-fast) var(--ease); }
@keyframes press { 50% { transform: rotate(-4deg) scale(.94); filter: drop-shadow(0 0 0 rgba(0,0,0,0)); } }
.heart-tag.pop { animation: pop 260ms var(--ease); }
@keyframes pop { 40% { transform: rotate(-3deg) scale(1.04); } }
.heart-badge { position: relative; }
.heart-badge .count { position: absolute; right: -6px; top: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 600; display: grid; place-items: center; transform: rotate(8deg); }

/* ---- ribbon band (cream satin, carries the order facts) ---- */
.ribbon { position: relative; overflow: hidden; background: var(--cream); color: var(--ink); height: 46px; display: flex; align-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(47,28,21,.08); }
.ribbon::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.45), transparent 45%, rgba(47,28,21,.05)); pointer-events: none; }
.ribbon-tilt { transform: rotate(-1.2deg); margin-inline: -2vw; width: 104vw; }
.ribbon-track { display: flex; gap: 0; white-space: nowrap; will-change: transform; animation: marquee 60s linear infinite; }
.ribbon:hover .ribbon-track, .ribbon:focus-within .ribbon-track, .ribbon.is-paused .ribbon-track { animation-play-state: paused; }
.ribbon-toggle { position: absolute; right: 0; top: 0; bottom: 0; z-index: 1; width: 46px; display: grid; place-items: center; background: var(--cream); color: var(--ink); box-shadow: -1px 0 0 rgba(47,28,21,.12), -14px 0 14px -6px var(--cream); }
.ribbon-toggle .ico { width: 16px; height: 16px; }
.ribbon-item { display: inline-flex; align-items: center; gap: 22px; padding-inline: 22px; font-family: var(--f-body); font-weight: 500; font-size: 13px; letter-spacing: .02em; }
.ribbon-item .serif { font-family: var(--f-display); letter-spacing: .28em; font-size: 12px; text-transform: uppercase; }
.ribbon-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ribbon); opacity: .7; }
.ribbon-dark { background: var(--ribbon); color: var(--cream); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; flex-wrap: wrap; white-space: normal; } .ribbon { height: auto; padding: 8px 0; } .ribbon-toggle { display: none; } .ribbon-tilt { transform: none; margin: 0; width: auto; } }

/* ---- product card: photo, entry, ruler edge ---- */
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); box-shadow: var(--sheet); border-radius: var(--radius); transition: box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
@media (hover: hover) { .pcard:hover { box-shadow: var(--sheet-lift); transform: translateY(-2px); } }
.pcard-media { position: relative; overflow: hidden; background: var(--wall); aspect-ratio: var(--ar, 4/5); }
/* the photo fills the frame whatever the posted size's ratio (no grey band) */
.pcard-media .pic { position: absolute; inset: 0; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 35%); transition: transform var(--t-cine) var(--ease); }
.pcard-media .heart-tag { position: absolute; left: 10px; top: 10px; z-index: 2; }
@media (hover: hover) { .pcard:hover .heart-tag { transform: rotate(0deg); } }
.pcard-ruler { position: absolute; right: 0; top: 0; bottom: 0; width: 18px; background: repeating-linear-gradient(to bottom, rgba(47,28,21,.55) 0 1px, transparent 1px 8px); background-size: 6px 100%; background-repeat: no-repeat; background-position: right; pointer-events: none; opacity: .55; }
.pcard-ruler span { position: absolute; right: 2px; bottom: 6px; writing-mode: vertical-rl; font-size: 9px; letter-spacing: .12em; color: var(--ink); background: var(--surface); padding: 2px 1px; font-family: var(--f-body); font-weight: 600; }
.pcard-body { padding: 14px 16px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.pcard-name { font-family: var(--f-display); font-style: italic; font-size: 24px; line-height: 1.15; font-variation-settings: 'opsz' 40; overflow-wrap: break-word; }
:lang(th) .pcard-name, .pcard-name:lang(th) { font-family: var(--f-body); font-style: normal; font-weight: 500; font-size: 19px; line-height: 1.4; }
.pcard-meaning { font-size: 14px; line-height: 1.55; color: var(--euca); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
:lang(th) .pcard-meaning { line-height: 1.7; min-height: 3.2em; }
.pcard-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 6px; }
.pcard-size { font-size: 12px; letter-spacing: .06em; color: var(--muted); font-weight: 500; white-space: nowrap; }
:lang(th) .pcard-size, :lang(th) .pcard-badge { letter-spacing: 0; }
/* when the foot wraps on a narrow card the price keeps to the right edge */
.pcard-price { position: relative; margin-left: auto; text-align: right; }
.pcard-price::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--ribbon); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease); }
@media (hover: hover) { .pcard:hover .pcard-price::after { transform: scaleX(1); } }
.pcard-micro { font-size: 12px; color: var(--muted); }
.pcard-badge { position: absolute; right: 10px; top: 10px; z-index: 2; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 4px 8px; border-radius: var(--radius); }
.pcard-noimg { display: grid; place-items: center; text-align: center; padding: 24px; background: var(--paper-2); color: var(--ink-2); gap: 10px; }
.pcard-noimg img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.pcard a.cover { position: absolute; inset: 0; z-index: 1; }
.pcard a.cover:focus-visible { box-shadow: var(--focus); }
.pcard .btn { position: relative; z-index: 2; }

/* ---- ledger (price list) ---- */
.ledger { border-top: 1px solid var(--ink); }
.ledger-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background var(--t-fast); }
@media (hover: hover) { .ledger-row:hover { background: var(--paper-2); } }
.ledger-row img { width: 64px; height: 80px; object-fit: cover; background: var(--wall); }
.ledger-row .thumb-empty { width: 64px; height: 80px; background: var(--paper-2); display: grid; place-items: center; }
.ledger-name { font-weight: 500; font-size: 17px; line-height: 1.35; }
.ledger-meta { font-size: 13px; color: var(--muted); line-height: 1.5; }
.ledger-price { text-align: right; max-width: 44vw; }
.ledger-price .price { white-space: normal; }
.ledger-price .sub { display: block; font-size: 12px; color: var(--muted); font-family: var(--f-body); }
@media (min-width: 768px) { .ledger-row { grid-template-columns: 72px 1.4fr 1fr auto; } .ledger-row img, .ledger-row .thumb-empty { width: 72px; height: 90px; } .ledger-row { grid-template-columns: 72px minmax(0, 1.4fr) minmax(0, 1fr) auto; } .ledger-price { max-width: none; } }

/* ---- dictionary entry ---- */
.entry { background: var(--surface); box-shadow: var(--sheet); padding: 22px 22px 20px; display: grid; gap: 8px; border-radius: var(--radius); min-height: 100%; }
.entry-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.entry-head .headword { font-size: 30px; }
.entry-th { font-family: var(--f-body); font-weight: 500; font-size: 18px; }
.entry-def { color: var(--euca); font-size: 15px; line-height: 1.7; }
.entry-def-en { color: var(--muted); font-size: 14px; }
.entry-foot { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.entry-foot .thumbs { display: flex; gap: 6px; }
.entry-foot .thumbs img { width: 44px; height: 56px; object-fit: cover; }
.entry.dark { background: var(--wrap); color: var(--paper); box-shadow: none; border: 1px solid var(--wrap-hi); --muted: #D9D3C8; --faint: #A9A39A; }
.entry.dark .entry-def { color: #D9D3C8; }

/* ---- forms ---- */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--ink-3); border-radius: var(--radius); color: var(--ink); font-size: 16px; line-height: 1.5; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
/* 5.3:1 on the field: readable, still clearly not typed text */
.input::placeholder, .textarea::placeholder { color: #75665E; opacity: 1; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--heart); outline: none; }
.textarea { min-height: 120px; resize: vertical; }
:lang(th) .input, :lang(th) .textarea { line-height: 1.7; padding-top: 13px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232F1C15' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--rose); }
.field .error { font-size: 13px; color: var(--rose); }
.field-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { flex: 0 0 auto; width: 22px; height: 22px; border: 1px solid var(--ink); background: var(--surface); display: grid; place-items: center; margin-top: 2px; transition: background var(--t-fast); }
.check .box svg { width: 14px; height: 14px; opacity: 0; }
.check input:checked + .box { background: var(--heart); }
.check input:checked + .box svg { opacity: 1; }
.check input:focus-visible + .box { box-shadow: var(--focus); }
.radio-cards { display: grid; gap: 10px; }
@media (min-width: 640px) { .radio-cards.cols-2 { grid-template-columns: 1fr 1fr; } .radio-cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.radio-card { display: block; position: relative; padding: 16px 18px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
@media (hover: hover) { .radio-card:hover { border-color: var(--ink); } }
.radio-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-card.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--sheet); }
.radio-card .t { font-weight: 500; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.radio-card .d { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.radio-card .mark { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ink); display: inline-block; flex: 0 0 auto; }
.radio-card.is-on .mark { background: var(--heart); border-color: var(--heart-2); }
.radio-card input:focus-visible ~ .t { text-decoration: underline; }
.radio-card:has(input:focus-visible) { box-shadow: var(--focus); }
.radio-card.is-on:has(input:focus-visible) { box-shadow: 0 0 0 1px var(--ink), var(--focus); }
.counter { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface); }
.counter button { width: 44px; height: 44px; font-size: 20px; display: grid; place-items: center; }
@media (hover: hover) { .counter button:hover { background: var(--paper-2); } }
.counter button:active { background: var(--paper-2); }
.counter output { min-width: 40px; text-align: center; font-weight: 500; }

/* upload */
.upload { display: grid; gap: 10px; }
.upload-drop { border: 1px dashed var(--line); background: var(--surface); padding: 22px; text-align: center; color: var(--muted); font-size: 14px; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.upload-drop.is-over { border-color: var(--ink); background: var(--paper-2); }
@media (hover: hover) { .upload-drop:hover { border-color: var(--ink); background: var(--paper-2); } }
.upload-preview { display: flex; gap: 14px; align-items: center; }
.upload-preview img { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--line); }

/* ---- calendar ---- */
.cal { background: var(--surface); box-shadow: var(--sheet); padding: 16px; border-radius: var(--radius); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-family: var(--f-display); font-size: 20px; }
:lang(th) .cal-title { font-family: var(--f-body); font-weight: 500; font-size: 18px; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); }
@media (hover: hover) { .cal-nav button:hover { border-color: var(--ink); } }
.cal-nav button[disabled] { opacity: .3; pointer-events: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-row { display: contents; }
.cal-dow { text-align: center; font-size: 12px; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 6px 0; }
.cal-day { position: relative; aspect-ratio: 1; display: grid; place-items: center; font-variant-numeric: tabular-nums; font-size: 15px; border: 1px solid transparent; border-radius: var(--radius); color: var(--ink); transition: background var(--t-fast), border-color var(--t-fast); }
.cal-day.out { color: transparent; pointer-events: none; }
@media (hover: hover) { .cal-day.ok:hover { border-color: var(--ink); } }
.cal-day.ok { background: var(--paper); }
.cal-day.low::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--rose); }
.cal-day.no { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(47,28,21,.25); }
.cal-day.today { font-weight: 600; }
.cal-day.today::before { content: ''; position: absolute; top: 4px; right: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--euca); }
.cal-day.sel { background: var(--heart); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.cal-day.urgent { color: var(--rose); text-decoration: none; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 10px; height: 10px; display: inline-block; border-radius: 2px; }
.windows { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.window { position: relative; padding: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.field .window { color: var(--ink); }
@media (hover: hover) { .window:hover { border-color: var(--ink); } }
.window:has(input:focus-visible) { box-shadow: var(--focus); }
.window.is-on { background: var(--heart); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.window.is-on .sub { color: var(--ink); }
.window.is-off { opacity: .45; pointer-events: none; text-decoration: line-through; }
.window .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.window input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* ---- steps / progress ribbon ---- */
.steps { display: flex; gap: 6px; align-items: center; }
.step { flex: 1; height: 6px; background: var(--cream); position: relative; overflow: hidden; }
.step.done { background: var(--heart); }
.step.cur::after { content: ''; position: absolute; inset: 0; background: var(--heart); transform-origin: left; animation: fillStep var(--t) var(--ease) forwards; }
@keyframes fillStep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.step-labels { display: grid; grid-template-columns: repeat(6, 1fr); font-size: 12px; color: var(--muted); margin-top: 6px; }
:lang(th) .step-labels { font-size: 13px; }
.step-labels span.cur { color: var(--ink); font-weight: 600; }

/* ---- sheets (bottom/side panels) ---- */
.sheet-overlay { position: fixed; inset: 0; z-index: 320; background: rgba(47,28,21,.42); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn var(--t-fast) forwards; }
@media (min-width: 768px) { .sheet-overlay { align-items: center; } }
.sheet-panel { width: 100%; max-height: 92vh; overflow: auto; background: var(--surface); box-shadow: var(--sheet-lift); padding: 22px 20px 28px; animation: sheetUp var(--t) var(--ease); }
@media (min-width: 768px) { .sheet-panel { width: min(680px, 92vw); max-height: 88vh; padding: 28px; } }
.sheet-panel.wide { width: min(980px, 96vw); }
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.close-x { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); }
@media (hover: hover) { .close-x:hover { border-color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .sheet-panel, .sheet-overlay { animation: none; } .step.cur::after { animation: none; transform: none; } }

/* ---- image with LQIP and fallback ---- */
.pic { position: relative; overflow: hidden; background: var(--wall); }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic .lq { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px); transform: scale(1.08); transition: opacity var(--t-slow) var(--ease); }
.pic.is-loaded .lq { opacity: 0; }
.pic .hi { opacity: 0; transition: opacity var(--t-slow) var(--ease); }
.pic.is-loaded .hi { opacity: 1; }
.pic-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; background: var(--paper-2); color: var(--ink-2); font-size: 13px; gap: 8px; }

/* ---- misc ---- */
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2); }
.tag-rose { color: var(--rose); border-color: var(--rose); }
.tag-euca { color: var(--euca); border-color: var(--euca); }
.tag-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.tag-sky { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius); border: 1px solid var(--line); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.status[data-s="new"]::before { background: var(--sun); }
.status[data-s="confirmed"]::before { background: var(--euca); }
.status[data-s="preparing"]::before { background: var(--sky); }
.status[data-s="ready"]::before, .status[data-s="out"]::before { background: var(--ribbon); }
.status[data-s="done"]::before { background: var(--ink); }
.status[data-s="cancelled"]::before { background: var(--rose); }
.dotlist { display: grid; gap: 10px; }
.dotlist li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: baseline; }
.dotlist .n { font-family: var(--f-display); font-size: 18px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.route { position: relative; padding-left: 26px; display: grid; gap: 14px; }
.route::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--ink); }
.route li { position: relative; font-size: 17px; }
.route li::before { content: ''; position: absolute; left: -23px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); }
.route li.home::before { background: var(--heart); border-color: var(--heart-2); }
.route li.end::before { background: var(--ink); }
.route .sub { display: block; font-size: 13px; color: var(--muted); }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(47,28,21,.15); }
.empty { padding: 32px; text-align: center; color: var(--muted); background: var(--surface); box-shadow: var(--sheet); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--cream); font-size: 14px; line-height: 1.55; }
.notice.rose { background: #F8E7E8; color: var(--ribbon); }
.notice.dark { background: var(--wrap); color: var(--paper); }
.avatar-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.avatar-row a { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex: 0 0 auto; width: 74px; text-align: center; }
.avatar-row img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); padding: 2px; background: var(--surface); }

/* ---- nav.css ---- */
/* =====================================================================
   NAV — top strip, header, mobile sheet, doorstep bar, footer
   ===================================================================== */
#topstrip { background: var(--ink); color: var(--paper); font-size: 12px; letter-spacing: .02em; height: var(--strip-h); display: flex; align-items: center; overflow: hidden; }
#topstrip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; white-space: nowrap; }
#topstrip .items { display: flex; gap: 22px; align-items: center; overflow: hidden; }
#topstrip .items span { display: inline-flex; align-items: center; gap: 8px; }
#topstrip .items .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--heart); opacity: .9; }
#topstrip .open { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
#topstrip .open i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 3px rgba(156,165,150,.25); }
#topstrip .open.is-open i { background: #8FD19E; box-shadow: 0 0 0 3px rgba(143,209,158,.25); }
#topstrip .open.is-soon i { background: var(--sun); }
#topstrip .open.is-closed i { background: #B5ADA5; box-shadow: none; }
#topstrip a:hover { text-decoration: underline; text-underline-offset: .2em; }
#topstrip .items { min-width: 0; }
#topstrip .items > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) { #topstrip .items span:nth-child(2) { display: none; } }
@media (max-width: 560px) { #topstrip .items span:nth-child(3) { display: none; } }

#header { position: sticky; top: 0; z-index: 100; background: rgba(246,243,238,.92); backdrop-filter: saturate(120%) blur(8px); -webkit-backdrop-filter: saturate(120%) blur(8px); border-bottom: 1px solid var(--line-soft); }
.header-in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--paper); border: 1px solid var(--line-soft); }
.logo .word { font-family: var(--f-display); font-size: 14px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.1; white-space: nowrap; }
.logo .word small { display: block; font-size: 9px; letter-spacing: .24em; color: var(--muted); margin-top: 3px; }
@media (max-width: 640px) { .logo { gap: 8px; min-width: 0; } .logo img { width: 36px; height: 36px; } .logo .word { font-size: 11px; letter-spacing: .14em; } .logo .word small { letter-spacing: .2em; margin-top: 2px; } .logo .word .where { display: none; } .header-right { gap: 6px; } .header-right .icon-btn { width: 40px; } }
/* the smallest phones: a smaller wordmark and tighter controls rather than no name */
@media (max-width: 400px) { .header-in { gap: 8px; } .logo { gap: 6px; } .logo img { width: 32px; height: 32px; } .logo .word { font-size: 9.5px; letter-spacing: .08em; } .logo .word small { font-size: 8.5px; letter-spacing: .14em; } .lang-switch button { padding: 0 8px; } .menu-word { padding-inline: 2px; } }
/* 320px: the name stacks LITTLE / HOUSE / FLOWER, like the sticker */
@media (max-width: 350px) { .logo .word { white-space: normal; width: min-content; font-size: 9.5px; line-height: 1.15; letter-spacing: .1em; } .logo .word small { margin-top: 1px; } }
@media (min-width: 1024px) and (max-width: 1279px) { .logo .word { font-size: 12px; letter-spacing: .18em; } .logo .word .where { display: none; } .header-right .icon-btn.only-desktop { display: none; } }
.nav-main { display: none; gap: clamp(14px, 1.6vw, 26px); align-items: center; }
.nav-main a { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 6px 0; position: relative; white-space: nowrap; }
@media (min-width: 1280px) { .nav-main a { font-size: 15px; } }
.nav-main a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ribbon); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease); }
.nav-main a.is-active::after, .nav-main a:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) { .nav-main a:hover::after { transform: scaleX(1); } }
.nav-main a.is-active { color: var(--ink); }
@media (min-width: 1024px) { .nav-main { display: flex; } }
.header-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface); height: 36px; }
.lang-switch button { height: 100%; padding: 0 10px; font-family: var(--f-body); font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .04em; }
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button[aria-pressed="true"] { color: var(--ink); background: var(--paper-2); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid transparent; }
@media (hover: hover) { .icon-btn:hover { border-color: var(--line); } }
.menu-word { font-weight: 500; font-size: 15px; padding: 8px 4px; }
@media (min-width: 1024px) { .menu-word { display: none; } .only-mobile-nav { display: none; } }
.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

/* mobile menu sheet */
.menu-sheet { position: fixed; inset: 0; z-index: 310; background: var(--paper); display: flex; flex-direction: column; padding: 16px var(--gutter) 24px; overflow: auto; animation: menuIn var(--t) var(--ease); }
@keyframes menuIn { from { transform: translateY(-8px); opacity: 0; } }
.menu-sheet .top { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); }
.menu-sheet nav { display: grid; margin-top: 12px; }
.menu-sheet nav a { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(24px, 6vw, 32px); font-family: var(--f-display); font-style: italic; }
:lang(th) .menu-sheet nav a { font-family: var(--f-body); font-style: normal; font-weight: 500; font-size: clamp(20px, 5.4vw, 26px); }
.menu-sheet nav a small { font-family: var(--f-body); font-style: normal; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.menu-sheet .facts { margin-top: auto; padding-top: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.menu-sheet .socials { display: flex; gap: 14px; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .menu-sheet { animation: none; } }

/* doorstep bar: LINE · call · reserve */
#doorstep { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; height: calc(var(--doorstep-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr 1.3fr; }
#doorstep a { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; height: var(--doorstep-h); border-right: 1px solid var(--line); white-space: nowrap; padding: 0 6px; min-width: 0; }
#doorstep a:nth-child(2) { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
@media (max-width: 380px) { #doorstep a svg { display: none; } #doorstep a:last-child svg { display: block; } }
#doorstep a:last-child { border-right: 0; background: var(--ink); color: var(--paper); }
#doorstep a .heart-badge { display: inline-grid; }
#doorstep svg { width: 18px; height: 18px; }
@media (min-width: 768px) { #doorstep { display: none; } }
@media (max-width: 767px) { body:has(:is(input, textarea, select):focus) #doorstep { display: none; } }
@media (max-width: 767px) { body { padding-bottom: calc(var(--doorstep-h) + env(safe-area-inset-bottom)); } body.no-doorstep { padding-bottom: 0; } body.no-doorstep #doorstep { display: none; } }

/* footer */
#footer { background: var(--paper); border-top: 1px solid var(--ink); }
.footer-in { padding-block: 40px 28px; display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-in { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; } }
.footer-in h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
:lang(th) .footer-in h4 { letter-spacing: 0; text-transform: none; font-size: 13px; }
.footer-in ul { display: grid; gap: 8px; font-size: 15px; }
.footer-in a { display: inline-block; padding: 5px 0; }
.footer-in a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line-soft); }
.footer-brand .tag-line { font-family: var(--f-display); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2); }
.footer-bottom { border-top: 1px solid var(--line); padding: 14px 0 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 12px; color: var(--muted); }
/* The studio credit: the bottom row's colour, a step smaller, a 44px target. The
   row lines up on the text baseline now that one item is that tall. The words
   sit on the O's baseline so the 2 hangs below, as in the studio's logo. */
.footer-bottom { align-items: baseline; }
.o2-credit { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; font-size: 11px; line-height: 1; letter-spacing: .2em; text-transform: uppercase; }
.o2-credit:hover, .o2-credit:focus-visible { color: var(--fg); }
.o2-credit__lockup { white-space: nowrap; }
.o2-credit__mark { display: inline-block; width: 1.95em; height: 1.6em; margin-right: .5em; vertical-align: -.366em; }
/* The doorstep bar sits over the last 60px on phones, and body[data-route] cancels
   the body padding meant to clear it, so the footer, which ends every page,
   clears it instead. Before this the bottom row sat under the bar. */
@media (max-width: 767px) { body:not(.no-doorstep) #footer { padding-bottom: calc(var(--doorstep-h) + env(safe-area-inset-bottom)); } }
.socials { display: flex; gap: 12px; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--line); display: grid; place-items: center; }
@media (hover: hover) { .socials a:hover { border-color: var(--ink); } }
.socials svg { width: 18px; height: 18px; }

/* ---- pages.css ---- */
/* =====================================================================
   PAGES — home, flowers, product, occasions, meanings, custom, story, contact
   ===================================================================== */
.sec-head { display: grid; gap: 10px; margin-bottom: clamp(24px, 4vw, 40px); }
.sec-head .lede { margin: 0; }
.sec-head .sec-action { margin-top: 6px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--wall); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1fr; min-height: calc(100svh - var(--header-h) - var(--strip-h)); }
.hero-copy { display: grid; align-content: end; gap: 18px; padding: clamp(28px, 6vw, 72px) var(--gutter) clamp(28px, 5vw, 56px); order: 2; background: var(--paper); }
.hero-copy .display { max-width: 14ch; }
:lang(th) .hero-copy .display { max-width: 16ch; }
/* each sentence (Thai: each phrase) of the headline is one unit that starts its own line when it cannot finish the current one */
.display .phrase { display: inline-block; }
.hero-copy .lede { max-width: 46ch; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-skip { font-size: 14px; }
.hero-media { position: relative; order: 1; min-height: 62svh; background: var(--wall); }
.hero-media .pic { position: absolute; inset: 0; }
.hero-media .pic img { object-position: 55% 30%; }
.hero-media::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, transparent, rgba(207,207,199,.0) 40%, rgba(246,243,238,.35)); pointer-events: none; }
.hero-caption { position: absolute; left: var(--gutter); bottom: 14px; font-size: 12px; letter-spacing: .02em; color: var(--ink); background: rgba(246,243,238,.85); padding: 6px 10px; backdrop-filter: blur(6px); max-width: calc(100% - 2 * var(--gutter)); }
.hero-tag { position: absolute; right: var(--gutter); top: 18px; }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero-copy { order: 1; padding-block: clamp(40px, 8vw, 96px); background: transparent; align-content: center; padding-right: clamp(24px, 4vw, 64px); }
  .hero-media { order: 2; min-height: calc(100svh - var(--header-h) - var(--strip-h)); }
  .hero-media .pic img { object-position: 50% 28%; }
  .hero-media::after { display: none; }
  .hero-media::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 14%; background: linear-gradient(90deg, var(--wall), transparent); z-index: 1; pointer-events: none; }
  .hero-caption { left: auto; right: var(--gutter); bottom: 18px; }
}
@media (min-width: 1200px) { .hero-in { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
/* Phones and small tablets: the first screen shows the headline and the Reserve
   button above the doorstep bar. The photo takes the height that is left (never
   under 120px); --hero-fold is the height of eyebrow + headline + buttons, and
   the lede follows the buttons. */
@media (max-width: 899px) {
  .hero { --hero-fold: 300px; --hero-bar: var(--doorstep-h); }
  .hero-in { min-height: 0; }
  .hero-media { min-height: 120px; height: calc(100vh - var(--strip-h) - var(--header-h) - var(--hero-bar) - var(--hero-fold)); height: calc(100svh - var(--strip-h) - var(--header-h) - var(--hero-bar) - var(--hero-fold)); max-height: 62svh; }
  .hero-copy { align-content: start; }
  .hero-copy > .lede { order: 1; }
  .hero-copy > .hero-skip { order: 2; }
  .hero-caption { max-width: calc(100% - 2 * var(--gutter) - 76px); }
}
@media (min-width: 768px) and (max-width: 899px) { .hero { --hero-fold: 340px; --hero-bar: 0px; } }
/* short phones (iPhone SE): tighter copy, a thinner photo band, a smaller
   sticker and no caption */
@media (max-width: 899px) and (max-height: 620px) {
  .hero { --hero-fold: 320px; }
  .hero-media { min-height: 88px; }
  .hero-copy { padding-top: 18px; gap: 12px; }
  .hero-caption { display: none; }
  .hero-tag { top: 10px; } .hero-tag .heart-tag.lg { width: 52px; height: 49px; } .hero-tag .heart-tag.lg .txt { font-size: 6.5px; }
}
/* phones on their side: copy beside the photo, as on a desktop, so the
   headline and the button are on the first screen */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 600px) {
  .hero-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero-copy { order: 1; padding-block: 16px; gap: 12px; }
  .hero-copy .display, :lang(th) .hero-copy .display { font-size: 34px; max-width: 18ch; }
  .hero-media { order: 2; height: auto; min-height: 0; max-height: none; }
}
.hero-scale { transform: scale(1.04); transform-origin: 50% 40%; animation: heroSettle 1400ms var(--ease) forwards; }
@keyframes heroSettle { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-scale { animation: none; transform: none; } }

/* ---------- home: featured rail ---------- */
.pgrid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (min-width: 720px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.rail .pcard { width: min(78vw, 300px); }
@media (min-width: 720px) { .rail .pcard { width: 300px; } }
@media (max-width: 719px) { .pgrid .pcard-body { padding: 10px 12px 12px; } .pgrid .pcard-name { font-size: 20px; } :lang(th) .pgrid .pcard-name { font-size: 16px; } .pgrid .pcard-meaning { display: none; } .pgrid .pcard-micro { display: none; } .pcard-ruler { display: none; } .pgrid .pcard-price { font-size: 18px; white-space: normal; } }

/* ---------- meanings ---------- */
.meaning-band { background: var(--sage); color: var(--ink); }
.meaning-band .eyebrow { color: var(--ink); }
.meaning-band .lede { color: var(--ink); }
.entries { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .entries { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.entries-rail .entry { width: min(82vw, 340px); }
.lookup { display: grid; gap: 14px; }
.lookup-results { display: grid; gap: 10px; }
.lookup-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 12px; background: var(--surface); box-shadow: var(--sheet); animation: rise var(--t) var(--ease) both; animation-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { .lookup-row { animation: none; } }
@media (hover: hover) { .lookup-row:hover { box-shadow: var(--sheet-lift); } }
.lookup-thumb { width: 56px; height: 72px; object-fit: cover; background: var(--wall); }
.lookup-row .headword { font-size: 22px; }
.card-input { padding: 18px 18px 12px; }
.card-input .textarea { border: 0; background: transparent; padding: 0; min-height: 96px; box-shadow: none; background-image: repeating-linear-gradient(transparent 0 calc(1.7em - 1px), #ECE7DE calc(1.7em - 1px) 1.7em); line-height: 1.7; }
.card-input .textarea:focus { box-shadow: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- occasions ---------- */
.occ-list { display: grid; gap: 14px; }
@media (min-width: 720px) { .occ-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .occ-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.occ-card { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--surface); box-shadow: var(--sheet); padding: 12px; transition: box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
@media (hover: hover) { .occ-card:hover { box-shadow: var(--sheet-lift); transform: translateY(-2px); } }
.occ-card .pic { width: 96px; height: 120px; }
.occ-card .t { font-family: var(--f-display); font-style: italic; font-size: 26px; line-height: 1.1; overflow-wrap: break-word; }
:lang(th) .occ-card .t { font-family: var(--f-body); font-style: normal; font-weight: 500; font-size: 20px; line-height: 1.4; }
.occ-card .tag-line { font-size: 12px; color: var(--muted); margin-top: 2px; }
.occ-card .d { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.55; }
.occ-card a.cover { position: absolute; inset: 0; }
.occ-hero { display: grid; gap: 20px; align-items: end; }
@media (min-width: 900px) { .occ-hero { grid-template-columns: 1.2fr 1fr; } }
.occ-hero .pic { aspect-ratio: 4/3; }

/* ---------- flowers page ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 20px; position: sticky; top: var(--header-h); background: var(--paper); z-index: 5; }
/* on a phone the toolbar wraps to three rows: pinned, it would hide a third of the screen and the focused card under it */
@media (max-width: 767px), (max-height: 560px) { .toolbar { position: static; } }
@media (min-width: 768px) and (min-height: 561px) { html:has(.toolbar) { scroll-padding-top: calc(var(--header-h) + 88px); } }
.toolbar .filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .select { min-height: 44px; padding: 6px 32px 6px 10px; width: auto; max-width: 100%; font-size: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line); }
.seg button { padding: 0 12px; height: 38px; font-size: 14px; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.count-line { font-size: 13px; color: var(--muted); }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; } .product-info { position: sticky; top: calc(var(--header-h) + 24px); } }
.product-media { position: relative; }
.product-media .pic { aspect-ratio: var(--ar, 3/4); box-shadow: var(--sheet); }
.product-media .heart-tag { position: absolute; left: 14px; top: 14px; z-index: 2; }
.product-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.product-thumbs button { width: 64px; height: 80px; border: 1px solid var(--line); padding: 0; overflow: hidden; }
.product-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: grid; gap: 18px; }
.product-title { font-size: clamp(30px, 4vw, 48px); }
.product-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.product-meaning { background: var(--cream); padding: 16px 18px; display: grid; gap: 6px; }
.product-meaning .lbl { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
:lang(th) .product-meaning .lbl { letter-spacing: 0; text-transform: none; }
.product-meaning .txt { color: var(--ink); line-height: 1.7; }
.spec { display: grid; gap: 10px; }
.spec-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: 15px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
/* the Thai labels are longer (ระยะเวลาสั่งล่วงหน้า): room for them on one line */
:lang(th) .spec-row { grid-template-columns: 132px minmax(0, 1fr); }
.spec-links { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.spec-links a { white-space: nowrap; }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tiers div { border: 1px solid var(--line); padding: 8px 6px; text-align: center; font-size: 13px; }
.tiers b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 18px; }
.ruler-h { position: relative; height: 22px; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 8px) bottom/100% 7px no-repeat; }
.ruler-h span { position: absolute; right: 0; top: 0; font-size: 11px; letter-spacing: .12em; font-weight: 600; }
.product-actions { display: grid; gap: 10px; }
.product-actions .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.product-source { font-size: 12px; color: var(--muted); }
.ig-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ig-strip a { display: block; aspect-ratio: 4/5; overflow: hidden; }
.ig-strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- queue receipt ---------- */
.queue-wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .queue-wrap { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.receipt .dotlist li { font-size: 15px; line-height: 1.65; }
.receipt .dotlist .n { color: var(--ribbon); }
.receipt-head { font-family: var(--f-display); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; text-align: center; text-wrap: balance; }
#main[data-route="/story"] .receipt-head:lang(th) { font-family: var(--f-body); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }

/* ---------- custom promo ---------- */
.brief-col { display: grid; gap: 20px; align-content: start; }
.brief-col .sec-head { margin-bottom: 0; }
.custom-promo { display: grid; gap: 22px; }
@media (min-width: 900px) { .custom-promo { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; } }
.spec-card { padding: 22px; display: grid; gap: 14px; transform: rotate(-1deg); }
.spec-card .line { display: grid; grid-template-columns: 80px 1fr; gap: 10px; font-size: 15px; border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
.spec-card .line span:first-child { font-family: var(--f-display); font-style: italic; font-size: 18px; color: var(--ink-2); }
:lang(th) .spec-card .line span:first-child { font-family: var(--f-body); font-style: normal; font-size: 15px; font-weight: 500; }
.spec-card .line .hand { font-size: 22px; }
.quote { font-family: var(--f-body); font-weight: 400; font-size: clamp(18px, 2vw, 22px); line-height: 1.7; color: var(--ink); border-left: 2px solid var(--heart); padding-left: 16px; }
.quote cite { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- held (home preview) ---------- */
.held-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 720px) { .held-grid { grid-template-columns: repeat(4, 1fr); } }
.held-grid .tile { position: relative; display: block; overflow: hidden; background: var(--wall); aspect-ratio: 4/5; }
.held-grid .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-cine) var(--ease); }
.held-grid .tile.quote-tile { background: var(--wrap); color: var(--paper); display: grid; align-content: end; padding: 18px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; text-wrap: pretty; }
.held-grid .tile.quote-tile small { display: block; font-size: 12px; color: #A9A39A; margin-top: 8px; letter-spacing: .06em; }
.held-grid .tile .lab { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; font-size: 12px; color: var(--paper); background: linear-gradient(transparent, rgba(27,26,26,.65)); opacity: 0; transition: opacity var(--t-fast); }
.held-grid .tile:focus-visible .lab { opacity: 1; }
@media (hover: hover) { .held-grid .tile:hover img { transform: scale(1.03); } .held-grid .tile:hover .lab { opacity: 1; } }
@media (hover: none) { .held-grid .tile .lab { opacity: 1; } }

/* ---------- distance ---------- */
.dist { display: grid; gap: 24px; }
@media (min-width: 900px) { .dist { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---------- final cta ---------- */
.final { text-align: center; display: grid; justify-items: center; gap: 16px; padding-block: clamp(56px, 10vw, 128px); }
.final .h1 { max-width: 20ch; }

/* ---------- story ---------- */
.story-hero { display: grid; gap: 24px; }
@media (min-width: 900px) { .story-hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; } }
.story-hero .pic { aspect-ratio: 4/5; box-shadow: var(--sheet); }
.story-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .story-grid { grid-template-columns: repeat(4, 1fr); } }
.story-grid .pic { aspect-ratio: 4/5; }
.materials { display: grid; gap: 14px; }
@media (min-width: 720px) { .materials { grid-template-columns: repeat(2, 1fr); } }
.material { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 16px; background: var(--surface); box-shadow: var(--sheet); }
.material .sym { width: 56px; height: 56px; display: grid; place-items: center; }
.material .ribbon-mini { width: 56px; height: 18px; background: var(--cream); font-family: var(--f-display); font-size: 5px; letter-spacing: .2em; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.material .card-mini { width: 40px; height: 52px; background: #FBFAF7; border: 1px solid #E6E2DA; box-shadow: 2px 3px 0 var(--paper-2); }
.material .swatches { display: flex; gap: 3px; }
.material .swatches i { width: 12px; height: 32px; }
.voice-list { display: grid; gap: 12px; }
@media (min-width: 720px) { .voice-list { grid-template-columns: repeat(3, 1fr); } }
.voice { background: var(--wrap); color: var(--paper); padding: 22px; font-size: 18px; line-height: 1.6; display: grid; align-content: space-between; gap: 18px; min-height: 180px; text-wrap: pretty; }
.voice small { font-size: 12px; color: #A9A39A; letter-spacing: .06em; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.contact-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.contact-row dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.contact-row dd { margin: 0; }
.contact-row a { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--line); }
.contact-row a:hover { text-decoration-color: var(--ribbon); }
.contact-actions { display: grid; gap: 10px; }
@media (min-width: 480px) { .contact-actions { grid-template-columns: 1fr 1fr; } }
.map-card { background: var(--wall); aspect-ratio: 4/3; display: grid; place-items: center; text-align: center; padding: 24px; position: relative; overflow: hidden; }
.map-card .pin { width: 44px; height: 44px; color: var(--rose); }
.map-card .zone { font-family: var(--f-display); font-style: italic; font-size: 26px; }
:lang(th) .map-card .zone { font-family: var(--f-body); font-style: normal; font-weight: 500; font-size: 22px; }
.map-card .rings { position: absolute; inset: -20%; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 38px, rgba(47,28,21,.08) 38px 39px); }
/* live map: OpenStreetMap tiles toned toward the paper palette; the drawn card sits on top until tiles arrive */
.osm-card { margin: 0; display: grid; gap: 12px; align-content: start; }
.osm-box { position: relative; aspect-ratio: 4/3; background: var(--wall); overflow: hidden; }
.osm-box > .map-card { position: absolute; inset: 0; aspect-ratio: auto; z-index: 2; }
.osm-map { position: absolute; inset: 0; z-index: 1; background: var(--wall); font: inherit; }
.osm-map img.leaflet-tile { filter: grayscale(1) sepia(.2) contrast(.9) brightness(1.05); }   /* per tile: Safari skips filters on the transformed pane */
.osm-map .leaflet-bar { border: 1px solid var(--ink); border-radius: 0; box-shadow: none; }
.osm-map .leaflet-bar a { width: 36px; height: 36px; line-height: 34px; color: var(--ink); background: var(--paper); border-radius: 0 !important; border-bottom-color: var(--line); font-weight: 400; }
.osm-map .leaflet-bar a:hover { background: #fff; }
.osm-map .leaflet-control-attribution { background: rgba(246,243,238,.88); color: var(--muted); font-size: 11px; }
.osm-map .leaflet-control-attribution a { color: var(--ink); }
.osm-pin { color: var(--rose); }
.osm-pin svg path { fill: var(--rose); stroke: var(--paper); stroke-width: 1.2; }
.osm-pin svg circle { fill: var(--paper); }
.osm-map .osm-label { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 0; box-shadow: none; padding: 3px 8px; font-family: var(--f-body); font-size: 12px; letter-spacing: .02em; }
.osm-map .osm-label::before { display: none; }
.osm-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; pointer-events: none; white-space: nowrap; background: rgba(47,28,21,.82); color: var(--paper); font-size: 13px; padding: 6px 12px; }
.osm-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.osm-card:not(.is-live) .osm-cap { display: none; }
.osm-map a:focus-visible, .osm-map .leaflet-marker-icon:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---- booking.css ---- */
/* =====================================================================
   BOOKING — one question per sheet, progress ribbon, receipt summary
   ===================================================================== */
.book { display: grid; gap: 22px; max-width: 760px; margin-inline: auto; }
.book-progress { display: grid; gap: 6px; }
.book-sheet { background: var(--surface); box-shadow: var(--sheet-stack); padding: clamp(18px, 3vw, 32px); display: grid; gap: 18px; position: relative; }
.book-sheet .h2 { font-size: clamp(24px, 3vw, 34px); }
.book-nav { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.book-nav .spacer { flex: 1; }
.book-summary { display: grid; gap: 8px; }
.book-summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; align-items: baseline; }
.book-summary .row.total { border-bottom: 0; border-top: 1px solid var(--ink); padding-top: 10px; font-weight: 500; }
.book-summary .row .k { color: var(--muted); flex: 0 0 auto; white-space: nowrap; }
.book-summary .row > span:last-child { min-width: 0; text-align: right; overflow-wrap: break-word; }
.book-summary .row .edit { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: .2em; margin-left: 8px; }
.book-items { display: grid; gap: 10px; }
.book-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); background: var(--surface); }
.book-item img { width: 64px; height: 80px; object-fit: cover; }
.book-item .thumb-empty { width: 64px; height: 80px; background: var(--paper-2); display: grid; place-items: center; }
.book-item .n { font-weight: 500; }
.book-item .m { font-size: 13px; color: var(--muted); }
.book-item .remove { font-size: 12px; color: var(--muted); text-decoration: underline; min-height: 44px; padding: 0 6px; }
.book-choose { display: grid; gap: 12px; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }
.mini-card { position: relative; display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.mini-card:hover { border-color: var(--ink); }
.mini-card.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mini-card .pic { aspect-ratio: 4/5; }
.mini-card .n { font-size: 13px; font-weight: 500; line-height: 1.35; }
.mini-card .p { font-size: 13px; color: var(--muted); }
.mini-card .heart-tag { position: absolute; left: 12px; top: 12px; opacity: 0; transition: opacity var(--t-fast); }
.mini-card.is-on .heart-tag { opacity: 1; }
.when-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .when-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.date-note { background: var(--cream); padding: 12px 14px; font-size: 14px; line-height: 1.6; }
.date-note.rose { background: #F8E7E8; color: var(--ribbon); }
.date-note .btn { margin-top: 8px; }
.card-write { display: grid; gap: 14px; }
.card-write .card-paper { padding: 22px 22px 16px; min-height: 200px; display: grid; gap: 8px; }
.card-write .textarea, .textarea.hand { border: 0; background: transparent; padding: 0; min-height: 130px; box-shadow: none; background-image: repeating-linear-gradient(transparent 0 calc(1.7em - 1px), #ECE7DE calc(1.7em - 1px) 1.7em); line-height: 1.7; font-family: var(--f-hand); font-size: 24px; color: var(--ink); }
.card-input .textarea.hand { min-height: 96px; }
.card-write .textarea:focus { box-shadow: none; }
.card-write .count { font-size: 12px; color: var(--muted); text-align: right; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; }
.starters button { font-family: var(--f-hand); font-size: 18px; padding: 6px 12px; border: 1px solid var(--line); background: var(--surface); }
.starters button:hover { border-color: var(--ink); }
.card-suggest { display: grid; gap: 8px; }
.card-suggest .lookup-row { grid-template-columns: 44px 1fr; padding: 8px; }
.card-suggest .lookup-thumb { width: 44px; height: 56px; }
.card-suggest .headword { font-size: 18px; }
.card-suggest .entry-def { font-size: 13px; line-height: 1.5; }
.review-receipt { padding: 28px 22px 32px; display: grid; gap: 10px; position: relative; }
.review-receipt .heart-tag { position: absolute; right: 14px; top: 14px; }
.review-receipt .hand { font-size: 22px; padding: 10px 0; border-top: 1px dashed rgba(47,28,21,.25); border-bottom: 1px dashed rgba(47,28,21,.25); }
.review-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .review-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.book-restore { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* confirmation */
.done { display: grid; gap: 22px; max-width: 760px; margin-inline: auto; text-align: center; justify-items: center; }
.done .receipt { width: 100%; text-align: left; }
.done .ref { font-family: var(--f-display); font-size: clamp(26px, 4vw, 36px); letter-spacing: .04em; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.stamp { display: inline-grid; place-items: center; }
.stamp .heart-tag { animation: stampIn 420ms var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .stamp .heart-tag { animation: none; } }
@keyframes stampIn { from { transform: rotate(-20deg) scale(1.5); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.fly-card { position: fixed; z-index: 360; width: 48px; height: 60px; background: #FBFAF7; border: 1px solid #E6E2DA; box-shadow: 2px 3px 0 var(--paper-2), 0 10px 20px -10px rgba(47,28,21,.4); pointer-events: none; }
.fly-card::after { content: ''; position: absolute; left: 8px; right: 8px; top: 12px; height: 26px; background: repeating-linear-gradient(transparent 0 6px, #ECE7DE 6px 7px); }

/* order flow: step list, brief row, honest failure, next steps, print */
.step-labels li.cur { color: var(--ink); font-weight: 600; }
/* the chosen window sits on pink: full ink keeps its time readable (4.5:1) */
.window.is-on { color: var(--ink); }
.book-item .item-acts { display: grid; justify-items: end; }
.book-item .item-acts .remove { min-height: 36px; display: inline-flex; align-items: center; }
.send-fail { display: grid; gap: 10px; padding: 16px 18px; background: #F8E7E8; color: var(--ribbon); border-left: 3px solid var(--rose); }
.send-fail .h4 { color: var(--ribbon); }
.send-fail-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.done-next { width: 100%; display: grid; gap: 14px; justify-items: center; padding: clamp(18px, 3vw, 28px); background: var(--surface); box-shadow: var(--sheet); }
.done-steps { width: 100%; max-width: 520px; text-align: left; }
.done-steps li { font-size: 15px; line-height: 1.65; }
.done-steps .n { color: var(--ribbon); }
.receipt-contact { margin-top: 14px; text-align: center; color: var(--muted); }
@media print {
  body[data-route="done"] #topstrip, body[data-route="done"] #header, body[data-route="done"] #footer, body[data-route="done"] #doorstep, body[data-route="done"] .done-actions, body[data-route="done"] .done-next .btn { display: none !important; }
  body[data-route="done"] .receipt, body[data-route="done"] .done-next { box-shadow: none; }
  body[data-route="done"] .stamp .heart-tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- instagram.css ---- */
/* =====================================================================
   INSTAGRAM — "Held": masonry + black-wrap quote tiles + phone-native viewer
   ===================================================================== */
.ig-head { display: grid; gap: 14px; }
.ig-head > * { min-width: 0; }
.avatar-row { max-width: 100%; }
.ig-profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ig-profile img { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); }
.ig-profile .meta { font-size: 14px; color: var(--muted); line-height: 1.6; }
.ig-profile .meta b { color: var(--ink); font-weight: 500; }
.ig-filters { position: sticky; top: var(--header-h); z-index: 5; background: var(--paper); padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.ig-filters::-webkit-scrollbar { display: none; }
.ig-filters .chips { flex-wrap: nowrap; }
/* the row scrolls sideways; a chip keeps its label on one line instead of squeezing */
.ig-filters .chip { flex: 0 0 auto; white-space: nowrap; }
html:has(.ig-filters) { scroll-padding-top: calc(var(--header-h) + 70px); }
.masonry { columns: 2; column-gap: 8px; }
@media (min-width: 720px) { .masonry { columns: 3; column-gap: 12px; } }
@media (min-width: 1100px) { .masonry { columns: 4; column-gap: 12px; } }
.mtile { position: relative; display: block; break-inside: avoid; margin-bottom: 8px; background: var(--wall); overflow: hidden; width: 100%; text-align: left; }
@media (min-width: 720px) { .mtile { margin-bottom: 12px; } }
.mtile .pic { aspect-ratio: var(--ar, .8); }
.mtile .pic img { transition: transform var(--t-cine) var(--ease); }
.mtile .ov { position: absolute; inset: 0; background: rgba(244,169,177,0); transition: background var(--t-fast); }
.mtile:focus-visible .ov { background: rgba(244,169,177,.14); }
.mtile .lab { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 10px 10px; font-size: 12px; line-height: 1.5; color: var(--paper); background: linear-gradient(transparent, rgba(27,26,26,.72)); opacity: 0; transition: opacity var(--t-fast); }
.mtile:focus-visible .lab { opacity: 1; }
@media (hover: hover) { .mtile:hover .pic img { transform: scale(1.03); } .mtile:hover .ov { background: rgba(244,169,177,.14); } .mtile:hover .lab { opacity: 1; } }
/* no hover on a phone: the name and price are always shown */
@media (hover: none) { .mtile .lab { opacity: 1; } }
.mtile .kind { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(27,26,26,.55); color: #fff; display: grid; place-items: center; }
.mtile .kind svg { width: 14px; height: 14px; }
.mtile.quote { background: var(--wrap); color: var(--paper); padding: 22px 18px; display: grid; align-content: end; min-height: 220px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; }
.mtile.quote small { display: block; margin-top: 12px; font-size: 12px; color: #A9A39A; letter-spacing: .06em; }
.mtile.quote .heart-tag { position: absolute; left: 12px; top: 12px; }
@media (hover: hover) { .mtile.quote:hover { background: var(--wrap-2); } }
.ig-foot { display: grid; gap: 12px; justify-items: center; text-align: center; padding-top: 32px; }

/* viewer */
.viewer { position: fixed; inset: 0; z-index: 330; background: rgba(27,26,26,.96); color: var(--paper); display: grid; grid-template-rows: auto 1fr auto; animation: fadeIn var(--t-fast) forwards; --muted: #D9D3C8; --faint: #A9A39A; }
.viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter); }
.viewer-top .bars { display: flex; gap: 3px; flex: 1; max-width: 520px; }
.viewer-top .bars i { flex: 1; height: 2px; background: rgba(255,255,255,.25); }
.viewer-top .bars i.done { background: var(--paper); }
.viewer-top .bars i.cur { background: linear-gradient(90deg, var(--paper) 50%, rgba(255,255,255,.25) 50%); }
.viewer-top .who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.viewer-top .who img { width: 28px; height: 28px; border-radius: 50%; }
.viewer-top .close-x { border-color: rgba(255,255,255,.3); background: transparent; color: var(--paper); }
.viewer-body { position: relative; display: grid; grid-template-columns: 1fr; overflow: hidden; }
@media (min-width: 900px) { .viewer-body { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 440px); } }
.viewer-media { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.viewer-media .pic { width: 100%; height: 100%; max-height: 100%; }
.viewer-media .pic img { object-fit: contain; }
.viewer-media .pic .lq { object-fit: contain; }
.viewer-media .play { position: absolute; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.viewer-media .play svg { width: 28px; height: 28px; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; background: rgba(27,26,26,.5); color: var(--paper); border: 1px solid rgba(255,255,255,.25); }
.viewer-nav.prev { left: 10px; } .viewer-nav.next { right: 10px; }
@media (max-width: 899px) { .viewer-nav { display: none; } }
.viewer-side { padding: 18px var(--gutter) 24px; overflow: auto; display: grid; align-content: start; gap: 14px; background: var(--wrap); border-left: 1px solid var(--wrap-hi); }
@media (max-width: 899px) { .viewer-side { position: absolute; left: 0; right: 0; bottom: 0; max-height: 46%; background: linear-gradient(transparent, rgba(27,26,26,.92) 30%); border: 0; padding-top: 36px; } .viewer-body { grid-template-rows: 1fr; } }
.viewer-side .cap { white-space: pre-wrap; font-size: 14px; line-height: 1.7; color: #E8E3DA; max-height: 9.5em; overflow: hidden; position: relative; }
.viewer-side .cap.open { max-height: none; }
.viewer-side .cap-toggle { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: .2em; min-height: 44px; align-self: start; }
.viewer-side .stats { font-size: 12px; color: #A9A39A; display: flex; gap: 12px; }
.viewer-side .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.viewer-side .acts .btn { border-color: rgba(255,255,255,.35); color: var(--paper); min-height: 42px; font-size: 14px; }
.viewer-side .acts .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.viewer-side .dots { display: flex; gap: 6px; }
.viewer-side .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); }
.viewer-side .dots i.cur { background: var(--paper); }
.viewer-bottom { display: flex; justify-content: center; gap: 10px; padding: 10px; font-size: 12px; color: #A9A39A; }
@media (max-width: 899px) { .viewer-bottom { display: none; } .viewer { grid-template-rows: auto 1fr; } }
@media (prefers-reduced-motion: reduce) { .viewer { animation: none; } }

/* ---- admin.css ---- */
/* =====================================================================
   ADMIN — back office on black wrap
   ===================================================================== */
.admin { display: grid; gap: 18px; }
.admin-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.admin-tabs { display: inline-flex; border: 1px solid var(--line); background: var(--surface); }
.admin-tabs button { padding: 0 16px; height: 42px; font-weight: 500; color: var(--muted); }
.admin-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.admin-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-tools .input { min-height: 42px; width: min(100%, 320px); }
.admin-tools .select { min-height: 42px; width: auto; }
.admin-table { display: grid; gap: 8px; }
.arow { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 14px; background: var(--surface); box-shadow: var(--sheet); cursor: pointer; align-items: center; }
.arow:hover { box-shadow: var(--sheet-lift); }
.arow .l { display: grid; gap: 2px; }
.arow .ref { font-family: var(--f-display); font-size: 16px; letter-spacing: .04em; }
.arow .who { font-size: 14px; }
.arow .meta { font-size: 12px; color: var(--muted); }
.arow .r { display: grid; gap: 6px; justify-items: end; }
@media (min-width: 900px) { .arow { grid-template-columns: 150px 1.4fr 1fr 1fr auto; } .arow .r { justify-items: end; } }
.adetail { display: grid; gap: 16px; }
.adetail .kv { grid-template-columns: 130px 1fr; }
.adetail .hand { background: #FBFAF7; border: 1px solid #E6E2DA; padding: 14px 16px; }
.adetail .refimg { max-width: 220px; border: 1px solid var(--line); }
.status-set { display: flex; flex-wrap: wrap; gap: 6px; }
.status-set button { font-size: 12px; font-weight: 600; padding: 6px 10px; border: 1px solid var(--line); background: var(--surface); }
.status-set button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.day-view { display: grid; gap: 14px; }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.day-col { display: grid; gap: 8px; }
.day-slot { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.day-slot .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.day-slot .items { display: grid; gap: 4px; }
.day-slot .cap { font-size: 12px; color: var(--muted); }
.settings-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .settings-grid { grid-template-columns: 1fr 1fr; } }
.settings-card { background: var(--surface); box-shadow: var(--sheet); padding: 18px; display: grid; gap: 12px; }
.settings-card h3 { font-size: 16px; font-weight: 600; }
.blackouts { display: flex; flex-wrap: wrap; gap: 6px; }
.blackouts .chip { cursor: pointer; }
.pin-gate { max-width: 420px; margin-inline: auto; display: grid; gap: 14px; background: var(--surface); box-shadow: var(--sheet-stack); padding: 28px; }
.backend-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); }
.backend-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.backend-pill.online i { background: #8FD19E; }
@media print { #topstrip, #header, #footer, #doorstep, .admin-top, .admin-tools, .status-set, .btn { display: none !important; } body { background: #fff; } .adetail { box-shadow: none; } }

/* Google Sheet delivery status */
.sheet-state { font-size: 13px; color: var(--muted); border-left: 3px solid var(--line); padding: 6px 10px; margin-bottom: 10px; background: var(--paper-2); }
.sheet-state.ok { border-left-color: var(--euca); color: var(--ink); }
.sheet-state.warn { border-left-color: var(--rose); color: var(--ink); }
.sheet-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }

/* ---- privacy.css ---- */
/* =====================================================================
   PRIVACY — the PDPA notice at /privacy, set like a letter from the shop:
   one measure, hairline rules between sections, the queue receipt's
   numbered list for what is collected. (The old back office lived here;
   the Google Sheet is the back office now.)
   ===================================================================== */
.policy { display: grid; gap: var(--s5); margin-top: var(--s5); }
.policy-sec { display: grid; gap: var(--s3); padding-top: var(--s5); border-top: 1px solid var(--line); }
.policy-sec p { margin: 0; }
.policy-sec .hero-ctas { margin-top: var(--s2); }

/* Footer column titles are h2s for a clean outline; they keep the small label look. */
.footer-in .footer-h { font-family: var(--f-body); font-size: 12px; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
:lang(th) .footer-in .footer-h { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* The dictionary "n." after a flower's English headword is a Latin device;
   Thai readers took "(N)." for a placeholder, so Thai pages leave it out. */
:lang(th) .headword .n { display: none; }

/* Printing a page (e.g. the booking receipt) drops the site chrome. */
@media print { #topstrip, #header, #footer, #doorstep, .btn { display: none !important; } body { background: #fff; } }

/* ---- motion.css ---- */
/* =====================================================================
   MOTION — paper, not petals. One easing, entrances only, reduced-motion.
   ===================================================================== */
/* visible at rest; only .rv-wait (added by JS to below-the-fold items) parks an element */
.rv-wait { opacity: 0; transform: translateY(12px); transition: opacity var(--t) var(--ease) var(--d, 0ms), transform var(--t) var(--ease) var(--d, 0ms); }
.rv-wait.is-in { opacity: 1; transform: none; }
/* page entrances never gate visibility: content is readable even if the
   animation does not run (background tab, capture, emulation) */
.page-enter { animation: pageIn var(--t) var(--ease); }
@keyframes pageIn { from { transform: translateY(8px); } to { transform: none; } }
.lang-fade { animation: langFade 260ms var(--ease); }
@keyframes langFade { from { transform: translateY(4px); } to { transform: none; } }
.ribbon-pass { position: fixed; inset: 0; z-index: 305; pointer-events: none; overflow: hidden; }
.ribbon-pass .band { position: absolute; left: -10%; right: -10%; top: 40%; height: 22vh; background: var(--cream); transform: translateX(110%) rotate(-3deg); animation: bandPass 640ms var(--ease) forwards; box-shadow: 0 10px 30px rgba(47,28,21,.2); }
@keyframes bandPass { 0% { transform: translateX(110%) rotate(-3deg); } 100% { transform: translateX(-110%) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) {
  .rv-wait { opacity: 1; transform: none; transition: none; }
  .page-enter, .lang-fade { animation: none; }
  .ribbon-pass { display: none; }
  .pcard, .pcard-media img, .occ-card, .mtile .pic img, .tlink, .btn { transition: none !important; animation: none !important; }
  .hero-scale { animation: none; transform: none; }
  * { scroll-behavior: auto !important; }
}
