/* =====================================================================
   NinetyNine Regent Street: foundation
   Tokens, type scale, grid, buttons, header, menu, footer, forms.

   Typography rule: Canela for titles, the 99 mark and one italic line per page.
   Neue Haas Grotesk for everything read for information, including "Regent Street".
   Computed sizes are noted as 375 / 768 / 1440 / 1920.
   ===================================================================== */

:root {
  /* brand */
  --oxblood: #630102;
  --oxblood-deep: #3d0608;
  --espresso: #1c0807;
  --ink: #120606;
  --cream: #f4f2e9;
  --cream-2: #ebe6d8;
  --gold: #c9a572;
  --bronze: #765832;
  --amber: #e3b67c;
  --crimson: #8e1526;                                   /* the short rules in Alin's mockups */
  --sun: 242, 106, 60;

  /* surface defaults (cream page) */
  --bg: var(--cream);
  --fg: var(--ink);
  --fg-muted: #5c4b46;
  --fg-faint: #6f5e59;
  --line: rgba(118, 88, 50, 0.22);
  --line-strong: rgba(118, 88, 50, 0.5);
  --focus: var(--oxblood);

  /* type */
  --serif: "Canela", Georgia, "Times New Roman", serif;
  --serif-deck: "Canela Deck", "Canela", Georgia, serif;
  --sans: "NHG Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans-display: "NHG Display", "NHG Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-giant: clamp(8rem, 2rem + 26vw, 28rem);          /* 130 / 232 / 406 / 448  (1954 only) */
  --fs-mega: clamp(3.75rem, 0.6rem + 12.4vw, 13.5rem);  /* 60 / 105 / 188 / 216   (home H1 only) */
  --fs-xl: clamp(3rem, 1.4rem + 6.8vw, 8.5rem);         /* 48 / 75 / 120 / 136    (page H1, room names) */
  --fs-l: clamp(2.5rem, 1.6rem + 4vw, 5.5rem);          /* 40 / 56 / 83 / 88      (one statement per page) */
  --fs-h2: clamp(2rem, 1.6rem + 1.7vw, 3.5rem);         /* 32 / 39 / 50 / 56 */
  --fs-h3: clamp(1.5rem, 1.3rem + 0.9vw, 2.25rem);      /* 24 / 28 / 34 / 36      (Canela Deck) */
  --fs-run: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem);    /* 28 / 36 / 51 / 52      (NHG Display run-ins) */
  --fs-body: clamp(1rem, 0.98rem + 0.1vw, 1.0625rem);   /* 16 / 16.4 / 17 / 17 */
  --fs-lede: clamp(1.125rem, 1.06rem + 0.28vw, 1.3125rem); /* 18 / 19 / 21 / 21 */
  --fs-small: 0.875rem;

  /* layout */
  --gutter: max(clamp(1.25rem, 0.5rem + 3.2vw, 3.375rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));   /* 20 / 32 / 54 / 54, clear of the notch in landscape */
  --max: 1440px;
  --colgap: clamp(0.75rem, 0.5rem + 1.6vw, 2rem);       /* 12 / 20 / 28 / 32 */
  --pad-s: clamp(3rem, 2rem + 3vw, 4.5rem);
  --pad-m: clamp(4.5rem, 2.5rem + 6vw, 9rem);
  --pad-xl: clamp(7rem, 4rem + 12vw, 16rem);
  --header-h: 4.5rem;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-curtain: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- surfaces ---------- */
