:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #61615c;
  --line: #dedbd2;
  --accent: #116a7b;
  --accent-strong: #0a4451;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

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

a:hover {
  color: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 20px 24px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
}

.brand {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 76px 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: end;
  min-height: calc(100vh - 80px);
  padding-top: 92px;
}

.eyebrow,
.project-meta,
.date {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(52px, 10vw, 118px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.intro {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions a,
.project-card a,
.footer-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 700;
}

.actions a:first-child {
  background: var(--ink);
  color: var(--surface);
}

.profile-panel {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}

.profile-panel img {
  display: block;
  width: 128px;
  height: 128px;
  margin-bottom: 28px;
  border-radius: 8px;
  object-fit: cover;
  filter: grayscale(100%);
}

dl {
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 0 0 16px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 52px;
  border-top: 1px solid var(--line);
}

.stacked,
.timeline {
  display: grid;
  gap: 18px;
}

.work-item,
.timeline article {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.work-item p,
.timeline p,
.project-card p,
.footer-band p {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 34px;
}

.skills-groups {
  display: grid;
  gap: 28px;
}

.skills-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 13px;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-link-secondary {
  background: transparent;
  color: var(--ink);
}

.timeline article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
}

.timeline .date {
  margin: 4px 0 0;
}

.footer-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-bottom: 48px;
}

.footer-links {
  align-content: start;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .hero,
  .split,
  .footer-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 48px;
    padding-top: 64px;
  }

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

  .timeline article {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    position: static;
  }

  .nav {
    max-width: 220px;
  }

  h1 {
    font-size: 48px;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .actions a,
  .footer-links a {
    width: 100%;
  }
}
