:root {
  --background: #f4f2ed;
  --surface: #ffffff;
  --text: #161616;
  --muted: #66645f;
  --border: #d8d5ce;
  --accent: #2457ff;
  --accent-dark: #173cc0;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

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

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

.logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.navigation {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
}

.hero {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 80px;
}

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

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

h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(4rem, 11vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.introduction {
  max-width: 680px;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-links,
.project-links,
.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.hero-links a,
.project-links a {
  font-weight: 600;
}

.primary-link {
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
}

.primary-link:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

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

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

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.project-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.project-number {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.project-content h3 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.project-content > p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.technology-list li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
}

.project-links a {
  border-bottom: 1px solid currentColor;
}

.site-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .navigation {
    gap: 16px;
  }

  .navigation a:first-child {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

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

  .site-footer {
    padding-block: 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

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