/* ==========================================================================
   NY.Limo — base.css
   Design tokens, reset, typography, base elements.
   No inline styles anywhere on this site: everything lives here or in the
   sibling layout.css / components.css / pages.css files.

   Shares nj.limo's dark-luxury system and type pairing for design-system
   efficiency (see NY-Limo-Rebuild-Instructions.md §2), but swaps the accent
   from nj.limo's brushed gold to a ruby/marquee-red — leaning ny.limo's
   visual voice toward NYC nightlife/marquee-light energy rather than NJ's
   corporate/suburban gold. Token *names* are brand-neutral (--c-accent-*)
   on purpose so this file is the only place a future palette swap needs to
   happen.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted — no third-party font request, better LCP + privacy)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-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: "Playfair Display";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/playfair-display-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;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Ink — the dark luxury base (same as nj.limo, shared system) */
  --c-black: #08080a;
  --c-ink: #0d0e11;
  --c-ink-2: #131519;
  --c-ink-3: #1b1e24;
  --c-ink-4: #242832;

  /* Ruby — ny.limo's own marquee-red accent (nj.limo uses gold) */
  --c-accent: #b3243f;
  --c-accent-bright: #e35472;
  --c-accent-deep: #7a1a2c;
  --c-accent-wash: rgba(179, 36, 63, 0.14);
  --c-accent-line: rgba(179, 36, 63, 0.36);

  /* Neutrals on dark */
  --c-white: #ffffff;
  --c-text: #eceef2;
  --c-text-soft: #b9bec8;
  --c-text-mute: #878e9c;
  --c-line: rgba(255, 255, 255, 0.1);
  --c-line-strong: rgba(255, 255, 255, 0.18);

  /* Light surfaces (used sparingly for long-form reading blocks) */
  --c-paper: #f6f5f2;
  --c-paper-2: #edebe6;
  --c-paper-ink: #16181c;
  --c-paper-soft: #4d525c;
  --c-paper-line: rgba(13, 14, 17, 0.12);

  --c-success: #6fbf8b;
  --c-danger: #e0715f;

  /* Type */
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --f-display: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman",
    serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.25rem, 0.6vw + 1.1rem, 1.4375rem);
  --fs-h4: clamp(1.1875rem, 0.5vw + 1.05rem, 1.375rem);
  --fs-h3: clamp(1.375rem, 1vw + 1.1rem, 1.75rem);
  --fs-h2: clamp(1.75rem, 2vw + 1.15rem, 2.625rem);
  --fs-h1: clamp(2.125rem, 3.4vw + 1.15rem, 3.75rem);
  --fs-hero: clamp(2.5rem, 4.6vw + 1.1rem, 4.75rem);

  --lh-tight: 1.1;
  --lh-snug: 1.28;
  --lh-body: 1.68;

  --ls-eyebrow: 0.16em;
  --ls-tight: -0.022em;

  /* Space — 4px base scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 2.75rem;
  --s-8: 3.5rem;
  --s-9: 4.5rem;
  --s-10: 6rem;
  --s-11: 8rem;

  /* Section rhythm scales down on small screens */
  --section-y: clamp(3.25rem, 6vw, 6.5rem);
  --section-y-lg: clamp(4rem, 8vw, 8.5rem);

  /* Layout */
  --wrap: 1240px;
  --wrap-wide: 1440px;
  --wrap-text: 74ch;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);
  --header-h: 76px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --sh-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --sh-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --sh-accent: 0 12px 34px rgba(179, 36, 63, 0.28);

  /* Motion */
  --t-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 520ms cubic-bezier(0.16, 1, 0.3, 1);

  --z-header: 100;
  --z-drawer: 200;
  --z-modal: 300;
}

/* --------------------------------------------------------------------------
   3. Reset
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  margin: 0;
  background-color: var(--c-ink);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--s-4);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}

h1 {
  font-family: var(--f-display);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: var(--lh-tight);
}

h2 {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-tight);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
}

h5,
h6 {
  font-size: var(--fs-md);
  font-weight: 600;
}

p {
  margin: 0 0 var(--s-4);
  text-wrap: pretty;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

a {
  color: var(--c-accent-bright);
  text-decoration-color: var(--c-accent-line);
  text-underline-offset: 0.18em;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}

a:hover {
  color: var(--c-white);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--c-accent-bright);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

ul,
ol {
  margin: 0 0 var(--s-4);
  padding-left: 1.25em;
}

li {
  margin-bottom: var(--s-2);
}

li:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: 600;
  color: var(--c-white);
}

small {
  font-size: var(--fs-sm);
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

hr {
  height: 1px;
  margin: var(--s-7) 0;
  border: 0;
  background: var(--c-line);
}

blockquote {
  margin: 0;
}

address {
  font-style: normal;
}

table {
  width: 100%;
  border-collapse: collapse;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

::selection {
  background: var(--c-accent);
  color: var(--c-white);
}

/* --------------------------------------------------------------------------
   4. Small shared helpers
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: var(--s-4);
  z-index: calc(var(--z-modal) + 10);
  padding: var(--s-3) var(--s-5);
  background: var(--c-accent);
  color: var(--c-white);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transform: translateY(-110%);
  transition: transform var(--t-fast);
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--c-white);
}

.eyebrow {
  display: block;
  margin-bottom: var(--s-3);
  color: var(--c-accent-bright);
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.lede {
  max-width: 62ch;
  color: var(--c-text-soft);
  font-size: var(--fs-xl);
  line-height: 1.55;
}

.text-mute {
  color: var(--c-text-mute);
}

.accent {
  color: var(--c-accent-bright);
}

.nowrap {
  white-space: nowrap;
}

.mt-7 {
  margin-top: var(--s-7);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .cta-band,
  .booking-panel {
    display: none !important;
  }
}
