:root {
  --paper: #f7f7f2;
  --ink: #111713;
  --muted: #5e6761;
  --line: #d8ded9;
  --accent: #087f5b;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 23, 19, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 23, 19, 0.024) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.header-link {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-decoration: none;
}

.header-link:hover {
  color: var(--accent);
}

.hero {
  max-width: 900px;
  padding: 118px 0 110px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 32px;
  font-size: clamp(3.3rem, 8.8vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.summary {
  max-width: 710px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.1vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

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

.button:hover {
  border-color: var(--accent);
}

.projects {
  padding: 92px 0 104px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  column-gap: 54px;
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.project-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 32px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.48);
}

.project-number,
.project-type {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-number {
  padding-top: 7px;
}

.project-type {
  margin-bottom: 14px;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.project-question {
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.project-description {
  max-width: 690px;
  margin-bottom: 25px;
  color: var(--muted);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  font-size: 0.9rem;
  font-weight: 600;
}

.project-links a:hover {
  color: var(--accent);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0 42px;
  color: var(--muted);
  font-size: 0.8rem;
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .hero {
    padding: 82px 0 76px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .projects {
    padding: 72px 0 80px;
  }

  .section-heading {
    display: block;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 25px;
  }

  footer {
    display: block;
  }

  footer p + p {
    margin-top: 5px;
  }
}
