:root {
  --bg: #f6f3ee;
  --line: rgba(20, 20, 20, 0.1);
  --soft-line: rgba(20, 20, 20, 0.08);
  --text: #171717;
  --muted: rgba(23, 23, 23, 0.66);
  --button-bg: #171717;
  --button-text: #f7f3ee;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(255, 255, 255, 0.88),
      transparent 34%
    ),
    radial-gradient(
      circle at 18% 12%,
      rgba(255, 255, 255, 0.52),
      transparent 24%
    ),
    linear-gradient(180deg, #fbfaf7 0%, #f1ece5 100%);
  color: var(--text);
}

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

.page-shell {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 0 32px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(20% - 0.5px),
      var(--line) calc(20% - 0.5px),
      var(--line) calc(20% + 0.5px)
    ),
    linear-gradient(to bottom, var(--soft-line), var(--soft-line));
  background-size:
    100% 100%,
    100% 1px;
  background-position:
    0 0,
    0 68px;
  background-repeat: no-repeat;
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.ghost-button:hover,
.primary-button:hover {
  opacity: 0.82;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - 180px);
  padding: 120px 32px 92px;
}

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

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(23, 23, 23, 0.42);
}

.hero h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(3.8rem, 8vw, 4.8rem);
  line-height: 0.97;
  letter-spacing: -0.07em;
  font-weight: 500;
}

.lead {
  margin: 26px 0 36px;
  max-width: 520px;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--muted);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 16px 20px;
  font-weight: 600;
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    padding-top: 72px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 12px;
  }

  .site-header,
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.2rem);
  }

  .lead {
    font-size: 0.98rem;
  }

  .primary-button {
    width: 100%;
    justify-content: space-between;
  }
}
