/* Shared tokens, type styles, base, buttons and layout helpers.

   Every component imports this file, so it is injected into each
   component's shadow root (Webflow renders code components in Shadow DOM:
   page styles don't reach in, and these don't leak out). Tokens are set on
   :host (the component element) as well as :root so they resolve inside a
   shadow root and in the light-DOM preview alike. Document-level rules
   (html, body, scrollbars, Lenis) live in webflow/site-head.html. */

:host,
:host {
  --manhattan-base: #f0e7d5;
  --manhattan-200: #dfd6c3;
  --hudsons-blue-base: #00677f;
  --hudsons-blue-600: #005468;
  --hot-sauce-base: #fe5000;
  --char-grilled-base: #181819;
  --lady-liberty-base: #9adbe8;
  --slightly-toasted-base: #4b3626;
  --slightly-toasted-700: #302319;
  --location-idle: #886a54;
  --dot-idle: #ccb78f;

  --background-primary: var(--manhattan-base);
  --background-secondary: var(--hudsons-blue-base);
  --background-dark: var(--char-grilled-base);
  --surface-card: var(--manhattan-base);

  --text-primary: var(--char-grilled-base);
  --text-secondary: var(--slightly-toasted-base);
  --text-accent: var(--hot-sauce-base);
  --text-brand: var(--hudsons-blue-base);
  --text-on-dark: var(--manhattan-base);

  --brand-primary: var(--hudsons-blue-base);
  --brand-accent: var(--hot-sauce-base);
  --brand-light: var(--lady-liberty-base);

  --font-display: "gamay", "Arial Black", sans-serif;
  --font-body: "gamay", system-ui, sans-serif;
  --font-script: "adobe-handwriting-ernie", "Adobe Handwriting", cursive;

  /* Fluid scale: t is 0 at 430px wide, 1 at 1512px */
  --t: (100vw - 430px) / 1082;

  --fs-heading:    clamp(48px,   calc(48px   + 2    * var(--t)), 50px);
  --fs-accent:     clamp(50px,   calc(50px   + 10   * var(--t)), 60px);
  --fs-stat:       clamp(42px,   calc(42px   + 7.14 * var(--t)), 49.14px);
  --fs-stat-sm:    clamp(30px,   calc(30px   + 6.14 * var(--t)), 36.14px);
  --fs-stat-label: clamp(14px,   calc(14px   + 2    * var(--t)), 16px);
  --fs-body:       clamp(16px,   calc(17.6px - 1.6  * var(--t)), 17.6px);
  --fs-kicker:     clamp(15.4px, calc(15.4px + 0.6  * var(--t)), 16px);
  --fs-button:     clamp(14px,   calc(15.4px - 1.4  * var(--t)), 15.4px);
  --fs-caption:    12px;
  --fs-body-sm:    16px;

  --size-label-small: 13px;

  --container: 1512px;
  --content: 1352px;
  --gutter: clamp(16px, calc(16px + 56 * var(--t)), 80px);
  /* 10% tighter than the design (client request, 2026-11-30) */
  --section-pad: clamp(72px, calc(72px + 54 * var(--t)), 126px);
  --section-pad-lg: clamp(90px, calc(72px + 72 * var(--t)), 180px);

  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-power3: cubic-bezier(0.165, 0.84, 0.44, 1);   /* GSAP power3.out */
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);       /* power4.inOut */
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);            /* expo.in */
}

/* the component element itself: a custom element is inline by default */
:host {
  display: block;
  color: var(--text-secondary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.t-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-heading);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.t-accent {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  font-size: var(--fs-accent);
  line-height: 1;
}

.t-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.22;
}

.t-kicker {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-kicker);
  line-height: 1.22;
  text-transform: uppercase;
}

.t-nav {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-kicker);
  line-height: 1;
  text-transform: uppercase;
}

.t-button {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-button);
  line-height: 1.22;
  text-transform: uppercase;
}

.t-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--size-label-small);
  line-height: 1;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.t-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--text-brand);
  margin-bottom: 16px;
}
@media (max-width: 900px) {
  .t-eyebrow { margin-bottom: 17.6px; }
}

*, *::before, *::after { box-sizing: border-box; }

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, figure { margin: 0; }

