* { box-sizing: border-box; }

:root {
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --text: #20221f;
  --muted: #6d716a;
  --line: #d8d5cc;
  --accent: #20221f;
}

html { scroll-behavior: smooth; }

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

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

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,253,248,.82);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  letter-spacing: .12em;
}

nav {
  display: flex;
  gap: 24px;
  font-size: .95rem;
}

.hero {
  min-height: calc(100vh - 145px);
  display: grid;
  grid-template-columns: 1fr .9fr;
  align-items: center;
  gap: 64px;
  padding-block: 72px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--muted);
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.lead {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.15rem;
}

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

.button {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 650;
}

.button:hover { text-decoration: none; opacity: .85; }

.button.secondary {
  background: transparent;
  color: var(--text);
}

.hero-image {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: var(--surface);
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.content {
  max-width: 760px;
  padding-block: 96px;
  min-height: calc(100vh - 145px);
}

.content h1 {
  font-size: clamp(3rem, 6vw, 5rem);
}

.content p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  font-weight: 650;
}

.error-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
}

.error-page h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 48px;
  }

  .hero-image {
    max-width: 560px;
  }

  .footer {
    flex-direction: column;
  }
}
