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

:root {
  --text: #111111;
  --soft: #555555;
  --faint: #999999;
  --rule: #e0e0e0;
  --bg: #ffffff;
  --link: #1a56db;
  --max: 680px;
  --left-col: 6rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}

body {
  font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 1rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  height: 56px;
}

.nav-inner {
  max-width: calc(var(--max) + var(--left-col) + 3rem);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 0.9rem;
  color: var(--faint);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--soft);
  font-family: system-ui, sans-serif;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.page {
  max-width: calc(var(--max) + var(--left-col) + 3rem);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  padding: 5rem 0 3.5rem;
}

.hero-name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 1.1rem;
  color: var(--soft);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--soft);
  margin-bottom: 2rem;
}

.hero-links {
  display: flex;
  gap: 1.5rem;
}

.hero-links a {
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--soft);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.hero-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.hero-links svg {
  width: 0.9em;
  height: 0.9em;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--rule);
}

.section-title {
  font-size: 0.72rem;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2rem;
}

.about-body {
  max-width: var(--max);
}

.about-body p {
  color: var(--text);
  line-height: 1.8;
}

.about-body p+p {
  margin-top: 1rem;
}

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

.talk-entry {
  display: grid;
  grid-template-columns: var(--left-col) 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.talk-entry:first-child {
  border-top: 1px solid var(--rule);
}

.talk-entry-date {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--faint);
  padding-top: 0.15rem;
  line-height: 1.5;
}

.talk-entry-title {
  font-size: 0.98rem;
  line-height: 1.55;
}

.talk-entry-title a {
  color: var(--text);
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.15s;
}

.talk-entry-title a:hover {
  border-color: var(--text);
  text-decoration: none;
}

.talk-entry-event {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--faint);
  margin-top: 0.2rem;
}

.talk-more {
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--soft);
  display: inline-block;
  margin-top: 1.5rem;
}

.project-group {
  margin-bottom: 2.5rem;
}

.project-group-label {
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1rem;
}

.project-group-label a {
  color: inherit;
}

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

.project-entry {
  display: grid;
  grid-template-columns: var(--left-col) 1fr;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.project-entry:first-child {
  border-top: 1px solid var(--rule);
}

.project-stars {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--faint);
  padding-top: 0.15rem;
}

.project-name {
  font-size: 0.95rem;
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.project-name a {
  color: var(--text);
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.15s;
}

.project-name a:hover {
  border-color: var(--text);
  text-decoration: none;
}

.project-desc {
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--soft);
  margin-top: 0.2rem;
}

footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
}

.footer-copy {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--faint);
}

@media (max-width: 500px) {
  :root {
    --left-col: 4.5rem;
  }

  .talk-entry,
  .project-entry {
    gap: 0.75rem;
  }

  .hero-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
