/*
  tokens.css: the only stylesheet a client normally re-themes.
  Fonts are self-hosted in site/fonts/ (the @font-face rules below); each page preloads the two
  it needs first. Change the files, these rules and the preloads together.

  The Cannolifather: his own website mockup. Black page, cream type, gold hairlines and buttons;
  one parchment band (.on-ink) like the mockup's event-types section. Headings and buttons in
  tracked capitals, script for his taglines only.

  Colour schemes (preview switcher): the first block is the default ("black-gold", his mockup). Each other scheme
  repeats only the colour tokens, under :root[data-scheme="<id>"] and [data-scheme-preview="<id>"] (the second
  colours that scheme's swatch); ids and labels are in each page's <meta name="preview-schemes">. All dark: the
  logo's lettering is cream and its black (the tuxedo too) is transparent, so it needs a very dark page.
*/

/* Fonts: self-hosted (SIL Open Font License), latin subset. EB Garamond does headings and text; Allura the taglines. */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/eb-garamond-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Allura"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/allura-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root, [data-scheme-preview="black-gold"] {
  /* Colour */
  --bg: #0b0a09;          /* page: the logo's black, a touch warm */
  --surface: #16140f;     /* cards, fields, the email preview */
  --ink: #ebe3d3;         /* body text: cream, like the logo lettering */
  --heading: #f5eee0;     /* headings */
  --muted: #ab9f8b;       /* secondary text */
  --line: #2c2720;        /* hairlines */
  --rule: #c9a15c;        /* strong rules (top of lists, FAQ) */
  --accent: #c9a15c;      /* gold: the logo's underline. Rules, frames, ticks, placeholder underline */
  --accent-ink: #d3ad68;  /* gold as text on --bg */
  --on-ink: #0b0a09;      /* text on an --ink fill (skip link) */
  --danger: #f0a08e;      /* form errors on the black page */
  --page-scheme: dark;

  /* Contrast band: the mockup's parchment section, an inversion on this dark theme */
  --band: #efe8da;
  --on-band: #2b251d;
  --on-band-heading: #14100b;
  --accent-on-ink: #7a5820; /* gold dark enough for text and icons on parchment */
  --danger-on-band: #a3261b;
  --band-scheme: light;

  /* Buttons */
  --btn-bg: #c9a15c;
  --btn-ink: #0b0a09;
  --btn-quiet-line: #c9a15c;
  --band-btn-bg: #14100b;
  --band-btn-ink: #efe8da;

  --display-fill: none;
}

:root {
  /* Type */
  --font-display: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --font-body: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --font-script: "Allura", "Snell Roundhand", cursive;
  --display-weight: 500;
  --h-case: uppercase;      /* h1, h2 in tracked capitals, as in his mockup */
  --h-tracking: 0.05em;
  --label-case: uppercase;  /* buttons, nav, occasion titles */
  --label-tracking: 0.12em;
  --nav-size: 0.9rem;
  --logo-h: 3.9rem;
  --script-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); /* Allura runs small */
  --menu-col: 15rem;

  /* Bleed hero: the logo a little smaller and the headline in sentence case, so logo, tagline, headline and
     buttons all fit in the first screen (the capitals were four heavy lines). Phones: a shorter picture, logo at 78%. */
  --hero-logo-w: 26rem;
  --hero-logo-w-phone: 78%;
  --hero-bleed-ratio: 3 / 2;
  --hero-script-scale: 1.2;
  --hero-h1-case: none;
  --hero-h1-tracking: 0;
  --hero-h1-size: 1.5rem;
  --hero-h1-weight: 400;

  /* Scale (base 19px: Garamond has a small x-height) */
  --step--1: 0.95rem;
  --step-0: 1.1875rem;
  --step-1: 1.45rem;
  --step-2: 1.85rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem);
  --step-4: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);

  /* Layout */
  --gutter: 16px;
  --max: 74rem;
  --measure: 36em;
  --radius: 6px;          /* buttons and form controls (was 3px, softened 2026-11-23); pictures and frames stay square */
  --frame-offset: 12px;
  --frame-line-gap: 0;
  --banner-h: 0px;       /* no preview banner on the real site */
}

