#modal-year { color: #b3202f; }

:root {
  --ground: #0b2a5b;
  --accent: #e09b10;
  --cream: #f6f2ea;
  --ink: #14213d;
  --muted: #5b6478;
  --crimson: #b3202f;
  --sand: #eae4d6;
  --stone: #d9d3c5;
  --max: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Barlow, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.kicker {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.display {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  line-height: 1.1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
  padding: 10px 26px;
}

.btn-line {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--accent);
  padding: 10px 20px;
  align-self: flex-start;
}

.site-header {
  background: var(--ground);
  color: var(--cream);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 24px;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 28px);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.18em;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 1px solid rgba(246, 242, 234, 0.35);
  color: var(--cream);
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  padding: clamp(24px, 4vw, 40px) 0 clamp(32px, 5vw, 48px);
}

.hero-copy {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bars {
  display: flex;
  gap: 6px;
}

.bars span {
  height: 8px;
}

.bars span:nth-child(1) { width: 90px; background: var(--accent); }
.bars span:nth-child(2) { width: 44px; background: var(--cream); }
.bars span:nth-child(3) { width: 22px; background: var(--accent); }

.hero-title {
  margin: 0;
}

.hero-sign {
  width: min(100%, 560px);
}

.lede {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 24px);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-photo {
  flex: 1 1 380px;
  max-width: 540px;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 70% 20%;
  border-bottom: 8px solid var(--accent);
}

.section {
  padding: clamp(32px, 5vw, 56px) 0;
}

.bio {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.2fr);
  gap: 28px 40px;
  align-items: start;
}

.bio h2,
.featured h2,
.books h2,
.blog h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
}

.bio h2 {
  margin: 0;
}

.bio-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bio-copy p {
  margin: 0;
}

.note {
  color: var(--muted);
}

.books {
  background: var(--ink);
  color: var(--cream);
}

.books .kicker {
  color: var(--accent);
}

.books h2 {
  margin: 6px 0 24px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}

.book-card {
  border-top: 4px solid var(--accent);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-card h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.book-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  align-items: start;
}

.featured-copy,
.timeline {
  flex: 1 1 340px;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-copy .kicker,
.blog .kicker {
  color: var(--crimson);
}

.timeline-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--ink);
}

.timeline-row:last-child {
  border-bottom: 1px solid var(--ink);
}

.year {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(26px, 5vw, 36px);
  min-width: 84px;
}

.blog {
  background: var(--sand);
}

.blog h2 {
  margin: 6px 0 24px;
}

.featured-post {
  display: none;
}

.post-thumb {
  display: block;
  overflow: hidden;
  background: var(--stone);
}

.featured-media img,
.post-thumb img,
.article-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article {
  max-width: 760px;
}

.article-hero {
  max-height: 420px;
  margin-bottom: 24px;
  border-bottom: 8px solid var(--accent);
}

.article-body {
  font-size: 20px;
  line-height: 1.7;
}

.article-body .indent,
.article-body blockquote {
  margin-left: 28px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
}

.post-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
  background: #fff;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
}

.post-card.no-img {
  grid-template-columns: 1fr;
}

.post-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.post-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-card h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  line-height: 1.2;
}

.post-card p {
  margin: 0;
  font-size: 16px;
}

.more {
  font-weight: 600;
  color: var(--crimson);
}

.site-footer {
  background: var(--ground);
  color: var(--cream);
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: clamp(28px, 5vw, 40px) 0 0;
}

.footer-main h2 {
  margin: 0 0 8px;
  font-size: 36px;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.18em;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 16, 36, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.is-open {
  display: flex;
}

.modal-card {
  background: var(--cream);
  color: var(--ink);
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 40px);
  border-top: 8px solid var(--accent);
  font-size: 17px;
  line-height: 1.65;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.modal-card h3 {
  margin: 0 0 20px;
  font-size: clamp(26px, 4vw, 36px);
}

.modal-card p {
  margin: 0 0 14px;
}

.close {
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  font-weight: 600;
  cursor: pointer;
}

.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.book-card,
.post-card,
.timeline-row {
  transition-delay: var(--delay, 0ms);
}

@media (max-width: 960px) {
  .bio,
  .featured {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-top: 1px solid rgba(246, 242, 234, 0.15);
  }

  .hero {
    gap: 24px;
  }

  .hero-photo {
    max-width: none;
  }

  .book-grid,
  .post-card {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .btn,
  .nav a::after {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
