/* ──────────────────────────────────────────────────────────────────────────
   lighthousesystems-landing — shared base
   assets/shared-base.css

   Included by: /  /privacy/  /404.html  (every page; load it first, then
   assets/theme.css).

   Provides:
     1. Self-hosted font faces (SIL OFL 1.1, licences in /fonts)
     2. Structural tokens (type families, layout)
     3. Reset and html / body defaults
     4. Canonical reusable components:
        skip link, container, site header + nav, eyebrow, headings, hero,
        buttons, section, band, feature list, card grid, contact card,
        company details, prose, site footer
     5. Motion (gated on html.js and prefers-reduced-motion)

   Colours and the label font come from assets/theme.css (BRAND COLOR
   CONTROLS). Do not hard-code colours here.
   ────────────────────────────────────────────────────────────────────────── */

/* ── 1. Fonts ── */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/cormorant-garamond-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('/fonts/mulish-variable-latin.woff2') format('woff2'); }
@font-face { font-family: 'Belleza'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/belleza-400-latin.woff2') format('woff2'); }

/* ── 2. Structural tokens ── */
:root {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Mulish', -apple-system, 'Segoe UI', sans-serif;
  --container-max: 1040px;
}

/* ── 3. Reset and base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--ivory); color: var(--ink);
  font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 2px; }

/* ── 4. Components ── */

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--card-bg); padding: 8px 14px; border: 1px solid var(--rule); }
.skip-link:focus { left: 16px; z-index: 10; }

/* Container */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-left)) 0 max(24px, env(safe-area-inset-right)); }
@media (min-width: 761px) { .container { padding-left: 60px; padding-right: 60px; } }

/* Site header + primary nav (links come from assets/site-data.js) */
.site-header { border-bottom: 1px solid var(--rule); background: var(--ivory); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.1; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { font-family: var(--font-label); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-deep); }

/* Eyebrow + headings */
.eyebrow { display: block; font-family: var(--font-label); font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 18px; }
h1, h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; color: var(--ink); }
h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.1; letter-spacing: 0.02em; margin: 0 0 22px; }
h2 { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.25; letter-spacing: 0.03em; margin: 2.2rem 0 0.6rem; }
h3 { font-family: var(--font-body); font-weight: 500; font-size: 17px; line-height: 1.4; color: var(--ink); margin: 0 0 6px; }

/* Hero */
.hero { padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero-rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 0 0 26px; }
.lead { font-size: clamp(16px, 1.8vw, 18px); line-height: 1.8; color: var(--ink-soft); max-width: 36em; margin: 0 0 30px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--font-label); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; padding: 14px 26px; border: 1px solid var(--accent-deep); border-radius: 2px; }
.btn-primary { background: var(--accent-deep); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--accent-deep); }
.btn-secondary:hover { background: var(--card-bg); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Section (plain) and band (tinted) */
.section { padding: clamp(3rem, 7vw, 4.5rem) 0; }
.band { background: var(--linen); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 3rem 0; }
.section h2, .band h2:not(.label) { margin-top: 0; margin-bottom: 1.6rem; }
#products { scroll-margin-top: 16px; }

/* Numbered feature list */
.feature-list { list-style: none; counter-reset: feat; margin: 0; padding: 0; display: grid; gap: 28px; max-width: 46em; }
.feature-list li { counter-increment: feat; position: relative; padding-left: 52px; }
.feature-list li::before { content: counter(feat, decimal-leading-zero); position: absolute; left: 0; top: -4px;
  font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--accent-deep); }
.feature-list p, .card p, .statement { color: var(--ink-soft); margin: 0; }
.statement { font-size: clamp(16px, 1.8vw, 18px); line-height: 1.8; max-width: 40em; }
.statement strong { font-weight: 500; color: var(--ink); }

/* Card grid: 1 column, 2 from 680px, 3 from 960px */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 680px) and (max-width: 959px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card-bg); border: 1px solid var(--rule); border-top: 2px solid var(--gold); border-radius: 4px; padding: 24px; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: 0.02em; margin-bottom: 10px; }

/* Contact card + company details */
.contact-card { background: var(--card-bg); border: 1px solid var(--rule); border-radius: 4px; padding: 22px 24px; max-width: 34em; }
.contact-card p { margin: 0; color: var(--ink-soft); }
.contact-card .company-name { color: var(--ink); font-weight: 500; margin-bottom: 6px; }
.label { display: block; font-family: var(--font-label); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 8px; }
.company-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 16px 0 0; }
.company-details dt { font-family: var(--font-label); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); padding-top: 4px; }
.company-details dd { margin: 0; }
.company-details address { font-style: normal; color: var(--ink-soft); }

/* Prose pages (privacy, 404) */
.prose { padding: clamp(3rem, 8vw, 5rem) 0; max-width: 44em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }
.updated { font-family: var(--font-label); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }

/* Site footer (columns and legal line come from assets/site-data.js) */
.site-footer { background: var(--olive-deep); padding: 2.6rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-family: var(--font-label); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.footer-nav a { color: var(--footer-ink); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-address { margin: 0; font-style: normal; font-family: var(--font-label); font-size: 11px; letter-spacing: 1px; color: var(--footer-ink-soft); }
.footer-legal { margin: 0; font-family: var(--font-label); font-size: 11px; letter-spacing: 1px; color: var(--footer-ink-soft); }
.site-footer :focus-visible { outline-color: var(--ivory); }

/* ── 5. Motion ──
   Colour transitions only, and only for visitors who have not asked for
   reduced motion. Any future entrance animation must be gated on html.js
   (set by assets/site-data.js) so content is never hidden without JS. */
@media (prefers-reduced-motion: no-preference) { .btn, .site-nav a, a { transition: color .2s, background-color .2s, border-color .2s; } }
