:root {
  --background: #f4f1eb;
  --text: #292a27;
  --muted: #696963;
  --accent: #8c8275;
  --page-gutter: clamp(1.5rem, 5vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--background);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding-inline: var(--page-gutter);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-header {
  min-height: clamp(5rem, 12vh, 7.5rem);
}

.wordmark,
.header-status,
.site-footer {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.wordmark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.4rem;
}

.header-status {
  margin: 0;
  color: var(--muted);
}

.hero {
  display: flex;
  align-items: center;
  width: 100%;
  padding-block: clamp(3.5rem, 9vh, 7rem);
}

.hero-content {
  width: min(100%, 45rem);
  margin-inline: auto;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.45rem, 5.4vw, 4.8rem);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.statement {
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  max-width: 29ch;
  color: #5f5a52;
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.description {
  margin: clamp(1.5rem, 3.5vh, 2.25rem) 0 0;
  max-width: 41rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.7;
}

.site-footer {
  min-height: clamp(4.5rem, 10vh, 6.5rem);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 40rem) {
  .site-header {
    min-height: 5rem;
  }

  .hero {
    align-items: flex-start;
    padding-block: clamp(4rem, 11vh, 6rem);
  }

  h1 {
    font-size: clamp(2.35rem, 11.4vw, 3.65rem);
  }

  .header-status {
    font-size: 0.65rem;
  }
}

@media (max-width: 24rem) {
  .header-status {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text: #1e1f1c;
    --muted: #4f504b;
    --accent: #665d53;
  }
}
