:root {
  --background: #f4f4f0;
  --surface: #fafaf7;
  --text: #20231f;
  --muted: #686d66;
  --faint: #969b94;
  --line: #d9dcd5;
  --accent: #49645a;
  --accent-soft: #e6ece8;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 244, 240, 0.88);
  border-bottom: 1px solid rgba(217, 220, 213, 0.85);
  backdrop-filter: blur(14px);
}

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

.logo {
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.nav-links a,
.hero-links a,
.project-links a,
.footer a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.hero-links a:hover,
.project-links a:hover,
.footer a:hover {
  color: var(--accent);
}

main,
.footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  max-width: 860px;
  padding: 112px 0 104px;
}

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

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

h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-links a:first-child {
  color: var(--text);
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.section-number {
  margin: 2px 0 0;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

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

.project-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.project-index {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.project-type,
.apps-label {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-description {
  max-width: 570px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-details {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.project-details li + li {
  margin-top: 4px;
}

.project-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

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

.tech-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  font-weight: 700;
}

.apps-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 170px;
  padding: 34px 38px;
  background: var(--accent-soft);
  border: 1px solid #d5ded8;
  border-radius: 14px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.apps-card:hover {
  transform: translateY(-2px);
  background: #e1e9e4;
  border-color: #c1cec6;
}

.apps-card h3 {
  max-width: 530px;
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  font-weight: 500;
}

.arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #bccac1;
  border-radius: 50%;
  font-size: 1rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 780px) {
  .hero {
    padding: 82px 0 72px;
  }

  .section {
    padding: 66px 0;
  }

  .project-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .project-meta {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .nav {
    min-height: 58px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.76rem;
  }

  .nav-links a:nth-child(3) {
    display: none;
  }

  .hero {
    padding: 68px 0 60px;
  }

  h1 {
    font-size: 2rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 34px;
  }

  .section-number {
    display: none;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 0;
  }

  .project-index,
  .project-meta {
    grid-column: 1;
  }

  .project-index {
    margin-bottom: -2px;
  }

  .apps-card {
    min-height: 150px;
    padding: 26px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
