/* =============================================================
   Berry Hill — Colors & Type
   Tokens for the Berry Hill brand. Sourced from the Berry Hill
   Style Guide (Mar 23). All hex values verified from the guide.
   ============================================================= */

/* -------------------------------------------------------------
   Fonts
   ------------------------------------------------------------- */
@font-face {
  font-family: "True North";
  src: url("./fonts/TrueNorth-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("./fonts/LibreBaskerville-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("./fonts/LibreBaskerville-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("./fonts/LibreBaskerville-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* TheSteadyHand @font-face declarations removed: --font-script token unused in style.css.
   Re-add the @font-face blocks (Regular + Bold OTF) if/when script type is reintroduced. */

:root {
  /* ---------- Brand palette (from Style Guide) ---------- */
  /* Beige — primary canvas / paper */
  --bh-beige:        #ebe9df;
  /* Warm browns — primary brand voice */
  --bh-clay:         #aa7156;   /* Homestead orange — warm terracotta */
  --bh-clay-deep:    #765f4f;   /* Deep brown — text on light */
  /* Earthy neutrals — secondary surfaces */
  --bh-olive:        #817b68;   /* Farm Camp green / olive grey */
  --bh-stone:        #808281;   /* Shed Suites grey — neutral steel */
  --bh-sand:         #b2977c;   /* Warm sand — soft accent */
  --bh-mustard:      #beaa6d;   /* Dry-grass mustard — sunlit accent */
  --bh-river:        #6797b8;   /* River blue — the only cool tone */

  /* Black & white extremes (for negative/positive marks) */
  --bh-ink:          #1f1d1a;   /* Near-black warm */
  --bh-paper:        #f7f5ee;   /* Slightly warmer than beige */

  /* ---------- Semantic colors ---------- */
  /* Surfaces */
  --bg-page:         var(--bh-beige);
  --bg-elevated:     var(--bh-paper);
  --bg-inverse:      var(--bh-clay-deep);
  --bg-muted:        #dfdcce;   /* Beige stepped down for cards/dividers */

  /* Foreground / text
     Default text uses the warm near-black ink for max legibility on
     beige (contrast ~14:1). Clay-deep is reserved for headings and
     decorative copy where a softer brown register suits the brand. */
  --fg-1:            var(--bh-ink);          /* Default body text — highest legibility */
  --fg-2:            #3a322c;                /* Secondary body text */
  --fg-3:            #6b5f53;                /* Tertiary / metadata */
  --fg-heading:      var(--bh-clay-deep);    /* Decorative headings (italic display, eyebrows) */
  --fg-on-dark:      var(--bh-beige);        /* Body on dark backgrounds */
  --fg-on-dark-2:    #d8d2c2;                /* Secondary on dark */

  /* Accents (used sparingly — color is rare in this brand) */
  --accent-clay:     var(--bh-clay);
  --accent-river:    var(--bh-river);
  --accent-mustard:  var(--bh-mustard);

  /* Lines */
  --line-1:          rgba(118, 95, 79, 0.18);   /* hairline on beige */
  --line-2:          rgba(118, 95, 79, 0.32);   /* stronger rule */
  --line-on-dark:    rgba(235, 233, 223, 0.20);

  /* ---------- Type families ---------- */
  --font-display:    "True North", "Caveat Brush", "Bebas Neue", system-ui, sans-serif;
  --font-serif:      "Libre Baskerville", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-script:     "The Steady Hand", "Caveat", "Bradley Hand", cursive;
  --font-sans:       "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* ---------- Type scale ----------
     Display = True North (uppercase, hand-drawn sans, signage feel)
     Serif   = Libre Baskerville (running copy, elegant)
     Italics of Libre Baskerville do a lot of heavy lifting on
     section titles ("Welcome to", "Berry Hill", "26 Bookings"). */
  --text-xs:         12px;
  --text-sm:         14px;
  --text-base:       16px;
  --text-md:         18px;
  --text-lg:         22px;
  --text-xl:         28px;
  --text-2xl:        36px;
  --text-3xl:        48px;
  --text-4xl:        64px;
  --text-5xl:        88px;
  --text-6xl:        120px;

  /* Tracking — True North wants generous tracking */
  --tracking-tight:  -0.01em;
  --tracking-normal: 0;
  --tracking-wide:   0.06em;
  --tracking-wider:  0.12em;     /* True North headline default */
  --tracking-widest: 0.22em;     /* Small True North captions */

  /* Leading */
  --leading-tight:   1.05;
  --leading-snug:    1.2;
  --leading-normal:  1.55;       /* serif body */
  --leading-relaxed: 1.7;

  /* ---------- Spacing (used by layouts) ---------- */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;

  /* ---------- Radii ----------
     Berry Hill is mostly square / right-angled. Cards are
     usually crisp rectangles. A small radius is allowed for
     UI controls only. */
  --radius-0:  0;
  --radius-1:  2px;
  --radius-2:  4px;
  --radius-pill: 999px;

  /* ---------- Shadows ----------
     Very restrained. Imagery and texture do the heavy lifting,
     not drop shadows. */
  --shadow-1: 0 1px 2px rgba(31, 29, 26, 0.06);
  --shadow-2: 0 8px 24px rgba(31, 29, 26, 0.08);
  --shadow-3: 0 24px 60px rgba(31, 29, 26, 0.12);

  /* ---------- Motion ---------- */
  --ease-out:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:  140ms;
  --dur-base:  240ms;
  --dur-slow:  480ms;
}

/* =============================================================
   Semantic typography classes
   Apply these directly. They encode the brand's preferred sizes
   and tracking so authors don't have to remember.
   ============================================================= */

.bh-display-hero {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 8vw, var(--text-6xl));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-heading);
}

.bh-display-1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5vw, var(--text-4xl));
  line-height: var(--leading-tight);
  color: var(--fg-heading);
}

.bh-h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
  color: var(--fg-heading);
}

.bh-h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  color: var(--fg-heading);
}

.bh-h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--fg-heading);
}

.bh-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--fg-2);
}

.bh-signage {
  /* Use for signage-style labels: "WEDDINGS", "STAY", "EAT" */
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--fg-1);
}

.bh-body {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--fg-2);
}

.bh-body-sm {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--fg-2);
}

.bh-meta {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--fg-3);
}

.bh-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--fg-1);
}

/* Reset-ish helpers for preview cards */
.bh-paper { background: var(--bh-paper); }
.bh-beige { background: var(--bh-beige); }
.bh-clay-bg { background: var(--bh-clay-deep); color: var(--fg-on-dark); }
