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

:root {
  --bg: #000000;
  --ink: #f3efe6;
  --muted: #7a766e;
  --dimmer: #5a554d;
  --rule: rgba(243,239,230,0.13);
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 64px;
}

/* Section grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 64px;
  align-items: start;
}

/* Section label */
.section-label h2 {
  margin: 0;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-subtitle {
  margin-top: 4px;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--muted);
}

/* Dividers */
hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 80px 0 64px;
}
hr.footer-rule {
  margin: 96px 0 32px;
}

/* Lists (shared reset) */
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Links */
a {
  color: var(--ink);
  transition: none;
}
a:hover { opacity: 0.7; }

.ulink {
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.link-plain {
  color: #c4a882;
  text-decoration: none;
}
.link-plain:hover { opacity: 0.7; }

/* ── Hero ── */
h1 {
  margin: 0;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.tagline {
  margin-top: 4px;
  font-size: 28px;
  color: var(--muted);
  line-height: 1.2;
}
.intro {
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.55;
  max-width: 380px;
}
.hero-links {
  margin-top: 22px;
  display: flex;
  gap: 28px;
  font-size: 17px;
}
.portrait-wrap {
  display: flex;
  justify-content: flex-end;
}
.portrait {
  width: 360px;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ── Hero sidebar (portrait-left layout) ── */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.portrait-sidebar {
  width: 100%;
  max-width: 260px;
  display: block;
  border-radius: 4px;
  margin-bottom: 24px;
}
.hero-links-col {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
}

/* ── Writing / Entries (shared row pattern) ── */
.entry-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.entry-row:first-child { border-top: none; }
.entry-title {
  font-size: 18px;
  text-decoration: none;
}
.entry-year {
  font-size: 14px;
  color: var(--dimmer);
  text-align: right;
}

/* ── Currently ── */
.now-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  font-size: 18px;
  line-height: 1.55;
}
.now-row:first-child { border-top: none; }
.now-key { color: var(--muted); }

/* ── Research ── */
.pub-list li {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.pub-list li:first-child { border-top: none; }
.pub-title {
  font-size: 20px;
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  line-height: 1.35;
  display: block;
}
.pub-authors {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}
.pub-venue {
  margin-top: 4px;
  font-size: 14px;
  color: var(--dimmer);
}
.pub-more {
  font-size: 16px;
  color: var(--muted);
}

.pub-extra { display: none; }

.pub-toggle {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  cursor: pointer;
}

/* ── About ── */
.bio {
  font-size: 19px;
  line-height: 1.6;
}
.bio p {
  margin: 0 0 1.2em;
}
.bio p:last-of-type { margin-bottom: 0; }

.experience-heading {
  margin: 64px 0 24px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

dl { margin: 0; }
.exp-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.exp-row:first-child { border-top: none; }
.exp-what { font-size: 17px; }
.exp-where {
  font-size: 16px;
  color: var(--muted);
}
.exp-when {
  font-size: 14px;
  color: var(--dimmer);
  text-align: right;
}

/* ── Footer ── */
footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-copy { color: var(--dimmer); }

/* ── Responsive ── */
@media (max-width: 720px) {
  .page { padding: 64px 24px; }
  .grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .portrait { width: 100%; max-width: 320px; }
  .portrait-wrap { justify-content: flex-start; }
}