/* All black & gold: no parchment, the bands a raised black like the rest of the page */
:root[data-scheme="all-black"], [data-scheme-preview="all-black"] {
  --bg: #0b0a09; --surface: #16140f; --ink: #ebe3d3; --heading: #f5eee0; --muted: #ab9f8b; --line: #2c2720;
  --rule: #c9a15c; --accent: #c9a15c; --accent-ink: #d3ad68; --on-ink: #0b0a09; --danger: #f0a08e; --page-scheme: dark;
  --band: #17150f; --on-band: #ebe3d3; --on-band-heading: #f5eee0; --accent-on-ink: #d3ad68; --danger-on-band: #f0a08e; --band-scheme: dark;
  --btn-bg: #c9a15c; --btn-ink: #0b0a09; --btn-quiet-line: #c9a15c; --band-btn-bg: #c9a15c; --band-btn-ink: #0b0a09;
}

/* Espresso & gold: a warm coffee-brown page, latte bands */
:root[data-scheme="espresso"], [data-scheme-preview="espresso"] {
  --bg: #17110c; --surface: #221911; --ink: #eee3d2; --heading: #f7ecdb; --muted: #b4a48e; --line: #35291e;
  --rule: #c9a15c; --accent: #c9a15c; --accent-ink: #d8b26c; --on-ink: #17110c; --danger: #f2a591; --page-scheme: dark;
  --band: #f1e5d1; --on-band: #2f2318; --on-band-heading: #1a120b; --accent-on-ink: #76531c; --danger-on-band: #a3261b; --band-scheme: light;
  --btn-bg: #c9a15c; --btn-ink: #17110c; --btn-quiet-line: #c9a15c; --band-btn-bg: #2a1d13; --band-btn-ink: #f1e5d1;
}

/* Burgundy & gold: deep wine red, picks up the rose in his lapel */
:root[data-scheme="burgundy"], [data-scheme-preview="burgundy"] {
  --bg: #1e0b10; --surface: #2b1319; --ink: #f1e4dc; --heading: #f9ede5; --muted: #c3a99f; --line: #43202a;
  --rule: #c9a15c; --accent: #c9a15c; --accent-ink: #dbb46e; --on-ink: #1e0b10; --danger: #ffb5a4; --page-scheme: dark;
  --band: #f3e8dc; --on-band: #2f1a1d; --on-band-heading: #1e0b10; --accent-on-ink: #7a5820; --danger-on-band: #a3261b; --band-scheme: light;
  --btn-bg: #c9a15c; --btn-ink: #1e0b10; --btn-quiet-line: #c9a15c; --band-btn-bg: #4a1520; --band-btn-ink: #f3e8dc;
}

/* Green & gold: old Italian deli green */
:root[data-scheme="verde"], [data-scheme-preview="verde"] {
  --bg: #0c1611; --surface: #13201a; --ink: #e9e6d7; --heading: #f4f0e1; --muted: #a9ad9a; --line: #24352b;
  --rule: #c9a15c; --accent: #c9a15c; --accent-ink: #d5b06a; --on-ink: #0c1611; --danger: #f2a591; --page-scheme: dark;
  --band: #eee9da; --on-band: #24291f; --on-band-heading: #0f1712; --accent-on-ink: #715320; --danger-on-band: #a3261b; --band-scheme: light;
  --btn-bg: #c9a15c; --btn-ink: #0c1611; --btn-quiet-line: #c9a15c; --band-btn-bg: #173024; --band-btn-ink: #eee9da;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --frame-offset: 18px; }
}



/* Line under the hero heading: keeps "Charlotte, NC" near the top of the page for search, now that the
   heading is his own line (2026-11-16). */
.hero-bleed .hero-sub {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.6;
  color: var(--accent-ink);
}