.theme-light { --bg: var(--cream); --fg: var(--ink); --fg-muted: #5c4b46; --fg-faint: #6f5e59; --line: rgba(118,88,50,.22); --line-strong: rgba(118,88,50,.5); --label: var(--bronze); --focus: var(--oxblood); color-scheme: light; }
.theme-light-2 { --bg: var(--cream-2); --fg: var(--ink); --fg-muted: #5c4b46; --fg-faint: #6f5e59; --line: rgba(118,88,50,.24); --line-strong: rgba(118,88,50,.52); --label: var(--bronze); --focus: var(--oxblood); color-scheme: light; }
.theme-dark { --bg: var(--ink); --fg: var(--cream); --fg-muted: rgba(244,242,233,.76); --fg-faint: rgba(244,242,233,.6); --line: rgba(201,165,114,.18); --line-strong: rgba(201,165,114,.42); --label: var(--gold); --focus: var(--gold); color-scheme: dark; }
.theme-espresso { --bg: var(--espresso); --fg: var(--cream); --fg-muted: rgba(244,242,233,.76); --fg-faint: rgba(244,242,233,.6); --line: rgba(201,165,114,.18); --line-strong: rgba(201,165,114,.42); --label: var(--gold); --focus: var(--gold); color-scheme: dark; }
.theme-oxblood { --bg: var(--oxblood); --fg: var(--cream); --fg-muted: rgba(244,242,233,.82); --fg-faint: rgba(244,242,233,.66); --line: rgba(244,242,233,.2); --line-strong: rgba(244,242,233,.48); --label: rgba(244,242,233,.78); --focus: var(--cream); color-scheme: dark; }
.theme-oxblood-deep { --bg: var(--oxblood-deep); --fg: var(--cream); --fg-muted: rgba(244,242,233,.8); --fg-faint: rgba(244,242,233,.64); --line: rgba(201,165,114,.2); --line-strong: rgba(201,165,114,.45); --label: var(--gold); --focus: var(--gold); color-scheme: dark; }
.theme-light, .theme-light-2, .theme-dark, .theme-espresso, .theme-oxblood, .theme-oxblood-deep { background-color: var(--bg); color: var(--fg); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--espresso); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* sections and summaries that receive focus from script never draw a ring around themselves */
[tabindex="-1"]:focus { outline: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 500; }
em { font-style: italic; }
::selection { background: var(--oxblood); color: var(--cream); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--gutter); top: -4rem; z-index: 300; padding: 0.75rem 1rem; background: var(--cream); color: var(--ink); font-size: var(--fs-small); border: 1px solid var(--ink); }
.skip-link:focus { top: 1rem; }

/* ---------- type ---------- */
.t-giant, .t-mega, .t-xl, .t-l, .h2 { font-family: var(--serif); font-weight: 300; text-wrap: balance; hyphens: manual; }
.t-giant { font-size: var(--fs-giant); font-weight: 100; line-height: 0.78; letter-spacing: -0.045em; font-variant-numeric: lining-nums; }
.t-mega { font-size: var(--fs-mega); line-height: 0.86; letter-spacing: -0.035em; }
.t-xl { font-size: var(--fs-xl); line-height: 0.9; letter-spacing: -0.03em; }
.t-l { font-size: var(--fs-l); line-height: 0.98; letter-spacing: -0.02em; }
.h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.015em; }
.h3 { font-family: var(--serif-deck); font-weight: 400; font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.01em; }
.italic { font-style: italic; }
.run { font-family: var(--sans-display); font-weight: 300; font-size: var(--fs-run); line-height: 1.18; letter-spacing: -0.015em; }
@media (max-width: 1023.98px) { .run { word-spacing: 0.04em; } }
.run .q { color: var(--fg-faint); }
.line-28 { font-family: var(--sans-display); font-weight: 300; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.28; letter-spacing: -0.003em; word-spacing: 0.06em; }
.lede { font-size: var(--fs-lede); line-height: 1.5; max-width: 40ch; }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.1em; }
.muted { color: var(--fg-muted); }
.small { font-size: var(--fs-small); line-height: 1.55; }
p, dd, li, figcaption { text-wrap: pretty; }
.tnum { font-variant-numeric: tabular-nums; }
/* the site's line icons (tools/build.py ICON_PATHS): one stroke weight at every size */
.ico { width: 1.25rem; height: 1.25rem; flex: none; }
.ico * { vector-effect: non-scaling-stroke; stroke-width: 1.35px; }
.round-btn svg * { vector-effect: non-scaling-stroke; stroke-width: 1.35px; }

