/* ============================================================================
   LINCOLN HILLS  —  base.css
   ----------------------------------------------------------------------------
   Foundation layer. Load this FIRST.
   Contains, in order:
     1.  Modern CSS reset / normalisation
     2.  Design tokens (CSS custom properties)  ......  :root
     3.  Global element defaults (html, body, media)
     4.  Typography scale (display, headings, body, eyebrow)
     5.  Links & selection
     6.  Utility / helper classes
     7.  Accessibility (focus, reduced motion)
   No component or page styling lives here — see components.css / pages.css.
   ========================================================================== */


/* ============================================================================
   1. RESET
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

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

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

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

ul[class],
ol[class] { list-style: none; }

table { border-collapse: collapse; border-spacing: 0; }


/* ============================================================================
   2. DESIGN TOKENS
   ----------------------------------------------------------------------------
   Single source of truth for colour, type, spacing, motion and layout.
   Change the brand here — every component reads from these variables.
   ========================================================================== */
:root {

  /* --- Brand palette ----------------------------------------------------- */
  --navy-900: #0B1A30;   /* deepest — hero overlays, footer base            */
  --navy-800: #0E2039;   /* primary brand navy — header, dark sections      */
  --navy-700: #16304F;   /* raised navy surfaces / cards on navy            */
  --navy-600: #21426A;   /* hairlines & borders on navy                     */

  --gold-600: #A9884F;   /* deep gold — text on ivory, hovers               */
  --gold-500: #BF9F68;   /* primary gold — rules, borders, accents          */
  --gold-400: #D8BE8E;   /* light gold — highlights, eyebrow on navy        */

  --ivory:    #F7F2E8;   /* warm paper — tinted sections                    */
  --sand:     #ECE3D1;   /* slightly deeper paper — alt tint / borders      */
  --white:    #FFFFFF;

  --ink-900:  #1B1B1B;   /* body text on light                              */
  --ink-600:  #4C4C4C;   /* secondary text on light                         */
  --ink-400:  #7A7A7A;   /* captions / meta                                 */

  /* --- Semantic roles -------------------------------------------------- */
  --bg:            var(--white);
  --bg-tint:       var(--ivory);
  --bg-dark:       var(--navy-800);
  --text:          var(--ink-900);
  --text-soft:     var(--ink-600);
  --text-on-dark:  #E9E2D2;
  --accent:        var(--gold-500);
  --line-light:    rgba(27, 27, 27, 0.14);   /* hairline on light          */
  --line-dark:     rgba(216, 190, 142, 0.24); /* hairline on navy          */

  /* --- Typography ----------------------------------------------------- */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans:    "Jost", "Helvetica Neue", Arial, sans-serif;

  --fs-eyebrow:   0.72rem;
  --fs-body:      1.0625rem;
  --fs-body-lg:   1.1875rem;
  --fs-h4:        clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-h3:        clamp(1.6rem, 2.4vw, 2.15rem);
  --fs-h2:        clamp(2.1rem, 4vw, 3.25rem);
  --fs-h1:        clamp(2.8rem, 6.5vw, 5.25rem);
  --fs-display:   clamp(3.4rem, 9vw, 7rem);

  --lh-tight:     1.08;
  --lh-heading:   1.16;
  --lh-body:      1.72;

  --tracking-eyebrow: 0.34em;
  --tracking-caps:    0.16em;

  /* --- Spacing & layout --------------------------------------------- */
  --space-section: clamp(4.5rem, 9vw, 8.5rem);  /* vertical section rhythm */
  --container-max: 1240px;
  --container-narrow: 860px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* --- Motion ----------------------------------------------------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.25s;
  --dur:      0.5s;
  --dur-slow: 0.9s;

  /* --- Elevation ------------------------------------------------- */
  --shadow-card: 0 24px 60px -28px rgba(11, 26, 48, 0.35);
  --shadow-lift: 0 40px 90px -30px rgba(11, 26, 48, 0.45);

  --header-h: 92px;
}


/* ============================================================================
   3. GLOBAL ELEMENT DEFAULTS
   ========================================================================== */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: var(--lh-body);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Pages without a full-bleed hero (e.g. legal pages) need clearance
   below the fixed header — see .no-hero on <body>. */
body.no-hero main { padding-top: var(--header-h); }


/* ============================================================================
   4. TYPOGRAPHY
   ----------------------------------------------------------------------------
   Display + headings use the Cormorant Garamond serif for an editorial,
   estate-brochure feel. Body copy uses the Jost geometric sans.
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: 0.005em;
  color: var(--text);
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { max-width: 68ch; }

strong, b { font-weight: 500; }

/* Eyebrow — the small letter-spaced label that sits above headings. */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-600);
}
/* An eyebrow placed inside a heading (hero H1s, for SEO) keeps its own line
   and the body line-height, so the heading looks the same as eyebrow + h1. */
:is(h1, h2, h3) > .eyebrow { display: block; line-height: 1.6; }

/* Large serif intro paragraph used under section headings. */
.lede {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-soft);
}

/* Colour helpers for type placed on the dark (navy) surface. */
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark p, .on-dark li { color: var(--text-on-dark); }
.on-dark .eyebrow { color: var(--gold-400); }
.on-dark .lede { color: rgba(233, 226, 210, 0.82); }


/* ============================================================================
   5. LINKS & SELECTION
   ========================================================================== */
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--gold-600); }

::selection { background: var(--gold-400); color: var(--navy-900); }


/* ============================================================================
   6. UTILITY / HELPER CLASSES
   ----------------------------------------------------------------------------
   Small, single-purpose classes reused across pages. Layout containers and
   the section wrapper live in layout.css.
   ========================================================================== */

/* Visually hide but keep for screen readers. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.text-center { text-align: center; }
.mx-auto    { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Decorative gold rule with a centred diamond — the brand's divider motif. */
.rule {
  --rule-color: var(--gold-500);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  max-width: 220px;
  margin-block: 1.5rem;
  color: var(--rule-color);
}
.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.rule::before { max-width: 90px; }
.rule i {
  width: 6px; height: 6px;
  flex: none;
  background: currentColor;
  transform: rotate(45deg);
}
.rule--center { margin-inline: auto; }
.on-dark .rule { --rule-color: var(--gold-400); }


/* ============================================================================
   7. ACCESSIBILITY
   ========================================================================== */

/* Keyboard focus — visible gold ring, never removed. */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link revealed on focus. */
.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--navy-800);
  color: var(--white);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Honour users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
