/* =========================================================
   Mahil Dole — author website stylesheet
   Institutional "think tank" theme: light content sections,
   deep navy bands, steel-blue accents, restrained gold.
   ========================================================= */

:root {
  --navy: #0e2238;
  --navy-deep: #0a1a2c;
  --steel: #2e6da4;
  --steel-dark: #245980;
  --gold: #b8952e;
  --paper: #f7f8fa;
  --paper-tint: #eef1f5;
  --card: #ffffff;
  --line: #d9dfe7;
  --line-dark: #24405e;
  --ink: #1c2836;
  --ink-dim: #56616f;
  --on-navy: #eef2f7;
  --on-navy-dim: #a8b6c6;
  --font-display: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.03rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }

a { color: var(--steel); }
a:hover { color: var(--steel-dark); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 { font-family: var(--font-display); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  color: var(--steel);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  margin-bottom: 12px;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  margin-bottom: 16px;
  color: var(--navy);
}

.section-sub {
  text-align: center;
  color: var(--ink-dim);
  max-width: 60ch;
  margin: 0 auto 48px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--steel);
  color: #fff;
  box-shadow: 0 4px 16px rgba(46, 109, 164, 0.3);
}
.btn-primary:hover {
  background: var(--steel-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 109, 164, 0.4);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--steel); color: var(--steel); }

/* ghost buttons that sit on navy bands */
.hero .btn-ghost, .section-navy .btn-ghost {
  border-color: var(--line-dark);
  color: var(--on-navy);
}
.hero .btn-ghost:hover, .section-navy .btn-ghost:hover {
  border-color: var(--steel);
  color: #cfe3f5;
}

.btn-nav {
  background: var(--steel);
  color: #fff;
  padding: 8px 18px;
  font-size: 0.82rem;
}
.btn-nav:hover { background: var(--steel-dark); color: #fff; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 26, 44, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line-dark); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--on-navy);
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand span { color: #7db3dd; }
.nav-brand:hover { color: var(--on-navy); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-navy-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--on-navy);
  transition: 0.3s;
}

/* ---------- Hero (navy band) ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  color: var(--on-navy);
  background:
    radial-gradient(ellipse 55% 45% at 82% 12%, rgba(46, 109, 164, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 60% at 12% 88%, rgba(46, 109, 164, 0.16), transparent 60%),
    linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 6px 0 10px;
  color: #fff;
}
.hero-text h1 .accent { color: #7db3dd; }

.hero .eyebrow { color: #8fbede; }

.tagline {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--on-navy-dim);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.hero-lead {
  max-width: 56ch;
  color: var(--on-navy-dim);
  margin-bottom: 26px;
}
.hero-lead em { color: var(--on-navy); }

.hero-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.06rem;
  color: var(--on-navy);
  border-left: 3px solid var(--steel);
  padding: 6px 0 6px 22px;
  max-width: 56ch;
  margin-bottom: 32px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-photo img {
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  max-width: 380px;
  margin: 0 auto;
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-tint { background: var(--paper-tint); border-block: 1px solid var(--line); }

.section-navy {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
}
.section-navy .section-title { color: #fff; }
.section-navy .eyebrow { color: #8fbede; }

/* ---------- The Book ---------- */

.book-card {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 56px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px;
  margin-bottom: 48px;
  box-shadow: 0 6px 24px rgba(14, 34, 56, 0.06);
}

.book-card-cover img {
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(14, 34, 56, 0.25);
}

.book-card-body p { margin-bottom: 18px; color: var(--ink-dim); }
.book-card-body p strong { color: var(--ink); }

.book-themes {
  list-style: none;
  margin: 0 0 18px;
}
.book-themes li {
  color: var(--ink-dim);
  padding: 8px 0 8px 26px;
  position: relative;
}
.book-themes li::before {
  content: '\25B8';
  color: var(--steel);
  position: absolute;
  left: 4px;
}
.book-themes strong { color: var(--ink); }

.book-card-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 6px 0 28px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}
.book-card-facts li { font-size: 0.95rem; color: var(--ink); }
.book-card-facts li span {
  display: block;
  color: var(--ink-dim);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
}

.book-card-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.launch-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 6px 24px rgba(14, 34, 56, 0.06);
}
.launch-strip img { width: 100%; }
.launch-strip figcaption {
  padding: 18px 24px;
  font-size: 0.92rem;
  color: var(--ink-dim);
}

/* ---------- Presentations gallery ---------- */