/* text links: underline that thickens, arrow that nudges */
.link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-family: var(--sans); font-weight: 500; font-size: 0.9375rem; line-height: 1.2;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.32em; text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.4s var(--ease), text-decoration-thickness 0.4s var(--ease); }
.link svg { width: 0.75rem; height: 0.75rem; flex: none; transition: transform 0.45s var(--ease-out); }
@media (hover: hover) { .link:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; } .link:hover svg { transform: translateX(4px); } }
.text-link { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-color: var(--line-strong); }
.text-link:hover { text-decoration-color: currentColor; }
.form-thanks .text-link { display: inline-block; padding-block: 0.625rem; margin-block: -0.625rem; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--colgap); }
.cols > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 768px) { .cols { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

.pad-m { padding-block: var(--pad-m); }
.pad-xl { padding-block: var(--pad-xl); }
.pt-xl { padding-top: var(--pad-xl); }
.pb-m { padding-bottom: var(--pad-m); }

/* ---------- buttons: pearl, lacquer, glass, hairline ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.005em; line-height: 1; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:active { transform: translateY(0) scale(0.985); transition-duration: 0.12s; }
.btn-pearl { color: var(--ink); background: linear-gradient(180deg, #faf8f2 0%, #ece7d9 100%); border-color: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(118, 88, 50, 0.18), 0 1px 1px rgba(8, 2, 2, 0.3), 0 10px 26px -12px rgba(8, 2, 2, 0.65); }
.theme-oxblood .btn-pearl, .theme-oxblood-deep .btn-pearl { color: var(--oxblood); }
.btn-ink { color: var(--cream); background: linear-gradient(180deg, #2b1311 0%, #120606 100%); border-color: #120606;
  box-shadow: inset 0 1px 0 rgba(255, 214, 170, 0.14), 0 10px 24px -14px rgba(18, 6, 6, 0.55); }
.btn-line { color: var(--fg); background: transparent; border-color: var(--line-strong); }
@media (hover: hover) { .btn-line:hover { border-color: currentColor; } }
.btn-glass { color: var(--cream); background: rgba(28, 8, 7, 0.72); border-color: rgba(244, 242, 233, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 222, 186, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 8px 22px -14px rgba(8, 2, 2, 0.8); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn-glass { background: rgba(244, 242, 233, 0.09); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
}

@media (hover: hover) {
  .btn-pearl:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(118, 88, 50, 0.18), 0 2px 3px rgba(8, 2, 2, 0.3), 0 18px 36px -14px rgba(var(--sun), 0.42); }
  .btn-ink:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 214, 170, 0.18), 0 16px 30px -14px rgba(18, 6, 6, 0.6); }
  .btn-glass:hover { background-color: rgba(244, 242, 233, 0.16); border-color: rgba(244, 242, 233, 0.44); }
  
}
.btn-block { width: 100%; }
.btn-lg { min-height: 3.5rem; padding: 0 1.9rem; font-size: 1rem; }
.btn-number { min-height: 4rem; padding: 0 2rem; font-family: var(--sans-display); font-weight: 400; font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }

/* ---------- header: full-width, transparent over the hero, frosted once scrolled ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); color: var(--cream); --focus: currentColor; transition: color 0s linear 0.12s; }
/* the type switches once the tint is mostly across, so it never fades through the same grey as the bar */
.site-header::before { content: ""; position: absolute; inset: 0 0 -50% 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 6, 6, 0.6) 0%, rgba(18, 6, 6, 0.28) 50%, rgba(18, 6, 6, 0) 100%); transition: opacity 0.5s ease; }
.site-header::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: rgba(18, 6, 6, 0.94); border-bottom: 1px solid rgba(244, 242, 233, 0.08); transition: opacity 0.3s ease, background-color 0.24s ease, border-color 0.24s ease; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* flat tints only, so dark and cream cross-fade instead of popping */
  .site-header::after { background: rgba(24, 8, 7, 0.62); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
  .site-header.on-light::after { background: rgba(244, 242, 233, 0.74); -webkit-backdrop-filter: blur(18px) saturate(130%); backdrop-filter: blur(18px) saturate(130%); }
  .site-header.on-oxblood::after { background: rgba(84, 3, 5, 0.62); }
}
.site-header.on-light { color: var(--ink); }
.site-header.on-light::before { opacity: 0; }
.site-header.on-light::after { border-bottom-color: rgba(18, 6, 6, 0.08); }
.site-header.is-scrolled::before, .site-header.is-mixed::before { opacity: 0; }
.site-header.is-scrolled::after, .site-header.is-mixed::after { opacity: 1; }
@media (prefers-reduced-transparency: reduce) {
  .site-header::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(18, 6, 6, 0.96) !important; }
  .site-header.on-light::after { background: rgba(244, 242, 233, 0.97) !important; }
}
.header-inner { height: 100%; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: center; gap: 1.5rem; }
.brand { display: inline-grid; justify-items: center; align-content: center; gap: 0.3rem; min-height: 2.75rem; color: inherit; --w: 9.5rem; }
.brand svg { width: var(--w); height: auto; }
.brand-sub { white-space: nowrap; font-family: var(--sans); font-weight: 500; font-size: max(0.625rem, calc(var(--w) / 15.5)); letter-spacing: 0.26em; margin-right: -0.26em; text-transform: uppercase; line-height: 1; }
.site-header .brand { --w: clamp(7.5rem, 6.4rem + 1.8vw, 9.25rem); transform-origin: center; transition: transform 0.6s var(--ease-out); }
.site-header.is-scrolled .brand { transform: scale(0.92); }
.nav-group { display: none; }
.nav-group ul { display: flex; gap: clamp(1.25rem, 0.4rem + 1.5vw, 2.25rem); align-items: center; }
.nav-group a { position: relative; display: inline-block; padding: 0.75rem 0; font-family: var(--sans); font-weight: 500; font-size: 0.71875rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; transition: opacity 0.35s ease; }
.nav-group a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.45rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-io); }
.nav-group a[aria-current="page"]::after { transform: scaleX(1); opacity: 0.6; }
@media (hover: hover) {
  .nav-group a:hover::after { transform: scaleX(1); transform-origin: left; opacity: 1; }
  .nav-group ul:hover a:not(:hover) { opacity: 0.55; }
}
.site-header:not(.is-scrolled):not(.on-light) .nav-group a, .site-header:not(.is-scrolled):not(.on-light) .brand { text-shadow: 0 1px 14px rgba(18, 6, 6, 0.4); }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
/* the smallest phones: the burger alone, so the bar sits inside its gutters */
@media (max-width: 349.98px) {
  .header-actions { gap: 0.75rem; }
  .menu-toggle { justify-content: flex-end; }
  .menu-toggle .label-closed, html.menu-open .menu-toggle .label-open { display: none; }
}
.header-book { min-height: 2.75rem; padding: 0 1.15rem; font-size: 0.875rem; }
.site-header .header-book { transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.24s ease, border-color 0.24s ease, color 0s linear 0.12s; }
.site-header.is-curtain, .site-header.is-curtain .header-book { transition-delay: 0s; }
.site-header.on-light .header-book { color: var(--ink); background: rgba(18, 6, 6, 0.04); border-color: rgba(18, 6, 6, 0.28); box-shadow: none; }
.site-header.is-scrolled .header-book { -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-book .long { display: none; }
@media (min-width: 420px) { .header-book .long { display: inline; } .header-book .short { display: none; } }
.menu-toggle { -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; gap: 0.7rem; min-height: 2.75rem; min-width: 2.75rem; font-family: var(--sans); font-weight: 500; font-size: 0.71875rem; letter-spacing: 0.16em; text-transform: uppercase; }
.menu-toggle .burger { position: relative; width: 1.4rem; height: 0.6rem; }
.menu-toggle .burger::before, .menu-toggle .burger::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform 0.45s var(--ease-io), top 0.45s var(--ease-io); }
.menu-toggle .burger::before { top: 0; } .menu-toggle .burger::after { top: 100%; }
.menu-open .menu-toggle .burger::before { top: 50%; transform: rotate(45deg); }
.menu-open .menu-toggle .burger::after { top: 50%; transform: rotate(-45deg); }
.menu-toggle .label-open, .menu-open .menu-toggle .label-closed { display: none; }
.menu-open .menu-toggle .label-open { display: inline; }
@media (min-width: 1200px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; justify-content: stretch; }
  .nav-group { display: block; }
  .nav-left { justify-self: start; }
  .header-actions { justify-self: end; }
  .menu-toggle { display: none; }
}
/* touch: no browser highlight boxes; every tappable answers the finger with its own quiet press state */
a, button, label, summary, input, select, textarea, .strip { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .btn:active { transform: scale(0.97); transition-duration: 0.1s; }
  .header-book:active { opacity: 0.75; }
  a:not(.btn):active, .menu-toggle:active { opacity: 0.6; transition: opacity 0s; }
  .pill input:active + span { background-color: rgba(127, 127, 127, 0.14); }
  a.frame:active img { filter: brightness(0.85); }
}
/* opening: the bar keeps its look until the curtain has covered it, then turns cream */
.menu-open .site-header { color: var(--cream); transition: color 0.15s ease 0.02s; }
.menu-open .site-header::after, .menu-open .site-header::before { opacity: 0; transition: opacity 0.15s ease 0.02s; }
.menu-open .site-header .header-book, .menu-open .site-header.on-light .header-book { color: var(--cream); background: rgba(244, 242, 233, 0.08); border-color: rgba(244, 242, 233, 0.3); transition: color 0.15s ease 0.02s, background-color 0.15s ease 0.02s, border-color 0.15s ease 0.02s; }
/* closing: the bar keeps the curtain's look until the lifting curtain has cleared it */
html.menu-closing .site-header { transition: color 0.15s ease 0.34s; }
html.menu-closing .site-header::after, html.menu-closing .site-header::before { transition: opacity 0.15s ease 0.3s; }
html.menu-closing .site-header .header-book { transition: color 0.15s ease 0.34s, background-color 0.15s ease 0.34s, border-color 0.15s ease 0.34s; }

