/* ==========================================
   MERRILL KEATING — SITE STYLESHEET
   Aesthetic: Editorial warmth meets civic seriousness
   Palette: Warm ivory · Ink navy · Amber gold
   ========================================== */

:root {
  --ink: #1a1a2e;
  --ink-soft: #2e2e4a;
  --ivory: #faf8f4;
  --ivory-warm: #f3efe8;
  --ivory-mid: #e8e2d8;
  --amber: #c8820a;
  --amber-light: #f5c842;
  --amber-bg: #fef9ed;
  --text: #1a1a2e;
  --text-muted: #5a5a72;
  --text-faint: #9090a8;
  --white: #ffffff;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --max: 1200px;
  --transition: 220ms ease;
}

/* SUBMENUS */
.nav-has-sub {
  position: relative;
}
.nav-has-sub > a::after {
  content: ' ↓';
  font-size: 0.65rem;
  opacity: 0.5;
  margin-left: 2px;
}
.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  padding-top: 8px;
  left: 0;
  background: var(--white);
  border: 1px solid var(--ivory-mid);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(26,26,46,0.1);
  z-index: 200;
  list-style: none;
}
.nav-has-sub:hover .nav-sub,
.nav-has-sub:focus-within .nav-sub {
  display: block;
}
.nav-sub li a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  font-weight: 400 !important;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-sub li a:hover {
  color: var(--amber) !important;
  background: var(--ivory-warm);
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* UTILS */
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }

/* =====================
   NAVIGATION
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ivory-mid);
}

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

.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink) !important;
  color: var(--ivory) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.85rem !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--ink-soft) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
}
.btn-primary:hover { background: #a86c08; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ivory-mid);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ivory-warm); }

/* =====================
   HERO
   ===================== */
.hero {
  padding: 5rem 0 4rem;
  background: var(--ivory);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 130, 10, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--amber);
}

.hero-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-press {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.hero-press a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.hero-press a:hover { color: var(--ink); }
.press-sep { color: var(--ivory-mid); }

.hero-image-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-image-frame {
  width: 280px;
  height: 380px;
  border-radius: 140px 140px 12px 12px;
  overflow: hidden;
  background: var(--ivory-warm);
  border: 3px solid var(--ivory-mid);
  position: relative;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-badge {
  position: absolute;
  bottom: -12px;
  right: -16px;
  background: var(--white);
  border: 1px solid var(--ivory-mid);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.08);
  text-align: center;
}
.badge-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge-year {
  display: block;
  font-size: 0.68rem;
  color: var(--amber);
  margin-top: 0.2rem;
  font-weight: 500;
}

/* =====================
   STAT STRIP
   ===================== */
.strip {
  background: var(--ink);
  padding: 2.5rem 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.strip-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--amber-light);
  line-height: 1;
}

.strip-desc {
  font-size: 0.8rem;
  color: rgba(250, 248, 244, 0.6);
  line-height: 1.5;
}

/* =====================
   FOCUS CARDS
   ===================== */
.focus {
  background: var(--ivory);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.focus-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--ivory-mid);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: pointer;
}
.focus-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26, 26, 46, 0.07);
}

.focus-card--lead {
  grid-column: 1 / 3;
  background: var(--amber-bg);
  border-color: rgba(200, 130, 10, 0.2);
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
}
.focus-card--lead > * { flex: 1; }
.focus-card--lead h3 { font-size: 1.6rem; }

.focus-card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.6rem;
}

.focus-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.focus-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.focus-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.01em;
}

/* =====================
   RECOGNITION
   ===================== */
.recognition {
  background: var(--ivory-warm);
  border-top: 1px solid var(--ivory-mid);
  border-bottom: 1px solid var(--ivory-mid);
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.rec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--ivory-mid);
}

.rec-icon {
  font-size: 0.8rem;
  color: var(--amber);
  margin-top: 2px;
  flex-shrink: 0;
}

.rec-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.rec-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* =====================
   WRITING PREVIEW
   ===================== */
.writing-preview { background: var(--ivory); }

.writing-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.see-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
}
.see-all:hover { text-decoration: underline; text-underline-offset: 3px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--ivory-mid);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.post-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.06);
}

.post-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.6rem;
}

.post-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.post-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =====================
   CTA SECTION
   ===================== */
.cta-section {
  background: var(--ink);
}

.cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ivory);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-inner p {
  color: rgba(250, 248, 244, 0.65);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: var(--ink-soft);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-rows: auto auto;
  gap: 0.75rem 3rem;
  align-items: start;
}

.footer-brand {
  grid-column: 1;
  grid-row: 1;
}

.footer-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ivory);
}

.footer-tagline {
  display: block;
  font-size: 0.75rem;
  color: rgba(250, 248, 244, 0.45);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

.footer-nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-nav a {
  font-size: 0.82rem;
  color: rgba(250, 248, 244, 0.55);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--ivory); }

.footer-social {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-social a {
  font-size: 0.82rem;
  color: rgba(250, 248, 244, 0.55);
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--amber-light); }

.footer-copy {
  grid-column: 1 / 4;
  grid-row: 2;
  font-size: 0.72rem;
  color: rgba(250, 248, 244, 0.3);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 248, 244, 0.08);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-image-wrap {
    display: none;
  }
  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .focus-grid {
    grid-template-columns: 1fr;
  }
  .focus-card--lead {
    grid-column: 1;
    flex-direction: column;
  }
  .rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-copy { grid-column: 1; }
}

@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ivory);
    padding: 2rem;
    gap: 1.5rem;
    z-index: 99;
  }
  body.nav-open .nav-links a { font-size: 1.1rem; }
  .strip-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .rec-grid {
    grid-template-columns: 1fr;
  }
}
