:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --text: #1c1b18;
  --muted: #686159;
  --line: #ded6ca;
  --primary: #126b65;
  --primary-dark: #0d4c48;
  --accent: #c4492d;
  --surface: #fffdf8;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(120deg, rgba(18, 107, 101, 0.12), transparent 32rem),
    linear-gradient(300deg, rgba(196, 73, 45, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

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

.hero {
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding: 72px 0 48px;
}

.hero__content {
  max-width: 760px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 9ch;
}

.intro {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.button--primary {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.button:focus-visible {
  outline: 3px solid rgba(18, 107, 101, 0.28);
  outline-offset: 3px;
}

.section {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.5fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  padding: 56px 0;
}

h2 {
  margin-bottom: 0;
  font-size: 2rem;
  letter-spacing: 0;
}

.section > p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

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

.project {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.72);
}

.project h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.project p {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.legal-links a {
  color: var(--muted);
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

  .hero {
    min-height: auto;
    padding: 64px 0 40px;
  }

  h1 {
    font-size: clamp(2.8rem, 17vw, 4.8rem);
  }

  .section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 42px 0;
  }

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

  .site-footer__inner {
    width: min(100% - 28px, 1120px);
    align-items: flex-start;
    flex-direction: column;
  }
}
