:root {
  --ink: #1c1a17;
  --ink-soft: #4a463f;
  --paper: #f4f1ea;
  --paper-warm: #ece7dc;
  --accent: #3a4d4a;       /* muted pine — quiet, scholarly */
  --hairline: #d6cfc1;
  --serif-display: "Cormorant Garamond", Georgia, serif;
  --serif-body: "Spectral", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-weight: 300;
  line-height: 1.75;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(var(--hairline) 0.5px, transparent 0.5px);
  background-size: 22px 22px;
  z-index: 0;
}

.wrap { position: relative; z-index: 1; }

/* ---------- Masthead ---------- */
header {
  max-width: 920px;
  margin: 0 auto;
  padding: 4.5rem 2.5rem 0;
}

.brand {
  font-family: var(--serif-display);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

nav {
  margin-top: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  gap: 2.25rem;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.4s ease;
}
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }

/* ---------- Generic page body ---------- */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 5.5rem 2.5rem 2rem;
}

.page-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}
.page-title em { font-style: italic; color: var(--accent); }

.subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 3.5rem;
}

main p { margin-bottom: 1.5rem; }
main p a, main li a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.4s ease;
}
main p a:hover, main li a:hover { border-color: var(--accent); }

.lead {
  font-family: var(--serif-display);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 4rem 0;
}

h2.heading {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  margin: 3rem 0 1.5rem;
  color: var(--ink);
}

h3.subheading {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.portrait {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 3rem;
  filter: grayscale(0.2) contrast(1.02);
}

.aside {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* reflections list */
.reflection { padding: 2.5rem 0; border-bottom: 1px solid var(--hairline); }
.reflection:first-of-type { padding-top: 0; }
.reflection-date {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}
.reflection h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.reflection h2 a { color: var(--ink); text-decoration: none; transition: color 0.4s ease; }
.reflection h2 a:hover { color: var(--accent); }
.reflection .excerpt { margin-bottom: 1rem; }
.read-more {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.read-more .arrow { display: inline-block; margin-left: 0.35rem; transition: transform 0.4s ease; }
.read-more:hover .arrow { transform: translateX(5px); }

/* publications */
.book { display: flex; gap: 2.5rem; margin-bottom: 3rem; align-items: flex-start; }
.book img { width: 150px; flex-shrink: 0; box-shadow: 0 1px 0 var(--hairline); }
.book-body p { margin-bottom: 1rem; }
.ref-list { list-style: none; counter-reset: item; }
.ref-list li {
  counter-increment: item;
  padding: 0.6rem 0 0.6rem 2.5rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--hairline);
}
.ref-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  font-family: var(--serif-display);
  color: var(--accent);
  font-size: 0.95rem;
}
.ref-list cite { font-style: italic; }

/* contact */
.contact-line { font-size: 1.15rem; margin-bottom: 1rem; }
.contact-line a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--hairline); }

/* ---------- Hero (home) ---------- */
.hero { max-width: 920px; margin: 0 auto; padding: 7rem 2.5rem 5.5rem; text-align: center; }
.hero h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.credentials {
  margin-top: 2.25rem;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.reveal { opacity: 0; transform: translateY(14px); animation: rise 1.2s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.45s; }
.d3 { animation-delay: 0.75s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.messages { max-width: 920px; margin: 0 auto; padding: 0 2.5rem 6rem; }
.section-label {
  font-family: var(--serif-display);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
  text-align: center;
}
.figure { display: block; text-decoration: none; color: inherit; overflow: hidden; }
.figure img {
  width: 100%; height: auto; display: block;
  filter: grayscale(0.15) contrast(1.02);
  transition: filter 0.8s ease, transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.figure:hover img { filter: grayscale(0); transform: scale(1.015); }
.figure-caption {
  margin-top: 1.5rem; text-align: center;
  font-family: var(--serif-display);
  font-size: 1.25rem; letter-spacing: 0.05em;
  color: var(--ink-soft); transition: color 0.4s ease;
}
.figure:hover .figure-caption { color: var(--accent); }
.figure-caption .arrow { display: inline-block; margin-left: 0.4rem; transition: transform 0.4s ease; }
.figure:hover .figure-caption .arrow { transform: translateX(5px); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  max-width: 920px;
  margin: 4rem auto 0;
  padding: 3rem 2.5rem 4rem;
  text-align: center;
}
.social { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; }
.social a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.08em;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.social a:hover { color: var(--accent); border-color: var(--accent); }
.colophon { font-size: 0.72rem; letter-spacing: 0.05em; color: #9b9484; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  header { padding-top: 3rem; }
  .hero { padding: 4.5rem 1.5rem 4rem; }
  main { padding: 4rem 1.5rem 1rem; }
  nav { gap: 1.4rem; }
  .social { flex-direction: column; gap: 0.9rem; }
  .book { flex-direction: column; gap: 1.5rem; }
  .book img { width: 130px; }
}
