/* =================================================================
   Lone & Co — Colors & Type
   -----------------------------------------------------------------
   Use as: <link rel="stylesheet" href="colors_and_type.css">
   Fonts are loaded from Google Fonts here — swap for local files in
   fonts/ if bundling offline (see README).
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Outfit:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ── Brand palette (exact hex from globals.css) ── */
  --navy:        #1A2238;
  --gold:        #C5A55A;
  --gold-light:  #D4B76A;
  --slate:       #9DAAF2;   /* periwinkle-blue accent */
  --slate-deep:  #7B8AF7;   /* used in slate gradient mid-stop */
  --obsidian:    #1E1E24;   /* near-black dark surface */
  --charcoal:    #404048;   /* body text on light */
  --warm-gray:   #8A8680;   /* muted secondary text */
  --light-gray:  #E8E4DE;   /* hairline borders, dividers */
  --cream:       #F7F5F0;   /* default page bg (light mode) */
  --ivory:       #F0EDE6;   /* alt warm surface */

  /* ── Semantic: foreground on LIGHT surfaces ── */
  --fg-1:  var(--obsidian);   /* primary text, headings */
  --fg-2:  var(--charcoal);   /* body */
  --fg-3:  var(--warm-gray);  /* secondary / meta */
  --fg-4:  #B5B0A8;           /* disabled, placeholders */
  --fg-accent: var(--gold);
  --fg-link: var(--gold);

  /* ── Semantic: foreground on DARK surfaces (obsidian/navy) ── */
  --fg-on-dark-1: #FFFFFF;
  --fg-on-dark-2: rgba(255,255,255,0.60);
  --fg-on-dark-3: rgba(255,255,255,0.40);
  --fg-on-dark-4: rgba(255,255,255,0.25);

  /* ── Surfaces ── */
  --bg-page:      var(--cream);
  --bg-surface:   #FFFFFF;
  --bg-elevated:  #FFFFFF;
  --bg-dark:      var(--obsidian);
  --bg-dark-alt:  var(--navy);
  --bg-dark-surface: rgba(255,255,255,0.03);  /* glass card on dark */
  --bg-dark-surface-2: rgba(255,255,255,0.06);

  /* ── Borders ── */
  --border-light:  var(--light-gray);
  --border-dark:   rgba(255,255,255,0.06);
  --border-dark-2: rgba(255,255,255,0.10);
  --border-focus:  rgba(197,165,90,0.50);  /* gold/50 */

  /* ── Status (used sparingly — audit tool) ── */
  --status-pass: var(--gold);
  --status-warn: var(--warm-gray);
  --status-fail: #EF4444;
  --status-ok:   #10B981;  /* emerald-500, used on dashboards */

  /* ── Font families ── */
  --font-brand:   'Cinzel', 'Trajan Pro', serif;                       /* wordmark only */
  --font-display: 'Cormorant Garamond', 'Garamond', Georgia, serif;    /* H1–H3, hero */
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;            /* eyebrows, labels, CTAs */
  --font-body:    'DM Sans', 'Inter', system-ui, sans-serif;           /* paragraph text */
  --font-mono:    ui-monospace, 'SF Mono', Menlo, monospace;

  /* ── Type scale (1920 baseline; responsive via clamp) ── */
  --fs-hero:   clamp(2.5rem, 5vw, 4rem);      /* 40–64 */
  --fs-h1:     clamp(2rem, 4vw, 3.2rem);      /* 32–51 */
  --fs-h2:     clamp(1.75rem, 3vw, 2.5rem);   /* 28–40 */
  --fs-h3:     clamp(1.25rem, 2vw, 1.5rem);   /* 20–24 */
  --fs-body:   0.875rem;   /* 14 */
  --fs-body-lg:1rem;        /* 16 */
  --fs-small:  0.75rem;     /* 12 */
  --fs-xs:     0.7rem;      /* 11.2 — eyebrow/caps */

  /* ── Radii ── */
  --radius-sm:  6px;
  --radius-md:  10px;   /* feature-icon squares */
  --radius-lg:  12px;   /* form inputs, small cards */
  --radius-xl:  16px;   /* default card */
  --radius-2xl: 24px;   /* large cards, footer shell */
  --radius-pill: 999px;

  /* ── Shadows (restrained — brand rarely uses them on light) ── */
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.04);
  --shadow-card: 0 20px 60px rgba(0,0,0,0.08);   /* .card-lift hover */
  --shadow-cta:  0 10px 30px rgba(157,170,242,0.20);  /* slate glow */
  --shadow-photo:0 25px 50px -12px rgba(0,0,0,0.30);

  /* ── Easing ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);

  /* ── Spacing scale (rems) ── */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;    --space-40: 10rem;  --space-48: 12rem;
}

