/* ==========================================================================
   Paradise Palms & Sculpture Garden — base.css
   Design tokens + reset, extracted from the Figma design system (v3).
   Fonts: Playfair Display (headings/display), Red Hat Display (body/UI), Roboto (M3 text)
   ========================================================================== */

:root {
  /* Colors */
  --teal: #064a58;        /* text/primary, background/page-hover */
  --deep: #04333d;        /* background/deep, lake-900 — header, footer, bands */
  --stone: #e5e6d2;       /* background/page, text on dark */
  --stone-50: #f2f2e7;    /* card surfaces */
  --tint: #dce3c6;        /* background/tint, zen-100 */
  --zen: #c1d0a7;         /* accent/primary */
  --zen-600: #7e9161;
  --clay: #b4592f;        /* primary CTA fill */
  --ink: #42525b;         /* text/secondary */
  --slate: #6d7f89;

  /* v4 additions (Figma "Ready for Dev", 2026-09) --------------------------
     Ornament is for STROKES AND ORNAMENTS ONLY — never text, never content
     fills. That restriction is the designer's, stated in the Kids Town notes. */
  --ornament: #c9a45c;
  --ornament-600: #a98640;
  /* The clay hover was hardcoded as #9d4c27 below; the design names it and
     gives it a slightly different value. The token is authoritative. */
  --clay-600: #9a4a26;
  --sky: #bfd6d9;
  /* "Stone 200" in the design — the tint-alt band on Visitor Guidelines. */
  --stone-200: #d4d6bc;

  /* Content column. Anything that does not bleed full width caps here. */
  --content-max: 1200px;
  --zen-40: rgba(193, 208, 167, 0.4);   /* legacy translucent fills (inner pages) */
  --slate-40: rgba(109, 127, 137, 0.4);
  --stone-20: rgba(229, 230, 210, 0.2);

  /* Fonts */
  --font-headings: "Playfair Display", Georgia, serif;
  --font-body: "Red Hat Display", "Segoe UI", sans-serif;
  --font-m3: "Roboto", Arial, sans-serif;

  /* Type scale — size / line-height */
  --fs-display: 60px;   --lh-display: 62px;
  --fs-heading-1: 60px; --lh-heading-1: 62px;
  --fs-heading-2: 34px; --lh-heading-2: 40px;
  --fs-heading-3: 28px; --lh-heading-3: 34px;
  --fs-heading-4: 22px; --lh-heading-4: 30px;
  --fs-large: 18px;     --lh-large: 28px;
  --fs-base: 16px;      --lh-base: 26px;
  --fs-small: 14px;     --lh-small: 20px;
  --fs-caption: 14px;   --lh-caption: 16px;
  /* legacy scale (inner pages not yet migrated) */
  --fs-jumbo: 96px;
  --fs-h1: 40px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-body: 16px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;
  --page-margin: 64px;
  --section-pad: 96px;
  --section-pad-sub: 48px;
  /* legacy spacing */
  --sp-150: 6px;
  --sp-200: 10px;
  --sp-400: 16px;
  --sp-600: 24px;
  --sp-800: 32px;
  --sp-1000: 40px;
  --section-pad-sm: 48px;
  --pad-xs: 8px;
  --pad-sm: 16px;
  --pad-md: 24px;

  --hairline: 1px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius: 3px;
  --shadow-card: 0 8px 24px rgba(6, 74, 88, 0.09), 0 1px 2px rgba(6, 74, 88, 0.1);
  --header-h: 100px;
}

@media (max-width: 960px) {
  :root {
    --fs-display: 24px;   --lh-display: 30px;
    --fs-heading-1: 32px; --lh-heading-1: 38px;
    --fs-heading-2: 28px; --lh-heading-2: 34px;
    --fs-heading-3: 24px; --lh-heading-3: 30px;
    --fs-caption: 12px;
    --page-margin: 16px;
    --section-pad: 48px;
    --section-pad-sub: 32px;
    --header-h: 80px;
  }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--teal);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
}
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
svg.icon { width: 24px; height: 24px; flex: none; fill: currentColor; }
svg.icon[fill="none"] { fill: none; }

/* Typography */
.t-display   { font-family: var(--font-headings); font-weight: 700; font-size: var(--fs-display);   line-height: var(--lh-display); }
.t-h1        { font-family: var(--font-headings); font-weight: 700; font-size: var(--fs-heading-1); line-height: var(--lh-heading-1); }
.t-h2        { font-family: var(--font-headings); font-weight: 400; font-size: var(--fs-heading-2); line-height: var(--lh-heading-2); }
.t-h3        { font-family: var(--font-headings); font-weight: 400; font-size: var(--fs-heading-3); line-height: var(--lh-heading-3); }
.t-h4        { font-family: var(--font-headings); font-weight: 400; font-size: var(--fs-heading-4); line-height: var(--lh-heading-4); }
.t-lead      { font-weight: 500; font-size: var(--fs-large); line-height: var(--lh-large); }
.t-small     { font-size: var(--fs-small); line-height: var(--lh-small); }
.t-italic    { font-style: italic; opacity: 0.75; }
.eyebrow     { font-weight: 500; font-size: var(--fs-caption); line-height: var(--lh-caption); letter-spacing: 0.18em; text-transform: uppercase; }
/* legacy helpers */
.h-jumbo { font-family: var(--font-headings); font-weight: 700; font-size: clamp(42px, 6.7vw, var(--fs-jumbo)); line-height: normal; }
.h1 { font-family: var(--font-headings); font-weight: 400; font-size: var(--fs-h1); line-height: normal; }
.h2 { font-family: var(--font-headings); font-weight: 400; font-size: var(--fs-h2); line-height: normal; }
.h3 { font-family: var(--font-headings); font-weight: 400; font-size: var(--fs-h3); line-height: normal; }

/* Buttons — hairline outline in the current text color by default */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: var(--hairline) solid currentColor;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn--filled { background: var(--clay); border-color: var(--clay); color: var(--stone); }
.btn--filled:hover { background: var(--clay-600); border-color: var(--clay-600); }
.btn--solid { background: var(--teal); border-color: var(--teal); color: var(--stone); }
.btn--solid:hover { background: var(--deep); border-color: var(--deep); }
.btn--stone { background: var(--stone); border-color: var(--stone); color: var(--teal); }
.btn--stone:hover { background: var(--stone-50); border-color: var(--stone-50); }
/* legacy modifiers (inner pages) */
.btn--display { font-family: var(--font-headings); font-weight: 600; font-size: var(--fs-large); letter-spacing: 1.8px; }
.btn--light { border-color: var(--stone); color: var(--stone); }
.btn--hero { background: rgba(229, 230, 210, 0.18); }

/* Text link with trailing arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: var(--hairline) solid currentColor;
  font-weight: 500;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.link-arrow .icon { width: 16px; height: 16px; }
.link-arrow:hover { opacity: 0.75; }
