/* ============================================================
   SOURCED TRUTH — Main Stylesheet
   Editorial Brutalism · Ink & Paper · Document-Driven
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=IBM+Plex+Mono:wght@400;500&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400;1,8..60,600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --ink:          #1a1714;
  --ink-soft:     #2c2820;
  --paper:        #f5f0e8;
  --paper-dark:   #ede8dc;
  --paper-mid:    #e3ddd0;
  --rule:         #2c2820;
  --accent:       #8b1a1a;
  --accent-light: #c0392b;
  --muted:        #6b6056;
  --ghost:        #b8ae9e;
  --white:        #faf8f3;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  --max-content:  1100px;
  --max-text:     720px;
  --transition:   0.2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---- Utility Classes ---- */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}

.label-muted {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.double-rule {
  border: none;
  border-top: 3px double var(--rule);
  margin: 3rem 0;
}

.single-rule {
  border: none;
  border-top: 1px solid var(--ink);
  margin: 2.5rem 0;
}

.pullquote {
  border-left: 4px solid var(--accent);
  margin: 2.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--white);
}
.pullquote p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-container {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: var(--white);
  border-bottom: 3px double var(--rule);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-brand {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-brand:hover { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--muted);
  transition: all var(--transition);
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 4rem 2rem 3.5rem;
  border-bottom: 4px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      rgba(255,255,255,0.015) 24px,
      rgba(255,255,255,0.015) 25px
    );
  pointer-events: none;
}

.masthead-kicker {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ghost);
  margin-bottom: 1.25rem;
}

.masthead-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.masthead-rule {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 1.75rem auto;
}

.masthead-tagline {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--ghost);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

.masthead-meta {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a4038;
  margin-top: 2.5rem;
}

/* Page mastheads (inner pages) */
.page-masthead {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 2rem 2.5rem;
  border-bottom: 4px solid var(--accent);
}
.page-masthead-inner {
  max-width: var(--max-content);
  margin: 0 auto;
}
.page-masthead-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-top: 0.75rem;
}
.page-masthead-deck {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  color: var(--ghost);
  margin-top: 1rem;
  max-width: 620px;
  line-height: 1.6;
}

/* ============================================================
   HOME — FRONT PAGE GRID
   ============================================================ */
.front-page {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3.5rem;
}

/* Lead Story */
.lead-story {}
.lead-rule {
  border: none;
  border-top: 1px solid var(--ink);
  margin-bottom: 1.75rem;
}
.lead-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.lead-deck {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.lead-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.read-more-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  margin-top: 0.5rem;
  transition: opacity var(--transition);
}
.read-more-link:hover { opacity: 0.7; }

/* Briefs grid below lead */
.briefs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px double var(--rule);
}
.brief-item {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.brief-headline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 0.4rem 0 0.6rem;
  text-decoration: none;
  display: block;
  transition: color var(--transition);
}
.brief-headline:hover { color: var(--accent); }
.brief-summary {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Sidebar */
.sidebar {}
.mission-box {
  background: var(--ink);
  color: var(--paper);
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.mission-box .kicker { color: var(--accent-light); }
.mission-box p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 300;
  color: var(--ghost);
  line-height: 1.75;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--paper-mid);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.sidebar-widget-title {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--paper-mid);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.sidebar-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--paper-dark);
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}
.sidebar-item p {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--ink);
}
.sidebar-item-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.2rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page {
  padding: 4rem 0;
}

.about-chapter {
  margin-bottom: 4rem;
}
.chapter-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}
.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
}
.about-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.about-body p:last-child { margin-bottom: 0; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-page {
  padding: 4rem 0;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--paper-mid);
  border-top: 4px solid var(--accent);
  padding: 2rem;
}
.service-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
  margin-top: 0.75rem;
}
.service-card-body {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 0.75rem;
}
.service-card ul {
  list-style: none;
  margin-top: 1rem;
}
.service-card ul li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--paper-dark);
  letter-spacing: 0.02em;
}
.service-card ul li:last-child { border-bottom: none; }
.service-card ul li::before {
  content: '— ';
  color: var(--accent);
}

.contact-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 2rem;
  margin-top: 4rem;
  text-align: center;
}
.contact-strip h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.contact-strip p {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  color: var(--ghost);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.contact-email {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-light);
  padding-bottom: 2px;
  transition: opacity var(--transition);
}
.contact-email:hover { opacity: 0.7; }

/* ============================================================
   MISSION PAGE
   ============================================================ */
.mission-page {
  padding: 4rem 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--ghost);
  padding: 3rem 2rem;
  border-top: 4px double var(--accent);
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand-text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-style: italic;
  font-weight: 300;
  color: #5c5244;
  line-height: 1.6;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid #2c2820;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #221f1a;
}
.footer-links li:last-child { border-bottom: none; }
.footer-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #7a6e62;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--ghost); }
.footer-bottom {
  max-width: var(--max-content);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #221f1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #3d3530;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .front-page {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .sidebar { order: -1; }
  .briefs-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px double var(--rule);
    padding: 1rem 0;
    z-index: 199;
  }
  .nav-links.open a {
    height: auto;
    padding: 0.75rem 2rem;
    border-bottom: none;
    border-left: 2px solid transparent;
  }
  .nav-links.open a:hover,
  .nav-links.open a.active {
    border-left-color: var(--accent);
    border-bottom: none;
  }
  .nav-hamburger { display: flex; }
  .site-nav { position: relative; }

  .masthead-title { font-size: 3rem; }
  .container, .text-container { padding: 0 1.25rem; }
  .front-page { padding: 2rem 1.25rem; }
  .about-page, .services-page, .mission-page { padding: 2.5rem 0; }

  /* Article body on mobile */
  .article-body p { font-size: 0.975rem; line-height: 1.8; }
  .lead-deck { font-size: 1rem; }

  /* Larger tap targets for brief links */
  .brief-headline {
    padding: 0.5rem 0;
    display: block;
    min-height: 44px;
  }
  .brief-item {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
  }

  /* Data callout readable on small screens */
  .data-callout { padding: 1rem 1.25rem; }
  .data-callout p { font-size: 0.975rem; }
}

/* ============================================================
   ANIMATIONS — Page Load
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.masthead-kicker  { animation: fadeUp 0.5s ease both; animation-delay: 0.1s; }
.masthead-title   { animation: fadeUp 0.6s ease both; animation-delay: 0.2s; }
.masthead-rule    { animation: fadeUp 0.4s ease both; animation-delay: 0.4s; }
.masthead-tagline { animation: fadeUp 0.5s ease both; animation-delay: 0.5s; }
.masthead-meta    { animation: fadeUp 0.4s ease both; animation-delay: 0.7s; }
