/* ============================================
   THE SHEM PERSPECTIVE v2
   ============================================ */
:root {
  --ink-navy: #0B1B2E;
  --deep-field: #12283F;
  --deep-field-2: #1B3552;
  --gold: #C9A24B;
  --gold-bright: #E0BC6B;
  --parchment: #F7F4ED;
  --parchment-2: #EFEAE0;
  --slate: #55657A;
  --slate-light: #93A1B0;
  --hairline: #DED8CB;
  --hairline-dark: #24405E;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max-width: 1180px;
  --edge: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--parchment);
  color: var(--ink-navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
  flex-shrink: 0;
  transform: translateY(-4px);
}
.eyebrow.dark { color: var(--deep-field); }
.eyebrow.dark::before { background: var(--deep-field); }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 237, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink-navy);
  flex-shrink: 0;
}
.brand img.logo-icon { width: 42px; height: 42px; object-fit: contain; }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 400;
  margin-top: 2px;
}

nav.main-nav { display: flex; align-items: center; gap: 32px; }
nav.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--ink-navy); }
nav.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 24px;
  border: 1px solid var(--ink-navy);
  border-radius: 2px;
  background: transparent;
  color: var(--ink-navy);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--ink-navy); color: var(--parchment); }
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-navy);
}
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink-navy); }
.btn-light {
  border-color: rgba(247, 244, 237, 0.6);
  color: var(--parchment);
}
.btn-light:hover { background: var(--parchment); border-color: var(--parchment); color: var(--ink-navy); }

/* ---------- Mobile nav: hidden everywhere by default ---------- */
.hamburger { display: none; }
nav.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201,162,75,0.10), transparent 60%),
    var(--ink-navy);
  color: var(--parchment);
  padding: clamp(90px, 12vw, 150px) 0 0;
}
.hero .eyebrow { color: var(--gold-bright); }
.hero .eyebrow::before { background: var(--gold-bright); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 26px 0 30px;
  max-width: 15ch;
}
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero p.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: #C7CFD9;
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: clamp(70px, 9vw, 110px); }

/* Stat strip */
.stat-strip {
  border-top: 1px solid var(--hairline-dark);
  background: rgba(255,255,255,0.015);
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px 28px 34px 0;
  border-left: 1px solid var(--hairline-dark);
  padding-left: 28px;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  color: var(--gold-bright);
  line-height: 1.1;
}
.stat .stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A5B2C0;
  margin-top: 8px;
}

/* ---------- Sections ---------- */
section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: clamp(40px, 5vw, 64px);
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-top: 16px;
  max-width: 640px;
}
.section-head p { color: var(--slate); max-width: 400px; font-size: 15.5px; }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.pillar {
  background: var(--parchment);
  padding: 36px 30px 40px;
  transition: background 0.3s ease;
  position: relative;
}
.pillar::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--gold);
  transition: width 0.35s ease;
}
.pillar:hover { background: #FCFAF5; }
.pillar:hover::after { width: 100%; }
.pillar .num { font-family: var(--font-mono); font-size: 12px; color: var(--gold); }
.pillar h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 16px 0 10px;
}
.pillar p { font-size: 14.5px; color: var(--slate); }

/* ---------- Insight feature rows ---------- */
.insight-feature {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 40px;
  align-items: start;
  padding: 44px 0;
  border-top: 1px solid var(--hairline);
}
.insight-feature:last-of-type { border-bottom: 1px solid var(--hairline); }
.insight-feature .dateline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1.8;
}
.insight-feature h3 {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.4vw, 29px);
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 16px;
}
.insight-feature h3 a { transition: color 0.2s ease; }
.insight-feature h3 a:hover { color: var(--gold); }
.insight-feature .excerpt { color: var(--slate); font-size: 15.5px; max-width: 60ch; }
.insight-feature .excerpt p + p { margin-top: 14px; }
.insight-feature .feature-cta { text-align: right; }

/* ---------- Home article cards ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.article-card {
  background: var(--parchment);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s ease;
}
.article-card:hover { background: #FCFAF5; }
.dateline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}
.article-card h3 {
  font-family: var(--font-display);
  font-size: 21.5px;
  font-weight: 600;
  line-height: 1.28;
}
.article-card p.excerpt { color: var(--slate); font-size: 14.5px; flex-grow: 1; }
.read-more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-navy);
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  transition: color 0.2s ease;
}
.article-card:hover .read-more { color: var(--gold); }

/* ---------- Dark band ---------- */
.band-dark { background: var(--deep-field); color: var(--parchment); }
.band-dark .section-head p { color: #A9B7C4; }
.band-dark .section-head h2 { color: var(--parchment); }

/* ---------- Books ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.book-card { display: flex; flex-direction: column; gap: 20px; }
.book-cover-img {
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 24px 48px -18px rgba(0,0,0,0.55);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.book-card:hover .book-cover-img {
  transform: translateY(-6px);
  box-shadow: 0 32px 56px -18px rgba(0,0,0,0.65);
}
.book-card .book-meta { font-size: 14.5px; color: #A9B7C4; }
.book-card .book-meta strong {
  color: var(--parchment);
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.book-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* Books page detail layout */
.book-detail {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
}
.book-detail:first-of-type { border-top: none; padding-top: 0; }
.book-detail .book-cover-img { box-shadow: 0 28px 56px -20px rgba(11,27,46,0.4); }
.book-detail h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  margin: 16px 0 18px;
}
.book-detail p { color: var(--slate); font-size: 16px; margin-bottom: 26px; max-width: 52ch; }