/* ---------- menu overlay (below 1200px): an oxblood glass curtain ---------- */
.site-menu { position: fixed; inset: 0; z-index: 40; color: var(--cream); --focus: var(--cream); display: grid; grid-template-rows: var(--header-h) 1fr; padding: 0 var(--gutter);
  background: rgba(70, 4, 6, 0.97); visibility: hidden; overflow: hidden;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.5s var(--ease-curtain), visibility 0s linear 0.5s; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-menu { background: linear-gradient(180deg, rgba(74, 4, 6, 0.8) 0%, rgba(46, 4, 6, 0.9) 100%); -webkit-backdrop-filter: blur(32px) saturate(135%) brightness(0.82); backdrop-filter: blur(32px) saturate(135%) brightness(0.82); }
}
.site-menu::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 45% at 85% 0%, rgba(var(--sun), 0.14), transparent 70%); }
/* opening answers the tap at once and settles softly; closing keeps the slower in-out lift */
.menu-open .site-menu { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.6s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s; }
.menu-open { overflow: hidden; }
/* the body scrolls on its own below the header row, so links never slide under the wordmark */
.menu-body { position: relative; display: grid; align-content: space-between; gap: 2.5rem; padding-block: 1.5rem 2.5rem; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; }
.menu-body::-webkit-scrollbar { display: none; }

