/* BABY Bar website — the shared look: tokens, the header and footer every page has (the "shell"),
   buttons and labels, and the home page (its part is at the bottom, everything under .home-page).

   Brand colours come from the brand book: vermilion, ink, pink, brown — roughly 35 / 30 / 30 / 5
   of the page. Rule for reading: text is INK on pink and vermilion, PINK on ink. Vermilion text on
   pink is too faint to read (about 2.5 : 1), so vermilion and pink are used as surfaces, for very
   big lettering and for small accents only. (Ink on vermilion is 4.4 : 1 — fine for big text; the
   long paragraphs on vermilion are 18 px or more.)
   Four kinds of letters (brand book roles): headlines and sub headers in "Baby Fraunces" Black and Light
   (free Fraunces standing in for Migra, whose web licence the bar does not own; its O and o are turned to
   lean like Migra's — tools/fraunces.py), Futura PT (Jost stands in) for text, and the Arabica marker hand for slanted labels.
   Thai falls back to Noto Sans Thai (Sriracha in marker places).
   The hand drawings and the "baby" wordmark are white PNGs used as a MASK, so CSS can paint
   them any colour: background-color is the ink, mask-image is the shape. */

/* ---- the fonts: Baby Fraunces from tools/fraunces.py, Arabica from the brand book (tools/fonts.py) ---- */
@font-face { font-family: 'Baby Fraunces'; src: url(fonts/baby-fraunces-black.woff2?v=1116c) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Baby Fraunces Light'; src: url(fonts/baby-fraunces-light.woff2?v=1116c) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Arabica'; src: url(fonts/arabica.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ver: #F04923; --ink: #231F20; --pink: #FACCD0; --brown: #BF5C27;
  --paper: #FDE4E6;                      /* a lighter pink for raised surfaces */
  --pink-deep: #F6B8BF;                  /* empty photo boxes while the picture loads */
  --muted: #4E4546;                      /* ink, softened — still 7 : 1 on pink */
  --line: rgba(35, 31, 32, .22);
  /* the brand book's four roles: header, sub header, body text, handwritten lettering */
  --serif: 'Baby Fraunces', 'Noto Serif Thai', Georgia, serif;               /* headers (Migra Extrabold in the brand book) */
  --serif-light: 'Baby Fraunces Light', 'Noto Sans Thai', Georgia, serif;     /* sub headers (Migra Extralight in the brand book) */
  --sans: 'Futura PT', 'futura-pt', 'Jost', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;   /* Futura PT Book; Jost stands in for it */
  --marker: 'Arabica', 'Covered By Your Grace', 'Sriracha', 'Comic Sans MS', cursive;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));   /* side margin; wider beside a notch */
  --wrap: 1240px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --top-h: 64px;                         /* the header's height (without a notch's safe area) */
}
@media (min-width: 700px) { :root { --gutter: max(28px, env(safe-area-inset-left), env(safe-area-inset-right)); } }
@media (min-width: 940px) { :root { --top-h: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--pink); color: var(--ink);
  font: 400 16px/1.5 var(--sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
figure { margin: 0; }
[lang="th"] { font-family: 'Noto Sans Thai', var(--sans); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-ink :focus-visible, .on-ink:focus-visible { outline-color: var(--pink); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--pink); border-radius: 10px; font-weight: 700; }
.skip:focus { top: 8px; }

/* ---- painted shapes (wordmark, hand drawings) ---- */
.wordmark, .hand {
  display: block; background-color: currentColor;
  -webkit-mask: var(--shape) center / contain no-repeat; mask: var(--shape) center / contain no-repeat;
}
.wordmark { --shape: url(img/baby.png); aspect-ratio: 1200 / 624; }
.hand { --shape: url(img/hand-wine.png); pointer-events: none; }
.hand[data-hand="croissant"] { --shape: url(img/hand-croissant.png); }
.hand[data-hand="wine-palm"] { --shape: url(img/hand-wine-palm.png); }
.hand[data-hand="cup"]       { --shape: url(img/hand-cup.png); }
.hand[data-hand="martini"]   { --shape: url(img/hand-martini.png); }
.hand[data-hand="wine"]      { --shape: url(img/hand-wine.png); }
.hand[data-hand="whisky"]    { --shape: url(img/hand-whisky.png); }
.hand[data-hand="mug"]       { --shape: url(img/hand-mug.png); }
.hand[data-hand="espresso"]  { --shape: url(img/hand-espresso.png); }
.hand[data-hand="bowl"]      { --shape: url(img/hand-bowl.png); }     /* Pet — drawn by local Qwen in the same hand (tools/drawing.py) */
/* weddings and private events — also drawn by local Qwen (art-src/hands/) */
.hand[data-hand="toast"]     { --shape: url(img/hand-toast.png); }
.hand[data-hand="ring"]      { --shape: url(img/hand-ring.png); }
.hand[data-hand="bouquet"]   { --shape: url(img/hand-bouquet.png); }
.hand[data-hand="cake"]      { --shape: url(img/hand-cake.png); }
.hand[data-hand="balloons"]  { --shape: url(img/hand-balloons.png); }
.hand[data-hand="mic"]       { --shape: url(img/hand-mic.png); }
.hand[data-hand="sparkler"]  { --shape: url(img/hand-sparkler.png); }
.hand[data-hand="shaker"]    { --shape: url(img/hand-shaker.png); }
.hand[data-hand="tray"]      { --shape: url(img/hand-tray.png); }

/* "Open now" / "Opens at 15:00" (from the menu's hours, Bangkok clock) */
.pill { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 7px; min-height: 30px; padding: 3px 12px 3px 10px; border-radius: 16px;
  border: 1.5px solid currentColor; font-size: 13px; font-weight: 700; line-height: 1.3; }
.pill .th { font-weight: 500; opacity: .85; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.pill.open { background: var(--ink); color: var(--pink); border-color: var(--ink); }
.pill.open .dot { background: var(--ver); border-color: var(--ver); box-shadow: 0 0 0 0 rgba(240, 73, 35, .6); }
.night .pill.open { background: var(--pink); color: var(--ink); border-color: var(--pink); }
@media (prefers-reduced-motion: no-preference) { .pill.open .dot, .now .dot { animation: beat 2s ease-out infinite; } }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(240, 73, 35, .7); } 70%, 100% { box-shadow: 0 0 0 7px rgba(240, 73, 35, 0); } }

/* print-dot texture, like the old site's halftone backgrounds (fades out with a mask) */
.dots { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(250, 204, 208, .5) 1.3px, transparent 1.9px) 0 0 / 7px 7px; }