/* Homepage FAQ: centred under its centred heading */
#faq .faq { max-width: 46rem; margin-inline: auto; }

/* Booking form (real since 2026-11-16): honeypot, Turnstile box, result note colours.
   The honeypot is display:none, not clipped: browsers autofill any field they can focus, even with
   autocomplete="off", and Chrome filled the old clipped "company" trap from a saved address, which
   silently dropped the booking (review 2026-11-23, 2.1). Its name and label match no autofill type. */
.hp { display: none; }
.turnstile { min-height: 65px; }
.form-note[data-kind="error"] { color: var(--danger); }
.form-note[data-kind="ok"] { color: var(--accent-ink); font-weight: 500; }

/* Desktop header: room above and below the logo so it sits centred, clear of the bottom rule */
@media (min-width: 900px) {
  .site-header.logo-centre .wrap { min-height: 5.75rem; padding-block: 0.75rem; }
}
/* Phones and tablets: a slightly smaller header logo so it clears the header edges (the header height
   stays 4.5rem because the open menu is positioned against it) */
@media (max-width: 899px) {
  .site-header .wordmark.logo img { height: 3.2rem; }
}

/* Phones and tablets: "Book now" as its own button beside Menu (Petar, 2026-11-23), not only inside the menu.
   Compact so logo + button + Menu fit a 360px phone. Hidden from 900px, where the nav's own Book now shows.
   Left off the booking page itself. The open menu drops its Book now, since this one stays visible. */
.site-header .header-book { min-height: 44px; padding: 0 0.9rem; font-size: 0.8rem; white-space: nowrap; }
.site-header .header-book + .nav-toggle { margin-left: -0.5rem; }
@media (max-width: 899px) {
  .site-header:has(.header-book) .site-nav .nav-call { display: none; }
}
@media (min-width: 900px) {
  .site-header .header-book { display: none; }
}

/* Breadcrumbs in the menu's style (Petar asked for a nicer font, 2026-11-23): spaced small capitals in Garamond,
   gold links without underlines, a gold separator, the current page in cream. */
nav.crumbs { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; }
nav.crumbs ol { gap: 0.75rem; }
nav.crumbs li + li::before { content: "·"; margin-right: 0.75rem; color: var(--accent); }
nav.crumbs a { color: var(--accent-ink); text-decoration: none; }
nav.crumbs a:hover { color: var(--heading); }
nav.crumbs [aria-current="page"] { color: var(--ink); }

/* Topping photos (Petar's, 2026-11-23) in place of the line icons: round medallions with a thin gold ring, like
   the icons' double circle. 8rem on phones and tablets, 10rem from 900px; files are 200w + 400w (retina). */
.pick img {
  width: 8rem; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  padding: 5px; border: 1px solid var(--accent); background: transparent; margin-bottom: 0.75rem;
}
@media (min-width: 900px) { .pick img { width: 10rem; } }

/* Booking form toppings as photo tiles (Petar, 2026-11-23). The real checkbox stays in each label (visually
   hidden, still focusable), so main.js's pick-three logic, the form post and screen readers are unchanged.
   Unpicked: a dimmed photo in a thin ring. Picked: a thicker gold ring with a soft glow, full colour, a gold
   check badge, gold name. Once three are picked the rest fade (main.js disables them). */
