:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #202124;
  --muted: #62666d;
  --line: #ded9cf;
  --accent: #2f6f73;
  --accent-dark: #234f52;
  --shadow: 0 18px 45px rgba(32, 33, 36, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 240, 0.9);
  border-bottom: 1px solid rgba(222, 217, 207, 0.7);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition:
    color 160ms ease,
    transform 160ms ease;
}

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

.section {
  padding: 88px 0;
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 72px;
  align-items: start;
}

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

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

h1 {
  max-width: 9ch;
  margin-bottom: 0;
  font-size: clamp(3rem, 9vw, 6.75rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.about-copy {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-copy h2 {
  color: var(--text);
}

.about-copy p:last-child,
.project-card p:last-child {
  margin-bottom: 0;
}

.social-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--accent);
  background: #ffffff;
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.social-links svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.projects-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 620px;
  margin-bottom: 34px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  min-height: 280px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  box-shadow: var(--shadow);
}

.project-meta {
  margin-bottom: 38px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card p,
.project-card ul {
  color: var(--muted);
}

.project-links {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.92rem;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.project-links a:hover,
.project-links a:focus-visible {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-dark);
}

@media (max-width: 760px) {
  .nav {
    width: min(100% - 28px, 1120px);
    min-height: 64px;
  }

  .section {
    padding: 64px 0;
  }

  .section-inner,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .intro-section {
    min-height: auto;
    padding-top: 76px;
  }

  .intro-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    gap: 34px;
  }

  h1 {
    max-width: 11ch;
  }

  .project-card {
    min-height: 250px;
    padding: 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
  }

  .nav-links {
    gap: 16px;
  }

  .intro-section {
    padding-top: 58px;
  }
}
