:root {
  --ink: #182018;
  --muted: #5d675c;
  --paper: #f5f3eb;
  --card: #fcfbf7;
  --line: #d7d9ce;
  --accent: #285d43;
  --accent-light: #dce8de;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}

.brand {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

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

.hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 72px 112px;
  border-bottom: 1px solid var(--line);
}

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

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

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

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

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: #1e4933;
  transform: translateY(-2px);
}

.section {
  padding-block: 96px;
  border-bottom: 1px solid var(--line);
}

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

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

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

.project-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.project-number {
  margin-bottom: 54px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.project-card h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 500;
}

.project-card > p:not(.project-number) {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 0;
  padding: 24px 0 0;
  list-style: none;
}

.tags li {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 700;
}

.skills-list {
  border-top: 1px solid var(--line);
}

.skill-group {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) 1fr;
  gap: 40px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.skill-group h3,
.skill-group p {
  margin: 0;
}

.skill-group h3 {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.skill-group p {
  color: var(--muted);
}

footer {
  padding-block: 30px 50px;
  color: var(--muted);
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1080px);
  }

  .hero {
    min-height: 68vh;
    padding-block: 56px 80px;
  }

  .section {
    padding-block: 72px;
  }

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

  .project-card {
    min-height: 300px;
  }

  .skill-group {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