/* ---------- Downloads ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.download-card {
  border: 1px solid var(--hairline);
  background: #FCFAF5;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 3px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.download-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.download-card .doc-type {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment);
  background: var(--ink-navy);
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 2px;
}
.download-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}
.download-card p { color: var(--slate); font-size: 14.5px; flex-grow: 1; }
.download-card .file-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate-light);
  letter-spacing: 0.04em;
}

/* ---------- Bio / About ---------- */
.bio-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.bio-portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(165deg, var(--deep-field), var(--ink-navy));
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.bio-portrait img { width: 100%; height: 100%; object-fit: cover; }
.bio-portrait .caption {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
}
.credential-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 28px; }
.credential {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  border: 1px solid var(--hairline);
  padding: 7px 13px;
  border-radius: 2px;
  color: var(--slate);
}

/* Highlights grid (replaces timeline) */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.highlight {
  background: var(--parchment);
  padding: 38px 32px 42px;
  transition: background 0.3s ease;
}
.highlight:hover { background: #FCFAF5; }
.highlight .hl-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.highlight h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 14px 0 10px;
}
.highlight p { font-size: 14.5px; color: var(--slate); }

/* ---------- Quote band ---------- */
.quote-band { text-align: center; }
.quote-band blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.45;
  max-width: 800px;
  margin: 24px auto 0;
  color: var(--parchment);
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 15% 110%, rgba(201,162,75,0.12), transparent 60%),
    var(--ink-navy);
  color: var(--parchment);
  text-align: center;
  padding: clamp(80px, 10vw, 110px) 0;
}
.cta-band .eyebrow { color: var(--gold-bright); }
.cta-band .eyebrow::before { background: var(--gold-bright); }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.2;
  max-width: 680px;
  margin: 20px auto 36px;
}
.form-row {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.form-row input {
  flex: 1;
  min-width: 230px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(247,244,237,0.35);
  color: var(--parchment);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 2px;
}
.form-row input::placeholder { color: var(--slate-light); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1px solid var(--hairline);
  background: #FCFAF5;
  padding: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 2px;
  color: var(--ink-navy);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.contact-info-item { padding: 24px 0; border-bottom: 1px solid var(--hairline); }
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item .eyebrow { margin-bottom: 10px; }
.contact-info-item p { font-size: 15.5px; }
.social-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  transition: color 0.2s ease;
}
.social-list a:hover { color: var(--gold); }
.social-list a .mono { font-size: 12px; color: var(--slate-light); }

/* ---------- Page header ---------- */
.page-header {
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(201,162,75,0.10), transparent 60%),
    var(--ink-navy);
  color: var(--parchment);
  padding: clamp(70px, 9vw, 100px) 0 clamp(56px, 7vw, 84px);
}
.page-header .eyebrow { color: var(--gold-bright); }
.page-header .eyebrow::before { background: var(--gold-bright); }
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 20px;
  max-width: 720px;
}
.page-header p.lede { color: #C7CFD9; max-width: 580px; margin-top: 20px; font-size: 17px; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink-navy);
  color: var(--parchment);
  padding: 76px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.6fr 0.7fr 0.9fr;
  gap: 44px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--hairline-dark);
}
footer .brand { color: var(--parchment); }
footer .brand small { color: var(--slate-light); }
footer p.about-blurb { color: #A9B7C4; font-size: 14.5px; margin-top: 20px; max-width: 320px; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: #C7CFD9;
  margin-bottom: 13px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-light);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.mono { font-family: var(--font-mono); }
.text-gold { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .stat-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; padding-left: 0; border-top: 1px solid var(--hairline-dark); }
  .stat:nth-child(-n+2) { border-top: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .book-detail { grid-template-columns: 1fr; gap: 36px; }
  .book-detail .book-cover-img { max-width: 300px; }
  .download-grid { grid-template-columns: 1fr; }
  .bio-layout { grid-template-columns: 1fr; }
  .bio-portrait { max-width: 340px; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .insight-feature { grid-template-columns: 1fr; gap: 18px; }
  .insight-feature .feature-cta { text-align: left; }
}

@media (max-width: 680px) {
  nav.main-nav { display: none; }
  .nav-row .btn.desktop-only { display: none; }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
  }
  .hamburger span {
    width: 24px; height: 2px;
    background: var(--ink-navy);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Mobile nav: only exists visually when .open is applied */
  nav.mobile-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 88px; left: 0; right: 0; bottom: 0;
    background: var(--parchment);
    padding: 16px var(--edge) 40px;
    z-index: 99;
    overflow-y: auto;
  }
  nav.mobile-nav.open a {
    padding: 20px 0;
    border-bottom: 1px solid var(--hairline);
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 500;
    color: var(--ink-navy);
  }
  nav.mobile-nav.open a:active { color: var(--gold); }

  .pillars { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-strip .wrap { grid-template-columns: 1fr 1fr; }
  section { padding: 60px 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .form-row input { min-width: 100%; }
  .form-row .btn { width: 100%; justify-content: center; }
}