/* the slanted brush-pen label */
.marker { font-family: var(--marker); font-weight: 400; line-height: .95; letter-spacing: .01em;
  -webkit-text-stroke: .035em currentColor; transform: rotate(-5deg); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px;
  border-radius: 999px; background: var(--ink); color: var(--pink); font-weight: 700; font-size: 16px; text-decoration: none;
  letter-spacing: .02em; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; box-shadow: 0 0 0 var(--ink); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--btn-shadow, var(--pink)); }
.btn:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn.ghost:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn [lang="th"] { font-weight: 500; }
.on-ink .btn { background: var(--pink); color: var(--ink); --btn-shadow: var(--ver); }
.on-ink .btn.ghost { background: transparent; color: var(--pink); border-color: var(--pink); }
.on-ink .btn.ghost:hover { box-shadow: 4px 4px 0 var(--pink); }

.sect { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter); }
.sect-title { font-family: var(--serif); font-size: clamp(40px, 8vw, 64px); line-height: 1; text-align: center; }
.sect-sub { text-align: center; margin-top: 10px; color: var(--muted); }


/* =========================================================== the header (every page) */
/* Vermilion bar, not sticky. Wide screens (940 px and up): wordmark · Home Menu Vibe Wedding
   Private Event · Reserve. Narrower: wordmark · Reserve · the menu button (two lines). */
.top { position: relative; z-index: 30; background: var(--ver); color: var(--ink); padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; gap: 8px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: var(--top-h); }
.brand { display: block; padding: 6px 0; border-radius: 6px; flex: none; }
.brand .wordmark { width: 80px; }
.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; font-weight: 600; font-size: 18px;
  text-decoration: none; border-radius: 999px; white-space: nowrap; }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 2.5px; border-radius: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.top-reserve { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; margin-left: auto; min-height: 44px;
  padding: 3px 16px; border-radius: 999px; background: var(--ink); color: var(--pink); text-decoration: none; font-weight: 700; font-size: 15px;
  line-height: 1.1; white-space: nowrap; transition: background-color .2s, color .2s; }