.checks.tiles { grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 0.9rem 0.5rem; }
.checks.tiles .tile {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 0.45rem;
  text-align: center; font-size: 0.85rem; line-height: 1.2; padding-block: 0.25rem;
}
.checks.tiles .tile input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.tile-pic {
  position: relative; display: block; width: 4.75rem; aspect-ratio: 1; border-radius: 50%;
  padding: 3px; border: 1px solid var(--line);
  transition: border-color 0.15s, box-shadow 0.15s, padding 0.15s;
}
.tile-pic img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: saturate(0.85) brightness(0.85); transition: filter 0.15s; }
.tile-pic::after { /* check badge */
  content: ""; position: absolute; top: -3px; right: -3px; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230b0a09' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
  box-shadow: 0 0 0 2px var(--bg); transform: scale(0); transition: transform 0.15s;
}
.checks.tiles .tile:hover .tile-pic { border-color: var(--accent); }
.checks.tiles .tile:hover .tile-pic img { filter: none; }
.checks.tiles .tile:has(input:checked) .tile-pic {
  border: 2px solid var(--accent); padding: 2px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 30%, transparent);
}
.checks.tiles .tile:has(input:checked) .tile-pic img { filter: none; }
.checks.tiles .tile:has(input:checked) .tile-pic::after { transform: scale(1); }
.checks.tiles .tile:has(input:checked) .tile-name { color: var(--accent-ink); font-weight: 600; }
.checks.tiles .tile:has(input:focus-visible) .tile-pic { outline: 2px solid var(--accent-ink); outline-offset: 4px; }
.checks.tiles .tile:has(input:disabled) { opacity: 0.4; cursor: default; }
.checks.tiles .tile:has(input:disabled) .tile-pic { border-color: var(--line); }
.checks.tiles .tile:has(input:disabled) .tile-pic img { filter: grayscale(1) brightness(0.7); }
.checks.tiles .sub-choice { margin: 0.25rem 0 0; }
@media (prefers-reduced-motion: reduce) { .tile-pic, .tile-pic img, .tile-pic::after { transition: none; } }

/* "Which sprinkles?" as small icon tiles (Petar, 2026-11-23): a rainbow and a chocolate bar (inline SVG on a dark
   disc), same picked look as the topping tiles. Still real radios: Rainbow is the default. */
.checks.tiles .sub-choice { gap: 0.5rem 1.25rem; }
.checks.tiles .tile-sm { width: 5rem; }
.checks.tiles .tile-sm .tile-pic { width: 3.5rem; }
.checks.tiles .tile-sm .tile-pic::after { width: 1.2rem; height: 1.2rem; background-size: 0.7rem; }
.tile-pic svg { display: block; width: 100%; height: 100%; filter: saturate(0.85) brightness(0.85); transition: filter 0.15s; }
.checks.tiles .tile:hover .tile-pic svg, .checks.tiles .tile:has(input:checked) .tile-pic svg { filter: none; }
@media (prefers-reduced-motion: reduce) { .tile-pic svg { transition: none; } }

/* Booking sent (Petar: the boxed "Thank you" felt dated, 2026-11-23). inquire.js swaps the form for this:
   a gold check that draws itself, "Request sent", their request at a glance, what happens next. No borders.
   Form errors are plain text now too (no box). */
form .form-note { border: 0; padding: 0; }
.sent { display: grid; justify-items: center; text-align: center; gap: 1rem; padding-block: 1rem 0; animation: sent-in 0.45s ease-out both; }
.sent-check { width: 4.75rem; height: 4.75rem; fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 35%, transparent)); }
.sent-check circle { stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: sent-draw 0.6s 0.15s ease-out forwards; }
.sent-check path { stroke-width: 3.2; stroke-dasharray: 36; stroke-dashoffset: 36; animation: sent-draw 0.35s 0.7s ease-out forwards; }
.sent-title { margin: 0.25rem 0 0; outline: none; }
.sent-lede { margin: 0; max-width: 30em; color: var(--ink); }
.sent-card { width: 100%; max-width: 30rem; display: grid; gap: 0.9rem; padding: 1.1rem 1.25rem; margin-top: 0.5rem;
  background: var(--surface); border-radius: calc(var(--radius) * 2); }
.sent-facts { display: grid; gap: 0.2rem; }
.sent-facts p { margin: 0; }
.sent-when { font-family: var(--font-display); font-size: var(--step-1); color: var(--heading); }
.sent-where { font-size: var(--step--1); color: var(--muted); }
.sent .sent-title:focus, .sent .sent-title:focus-visible { outline: none; }
.sent-dot { color: var(--accent); }
.sent-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.sent-chips li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 0.85rem; color: var(--accent-ink); }
.sent-chips img { width: 1.75rem; height: 1.75rem; border-radius: 50%; object-fit: cover; }
.sent-small { margin: 0; font-size: var(--step--1); color: var(--muted); }
.sent .btn { margin-top: 0.5rem; }
@keyframes sent-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes sent-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .sent { animation: none; }
  .sent-check circle, .sent-check path { animation: none; stroke-dashoffset: 0; }
}

