/* site.css — Open Lantern marketing site shared brand system.
   Warm, trustworthy, editorial. Newsreader headings + Source Sans body. */

:root {
  --sage: #3a5a40;
  --sage-deep: #2c4631;
  --sage-tint: #e7ece2;
  --sage-tint2: #eef2e9;
  --amber: #d9a441;
  --amber-lt: #e6b566;
  --amber-hi: #f3d488;
  --cream: #f4f3ed;
  --cream-2: #faf9f3;
  --ink: #21241f;
  --ink-2: #535749;
  --ink-3: #7c8073;
  --line: #dcdfd5;
  --line-soft: #e7e9e0;
  --white: #ffffff;
  --maxw: 1120px;
  --readw: 680px;
  --radius: 8px;
  --radius-lg: 16px;
  --font-head: "Newsreader", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(38px, 5.4vw, 60px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--sage); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 14px; }
.lead { font-size: clamp(19px, 2.1vw, 22px); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.center { text-align: center; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1;
  padding: 15px 26px; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sage); color: #fff; border-color: var(--sage); }
.btn-primary:hover { background: var(--sage-deep); border-color: var(--sage-deep); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--white); border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); padding: 11px 18px; font-size: 16px; }
.btn-ghost:hover { background: var(--white); border-color: var(--ink-3); }
.btn-lg { font-size: 18px; padding: 17px 30px; }
.btn-amber { background: var(--amber); color: #2a2206; border-color: var(--amber); }
.btn-amber:hover { background: var(--amber-lt); border-color: var(--amber-lt); }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,243,237,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 1px 2px rgba(20,28,18,.14); }
.brand .word { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }

/* ── Footer ──────────────────────────────────────────── */
.footer { background: var(--sage-deep); color: rgba(255,255,255,.82); padding: 54px 0 40px; margin-top: 0; }
.footer a { color: rgba(255,255,255,.82); }
.footer a:hover { color: #fff; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-start; justify-content: space-between; }
.footer .brand .word { color: #fff; }
.footer-tag { font-size: 15px; color: rgba(255,255,255,.66); margin-top: 14px; max-width: 320px; line-height: 1.55; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,.5); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 16px; margin-bottom: 10px; white-space: nowrap; }
.footer-bottom { max-width: var(--maxw); margin: 38px auto 0; padding: 22px 28px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 14.5px; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ── Sections ────────────────────────────────────────── */
section { position: relative; }
.section-pad { padding: clamp(64px, 9vw, 104px) 0; }

/* ── Cards ───────────────────────────────────────────── */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }

/* ── Pills / chips ───────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; border-radius: 999px; padding: 8px 16px; white-space: nowrap; }
.chip-sage { background: var(--sage-tint); color: var(--sage-deep); }
.chip-amber { background: #f6ecd2; color: #7c5510; }

/* ── Reveal on scroll ────────────────────────────────── */
/* Content is visible by DEFAULT. JS adds .pending only to elements that start
   below the fold, so above-the-fold content (and the no-JS case) never hides. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
  .reveal.pending { opacity: 0; transform: translateY(16px); }
}

/* ── Mobile nav toggle ───────────────────────────────── */
.nav-toggle { display: none; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav-inner { height: 64px; }
  .brand .word { font-size: 20px; }
  .footer-inner { flex-direction: column; gap: 28px; }
}
