/* 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; }

/* the card is a flex item of the Set Menus track: Webflow mounts it into a
   [data-root] div, which steps aside so the frame itself is the item */
[data-root] { display: contents; }

/* one package: the frame, its photo and text (sizes come from the
   Set Menus pin, through --pin-h) */
.slab {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  aspect-ratio: 1040 / 660;
  padding: 24px;
  overflow: hidden;
  color: var(--text-on-dark);
  background: var(--slightly-toasted-700);
  isolation: isolate;
}

/* 125% of the frame and centred, so there is 12.5% of spare image either
   side for set-menus.ts to counter-shift */
.slab__media {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12.5%;
  width: 125%;
  z-index: -2;
  background: var(--slab-img) center / cover no-repeat;
  will-change: transform;
}
.slab::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.75) 100%);
  z-index: -1;
}

/* reveals.ts tweens --reveal-scale on entrance; no zoom on hover */
.slab__media { scale: var(--reveal-scale, 1); }

.slab__meta {
  display: flex;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.22;
  text-transform: uppercase;
}

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

@media (min-width: 901px) {
  .slab { height: var(--pin-h); }
}

@media (max-width: 900px) {
  .slab {
    flex: 0 0 100vw;
    aspect-ratio: 430 / 541;
    padding: 26.5px;
    scroll-snap-align: start;
  }
  .slab__meta  { gap: 22px; font-size: 17.6px; }
  .slab__title { font-size: 42px; line-height: 1.1; letter-spacing: 0; }
}

/* with a Link set the frame is an <a>: no underline, and it doesn't dim on
   hover the way plain links do (base.css); the photo lifts a little instead */
/* a linked card keeps the cream text of .slab */
a.slab { text-decoration: none; cursor: pointer; }
a.slab:hover, a.slab:focus-visible { opacity: 1; }
a.slab:focus-visible { outline: 2px solid var(--manhattan-base); outline-offset: -4px; }
a.slab .slab__media { transition: filter 400ms ease; }
a.slab:hover .slab__media { filter: brightness(1.08); }