/* Event icons (Petar's, 2026-11-23): gold-on-black medallions cropped to their ring, shown round on the cream
   band. Bigger than the old line icons (they have more detail). Files 240w + 480w. The old SVGs are in git. */
.occasion .occasion-icon {
  width: 6rem; height: auto; aspect-ratio: 1; border-radius: 50%; margin-bottom: 0.5rem;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.16);
}
@media (min-width: 900px) { .occasion .occasion-icon { width: 6.5rem; } }

/* Booking page, form first (Petar, 2026-11-23, after his reference site): one centred column, a short intro,
   the form, then the three steps and a small email line under it. */
.book { max-width: 44rem; display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); }
.book-head { text-align: center; display: grid; gap: 0.5rem; justify-items: center; }
.book-head h1, .book-head .lede { margin: 0; }
.book-head .lede { max-width: 32em; }
.book .demo-form .turnstile { justify-self: start; }
.book-after { border-top: 1px solid var(--line); padding-top: clamp(1.5rem, 3vw, 2rem); display: grid; gap: 1rem; }
.book-after h2 { margin: 0; text-align: center; }
.book-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.book-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: start; font-size: var(--step--1); color: var(--muted); }
.book-steps span { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-size: 0.95rem; }
@media (min-width: 700px) {
  .book-steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .book-steps li { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
.book-mail { margin: 0.5rem 0 0; justify-self: center; max-width: none; text-align: center; font-size: var(--step--1); color: var(--muted); } /* centred box: the global paragraph width cap pinned it left */
.book-mail a { color: var(--accent-ink); text-decoration: none; text-underline-offset: 0.2em; }
.book-mail a:hover, .book-mail a:focus-visible { text-decoration: underline; }
.section:has(> .book) { padding-top: clamp(1.25rem, 3vw, 2.25rem); }

/* Form labels in a clean sans (Petar, 2026-11-23): Helvetica (Mac/iPhone), Arial elsewhere; nothing to download.
   Labels, fieldset legends, topping and sprinkle names, the pick counter and field errors. */
.book .demo-form .field label, .book .demo-form legend, .book .demo-form .tile-name,
.book .demo-form .checks-count, .book .demo-form .field-error {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0.01em;
}
.book .demo-form .field label, .book .demo-form legend { font-size: 0.9rem; font-weight: 500; }
.book .demo-form .tile-name { font-size: 0.8rem; }
.book .demo-form .checks-count { font-size: 0.8rem; }
.book .demo-form .field input, .book .demo-form .field select, .book .demo-form .field textarea {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1rem;
}

/* No sideways drag on iPhones (Petar, iPhone 16 Pro Max, 2026-11-23). base.css clips sideways overflow on
   <body>, but while <html> is visible that rule moves up to the viewport, which iOS Safari ignores for touch
   panning. Clipping <html> too keeps the body's clip on the body itself, so nothing can be dragged sideways.
   clip (not hidden) creates no scroll container, so fixed and sticky bits still work. */
html { overflow-x: hidden; overflow-x: clip; }

/* Perfect circles in Safari (Petar saw ovals on his iPhone, 2026-11-23): WebKit adds padding and border on top
   of an aspect-ratio height (76x84 measured), so every ringed circle gets an explicit, equal width and height. */
.tile-pic { box-sizing: border-box; width: 4.75rem; height: 4.75rem; aspect-ratio: auto; flex: none; }
.checks.tiles .tile-sm .tile-pic { width: 3.5rem; height: 3.5rem; }
.pick img { box-sizing: border-box; width: 8rem; height: 8rem; aspect-ratio: auto; }
@media (min-width: 900px) { .pick img { width: 10rem; height: 10rem; } }
.occasion .occasion-icon { height: 6rem; aspect-ratio: auto; }
@media (min-width: 900px) { .occasion .occasion-icon { height: 6.5rem; } }
@media (max-width: 599px) { .checks.tiles { grid-template-columns: repeat(3, 1fr); } } /* phones: 3 + 2, not 4 + 1 */

/* Sticky header (Petar, 2026-11-23); the phone bottom bar is gone, the header's Book now covers it.
   Solid black. Desktop slims down once scrolled (main.js adds .is-scrolled); phones keep
   4.5rem because the open menu hangs from it. Jump links stop below the header; a long menu scrolls itself.
   (The shrink-on-scroll was removed the same day: see below.) */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); /* solid: see-through let page text show behind the logo */
}
:root { scroll-padding-top: 5.25rem; } /* :root beats base.css html rule */
.site-header.is-open .site-nav { max-height: calc(100dvh - 4.5rem); overflow-y: auto; overscroll-behavior: contain; }
/* No size changes on scroll (2026-11-23): shrinking the header moved the page under it and the height
   transition also played on load and when crossing 900px (Petar saw it jump). One fixed desktop height;
   scrolling only adds a shadow, which moves nothing. */
