@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #14213D;
  --ink-soft: #3D4A6B;
  --paper: #F5F4EF;
  --paper-raised: #FFFFFF;
  --accent: #E8A33D;
  --accent-deep: #B9791E;
  --teal: #2F6F6B;
  --line: #DAD7CE;
  --line-soft: #E8E6DE;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1rem 0; max-width: 62ch; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- HEADER ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-glyph {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-mark {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 4px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { display: block; }

/* ---------- HERO ---------- */
.hero {
  padding: 76px 0 64px;
  position: relative;
}

.horizon-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  margin-bottom: 40px;
  opacity: 0.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 18px;
}

.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lede { font-size: 1.1rem; color: var(--ink-soft); }

.hero-image-frame {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-raised);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9A9689;
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  background:
    repeating-linear-gradient(45deg, #EFEDE5, #EFEDE5 10px, #F5F4EF 10px, #F5F4EF 20px);
}
.image-placeholder svg { opacity: 0.5; }

/* ---------- SECTIONS ---------- */
section { padding: 56px 0; }
.section-tight { padding: 40px 0; }

.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- STEPS (real sequence -> numbered) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- FEATURE / SOURCES ROW ---------- */
.sources-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.source-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px;
}

.source-card h3 { margin-bottom: 6px; font-size: 1.02rem; }
.source-card p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- CALLOUT ---------- */
.callout {
  background: var(--ink);
  color: #EDEBE2;
  border-radius: 8px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

.callout .callout-glyph {
  width: 36px;
  height: 36px;
  color: var(--accent);
  flex-shrink: 0;
}

.callout h2 { color: #FFFFFF; font-size: 1.3rem; margin-bottom: 10px; }
.callout p { color: #C9C6BA; margin-bottom: 0; max-width: 68ch; }
.callout strong { color: #FFFFFF; }

/* ---------- ABOUT PHOTO ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.photo-frame {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- LEGAL PAGES ---------- */
.legal-header {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--line);
}
.legal-header .updated { color: var(--ink-soft); font-size: 0.9rem; }

.legal-body { padding: 40px 0 72px; max-width: 72ch; }
.legal-body h2 { font-size: 1.25rem; margin-top: 40px; margin-bottom: 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 0.98rem; }
.legal-body ul { padding-right: 22px; margin: 0 0 1rem 0; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--teal); }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--ink-soft); font-size: 0.9rem; }
.footer-fine { color: #9A9689; font-size: 0.85rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-image-frame, .photo-frame { order: -1; max-width: 420px; }
  .steps, .sources-row { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .main-nav {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .main-nav a[aria-current="page"] { border-bottom: 1px solid var(--accent); }
  .nav-toggle { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .main-nav { transition: none; }
}