.presentations { margin-top: 48px; }

.presentations-title {
  text-align: center;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--navy);
}

.presentations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.present-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(14, 34, 56, 0.05);
}

.present-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}
.present-card img.landscape { aspect-ratio: auto; }

.present-card figcaption {
  padding: 16px 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-dim);
  flex: 1;
}

@media (max-width: 920px) {
  .presentations-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .presentations-grid { grid-template-columns: 1fr; }
  .present-card img { aspect-ratio: auto; }
}

/* ---------- Articles ---------- */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--steel);
  border-radius: 6px;
  padding: 26px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(14, 34, 56, 0.05);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(14, 34, 56, 0.12);
}

.article-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--steel);
  margin-bottom: 10px;
}

.article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
  flex: 1;
  margin-bottom: 16px;
}

.article-more {
  font-size: 0.85rem;
  color: var(--ink-dim);
}
.article-card:hover .article-more { color: var(--steel); }

.article-archive {
  max-width: 900px;
  margin: 0 auto 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}
.article-archive summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--steel);
  list-style-position: inside;
}
.article-archive summary:hover { color: var(--steel-dark); }

.archive-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
  padding: 6px 28px 26px;
}
.archive-cols h4 {
  color: var(--navy);
  font-size: 1rem;
  margin: 14px 0 8px;
}
.archive-cols ul { list-style: none; }
.archive-cols li { padding: 5px 0; font-size: 0.92rem; line-height: 1.5; }
.archive-cols a { color: var(--ink-dim); text-decoration: none; }
.archive-cols a:hover { color: var(--steel); }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}

.about-photo img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(14, 34, 56, 0.15);
}

.about-bio p { margin-bottom: 20px; color: var(--ink-dim); }
.about-bio p:first-child { color: var(--ink); }

/* ---------- Career timeline ---------- */

.career {
  max-width: 920px;
  margin: 72px auto 0;
}

.career-title {
  text-align: center;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 40px;
}

.timeline {
  list-style: none;
  position: relative;
  padding-left: 36px;
  max-width: 640px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  padding-bottom: 30px;
}
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--steel);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px var(--steel);
}
.timeline li:last-child::before { background: var(--navy); box-shadow: 0 0 0 2px var(--navy); }

.tl-years {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  margin-bottom: 2px;
}

.timeline h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}

.timeline p {
  font-size: 0.9rem;
  color: var(--ink-dim);
  margin-top: 2px;
}

/* ---------- Honours & awards ---------- */

.honours-title { margin-top: 64px; }

.honours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.honour-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(14, 34, 56, 0.05);
}

.honour-card svg { color: var(--gold); margin-bottom: 14px; }

.edu-year {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--steel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 10px;
  margin-bottom: 14px;
}

.honour-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.honour-card p {
  font-size: 0.92rem;
  color: var(--ink-dim);
}

@media (max-width: 700px) {
  .honours { grid-template-columns: 1fr; }
}

/* ---------- Contact (navy band) ---------- */

.contact-lead {
  max-width: 56ch;
  margin: 0 auto 32px;
  color: var(--on-navy-dim);
}

.social { margin-top: 56px; }

.social-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-navy-dim);
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--on-navy-dim);
  transition: all 0.25s;
}
.social-icons a:hover {
  border-color: #7db3dd;
  color: #7db3dd;
  transform: translateY(-3px);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy);
  border-top: 1px solid var(--line-dark);
  padding: 48px 0;
  text-align: center;
}
.footer-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
}
.footer-tag {
  font-size: 0.85rem;
  color: #8fbede;
  letter-spacing: 0.08em;
  margin: 6px 0 14px;
}
.footer-copy { font-size: 0.85rem; color: var(--on-navy-dim); }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }
  .hero-photo img { max-width: 280px; }
  .hero-lead, .hero-quote { margin-inline: auto; }
  .hero-quote { text-align: left; }
  .hero-cta { justify-content: center; }

  .book-card {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 24px;
  }
  .book-card-cover { max-width: 240px; margin: 0 auto; }

  .articles-grid { grid-template-columns: 1fr; }
  .archive-cols { grid-template-columns: 1fr; }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .about-photo { margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(10, 26, 44, 0.98);
    border-bottom: 1px solid var(--line-dark);
    padding: 20px 0 28px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: 10px; font-size: 1rem; }
  .nav-links .btn-nav { margin-top: 8px; }

  .section { padding: 72px 0; }
  .hero { padding-top: 110px; }
}