.site-menu nav li { border-bottom: 1px solid rgba(244, 242, 233, 0.16); }
/* the link clips its own rising label, so its focus ring is never cut off */
.site-menu nav a { display: block; overflow: hidden; padding: 0.75rem 0; font-family: var(--sans-display); font-weight: 300; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); line-height: 1.15; letter-spacing: -0.015em; word-spacing: 0.06em; }
.site-menu nav a span { display: inline-block; transition: transform 0.45s var(--ease-out); }
@media (hover: hover) { .site-menu nav a:hover span { transform: translateX(6px); } }
/* each page carries its icon, in the warm accent, sized to the label */
.site-menu nav a .ico { display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.5em; vertical-align: -0.08em; color: var(--amber); }
.site-menu nav a[aria-current="page"] span::after { content: ""; display: inline-block; width: 0.32em; height: 0.32em; margin-left: 0.5rem; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.menu-foot { display: grid; gap: 1rem; }
.menu-foot p { font-size: 0.9375rem; line-height: 1.6; color: rgba(244, 242, 233, 0.84); }
/* call, email, maps and Instagram: the same round buttons as the footer */
.contact-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* landscape phones: links and the booking foot side by side, so the whole menu fits one screen */
@media (orientation: landscape) and (max-height: 500px) {
  .menu-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-content: center; align-items: center; gap: 1rem 2.5rem; padding-block: 0.5rem 1rem; }
  .site-menu nav a { font-size: 1.25rem; padding: 0.3rem 0; }
  .menu-foot { gap: 0.75rem; }
  .menu-foot .contact-row { gap: 0.5rem; }
}
/* landscape phones with room to spare: taller menu rows */
@media (orientation: landscape) and (min-height: 360px) and (max-height: 500px) { .site-menu nav a { padding: 0.6rem 0; } }
/* short portrait phones (320 x 568): tighter rows so the whole menu fits */
@media (orientation: portrait) and (max-height: 640px) { .site-menu nav a { padding: 0.6rem 0; } .menu-body { gap: 1.5rem; padding-block: 1rem 1.5rem; } }
@media (min-width: 1200px) { .site-menu { display: none; } }

