:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --ink: #161716;
  --muted: #60635e;
  --line: #d9ddd3;
  --field: #eceee7;
  --accent: #7c3f35;
  --accent-quiet: #49685a;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header,
.site-footer,
main {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
}

.wordmark {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a,
.site-footer a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 34px 0 88px;
}

.intro {
  max-width: 680px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-quiet);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(4rem, 12vw, 8.8rem);
  line-height: 0.88;
}

h2 {
  max-width: 720px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.lede {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.hero-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.32);
  font-size: 0.94rem;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hero-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.portrait {
  width: min(100%, 420px);
  margin: 0 0 0 auto;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 8px;
  filter: grayscale(1) contrast(0.95) brightness(1.02);
  object-fit: cover;
}

.section {
  border-top: 1px solid var(--line);
  padding: 86px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 38px;
}

.list {
  border-top: 1px solid var(--line);
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.list-item strong,
.archive-grid span {
  display: block;
  font-size: 1.05rem;
  font-weight: 650;
}

.list-item small,
.archive-grid small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
}

.list-item > span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.archive-grid a {
  min-height: 152px;
  padding: 22px;
  background: var(--paper);
  transition: background 160ms ease, color 160ms ease;
}

.archive-grid a:hover {
  background: var(--field);
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    padding-top: 24px;
  }

  .nav-links {
    gap: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 52px 0 76px;
  }

  .portrait {
    width: min(100%, 340px);
    margin: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  main {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header,
  .site-footer {
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5.2rem);
  }

  .hero-links {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-links a {
    justify-content: center;
  }

  .list-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }
}
