:root {
  --bg: #f4f1ea;
  --bg-2: #ebe6dc;
  --ink: #141312;
  --muted: #6a655c;
  --line: rgba(20, 19, 18, 0.12);
  --accent: #c45c26;
  --accent-2: #1f4d45;
  --white: #fbfaf7;
  --radius: 18px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(196, 92, 38, 0.08), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(31, 77, 69, 0.08), transparent 55%),
    var(--bg);
  font-family: "Instrument Sans", system-ui, sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
}

.skip:focus {
  top: 12px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 7vw;
  background: color-mix(in srgb, var(--bg) 86%, white);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.45rem;
}

.menu-button,
.menu-close {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

.menu-button span {
  position: relative;
}

.menu-button span::before,
.menu-button span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-button span::before {
  top: -6px;
}

.menu-button span::after {
  top: 6px;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav nav a {
  font-size: 0.95rem;
  color: var(--muted);
}

.nav nav a:hover,
.nav nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink) !important;
}

.hero,
.section,
.footer {
  width: min(var(--max), calc(100% - 14vw));
  margin-inline: auto;
}

.hero {
  padding: 88px 0 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-2);
}

.lede {
  max-width: 42ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--ink);
  color: var(--white);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: transparent;
}

.btn.large {
  margin-top: 8px;
  min-height: 54px;
  padding-inline: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 64px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stats dt {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats dd {
  margin: 6px 0 0;
  font-size: 1.05rem;
}

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

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 48px;
}

.section-head h2,
.contact h2 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  color: var(--muted);
  font-size: 1.08rem;
}

.edu-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.edu-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.edu-card h3 {
  font-size: 2rem;
}

.edu-card p {
  color: var(--muted);
}

.edu-card ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.edu-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.edu-card li:last-child {
  border-bottom: 0;
}

.project {
  display: grid;
  grid-template-columns: 120px 1fr 280px;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.project:last-child {
  border-bottom: 1px solid var(--line);
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-body h3 {
  font-size: 2.2rem;
}

.project-body p {
  max-width: 46ch;
  color: var(--muted);
}

.project-body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.project-body li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
}

.project-visual {
  display: grid;
  place-items: center;
  height: 168px;
  border-radius: var(--radius);
  color: var(--white);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.4rem;
}

.visual-a {
  background: linear-gradient(145deg, #1f4d45, #0e2b27);
}

.visual-b {
  background: linear-gradient(145deg, #c45c26, #7a2e12);
}

.visual-c {
  background: linear-gradient(145deg, #2c2a27, #111);
}

.skill-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.skill-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.skill-list span {
  color: var(--muted);
}

.contact {
  text-align: left;
}

.contact p {
  max-width: 46ch;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .menu-button,
  .menu-close {
    display: inline-flex;
  }

  .nav nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 7vw;
    left: 7vw;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(20, 19, 18, 0.08);
  }

  .nav nav a {
    padding: 12px;
  }

  #menu:target {
    display: flex;
  }

  .about-grid,
  .edu-card,
  .skill-list,
  .stats {
    grid-template-columns: 1fr;
  }

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

  .project-visual {
    order: -1;
    height: 180px;
  }

  .footer {
    flex-direction: column;
  }
}
