:root {
  color: #172b24;
  background: #f7f6f2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Hiragino Sans", "Yu Gothic", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(circle at 76% 20%, #dce7cd 0, transparent 25rem),
    #f7f6f2;
}

.page-shell {
  width: min(100% - 3rem, 64rem);
  margin: 0 auto;
  padding: clamp(5rem, 16vh, 10rem) 0 4rem;
}

.hero {
  max-width: 44rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #52725d;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.17em;
}

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

h1 {
  margin-bottom: 1.25rem;
  color: #173e30;
  font-size: clamp(4rem, 12vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.85;
}

.lead {
  margin-bottom: 2.2rem;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.85;
}

.x-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #173e30;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  color: #f7f6f2;
  background: #173e30;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.x-link:hover {
  color: #173e30;
  background: #dce7cd;
  transform: translateY(-2px);
}

.x-link:focus-visible {
  outline: 3px solid #d97b45;
  outline-offset: 4px;
}

.x-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentcolor;
}

.projects {
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) minmax(15rem, 1fr);
  gap: 2rem;
  margin-top: clamp(8rem, 20vh, 14rem);
  border-top: 1px solid #aac2ae;
  padding-top: 1.5rem;
}

.projects h2 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.projects p:last-child {
  margin: 0;
  color: #41624d;
  line-height: 1.8;
}

footer {
  width: min(100% - 3rem, 64rem);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: #52725d;
  font-size: 0.8rem;
}

@media (max-width: 40rem) {
  .page-shell {
    width: min(100% - 2rem, 64rem);
    padding-top: 4rem;
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 7rem;
  }

  footer {
    width: min(100% - 2rem, 64rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .x-link {
    transition: none;
  }
}