/* =================================================================
   Base element styles — importing these makes an unstyled page
   already look "on-brand". Scope with `.lone-proto` if you want
   to avoid affecting chrome.
   ================================================================= */

body, .lone-proto {
  background: var(--bg-page);
  color: var(--fg-2);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Semantic type classes — use if not using the raw vars */
.lone-hero,
.lone-h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; color: var(--fg-1); line-height: 1.08; }
.lone-hero { font-size: var(--fs-hero); }
.lone-h1   { font-size: var(--fs-h1); }
.lone-h2   { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); letter-spacing: -0.01em; color: var(--fg-1); line-height: 1.15; }
.lone-h3   { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); color: var(--fg-1); line-height: 1.25; }

/* Uppercase eyebrow — the ever-present "SERVICES" style */
.lone-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.lone-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-on-dark-3);
}

.lone-body    { font-family: var(--font-body); font-size: var(--fs-body-lg); line-height: 1.6; color: var(--fg-2); }
.lone-body-sm { font-family: var(--font-body); font-size: var(--fs-body);    line-height: 1.6; color: var(--fg-3); }

/* Brand wordmark — preserve the letter-spacing signature */
.lone-wordmark {
  font-family: var(--font-brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--fg-1);
}
.lone-wordmark .amp {
  background: linear-gradient(135deg, var(--navy), var(--slate));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lone-wordmark .dot {
  display: inline-block;
  width: 0.18em; height: 0.18em;
  background: var(--slate);
  border-radius: 50%;
  vertical-align: 0.15em;
  margin-left: 0.05em;
}

/* Selection — one of the brand's quiet signatures */
::selection { background: var(--gold); color: var(--navy); }

/* =================================================================
   Accessibility polish — added via ui-ux-pro-max checklist pass.
   ================================================================= */

/* Visible keyboard focus — never remove focus rings */
:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
}

/* Respect user motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Services jump list — hover pop on desktop, right arrow on mobile */
.hn-service-jump {
  transition: background 0.25s ease, transform 0.25s ease;
}
.hn-service-jump-body {
  transition: transform 0.25s ease;
  transform-origin: left center;
}
@media (min-width: 901px) {
  .hn-service-jump-arrow { display: none !important; }
  .hn-service-jump:hover {
    background: rgba(0, 0, 0, 0.025);
  }
  .hn-service-jump:hover .hn-service-jump-body {
    transform: scale(1.04) translateX(8px);
  }
}

/* =================================================================
   Homepage responsive overrides — mobile-first breakpoints at 900/1200.
   Targets class hooks on home-operator.jsx grid containers.
   ================================================================= */

