@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #1a1a17;
  --ink-soft: #3a3a35;
  --paper: #faf8f3;
  --rule: #d8d2c3;
  --rule-strong: #1a1a17;
  --accent: #8a2a1f;
  --muted: #7a7870;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* Layout containers */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: 680px; margin: 0 auto; padding: 0 2rem; }

/* Header */
header.site {
  border-bottom: 1px solid var(--rule-strong);
  padding: 1.4rem 0;
  background: var(--paper);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
}

.brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
}

.brand em { font-style: italic; font-weight: 400; color: var(--muted); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2.25rem;
}

nav a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav a:hover, nav a.active { border-bottom-color: var(--accent); color: var(--ink); }

/* Hero / masthead */
.masthead {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--rule);
}

.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.masthead h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  max-width: 22ch;
  color: var(--ink);
}

.masthead h1 em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.lede {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
}

.lede em { font-style: italic; }

/* Section titles */
.section-title {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 2rem;
}

/* Article list */
.articles-section { padding: 4rem 0; }

.article-list { list-style: none; }

.article-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.article-item:last-child { border-bottom: none; }

.article-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.4rem;
}

.article-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.article-title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s ease;
}

.article-title a:hover { background-size: 100% 1px; }

.article-dek {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* Article page (individual article) */
.article-page { padding: 4rem 0 5rem; }

.article-header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }

.article-header .meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.article-header h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.article-header h1 em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.article-header .dek {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
}

.article-body { font-size: 1.08rem; line-height: 1.75; }

.article-body p { margin-bottom: 1.4rem; }

.article-body h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
}

.article-body h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}

.article-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

.article-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-soft);
  border-left: 2px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
}

.article-body ul, .article-body ol { margin: 0 0 1.4rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }

.article-body strong { font-weight: 600; }
.article-body em { font-style: italic; }

.article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}

.article-footer a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--rule); }
.article-footer a:hover { border-bottom-color: var(--accent); }

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 4rem;
  align-items: start;
  padding: 4rem 0;
}

.about-body { font-size: 1.08rem; line-height: 1.75; }
.about-body p { margin-bottom: 1.4rem; }
.about-body h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
}

.about-photo {
  width: 240px;
  height: 300px;
  background: var(--rule);
  background-size: cover;
  background-position: center;
  margin-bottom: 1.5rem;
}

.about-sidebar p {
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.about-sidebar .label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

/* Speaking page */
.speaking-section { padding: 4rem 0; }

.speaking-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.speaking-item:last-child { border-bottom: none; }

.speaking-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.speaking-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.speaking-venue {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.speaking-desc {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* Contact page */
.contact-section { padding: 5rem 0; }

.contact-section p {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  max-width: 58ch;
}

.contact-email {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15rem;
}

.contact-email:hover { color: var(--accent); }

.contact-links { margin-top: 2.5rem; }

.contact-links a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  margin-right: 2rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.15rem;
}

.contact-links a:hover { border-bottom-color: var(--accent); color: var(--ink); }

/* Footer */
footer.site {
  margin-top: 5rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--rule-strong);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner a { color: var(--ink-soft); text-decoration: none; margin-left: 1.5rem; }
.footer-inner a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .article-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .article-date { padding-top: 0; margin-bottom: 0.25rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { width: 180px; height: 225px; }
  nav ul { gap: 1.25rem; }
  nav a { font-size: 0.72rem; letter-spacing: 0.06em; }
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-inner a { margin-left: 0; margin-right: 1.5rem; }
}