/* ============================================
   DONAKEATING.COM — Shared Styles
   Concept C: Garden
   Cormorant Garamond + Raleway + Space Mono
   Cream · Deep Teal · Soft Red · Near-black
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Raleway:wght@200;300;400;500;600&family=Space+Mono:wght@400&display=swap');

:root {
  --cream:        #f7f3ed;
  --cream-dark:   #ede8e0;
  --teal:         #1d6b5e;
  --teal-light:   #4db8a5;
  --teal-faint:   rgba(29,107,94,0.06);
  --red:          #c0392b;
  --red-light:    #e04535;
  --near-black:   #1a1612;
  --charcoal:     #2a2420;
  --warm-grey:    #8a7a6e;
  --warm-grey-lt: #b5a898;
  --white:        #ffffff;

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Raleway', sans-serif;
  --mono:   'Space Mono', monospace;

  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--near-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── NAVIGATION ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--near-black);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 0 56px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-name {
  font-family: var(--serif);
  font-style: italic; font-weight: 300;
  font-size: 20px; letter-spacing: 0.04em;
  color: var(--cream);
}
.nav-name span { color: var(--teal-light); }

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

.nav-links a {
  display: block; padding: 8px 20px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--warm-grey-lt);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: var(--warm-grey-lt);
}

/* ── SHARED SECTION STYLES ── */
.section-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 56px;
}

.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 28px; margin-bottom: 56px;
}

.section-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 8px; display: block;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 300; font-style: italic;
  color: var(--near-black); line-height: 1;
}

.section-link {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--warm-grey); border-bottom: 1px solid currentColor;
  padding-bottom: 2px; transition: color var(--transition);
}
.section-link:hover { color: var(--teal); }

/* ── PAGE HERO ── */
.page-hero {
  background: var(--near-black);
  padding: 160px 0 100px;
  position: relative; overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(29,107,94,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 0 56px; position: relative; z-index: 2;
}

.page-hero-eyebrow {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 24px; display: block;
}

.page-hero-headline {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 300; line-height: 1.0;
  color: var(--cream); margin-bottom: 28px;
}

.page-hero-headline em { font-style: italic; color: var(--teal-light); }

.page-hero-sub {
  font-size: 18px; line-height: 1.7; font-weight: 300;
  color: rgba(247,243,237,0.45); max-width: 540px;
}

/* ── ABOUT NARRATIVE ── */
.about-narrative {
  padding: 120px 0;
  background: var(--cream);
}

.about-narrative-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 100px; align-items: start;
}

.narrative-left h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 300; line-height: 1.1;
  color: var(--near-black); margin-bottom: 36px;
}
.narrative-left h2 em { font-style: italic; color: var(--teal); }

.narrative-left p {
  font-size: 16px; line-height: 1.9; font-weight: 300;
  color: #555; margin-bottom: 20px;
}

.pull-quote {
  padding: 24px 28px;
  border-left: 3px solid var(--red);
  background: rgba(192,57,43,0.04);
  margin: 32px 0;
}

.pull-quote p {
  font-family: var(--serif);
  font-style: italic; font-size: 22px;
  font-weight: 400; line-height: 1.5;
  color: var(--near-black);
}

.about-section-label {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px; display: block;
}

.credential-stack {
  display: flex; flex-direction: column; gap: 2px;
}

.cred-item {
  padding: 20px 24px;
  background: var(--white);
  border-left: 3px solid var(--teal);
  transition: background var(--transition);
}
.cred-item:hover { background: var(--cream-dark); }

.cred-title {
  font-size: 14px; font-weight: 500;
  color: var(--near-black); margin-bottom: 3px; line-height: 1.4;
}

.cred-sub {
  font-size: 11px; color: var(--warm-grey); font-weight: 300;
}

/* ── AFFILIATIONS ── */
.affiliations {
  padding: 100px 0;
  background: var(--near-black);
  color: var(--cream);
}

.affiliations .section-header {
  border-bottom-color: rgba(255,255,255,0.08);
}

.affiliations .section-title { color: var(--cream); }

.affiliations-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
}

.affil-item {
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  transition: background var(--transition);
}
.affil-item:hover { background: rgba(77,184,165,0.08); }

.affil-name {
  font-size: 14px; font-weight: 400;
  color: var(--cream); margin-bottom: 3px;
}

.affil-role {
  font-size: 11px; color: var(--warm-grey); font-weight: 300;
}

/* ── WRITING CARDS ── */
.writing-card {
  background: var(--white);
  padding: 44px 36px;
  display: flex; flex-direction: column;
  border-top: 3px solid transparent;
  transition: border-top-color var(--transition), background var(--transition);
}
.writing-card:hover { border-top-color: var(--red); background: var(--cream-dark); }

.card-type {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px;
}

.card-title {
  font-family: var(--serif);
  font-size: 22px; font-weight: 400; line-height: 1.3;
  color: var(--near-black); margin-bottom: 16px; flex: 1;
}

.card-desc {
  font-size: 13px; line-height: 1.8;
  color: var(--warm-grey); font-weight: 300; margin-bottom: 28px;
}

.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--warm-grey-lt);
  border-top: 1px solid rgba(0,0,0,0.06); padding-top: 18px;
}

.card-read { color: var(--teal); transition: color var(--transition); }
.card-read:hover { color: var(--red); }

/* ── FOOTER ── */
.site-footer {
  background: var(--charcoal);
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 0 56px;
  display: flex; align-items: center; justify-content: space-between;
}

.footer-name {
  font-family: var(--serif);
  font-style: italic; font-weight: 300;
  font-size: 16px; color: var(--warm-grey);
}

.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--warm-grey); transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal-light); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-inner, .section-inner, .page-hero-inner, .footer-inner { padding: 0 36px; }
  .about-narrative-grid { grid-template-columns: 1fr; gap: 56px; }
  .affiliations-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.nav-open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--near-black); padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.nav-open a { padding: 14px 36px; }
}