/* Tablet: 2-col for content grids */
@media (max-width: 1200px) and (min-width: 901px) {
  .hn-services-grid,
  .hn-proof-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Tablet: related articles 2-col → keep, but footer adjusts */
@media (max-width: 1200px) and (min-width: 901px) {
  .hn-footer-inner {
    padding: 48px 48px !important;
  }
}

/* Mobile: stack everything */
@media (max-width: 900px) {
  .hn-hero-grid,
  .hn-services-grid,
  .hn-proof-grid,
  .hn-cta-grid,
  .hn-founders-grid,
  .hn-services-hero-grid,
  .hn-service-row,
  .hn-timeline-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .hn-principle-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 24px 0 !important;
  }

  /* Timeline: hide the horizontal connector line on mobile (vertical flow) */
  .hn-timeline > div[aria-hidden="true"] {
    display: none !important;
  }
  .hn-timeline-grid {
    gap: 32px !important;
  }

  /* Audit tool: stack URL + button, optional grid, and grade grid */
  .hn-audit-url-row {
    grid-template-columns: 1fr !important;
  }
  .hn-audit-optional-grid {
    grid-template-columns: 1fr !important;
  }
  .hn-audit-grade-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Work page: stack video + body */
  .hn-work-block {
    grid-template-columns: 1fr !important;
  }

  /* Contact: stack */
  .hn-contact-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }

  /* Legal rows: stack heading above paragraph */
  .hn-legal-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 24px 0 !important;
  }

  .hn-services-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
  }

  .hn-section-padded {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }

  .hn-hero-padded {
    padding: 120px 24px 64px !important;
  }

  .hn-container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .hn-cta-card {
    padding: 48px 28px !important;
    border-radius: 20px !important;
  }

  .hn-trust-row {
    gap: 28px !important;
  }
  .hn-trust-row span {
    font-size: 18px !important;
  }

  .hn-hero-image {
    aspect-ratio: 4 / 3 !important;
  }

  /* Dark nav — collapse middle pill + desktop CTA, show hamburger */
  .hn-dark-nav-links { display: none !important; }
  .hn-desktop-cta { display: none !important; }
  .hn-hamburger { display: inline-flex !important; }
  .hn-nav-inner {
    padding: 0 20px !important;
    height: 64px !important;
    justify-content: space-between !important;
  }
  .hn-nav-logo { margin-right: auto !important; }
  .hn-nav-logo > span { font-size: 16px !important; }

  /* Footer: stack columns + reduce padding */
  .hn-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .hn-footer-inner {
    padding: 40px 28px !important;
    border-radius: 16px !important;
  }

  /* Related articles: stack on mobile */
  .hn-related-grid {
    grid-template-columns: 1fr !important;
  }

  /* Contact info grid: keep 2-col (items are short) */
  .hn-contact-info-grid {
    gap: 20px !important;
  }

  /* Contact page hero: reduce top padding */
  .hn-contact-grid {
    padding-top: 120px !important;
    padding-bottom: 64px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* Insights article: tighten padding */
  .hn-article-nav  { padding: 100px 24px 0 !important; }
  .hn-article-header { padding: 28px 24px 36px !important; }
  .hn-article-body  { padding: 0 24px 40px !important; }
  .hn-article-cta  { padding: 16px 24px 32px !important; }
  .hn-article-related { padding: 40px 24px 64px !important; }

  /* Outer footer wrapper: reduce side padding */
  .hn-footer-wrap {
    padding: 48px 24px 24px !important;
  }
}

/* Footer: 2-column at tablet (brand on top, then two link columns) */
@media (max-width: 1200px) and (min-width: 901px) {
  .hn-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
  }
}

/* Very small screens (≤ 480px) — tighten everything further */
@media (max-width: 480px) {
  .hn-hero-padded {
    padding: 100px 20px 48px !important;
  }
  .hn-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .hn-cta-card {
    padding: 36px 20px !important;
  }
  .hn-footer-inner {
    padding: 32px 20px !important;
  }
  .hn-footer-wrap {
    padding: 40px 20px 20px !important;
  }
  .hn-contact-grid {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 100px !important;
  }
  .hn-contact-info-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .hn-article-nav    { padding: 100px 20px 0 !important; }
  .hn-article-header { padding: 24px 20px 28px !important; }
  .hn-article-body   { padding: 0 20px 32px !important; }
  .hn-article-cta    { padding: 12px 20px 24px !important; }
  .hn-article-related { padding: 32px 20px 48px !important; }
  .hn-section-padded {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  /* Cookie banner: full width, stacked */
  .hn-cookie-banner {
    padding: 0 16px 16px !important;
  }
  .hn-cookie-banner > div {
    border-radius: 12px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
}

/* =================================================================
   Locked type scale — use .t-* classes in JSX instead of inline fontSize.
   Roles (largest → smallest):  display > h1 > h2 > h3 > lede > body > caption > eyebrow
   ================================================================= */
.t-display { font-family: var(--font-display); font-weight: 500; font-size: clamp(52px, 6.4vw, 104px); line-height: 0.98;  letter-spacing: -0.03em; }
.t-h1      { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 4.6vw, 64px);  line-height: 1.1;   letter-spacing: -0.02em; }
.t-h2      { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 2.8vw, 40px);  line-height: 1.15;  letter-spacing: -0.01em; }
.t-h3      { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 24px);  line-height: 1.25;  letter-spacing: -0.01em; }
.t-lede    { font-family: var(--font-body);    font-weight: 400; font-size: clamp(18px, 1.5vw, 22px);  line-height: 1.5; }
.t-body    { font-family: var(--font-body);    font-weight: 400; font-size: 16px; line-height: 1.7; }
.t-caption { font-family: var(--font-body);    font-weight: 500; font-size: 14px; line-height: 1.5; }
.t-eyebrow { font-family: var(--font-heading); font-weight: 600; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