@media (min-width: 900px) {
  .site-header.logo-centre .wrap { min-height: 5rem; padding-block: 0.5rem; }
  .site-header .wordmark.logo img { height: 3.4rem; }
}
.site-header { transition: box-shadow 0.2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 18px rgb(0 0 0 / 0.45); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

/* Event date calendar (js/datepicker.js, 2026-11-23): opens under the date box, starts on this month, no past
   days, months or years. Day cells get an explicit height (aspect-ratio comes out uneven in Safari). */
.field.has-datepick { position: relative; }
.book .demo-form .datepick-box { cursor: pointer; caret-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a15c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M3.5 9.5h17M8 3v4M16 3v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 1.2rem; padding-right: 2.6rem; }
.book .demo-form .datepick-box::placeholder { color: var(--muted); }
.datepick {
  position: absolute; z-index: 30; top: calc(100% + 0.4rem); left: 0; width: 100%; min-width: min(21rem, calc(100vw - 2 * var(--gutter)));
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.55); border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: calc(var(--radius) * 2); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.datepick[hidden] { display: none; }
/* The month title is a dropdown (allowed months only): looks like the title plus a small gold chevron.
   Font 16px+ so iPhones don't zoom; the native picker opens on tap. */
.book .demo-form .datepick select.cal-month {
  width: auto; min-width: 0; min-height: 44px; flex: 0 1 auto; padding: 0 1.9rem 0 0.6rem;
  font-family: inherit; font-size: 1.1rem; font-weight: 500; color: var(--heading);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a15c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.45rem center / 1rem;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  -webkit-appearance: none; appearance: none; color-scheme: dark; text-align: center; text-align-last: center;
}
.book .demo-form .datepick select.cal-month:hover { border-color: var(--line); }
.book .demo-form .datepick select.cal-month:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
.book .demo-form .datepick select.cal-month option { background: var(--surface); color: var(--ink); }
@media (max-width: 400px) { /* "September 2027" has to fit between the two 44px arrows at 320 */
  .datepick { padding: 0.75rem; }
  .datepick .cal-head { gap: 0.25rem; }
  .book .demo-form .datepick select.cal-month { font-size: 1rem; padding: 0 1.3rem 0 0.2rem; background-position: right 0.2rem center; background-size: 0.85rem; }
}
.datepick .cal-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.datepick .cal-day { aspect-ratio: auto; height: 2.6rem; min-height: 0; font-size: 0.95rem; }
.datepick .cal-day:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; }

/* Footer Instagram as a small profile chip (Petar, 2026-11-23): round logo avatar with a thin gold ring,
   the handle, and a tiny Instagram glyph. Explicit avatar size (Safari and aspect-ratio). */
