:root {
  --paper: #FCFBF6;
  --ink: #16233D;
  --soft: #5A6478;
  --faint: #6F7888;
  --gold: #C9A227;
  --gold-dark: #8A6D0B;
  --rule: #E7E3D8;
  --measure: 680px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.76;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

.page {
  width: min(calc(100% - 48px), var(--measure));
  margin: 0 auto;
  padding: 64px 0 112px;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.86rem;
  letter-spacing: 0.018em;
}

.site-nav .home {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.site-nav a {
  color: var(--soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.hero {
  padding: 76px 0 48px;
  border-bottom: 1px solid var(--gold);
}

h1 {
  font-size: clamp(2.35rem, 8vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.003em;
}

.role {
  margin-top: 14px;
  max-width: 35ch;
  font-style: italic;
  font-size: 1.16rem;
  line-height: 1.5;
  color: var(--soft);
}

.intro {
  padding: 42px 0 8px;
}

.intro p,
.prose p {
  margin-bottom: 1.45rem;
}

.intro p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}

h2 {
  margin: 3.35rem 0 1.3rem;
  font-size: 1.48rem;
  font-weight: 600;
  line-height: 1.25;
}

h3 {
  font-size: 1.13rem;
  font-weight: 600;
  line-height: 1.35;
}

.section-intro {
  margin-top: -0.55rem;
  margin-bottom: 1.55rem;
  max-width: 58ch;
  color: var(--soft);
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.62;
}

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

.index-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 1.55rem;
}

.index-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.79em;
  width: 5px;
  height: 5px;
  background: var(--gold);
}

.entry-title {
  font-size: 1.16rem;
}

.entry-title a {
  text-decoration-thickness: 1px;
}

.note {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: 0.94rem;
  font-style: italic;
  line-height: 1.55;
}

.year {
  color: var(--faint);
  font-size: 0.86rem;
  white-space: nowrap;
}

.meta-line {
  color: var(--faint);
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.archive {
  list-style: none;
}

.archive li {
  margin-bottom: 0.8rem;
  padding-left: 22px;
  position: relative;
}

.archive li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 4px;
  height: 4px;
  background: var(--gold);
}

.who {
  color: var(--soft);
  font-size: 0.98rem;
  font-style: italic;
}

.who::before {
  content: "with ";
  color: var(--faint);
  font-style: normal;
}

.who.plain::before { content: "· "; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--gold-dark);
  text-decoration-color: var(--ink);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.footer {
  margin-top: 74px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 0.86rem;
  letter-spacing: 0.015em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
}

.footer a {
  color: var(--soft);
}

.small-caps {
  letter-spacing: 0.045em;
  font-size: 0.83rem;
  text-transform: uppercase;
  color: var(--faint);
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

@media (max-width: 620px) {
  body { font-size: 18.5px; line-height: 1.73; }
  .page { width: min(calc(100% - 40px), var(--measure)); padding-top: 38px; }
  .site-nav { display: block; }
  .site-nav .nav-links { justify-content: flex-start; margin-top: 10px; }
  .hero { padding: 56px 0 40px; }
  h2 { margin-top: 2.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .page { width: 100%; max-width: none; padding: 0; }
  .site-nav, .footer { display: none; }
}


.speaking-entry {
  margin-bottom: 1.25rem !important;
}

.speaking-head {
  line-height: 1.45;
}

.speaking-entry .who {
  display: block;
  margin-top: 2px;
  line-height: 1.5;
}

#philosophers-in-istanbul {
  scroll-margin-top: 32px;
}