/* ---------- footer: the house's sign-off, in the home hub's language. The mark over a low sun,
   two clear actions, the pages in one quiet row, round buttons for call, email, maps and Instagram, one line of small print ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; color: var(--cream); background-color: var(--ink); --focus: var(--gold); padding-top: var(--pad-m); --fg: var(--cream); --fg-muted: rgba(244, 242, 233, 0.72); --line-strong: rgba(244, 242, 233, 0.32); }
.footer-glow { position: absolute; z-index: -1; left: 50%; top: clamp(1rem, 4vw, 3rem); width: min(70vw, 34rem); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(227, 182, 124, 0.16) 0%, rgba(142, 21, 38, 0.18) 38%, rgba(18, 6, 6, 0) 70%); }
.footer-stack { display: grid; justify-items: center; text-align: center; }
.footer-lockup { display: grid; justify-items: center; gap: 1.1rem; color: inherit; --w: clamp(10rem, 8rem + 6vw, 14rem); }
.footer-lockup .mark-99 { width: clamp(4.5rem, 3.5rem + 4vw, 7rem); height: auto; color: var(--oxblood); filter: drop-shadow(0 0 28px rgba(227, 182, 124, 0.22)); transition: transform 0.6s var(--ease-out); }
.footer-word { display: grid; justify-items: center; gap: 0.45rem; }
.footer-word svg { width: var(--w); height: auto; }
@media (hover: hover) { .footer-lockup:hover .mark-99 { transform: translateY(-3px); } }
.footer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: clamp(2.25rem, 4vw, 3rem); }
.footer-actions .btn { min-width: 12.5rem; }
@media (max-width: 479.98px) { .footer-actions { width: 100%; max-width: 20rem; } .footer-actions .btn { width: 100%; } }
.footer-nav { margin-top: clamp(2.5rem, 4.5vw, 3.5rem); width: 100%; }
/* the pages as icon tiles: soft buttons, a warm line icon over a plain label */
.footer-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 10rem)); justify-content: center; gap: 0.75rem; }
@media (min-width: 768px) { .footer-nav ul { grid-template-columns: repeat(4, minmax(0, 12rem)); } }
.footer-nav li { display: grid; }
.footer-nav a { display: grid; justify-items: center; align-content: center; gap: 0.7rem; min-height: 2.75rem; padding: 1.1rem 0.5rem; border-radius: 14px; text-align: center;
  font-family: var(--sans); font-weight: 400; font-size: 0.875rem; line-height: 1.3; letter-spacing: 0.005em; text-wrap: balance; color: rgba(244, 242, 233, 0.86);
  background: rgba(244, 242, 233, 0.035); border: 1px solid rgba(201, 165, 114, 0.16); transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; -webkit-tap-highlight-color: transparent; }
