@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/newsreader-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/newsreader-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html { height: 100%; }

body {
  background-color: #f0eee6;
  color: #1f1e1d;
  font-family: 'Newsreader', 'Times New Roman', serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 24;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1f1e1d;
  text-decoration: underline;
  text-decoration-color: currentColor;
  transition: color 0.15s;
}

a:hover {
  color: #5e5d59;
}

/* ── Container ──────────────────────────────────────── */

.container {
  max-width: 40rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ── Header ─────────────────────────────────────────── */

header {
  padding-top: 24px;
  padding-bottom: 20px;
  margin-bottom: 8px;
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.header-name-link {
  text-decoration: none;
  color: #1f1e1d;
}

.header-name-link:hover { color: #1f1e1d; }

.header-name {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
}

nav .nav-link {
  font-size: 0.9rem;
  color: #87867f;
  text-decoration: underline;
  text-decoration-color: currentColor;
  transition: color 0.15s;
}

nav .nav-link:hover {
  color: #1f1e1d;
}

/* ── Monogram ───────────────────────────────────────── */

.monogram {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-top: 12px;
  margin-bottom: 28px;
  color: #b8924a;
}

.monogram::before,
.monogram::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #c9b98a;
}

.monogram-text {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-family: 'Newsreader', 'Times New Roman', serif;
}

/* ── Bio ────────────────────────────────────────────── */

.bio {
  margin-bottom: 2rem;
}

.bio p {
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 1em;
}

.bio p:last-child { margin-bottom: 0; }

/* ── Divider ────────────────────────────────────────── */

.section-divider {
  border: none;
  border-top: 1px solid #d8d5cc;
  margin-top: 0;
  margin-bottom: 2rem;
}

/* ── Sections ───────────────────────────────────────── */

section {
  margin-bottom: 2rem;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  margin-top: 0;
  margin-bottom: 0.85em;
  font-family: 'Newsreader', 'Times New Roman', serif;
}

/* ── Bullet list (Projects) ─────────────────────────── */

ul {
  list-style: none;
  padding: 0;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.bullet-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  line-height: 1.45;
}

.bullet-list li::before {
  content: '•';
  color: #b8924a;
  flex-shrink: 0;
  font-size: 0.85em;
  position: relative;
  top: -0.05em;
}

.bullet-list li a {
  margin-right: 0.1em;
}

.meta {
  color: #87867f;
  font-size: 0.95em;
}

/* ── Writing / Talks list ───────────────────────────── */

.writing-list {
  display: flex;
  flex-direction: column;
}

.writing-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5em;
  padding-top: 0.55em;
  padding-bottom: 0.55em;
  border-bottom: 1px solid #e4e1d8;
  line-height: 1.4;
  font-size: 0.975rem;
}

.writing-list li:first-child {
  border-top: 1px solid #e4e1d8;
}

.writing-list li a,
.writing-list li span:first-child {
  color: #1f1e1d;
  flex: 1;
  min-width: 0;
}

.writing-list li a {
  text-decoration: none;
}

.writing-list li a:hover {
  text-decoration: underline;
  color: #1f1e1d;
}

.date {
  color: #a09e97;
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────── */

footer {
  margin-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.footer-links a {
  font-size: 0.875rem;
  color: #87867f;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: #1f1e1d; }

.sep {
  color: #b0aea5;
  user-select: none;
}

.footer-ornament {
  color: #b8924a;
  font-size: 0.8rem;
  margin-top: 0.25em;
}

.footer-copy {
  font-size: 0.8rem;
  color: #a09e97;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 767px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .bio p {
    font-size: 1.05rem;
  }

  .writing-list li {
    flex-direction: column;
    gap: 0.2em;
  }

  .date {
    font-size: 0.8rem;
  }
}

@media (max-width: 479px) {
  body {
    font-size: 1rem;
  }

  header {
    padding-top: 16px;
  }

  .header-name {
    font-size: 1.1rem;
  }

  .bio p {
    font-size: 1rem;
    line-height: 1.5;
  }

  h2 {
    font-size: 0.95rem;
  }

  footer {
    padding-bottom: 2rem;
    margin-top: 2rem;
  }
}
