:root {
  --paper: #efeae2;
  --ink: #161410;
  --muted: #5c554e;
  --faint: #6f675e;
  --accent: #9a3412;
  --line: rgba(22, 20, 16, 0.14);
  --pad: clamp(1.25rem, 4vw, 3.25rem);
  --measure: 68rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  letter-spacing: -0.011em;
}

.wash,
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.wash {
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(194, 65, 12, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 8%, rgba(22, 20, 16, 0.04), transparent 50%);
}

.grain {
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
}

.skip:focus {
  top: 0.75rem;
}

.top,
main,
footer {
  position: relative;
  z-index: 1;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding: 0.95rem var(--pad);
  background: rgba(239, 234, 226, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.wordmark {
  flex: 0 0 auto;
  font-family: "Syne", "Avenir Next", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
}

.nav a,
.phone,
.resume {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a:hover,
.phone:hover,
.resume:hover,
.email:hover {
  color: var(--ink);
}

main {
  width: min(var(--measure), 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.hero {
  padding-top: clamp(2.5rem, 8vh, 5.5rem);
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}

.kicker,
.section-label,
.label,
.role,
.dates,
.where {
  margin: 0;
}

.kicker,
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.8fr);
  gap: 1.25rem 3rem;
  align-items: end;
  margin-top: 1.1rem;
}

h1,
h2 {
  font-family: "Syne", "Avenir Next", sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}

h1 {
  margin: 0;
  font-size: clamp(3.6rem, 9.2vw, 7.6rem);
  line-height: 0.84;
}

.line {
  display: block;
}

.thesis {
  margin: 0 0 0.35rem;
  font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  max-width: 40rem;
  margin: 1.75rem 0 0;
  font-weight: 300;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--muted);
}

.where {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 1.35rem 1.25rem 1.35rem 0;
}

.stat + .stat {
  padding-left: 1.35rem;
  border-left: 1px solid var(--line);
}

.num {
  margin: 0;
  font-family: "Syne", "Avenir Next", sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.label {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.block {
  padding-top: clamp(3.5rem, 8vh, 5.5rem);
  scroll-margin-top: 4.5rem;
}

.section-label {
  margin-bottom: 0.25rem;
}

.entry {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  padding: 2.25rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.entry:first-of-type {
  border-top: 1px solid var(--line);
  margin-top: 1.25rem;
}

.entry h2,
.note-card h2,
.contact h2 {
  margin: 0;
  text-wrap: balance;
}

.entry h2,
.note-card h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1.05;
}

.entry-body h2 {
  margin-bottom: 0.75rem;
}

.role,
.dates {
  color: var(--faint);
  font-size: 0.92rem;
}

.dates {
  font-family: "Syne", "Avenir Next", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.role {
  margin-top: 0.4rem;
  line-height: 1.4;
}

.entry-body p,
.note-card p,
.record dd {
  margin: 0;
  font-weight: 300;
  color: var(--ink);
}

.results {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.results li {
  display: grid;
  grid-template-columns: 8.75rem minmax(0, 1fr);
  gap: 0.85rem 1.1rem;
  align-items: baseline;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.results strong {
  font-family: "Syne", "Avenir Next", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.results span {
  font-weight: 300;
  color: var(--muted);
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  margin-top: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.note-card p {
  margin-top: 0.9rem;
  color: var(--muted);
}

.record {
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}

.record div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: 0.75rem 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.record dt {
  font-family: "Syne", "Avenir Next", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.record dd {
  margin: 0;
  font-weight: 300;
  color: var(--muted);
}

.contact {
  padding: clamp(3.5rem, 9vh, 6rem) 0 clamp(3rem, 7vh, 4.5rem);
  scroll-margin-top: 4.5rem;
}

.contact h2 {
  max-width: 18em;
  margin-top: 0.85rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.75rem;
  margin: 1.75rem 0 0;
}

.email {
  font-family: "Syne", "Avenir Next", sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad) 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

footer p {
  margin: 0;
}

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

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

@media (max-width: 860px) {
  .hero-grid,
  .entry,
  .pair,
  .record div {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .thesis {
    margin-top: 0.35rem;
  }

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

  .stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .stat:nth-child(2),
  .stat:nth-child(4) {
    padding-left: 1.15rem;
    border-left: 1px solid var(--line);
  }

  h1 {
    font-size: clamp(3.3rem, 16vw, 5.2rem);
  }
}

@media (max-width: 640px) {
  .results li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .top {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.35rem;
  }

  .nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 0.35rem 1rem;
  }
}

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