.footer-nav a .ico { width: 1.75rem; height: 1.75rem; color: var(--amber); transition: transform 0.45s var(--ease-out); }
@media (hover: hover) { .footer-nav a:hover { color: var(--cream); background: rgba(244, 242, 233, 0.07); border-color: rgba(227, 182, 124, 0.4); } .footer-nav a:hover .ico { transform: translateY(-3px); } }
.footer-nav a:active { background: rgba(244, 242, 233, 0.08); }
.footer-contact { justify-content: center; margin-top: clamp(1.5rem, 3vw, 2rem); }
.round-btn { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; color: var(--amber); border: 1px solid rgba(227, 182, 124, 0.35);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.35s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.round-btn svg { width: 1.25rem; height: 1.25rem; }
@media (hover: hover) { .round-btn:hover { color: var(--ink); background: var(--cream); border-color: var(--cream); transform: translateY(-2px); } }
.round-btn:active { transform: scale(0.92); }
.footer-bottom { width: 100%; margin-top: clamp(3rem, 6vw, 4.5rem); padding-block: 1.5rem calc(1.75rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(201, 165, 114, 0.14);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244, 242, 233, 0.6); }

.footer-bottom a { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; text-decoration: underline; text-underline-offset: 0.3em; text-decoration-color: rgba(244, 242, 233, 0.3); transition: color 0.3s ease, text-decoration-color 0.3s ease; }
@media (hover: hover) { .footer-bottom a:hover { color: var(--cream); text-decoration-color: currentColor; } }
.footer-bottom a { padding-inline: 0.4rem; margin-inline: -0.4rem; }
.footer-bottom a:focus-visible { outline-offset: -2px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.5rem; container-type: inline-size; }
.form-grid { display: grid; gap: 1.5rem var(--colgap); }
@container (min-width: 520px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: 1 / -1; } }
/* narrow forms pair only the short fields (names, date and guests), so the form is half as long */
@container (max-width: 519.98px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid > :not(.half) { grid-column: 1 / -1; } }
@supports not (container-type: inline-size) { @media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: span 2; } } }
.field { display: grid; gap: 0.45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-family: var(--sans); font-weight: 400; font-size: 0.9375rem; color: var(--fg-muted); padding: 0; }
.field .opt { color: var(--fg-faint); margin-left: 0.3rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; font: inherit; font-size: max(1rem, var(--fs-body)); color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--label, var(--bronze)); border-radius: 0; padding: 0.6rem 0; transition: border-color 0.3s ease, box-shadow 0.3s ease; appearance: none; -webkit-appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.field select option { color: var(--ink); background: var(--cream); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--fg); box-shadow: 0 1px 0 0 var(--fg); }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field [aria-invalid="true"] { border-bottom-color: #b3261e; }
.field .error { font-size: 0.8125rem; color: #8a2e1c; display: none; }
.field .error.is-on { display: block; }
.check { display: flex; gap: 0.85rem; align-items: flex-start; font-size: var(--fs-small); color: var(--fg-muted); line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; appearance: none; -webkit-appearance: none; border: 1px solid var(--label, var(--bronze)); border-radius: 2px; display: grid; place-content: center; background: transparent; cursor: pointer; }
.check input::before { content: ""; width: 0.6rem; height: 0.6rem; background: var(--fg); transform: scale(0); transition: transform 0.2s var(--ease); }
.check input:checked::before { transform: scale(1); }
.check input[aria-invalid="true"] { border-color: #b3261e; }
/* the privacy link inside the consent line: a full-height target that adds no line height */
.check .text-link { display: inline-block; padding-block: 0.55rem; margin-block: -0.55rem; }
.check { flex-wrap: wrap; row-gap: 0.25rem; }
/* the line sits beside its box at every width; an error wraps underneath, aligned with it */
.check label { flex: 1; }
.check .error { display: none; font-size: 0.8125rem; color: #8a2e1c; flex-basis: 100%; margin-left: calc(1.25rem + 0.85rem); }
.check .error.is-on { display: block; }
.form-errors { display: none; padding: 1rem 1.25rem; border: 1px solid var(--line-strong); font-size: var(--fs-small); }
.form-errors.is-on { display: block; }
.form-errors ul { display: grid; gap: 0.25rem; margin-top: 0.5rem; }
.form-errors a { text-decoration: underline; text-underline-offset: 0.2em; }
.form-status { font-size: var(--fs-small); color: var(--fg-muted); }
.form-thanks { padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.form-thanks[hidden] { display: none; }
.form.is-sent .form-grid, .form.is-sent .form-actions, .form.is-sent .check, .form.is-sent .form-errors { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.45rem; }
.pill { position: relative; scroll-margin-top: calc(var(--header-h) + 2rem); }
.pill input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.875rem; font-weight: 500; color: var(--fg); transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.pill input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- reveal base: content is never hidden without JS ---------- */
html.motion [data-reveal] { opacity: 0; transition: opacity 0.9s var(--ease), transform 1s var(--ease-out); }
html.motion [data-reveal="up"] { transform: translate3d(0, 10px, 0); }
html.motion [data-reveal].is-in { opacity: 1; transform: none; }
html.motion [data-reveal][data-delay="1"] { transition-delay: 0.1s; }
html.motion [data-reveal][data-delay="2"] { transition-delay: 0.2s; }
html.motion [data-reveal][data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-contrast: more) {
  :root, .theme-light, .theme-light-2 { --fg-muted: var(--ink); --fg-faint: #4a3a36; --line: rgba(18,6,6,.4); }
  .theme-dark, .theme-espresso, .theme-oxblood, .theme-oxblood-deep { --fg-muted: var(--cream); --fg-faint: rgba(244,242,233,.85); --line: rgba(244,242,233,.4); }
}

/* ---------- forced colours: keep the checked state of the custom controls ---------- */
@media (forced-colors: active) {
  .check input::before { forced-color-adjust: none; background: CanvasText; }
  .pill input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; transition: none; }
  .nav-group a[aria-current="page"]::after { opacity: 1; forced-color-adjust: none; background: CanvasText; box-shadow: 0 0 0 1px Canvas; }
  .anchor-row a[aria-current] { text-decoration: underline; text-underline-offset: 0.3em; }
}

/* ---------- reduced transparency: every glass surface turns solid ---------- */
@media (prefers-reduced-transparency: reduce) {
  .btn-glass { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(28, 8, 7, 0.94) !important; }
  .site-menu { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #3a0405 !important; }
  /* over cream the header button keeps ink type, so it needs a solid cream pill rather than the dark one */
  html:not(.menu-open) .site-header.on-light .header-book { background: rgba(244, 242, 233, 0.97) !important; }
}