/* read by assistive technology, drawn nowhere */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* a rich-text prop arrives as a wrapper with the paragraphs inside */
.rich-text > * + * { margin-top: 1em; }
.rich-text a { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }

/* The page layer. On desktop the footer is fixed at z-index 0 under the
   page (Footer.css) and the page slides up off it, so every section sits
   on this layer above it, as .page did on the Astro site. The Site Header
   stays off it: the bar, the mobile menu and the transition panel keep
   their own z-indexes in the page's stacking context, as does the Hero's
   preloader, which is why the Hero puts the class on its section, not on
   its root. */
.page-layer { position: relative; z-index: 1; }

/* the brown logo artwork, inline and coloured by `color` */
.logo {
  display: block;
  width: clamp(156px, calc(156px + 35 * var(--t)), 191px);
  aspect-ratio: 191 / 46;
  overflow: hidden;
  color: var(--manhattan-base);
}
.logo svg { display: block; width: 100%; height: 100%; }

/* Buttons: two stacked faces, each a panel of colour with the label in
   it; on hover the top one sinks while the second, in the hover colour,
   rises over it. --face-bg is the resting colour, --swap-bg / --swap-fg
   the hover one. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  min-width: 150px;
  white-space: nowrap;
  transition: border-color 200ms ease;
}

.btn__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border: var(--face-border, 0 solid transparent);
  background: var(--face-bg, transparent);
  transition: transform 650ms var(--ease-expo);
}
.btn__txt { display: block; }
.btn__arrow {
  display: inline-block;
  width: 0.563em;
  height: 0.563em;
  margin-left: 0.284em;
  vertical-align: baseline;
  translate: 0 0.012em;
  fill: currentColor;
}
.btn__label--swap {
  position: absolute;
  inset: 0;
  background: var(--swap-bg, var(--background-dark));
  /* the hover face is one colour, border included: never a brown fill
     inside a white or blue outline */
  border-color: var(--swap-bg, var(--background-dark));
  color: var(--swap-fg, var(--text-on-dark));
  transform: translateY(100%);
  transition: transform 700ms var(--ease-expo);
}
.btn:hover .btn__label,
.btn:focus-visible .btn__label { transform: translateY(50%); }
.btn:hover .btn__label--swap,
.btn:focus-visible .btn__label--swap { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .btn__label, .btn__label--swap { transition: none; }
}

/* blue; fills orange on hover */
.btn--solid {
  --face-bg: var(--brand-primary);
  --swap-bg: var(--brand-accent);
  color: var(--text-on-dark);
}
.btn--outline {
  --face-border: 1.5px solid var(--background-dark);
  --swap-bg: var(--background-dark);
  color: var(--text-primary);
}
/* blue border on a light ground; fills brown on hover */
.btn--outline-blue {
  --face-border: 1.5px solid var(--brand-primary);
  --swap-bg: var(--slightly-toasted-base);
  --swap-fg: var(--text-on-dark);
  color: var(--text-brand);
}
/* white border on a dark ground; fills brown on hover */
.btn--outline-light {
  --face-border: 1.5px solid var(--manhattan-base);
  --swap-bg: var(--slightly-toasted-base);
  --swap-fg: var(--text-on-dark);
  color: var(--text-on-dark);
}
.btn--accent {
  --face-bg: var(--brand-accent);
  --swap-bg: var(--char-grilled-base);
  color: var(--text-on-dark);
}
.btn--brown {
  --face-bg: var(--slightly-toasted-base);
  --swap-bg: var(--slightly-toasted-700);
  color: var(--text-on-dark);
}
.btn--cream {
  --face-bg: var(--manhattan-base);
  --swap-bg: var(--brand-primary);
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .btn__label { padding: 15.4px 22px; }
}

/* Links only dim on hover; buttons keep their own moves */
a:not(.btn) { transition: opacity 250ms ease; }
a:not(.btn):hover,
a:not(.btn):focus-visible { opacity: 0.7; }

/* faded out under the hero intro (--hud-rest from the head snippet): on the
   section itself, the host is display: contents and opacity does nothing there */
.days { opacity: var(--hud-rest, 1); }

.days { background: var(--background-primary); padding-bottom: var(--section-pad-lg); }

