:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #65716d;
  --line: #dce4df;
  --surface: #f7faf8;
  --accent: #2d6a5a;
  --accent-dark: #1f5144;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

.shell {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  align-content: center;
  min-height: 74vh;
  max-width: 760px;
  padding: 88px 0 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.intro {
  max-width: 560px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.button {
  justify-self: start;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.projects {
  padding: 76px 0 96px;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  margin-bottom: 36px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.045em;
}

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

.card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.card-index {
  display: block;
  margin-bottom: 48px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 32px, 560px);
  }

  .hero {
    min-height: 68vh;
    padding: 64px 0 56px;
  }

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

  .card {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 28px;
  }

  .footer {
    flex-direction: column;
  }
}