.footer-cols a.ig-chip { display: inline-flex; align-items: center; gap: 0.7rem; padding-block: 0.35rem; }
.ig-avatar { box-sizing: border-box; width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%; object-fit: cover;
  padding: 2px; border: 1px solid var(--accent); background: var(--bg); }
.ig-text { display: grid; line-height: 1.2; }
.ig-handle { color: var(--ink); }
.ig-sub { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }
.ig-glyph { width: 0.85rem; height: 0.85rem; flex: none; }
.footer-cols a.ig-chip:hover .ig-handle { color: var(--accent-ink); }
.footer-cols a.ig-chip:hover .ig-avatar { border-color: var(--accent-ink); }
/* Footer email chip, matching the Instagram one (Petar, 2026-11-23): gold envelope in the same ringed circle */
.mail-avatar { display: grid; place-items: center; padding: 0.6rem; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.mail-avatar svg { width: 100%; height: 100%; display: block; }
.footer-cols ul:has(.ig-chip) { display: grid; gap: 0.4rem; align-content: start; } /* do not spread to the link column height */
/* Links underline on hover only (Petar, 2026-11-23) */
.footer-sign .inline-list a { text-decoration: none; text-underline-offset: 0.2em; }
.footer-sign .inline-list a:hover, .footer-sign .inline-list a:focus-visible { text-decoration: underline; }

/* Booking form while it sends (2026-11-23): fields dim and can't be touched (the form is inert),
   the button keeps its colour and shows a spinner, and a status line sits under it. */
form.is-sending > :not(:has([type=submit])):not(.form-note) { opacity: .45; transition: opacity .2s; }
form.is-sending { cursor: progress; }
.btn:disabled:has(.btn-spin) { opacity: 1; cursor: progress; }
.btn-spin {
  display: inline-block; width: 1em; height: 1em; margin-right: .55em; vertical-align: -0.15em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn-spin { animation-duration: 1.6s; } }
.form-note[data-kind="busy"] { color: var(--muted, inherit); text-align: inherit; }

/* No double-tap zoom on phones (Petar, 2026-11-23): taps on the topping tiles, date picker and buttons were
   zooming the page on iPhone. "manipulation" keeps scrolling and pinch zoom (accessibility), and drops only
   double-tap zoom. Set on every element because a scroll box in between (open menu, textarea) resets it. */
:root, :root * { touch-action: manipulation; }

/* Form field borders at 3:1 or more (review 4.5, WCAG 1.4.11): #706553 is 3.46:1 on the page black and
   3.22:1 on the field fill; the old hairline colour was 1.34:1, so empty fields read as faint bars. */
.book .demo-form .field input, .book .demo-form .field select, .book .demo-form .field textarea { border-color: #706553; }

/* 404 page (review 4.9): the site header and footer, a short note and two ways on. */
.not-found { text-align: center; margin-inline: auto; }
.not-found .lede { margin-inline: auto; }
.not-found-actions { max-width: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* Turnstile didn't load (review 4.2): the note sits where the widget would be. */
.turnstile-missing { margin: 0; color: var(--danger); font-size: 0.95rem; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.form-note a, .turnstile-missing a { color: var(--accent-ink); }

/* Review nitpicks (2026-11-23) */
/* Long unbroken text (a pasted link as the location, a long email) wraps instead of running off the screen */
.sent { overflow-wrap: anywhere; }
/* Big email link on the homepage's black contact section: hover in the light gold, not the parchment gold
   (#7a5820 on black is 3.06:1 and looks disabled). On the Weddings band the band's own gold applies. */
a.big-tel:hover, a.big-tel:focus-visible { color: var(--accent-ink); }
.on-ink a.big-tel:hover, .on-ink a.big-tel:focus-visible { color: var(--accent-on-ink); }
/* Footer event links (Weddings): at least 24px tall to tap */
.footer-sign .inline-list a { display: inline-block; padding-block: 0.25rem; }