.days__head  { padding-top: var(--section-pad-lg); }
.days__heading { color: var(--text-secondary); }
.days__heading { position: relative; }
/* the handwritten word sits at the far right of the heading row, flush
   with the container's edge and its bottom on the heading's bottom, the
   way the design has it. It stays in the heading, out of flow: SplitText
   keeps it in the last line (a node to the right of the previous word
   never starts a new one), the line's transform carries it up inside
   the mask, and script-ink inks it as the heading lands. ScriptWord.css's
   baseline hang is for a word in the text run, so its margins go */
@media (min-width: 901px) {
  .days__heading .script.days__accent { position: absolute; right: 0; bottom: 0; margin: 0; }
}

.days__grid {
  display: grid;
  grid-template-columns: repeat(var(--days, 4), 1fr);
  gap: 2px;
  margin-top: 60px;
}
/* the cards are Special components in the slot: Webflow wraps them in one
   div, which steps aside so each card is a grid item */
.days__grid ::slotted(div[slot]) { display: contents; }
.slot-hint { grid-column: 1 / -1; padding: 40px 0; opacity: 0.6; }

@media (max-width: 900px) {
  .days__head { padding-top: 100px; }
  .days__grid { grid-template-columns: repeat(2, 1fr); margin-top: 35px; }
}
@media (max-width: 560px) {
  .days__grid { grid-template-columns: 1fr; gap: 2.2px; }
}

/* the last word of a heading and its handwritten word stay together (Lines in Copy.tsx) */
.script-tail { white-space: nowrap; }

.script {
  display: inline-block;
  width: var(--w, auto);
  height: auto;
  overflow: visible;
  vertical-align: baseline;
}
/* with JS the word waits for script-ink.ts, so it never shows written and
   then restarts (--hud-script is set on <html> by the head snippet) */
.script:not(.is-inked):not(.is-plain) { visibility: var(--hud-script, visible); }
@media (prefers-reduced-motion: reduce) { .script { visibility: visible; } }

/* in a heading the word sits on the text's baseline with its descenders
   hanging under it, and its box is folded away so a tall word (the p of
   'specials') never pushes the lines apart. --h is the drawn height from
   the viewBox, --hang the share of it below the word's own baseline */
.t-heading .script {
  --below: calc(var(--h, 0px) * var(--hang, 0));
  margin-top: calc(var(--below) - var(--h, 0px));
  margin-bottom: calc(-1 * var(--below));
}

.script--no-shortcuts { --w: clamp(262px, calc(262px + 52 * var(--t)), 314px); --h: calc(var(--w) * 45 / 322); --hang: 0.02; }
/* 'menu' has no ascenders or descenders, so its box is tight and reads
   larger otherwise */
.script--menu         { --w: clamp(143px, calc(143px + 28 * var(--t)), 171px); --h: calc(var(--w) * 27 / 140); --hang: 0.02; }
.script--specials     { --w: clamp(180px, calc(180px + 35 * var(--t)), 215px); --h: calc(var(--w) * 77 / 225); --hang: 0.4; }
.script--set-menus    { --w: clamp(196px, calc(196px + 39 * var(--t)), 235px); --h: calc(var(--w) * 38 / 266); --hang: 0.04; }
/* 'follow' is 196px wide beside the 50px heading in the design, its tail 40px under the baseline */
.script--follow       { --w: clamp(188px, calc(188px + 8 * var(--t)), 196px); --h: calc(var(--w) * 86 / 198); --hang: 0.47; }
.script--coming-soon  { --w: clamp(150px, calc(150px + 65 * var(--t)), 215px); --h: calc(var(--w) * 49 / 215); --hang: 0.47; transform: translateY(14px); }
.script--application-form { --w: min(100%, clamp(300px, calc(377px + 78 * var(--t)), 455px)); --h: calc(var(--w) * 86 / 453); --hang: 0.45; }

/* on a phone the word takes a line of its own under the heading, at the
   right. It stays an inline-level box, pushed the full width over: as a
   block inside the inline tail span (Lines in Copy.tsx) iOS Safari put
   its top margin above the whole line instead of above the word, and
   the heading's lines drifted apart */
@media (max-width: 900px) {
  .t-heading .script-tail { white-space: normal; }
  .t-heading .script {
    display: inline-block;
    vertical-align: top;   /* the gap above the word is the margin, not the line's strut */
    margin: 17.6px 0 0 calc(100% - var(--w, 0px));
  }
}