.top-reserve .th { font-size: 14px; font-weight: 500; }
.top-reserve:hover, .top-reserve[aria-current="page"] { background: var(--pink); color: var(--ink); }
.nav-btn { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px; border-radius: 50%; flex: none; }
.nav-btn:hover { background: rgba(35, 31, 32, .1); }
.burger { display: grid; gap: 7px; width: 26px; }
.burger i { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
.burger i:last-child { width: 70%; justify-self: end; }
.nav-btn:hover .burger i:last-child { width: 100%; }
.burger.x i { width: 100%; }
.burger.x i:first-child { transform: translateY(4.75px) rotate(45deg); }
.burger.x i:last-child { transform: translateY(-4.75px) rotate(-45deg); }
@media (min-width: 940px) {
  .brand .wordmark { width: 100px; }
  .nav { display: block; margin-left: auto; }
  .top-reserve { flex-direction: row; gap: 6px; margin-left: 14px; min-height: 50px; padding: 0 22px; font-size: 16px; }
  .top-reserve .th { font-size: 14px; }
  .top-reserve .th::before { content: '· '; }
  .nav-btn { display: none; }
}

/* the full-screen menu on phones and upright tablets (a <dialog>, opened by site.js) */
.navsheet { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--ink); color: var(--pink); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.navsheet[open] { display: flex; flex-direction: column; }
.navsheet::backdrop { background: var(--ink); }
.navsheet :focus-visible { outline-color: var(--pink); }
html.nav-open { overflow: hidden; }
.navsheet .dots { position: fixed; background-image: radial-gradient(circle, rgba(240, 73, 35, .45) 1.3px, transparent 1.9px);
  -webkit-mask: linear-gradient(200deg, transparent 40%, #000); mask: linear-gradient(200deg, transparent 40%, #000); }
/* the sparkler rises out of the line above the address, beside the Reserve button */
.navsheet .hand { position: absolute; right: max(-6px, calc(var(--gutter) - 22px)); bottom: 100%; width: clamp(92px, 24vw, 190px); aspect-ratio: 520 / 904;
  color: var(--ver); transform: rotate(-6deg); transform-origin: 50% 100%; margin-bottom: -8px; z-index: -1; }
.ns-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex: none;
  height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0; }
.ns-top .wordmark { color: var(--pink); }
.ns-close { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px; border-radius: 50%; }
.ns-close:hover { background: rgba(250, 204, 208, .12); }
.ns-nav { position: relative; z-index: 1; flex: 1; padding: 18px var(--gutter) 30px; }
.ns-nav ul { list-style: none; margin: 0; padding: 0; }
.ns-nav li a { display: grid; grid-template-columns: 42px 1fr; align-items: baseline; padding: 8px 0; text-decoration: none; }
.ns-n { grid-row: 1 / 3; font-size: 22px; color: var(--ver); align-self: start; padding-top: .55em; }
.ns-t { font-family: var(--serif); font-size: clamp(44px, 12.5vw, 76px); line-height: 1; letter-spacing: -.01em; }
.ns-th { font-size: 15px; opacity: .8; margin-top: 2px; }
.ns-nav li a:hover .ns-t { color: var(--ver); }
.ns-nav a[aria-current="page"] .ns-t { color: var(--ver); }
.ns-nav a[aria-current="page"] .ns-th::after { content: ' · you are here'; font-family: var(--sans); }
.ns-reserve { margin-top: 26px; background: var(--ver); color: var(--ink); --btn-shadow: var(--pink); min-height: 56px; font-size: 18px; }
.on-ink .ns-reserve, .navsheet .ns-reserve { background: var(--ver); color: var(--ink); }
.ns-info { position: relative; z-index: 1; padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(250, 204, 208, .2);
  font-size: 15px; line-height: 1.55; }
.ns-info > p { position: relative; max-width: 34em; }
.ns-info p + p { margin-top: 6px; }
.ns-info a { text-underline-offset: 3px; }
.ns-social { display: flex; flex-wrap: wrap; gap: 0 18px; }
.ns-social a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .navsheet[open] .ns-nav li, .navsheet[open] .ns-reserve { animation: ns-in .55s var(--ease) both; }
  .navsheet[open] .ns-nav li:nth-child(2) { animation-delay: .05s; }
  .navsheet[open] .ns-nav li:nth-child(3) { animation-delay: .1s; }
  .navsheet[open] .ns-nav li:nth-child(4) { animation-delay: .15s; }
  .navsheet[open] .ns-nav li:nth-child(5) { animation-delay: .2s; }
  .navsheet[open] .ns-reserve { animation-delay: .25s; }
  .navsheet[open] .hand { animation: ns-hand .8s .15s var(--ease) both; }
}
@keyframes ns-in { from { opacity: 0; transform: translateY(26px); } }
@keyframes ns-hand { from { opacity: 0; transform: translateY(40px) rotate(4deg); } }


/* =========================================================== the footer (every page) */
.foot { background: var(--ink); color: var(--pink); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 60px var(--gutter) 34px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; font-size: 15px; line-height: 1.55; }
.foot-brand { grid-column: 1 / -1; }
.foot .wordmark { width: 150px; color: var(--pink); }
.foot-line { font-family: var(--serif-light); font-size: 24px; line-height: 1.1; margin-top: 14px; max-width: 15ch; }
.foot-h { display: inline-block; font-size: 28px; color: var(--ver); margin-bottom: 10px; transform-origin: 0 100%; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot ul a { display: inline-block; padding: 10px 0; line-height: 24px; text-decoration: none; }
.foot ul a:hover, .foot ul a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.foot ul a[aria-current="page"] { font-weight: 700; }
.foot p + p { margin-top: 12px; }
.foot p a { text-underline-offset: 3px; display: inline-block; padding: 3px 0; }
.foot a[href^="tel"] { white-space: nowrap; }
.foot-hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.foot-hours dt { font-weight: 600; }
.foot-hours dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* on a phone: Pages + Follow side by side, then the address and the hours full width */
.foot-find { order: 3; grid-column: 1 / -1; }
.foot-hrs { order: 4; grid-column: 1 / -1; }
.foot-base { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(250, 204, 208, .18); font-size: 14px; }
.foot-base a { text-underline-offset: 3px; display: inline-block; padding: 8px 0; }
@media (min-width: 700px) {
  .foot-in { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-find, .foot-hrs { order: 0; grid-column: auto; }
}
@media (min-width: 1100px) {
  .foot-in { grid-template-columns: 1.5fr 1fr 1.25fr 1.2fr .8fr; padding-top: 80px; }
  .foot-brand { grid-column: auto; }
}


/* =========================================================== the menu tiles (home page) */
/* Drawn by home.js from the database. Photo tile: red-and-pink print at rest, full colour on
   hover / focus, and on phones while the tile is in the middle of the screen (.lit).
   Typographic tile (.type, a menu with no photo): the menu's colour, its hand drawing and its name. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 34px; list-style: none; padding: 0; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
/* a last tile left alone on its row sits in the middle (seven menus: 2 + 2 + 2 + 1 on a phone, 3 + 3 + 1 wider) */
@media (max-width: 759px) { .tiles > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); } }
@media (min-width: 760px) { .tiles > li:last-child:nth-child(3n+1) { grid-column: 2; } }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--pink-deep); color: var(--ink); text-decoration: none; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .tone { z-index: 1; transition: opacity .6s var(--ease); }
.tile .full { transform: scale(1.04); transition: transform .9s var(--ease); }
.tile:hover .tone, .tile:focus-visible .tone, .tile.lit .tone { opacity: 0; }
.tile:hover .full, .tile:focus-visible .full, .tile.lit .full { transform: scale(1); }
.tile .dots, .tile .hand { display: none; }
.tile .label { position: absolute; z-index: 2; left: 8%; top: 8%; right: 6%; display: flex; flex-direction: column; align-items: flex-start; }
.tile .marker { text-transform: uppercase; transform-origin: 0 100%; transition: color .4s; }
.tile .label .marker { font-size: clamp(30px, 8.6vw, 70px); }
.tile .label .th { margin-top: 8px; font-size: clamp(14px, 3.6vw, 19px); font-weight: 600; line-height: 1.3; transition: color .4s; }
.tile .tfoot { position: absolute; z-index: 2; left: 7%; right: 7%; bottom: 7%; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tile .hours { font-size: clamp(20px, 5.4vw, 40px); }
.tile .st:empty { display: none; }
.tile .pill { background: var(--pink); color: var(--ink); border-color: var(--pink); font-size: 12px; min-height: 26px; padding: 2px 10px 2px 8px; }
.tile .pill.open { background: var(--ink); color: var(--pink); border-color: var(--ink); }
@media (max-width: 420px) { .tile .pill .th { display: none; } }
/* on a photo the Thai name sits on a small pink label so it stays readable */
.tile:not(.type) .label .th { padding: 1px 8px; border-radius: 6px; background: var(--pink); color: var(--ink); }
.tile:not(.type):hover .marker, .tile:not(.type):focus-visible .marker, .tile:not(.type).lit .marker {
  color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); -webkit-text-stroke-color: #fff; }
.tile:focus-visible { outline-offset: 4px; }
/* typographic tile */
.tile.type { background: var(--ver); --hand-c: var(--pink); }
.tile.type.night { background: var(--ink); color: var(--pink); --hand-c: var(--ver); }
.tile.type img { display: none; }
.tile.type .dots { display: block; -webkit-mask: linear-gradient(160deg, transparent 30%, #000); mask: linear-gradient(160deg, transparent 30%, #000); }
.tile.type.night .dots { background-image: radial-gradient(circle, rgba(240, 73, 35, .5) 1.3px, transparent 1.9px); }
.tile.type .hand { display: block; position: absolute; right: -4%; bottom: -3%; width: 66%; height: 74%; color: var(--hand-c);
  transform: rotate(-3deg); transform-origin: 50% 100%; transition: transform .6s var(--ease);
  -webkit-mask-position: right bottom; mask-position: right bottom; }
.tile.type:hover .hand, .tile.type:focus-visible .hand { transform: rotate(3deg) translateY(-3%); }
.tile.type .tfoot { align-items: flex-start; }
.tile.type.night .pill.open { background: var(--pink); color: var(--ink); border-color: var(--pink); }


/* =========================================================== home page */
/* Order: hero (vermilion) · moving strip (ink) · three stories (pink · ink · vermilion) ·
   Our Menus (pink) · Celebrate (ink) · Visit (pink) · closing call to book (vermilion).
   Things marked .rv slide in when scrolled to (home.js sets rv-on); with JavaScript off, or for
   people who ask for less motion, they are simply there. */
html.rv-on .home-page .rv { opacity: 0; translate: 0 34px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
html.rv-on .home-page .rv.in { opacity: 1; translate: none; }
.home-page .kicker { display: inline-block; font-size: clamp(30px, 7.4vw, 44px); transform-origin: 0 100%; margin-bottom: 18px; }

/* ---- 1 · hero ---- */
.home-page .hero { display: grid; background: var(--ver); }
.home-page .hero-photo { position: relative; order: -1; aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--pink-deep); }
.home-page .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.home-page .hero-text { position: relative; overflow: hidden; padding: 30px var(--gutter) 64px; }
.home-page .hero-text .dots { -webkit-mask: linear-gradient(170deg, transparent 35%, #000 100%); mask: linear-gradient(170deg, transparent 35%, #000 100%); }
.home-page .hero h1 { position: relative; }
.home-page .h1-a { display: block; font-family: var(--serif-light); font-size: clamp(22px, 6.2vw, 40px); line-height: 1.08; }
.home-page .h1-b { display: block; margin-top: 10px; font-family: var(--serif); font-size: clamp(54px, 16.5vw, 108px); line-height: .9; letter-spacing: -.015em; }
.home-page .h1-b > span { display: block; }
.home-page .lede { position: relative; margin-top: 22px; font-family: var(--serif-light); font-size: 21px; line-height: 1.3; max-width: 32ch; }
.home-page .hero-btns { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-page .hero .hand { position: absolute; right: 4px; bottom: -64px; width: 104px; aspect-ratio: 520 / 567; color: var(--pink); transform: rotate(-10deg); }
/* the round "open now" sticker on the photo (home.js; hidden when nothing is being served) */
.home-page .now { position: absolute; z-index: 2; left: 14px; bottom: 14px; display: grid; place-content: center; justify-items: center; gap: 2px;
  width: 136px; aspect-ratio: 1; border-radius: 50%; background: var(--pink); color: var(--ink); text-align: center; text-decoration: none;
  transform: rotate(-8deg); box-shadow: 0 6px 22px rgba(35, 31, 32, .25); transition: transform .4s var(--ease); font-size: 14px; line-height: 1.15; }
.home-page .now[hidden] { display: none; }
.home-page .now:hover { transform: rotate(0) scale(1.04); }
.home-page .now .marker { font-size: 30px; text-transform: uppercase; margin-bottom: 4px; transform: none; }
.home-page .now .st { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.home-page .now .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ver); }
.home-page .now .th { font-size: 14px; }
@media (min-width: 900px) {
  .home-page .hero { grid-template-columns: 1.08fr .92fr; min-height: clamp(620px, calc(100svh - var(--top-h)), 940px); }
  .home-page .hero-photo { order: 0; aspect-ratio: auto; }
  .home-page .hero-photo img { position: absolute; inset: 0; }
  .home-page .hero-text { display: flex; flex-direction: column; justify-content: center;
    padding: 64px 5vw 110px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
  .home-page .h1-b { font-size: clamp(76px, 8.2vw, 136px); }
  .home-page .lede { font-size: 22px; }
  .home-page .hero .hand { width: 150px; right: 5%; bottom: -54px; }
  .home-page .now { left: 32px; bottom: 32px; width: 164px; font-size: 15px; }
  .home-page .now .marker { font-size: 38px; }
}

/* ---- 2 · the moving strip ---- */
.home-page .strip { position: relative; overflow: hidden; background: var(--ink); color: var(--pink); padding: 16px 0 14px; }
.home-page .strip-run { display: flex; width: max-content; }
.home-page .strip-set { display: flex; align-items: center; flex: none; white-space: nowrap; }
.home-page .strip a { color: inherit; text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.home-page .strip a:hover, .home-page .strip a:focus-visible { text-decoration: underline; }
.home-page .strip .b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.home-page .strip .i { font-size: 32px; color: var(--ver); display: inline-block; transform: rotate(-4deg); }
.home-page .strip .b::after, .home-page .strip .i::after { content: ''; display: inline-block; vertical-align: middle; width: 8px; height: 8px;
  margin: 0 24px; border-radius: 50%; background: var(--pink); transform: rotate(0); }
@media (min-width: 900px) { .home-page .strip .b { font-size: 34px; } .home-page .strip .i { font-size: 42px; } .home-page .strip { padding: 20px 0 18px; } }
/* the run holds four copies and moves by half (two copies), so the end joins the start seamlessly;
   146 s ≈ the old speed now that there are 14 words a copy */
@media (prefers-reduced-motion: no-preference) {
  .home-page .strip-run { animation: strip 146s linear infinite; }
  .home-page .strip:hover .strip-run, .home-page .strip:focus-within .strip-run { animation-play-state: paused; }
}
/* with less motion the words stand still: let the one real copy wrap instead of running off the screen */
@media (prefers-reduced-motion: reduce) {
  .home-page .strip-run { width: auto; justify-content: center; }
  .home-page .strip-set { flex-wrap: wrap; justify-content: center; row-gap: 6px; white-space: normal; padding: 0 16px; }
  .home-page .strip-set[aria-hidden] { display: none; }
}
@keyframes strip { to { transform: translateX(-50%); } }

/* ---- 3 · the three stories ---- */
.home-page .story { position: relative; overflow: hidden; }
.home-page .story-in { position: relative; z-index: 1; display: grid; gap: 36px; max-width: var(--wrap); margin: 0 auto; padding: 76px var(--gutter) 92px; }
.home-page .story-photo { width: 84%; position: relative; }
.home-page .story-photo img { width: 100%; height: auto; background: var(--pink-deep); }
.home-page .story h2 { font-family: var(--serif); font-size: clamp(38px, 9.4vw, 72px); line-height: .98; letter-spacing: -.01em; max-width: 13ch; }
.home-page .story-text > p:not(.kicker) { margin-top: 20px; font-size: 18px; line-height: 1.6; max-width: 40ch; }
.home-page .story-text > p.when { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-page .story-text .btn { margin-top: 28px; }
.home-page .story > .hand { position: absolute; z-index: 0; }
/* brunch: pink, the pool photo under an arch, a vermilion croissant */
.home-page .s-brunch { background: var(--pink); --btn-shadow: var(--ver); }
.home-page .s-brunch .dots { background-image: radial-gradient(circle, rgba(240, 73, 35, .35) 1.3px, transparent 1.9px);
  -webkit-mask: linear-gradient(200deg, #000, transparent 45%); mask: linear-gradient(200deg, #000, transparent 45%); }
.home-page .s-brunch .story-photo { justify-self: end; }
.home-page .s-brunch .story-photo img { border-radius: 999px 999px var(--radius) var(--radius); }
.home-page .s-brunch > .hand { left: -14px; top: 96px; width: 104px; aspect-ratio: 520 / 720; color: var(--ver); transform: rotate(4deg); }
/* dinner: ink, the photo as a tilted print with a pink edge, a vermilion wine glass */
.home-page .s-dinner { background: var(--ink); color: var(--pink); }
.home-page .s-dinner .kicker { color: var(--ver); }
.home-page .s-dinner .story-photo img { border: 7px solid var(--pink); border-radius: 6px; transform: rotate(-2.5deg); }
.home-page .s-dinner > .hand { right: -40px; top: 90px; width: 150px; aspect-ratio: 520 / 445; color: var(--ver); transform: rotate(-12deg); }
/* wine: vermilion, the bottles on a brown slab (the brand's 5% of brown), a pink glass */
.home-page .s-wine { background: var(--ver); }
.home-page .s-wine .dots { -webkit-mask: linear-gradient(20deg, #000, transparent 55%); mask: linear-gradient(20deg, #000, transparent 55%); }
.home-page .s-wine .story-photo { justify-self: end; }
.home-page .s-wine .story-photo img { border-radius: var(--radius); box-shadow: -14px 14px 0 var(--brown); }
.home-page .s-wine h2 { max-width: 14ch; }
.home-page .s-wine h2 .big { display: block; font-size: 1.32em; line-height: .9; }
.home-page .s-wine h2 .sub { display: block; margin-top: 14px; font-family: var(--serif-light); font-size: .52em; line-height: 1.12; max-width: 20ch; }
.home-page .s-wine > .hand { left: -30px; top: 70px; width: 100px; aspect-ratio: 520 / 1058; color: var(--pink); transform: rotate(10deg); }
@media (min-width: 600px) and (max-width: 899px) {     /* upright tablet: photos a little smaller, drawings bigger */
  .home-page .story-photo { width: 66%; }
  .home-page .s-brunch > .hand { left: 4%; top: 140px; width: 170px; }
  .home-page .s-dinner > .hand { right: 3%; top: 150px; width: 220px; }
  .home-page .s-wine > .hand { left: 6%; top: 110px; width: 150px; }
  .home-page .celebrate > .hand { right: 6%; top: -30px; width: 140px; }
}
@media (min-width: 900px) {
  .home-page .story-in { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 0 28px; padding: 128px var(--gutter); }
  .home-page .story-photo, .home-page .story-text { grid-row: 1; width: auto; }
  .home-page .s-brunch .story-text { grid-column: 1 / span 6; }
  .home-page .s-brunch .story-photo { grid-column: 8 / span 5; }
  .home-page .s-dinner .story-photo { grid-column: 1 / span 5; }
  .home-page .s-dinner .story-text { grid-column: 7 / span 6; }
  .home-page .s-wine .story-text { grid-column: 1 / span 6; }
  .home-page .s-wine .story-photo { grid-column: 7 / span 6; }
  .home-page .s-brunch > .hand { left: auto; top: auto; right: -50px; bottom: -70px; width: 250px; transform: rotate(-14deg); }
  .home-page .s-dinner > .hand { right: -70px; top: auto; bottom: -40px; width: 340px; }
  .home-page .s-wine > .hand { left: 47%; top: auto; bottom: -150px; width: 200px; transform: rotate(-12deg); }
}
@media (min-width: 1300px) { .home-page .s-brunch > .hand { right: 2%; } }
@media (prefers-reduced-motion: no-preference) {
  .home-page .story-photo img { transition: transform .8s var(--ease); }
  .home-page .story-photo:hover img { transform: scale(1.02) rotate(0); }
}

/* ---- 4 · Our Menus ---- */
.home-page .menus { --btn-shadow: var(--ver); padding-top: 96px; padding-bottom: 104px; }
.home-page .sect-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; }
.home-page .menus .sect-title { text-align: left; font-size: clamp(44px, 11vw, 88px); }
.home-page .more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.home-page .more [lang="th"] { font-weight: 500; }
.home-page .more svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.home-page .more:hover svg { transform: translateX(4px); }

/* ---- 5 · Celebrate: weddings and private events ---- */
.home-page .celebrate { position: relative; overflow: hidden; background: var(--ink); color: var(--pink); }
.home-page .celebrate > .dots { background-image: radial-gradient(circle, rgba(240, 73, 35, .4) 1.3px, transparent 1.9px);
  -webkit-mask: linear-gradient(180deg, #000, transparent 40%); mask: linear-gradient(180deg, #000, transparent 40%); }
.home-page .celebrate > .hand { position: absolute; right: -18px; top: 26px; width: 92px; aspect-ratio: 520 / 904; color: var(--ver); transform: rotate(12deg); }
@media (min-width: 900px) { .home-page .celebrate > .hand { right: 9%; top: -60px; width: 190px; transform: rotate(16deg); } }
.home-page .cel-in { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 92px var(--gutter) 104px; }
.home-page .cel-head .kicker { color: var(--ver); }
.home-page .cel-head h2 { font-family: var(--serif); font-size: clamp(44px, 11vw, 100px); line-height: .95; letter-spacing: -.01em; max-width: 11ch; }
.home-page .cards { display: grid; gap: 26px; margin-top: 46px; }
.home-page .cel-card { position: relative; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--pink); color: var(--ink); isolation: isolate; }
.home-page .cel-party { background: var(--ver); }
.home-page .cel-photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--pink-deep); }
.home-page .cel-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-page .cel-photo .full { transform: scale(1.05); transition: transform 1s var(--ease); }
.home-page .cel-photo .tone { z-index: 1; transition: opacity .7s var(--ease); }
.home-page .cel-card:hover .tone, .home-page .cel-card:focus-within .tone, .home-page .cel-card.lit .tone { opacity: 0; }
.home-page .cel-card:hover .full, .home-page .cel-card:focus-within .full, .home-page .cel-card.lit .full { transform: scale(1); }
.home-page .cel-text { position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 22px 28px; }
.home-page .cel-text .hand { position: absolute; z-index: 2; right: 10px; top: -128px; width: 96px; aspect-ratio: 520 / 717; color: var(--ink);
  transform: rotate(-6deg); transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.home-page .cel-party .cel-text .hand { aspect-ratio: 520 / 842; top: -150px; width: 96px; }
.home-page .cel-card:hover .cel-text .hand { transform: rotate(3deg) translateY(-6px); }
.home-page .cel-kicker { font-size: 30px; transform-origin: 0 100%; margin-bottom: 14px; }
.home-page .cel-card h3 { font-family: var(--serif); font-size: clamp(32px, 8vw, 50px); line-height: 1; letter-spacing: -.01em; max-width: 13ch; }
.home-page .cel-link { text-decoration: none; }
.home-page .cel-link::after { content: ''; position: absolute; inset: 0; z-index: 3; }    /* the whole card is the link */
.home-page .cel-link:focus-visible { outline: none; }
.home-page .cel-card:has(.cel-link:focus-visible) { outline: 3px solid var(--pink); outline-offset: 5px; }
.home-page .cel-text > p:not(.cel-kicker) { margin-top: 16px; font-size: 18px; line-height: 1.55; max-width: 40ch; }
.home-page .cel-facts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 22px 0 0; border-top: 1.5px solid currentColor; }
.home-page .cel-facts div { padding: 14px 12px 0 0; }
.home-page .cel-facts div + div { padding-left: 14px; border-left: 1.5px solid currentColor; }
.home-page .cel-facts dt { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; }
.home-page .cel-facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(24px, 6vw, 32px); line-height: 1.05; white-space: nowrap; }
@media (max-width: 479px) {     /* a phone: one row per space, name left, guests right */
  .home-page .cel-facts { grid-template-columns: 1fr; }
  .home-page .cel-facts div, .home-page .cel-facts div + div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 12px 0; border-left: 0; }
  .home-page .cel-facts div + div { border-top: 1px solid currentColor; }
  .home-page .cel-facts dd { margin: 0; }
}
.home-page .cel-text > p.cel-tags { margin-top: 18px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.6; }
.home-page .cel-go { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; min-height: 50px; padding: 0 24px;
  border-radius: 999px; background: var(--ink); color: var(--pink); font-weight: 700; letter-spacing: .02em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.home-page .cel-facts + .cel-go, .home-page .cel-tags + .cel-go { margin-top: 26px; }
.home-page .cel-go svg { width: 18px; height: 18px; }
.home-page .cel-card:hover .cel-go { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.home-page .cel-wedding .cel-go { --x: 0; }
@media (min-width: 600px) and (max-width: 899px) { .home-page .cel-photo { aspect-ratio: 2 / 1; } }
@media (min-width: 600px) {
  .home-page .cel-text { padding: 32px 32px 34px; }
  .home-page .cel-text .hand { width: 120px; top: -160px; right: 18px; }
  .home-page .cel-party .cel-text .hand { width: 118px; top: -186px; }
}
@media (min-width: 900px) {
  .home-page .cards { grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
  .home-page .cel-party { margin-top: 90px; }
}

/* ---- 6 · Visit ---- */
.home-page .visit { position: relative; overflow: hidden; background: var(--pink); --btn-shadow: var(--ver); }
.home-page .visit-in { position: relative; z-index: 1; display: grid; gap: 48px; max-width: var(--wrap); margin: 0 auto; padding: 92px var(--gutter) 110px; }
.home-page .visit h2 { font-family: var(--serif); font-size: clamp(34px, 9vw, 66px); line-height: .98; letter-spacing: -.01em; }
.home-page .visit h2 span { display: block; }
.home-page .visit-where .btn { margin-top: 28px; }
.home-page .contact { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 4px; }
.home-page .contact li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; }
.home-page .contact .lbl { width: 4.2em; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-page .contact a { display: inline-block; padding: 6px 0; font-size: 20px; font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.home-page .social { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.home-page .social a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s; }
.home-page .social a:hover { background: var(--ink); color: var(--pink); }
/* LINE @babybar: the QR code is for people on a computer; on a phone the whole card is simply a link */
.home-page .line-card { display: inline-flex; align-items: center; gap: 16px; margin-top: 26px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: var(--paper); color: var(--ink); text-decoration: none; border: 1.5px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.home-page .line-card:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.home-page .line-card img { width: 112px; height: 112px; border-radius: 8px; flex: none; }
.home-page .line-txt { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.35; }
.home-page .line-txt b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.home-page .line-txt .id { font-weight: 700; font-size: 17px; color: #037A30; }      /* LINE green, darkened to 4.5 : 1 on the pale pink */
.home-page .line-txt .th { font-size: 14px; opacity: .85; }
@media (hover: none), (max-width: 699px) { .home-page .line-card img { display: none; } .home-page .line-card { padding: 14px 20px; } }
.home-page .visit-hours { justify-self: start; width: min(100%, 460px); padding: 30px 28px 26px; border-radius: 24px; background: var(--ink); color: var(--pink);
  rotate: 1.5deg; box-shadow: 10px 10px 0 var(--ver); }
@media (max-width: 899px) { .home-page .visit-hours { width: min(calc(100% - 14px), 460px); } }
.home-page .visit-hours h3 .marker { display: inline-block; font-size: 40px; color: var(--ver); }
.home-page .visit-hours .every { margin-top: 12px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-page .visit-hours dl { margin: 12px 0 0; }
.home-page .visit-hours dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(250, 204, 208, .25); }
.home-page .visit-hours dt { font-size: 18px; font-weight: 600; }
.home-page .visit-hours dd { margin: 0; font-family: var(--serif); font-size: clamp(24px, 6.4vw, 32px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-page .visit > .hand { position: absolute; z-index: 0; right: -26px; bottom: -36px; width: 130px; aspect-ratio: 520 / 567; color: var(--brown); transform: rotate(-12deg); }
@media (min-width: 900px) {
  .home-page .visit-in { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 60px; padding: 128px var(--gutter); }
  .home-page .visit-hours { justify-self: end; padding: 38px 38px 32px; }
  .home-page .visit > .hand { right: -30px; bottom: -70px; width: 240px; transform: rotate(-10deg); }
}

/* ---- 7 · closing call to book ---- */
.home-page .closing { position: relative; overflow: hidden; background: var(--ver); }
.home-page .closing .dots { -webkit-mask: linear-gradient(160deg, transparent 30%, #000); mask: linear-gradient(160deg, transparent 30%, #000); }
.home-page .closing-in { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 100px var(--gutter) 200px; }
.home-page .closing h2 { font-family: var(--serif); font-size: clamp(40px, 13.6vw, 150px); line-height: .92; letter-spacing: -.02em; }
.home-page .closing h2 span { display: block; }
.home-page .closing .hero-btns { margin-top: 38px; }
.home-page .closing > .hand { position: absolute; z-index: 0; right: -30px; bottom: -24px; width: 230px; aspect-ratio: 520 / 405; color: var(--pink); transform: rotate(-6deg); }
@media (min-width: 900px) {
  .home-page .closing-in { padding: 140px var(--gutter) 150px; }
  .home-page .closing h2 span:nth-child(2) { padding-left: 1.1em; }
  .home-page .closing h2 span:nth-child(3) { padding-left: .45em; }
  .home-page .closing > .hand { right: 3%; bottom: -40px; width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  html.rv-on .home-page .rv { opacity: 1; translate: none; }
}
@media print { html.rv-on .home-page .rv { opacity: 1; translate: none; } .home-page .strip-run { animation: none; } }
