:root {
  color-scheme: dark;
  --canvas: #061f1a;
  --canvas-deep: #031411;
  --ink: #f3f2e9;
  --muted: #a8b7ae;
  --faint: #72857b;
  --line: rgba(243, 242, 233, 0.16);
  --accent: #78d99b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas-deep);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(120, 217, 155, 0.09), transparent 29rem),
    linear-gradient(140deg, var(--canvas) 0%, var(--canvas-deep) 78%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(243, 242, 233, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 242, 233, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
}

a:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

::selection {
  background: rgba(120, 217, 155, 0.26);
}

.page-shell {
  display: flex;
  width: min(100%, 90rem);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 5vw, 5rem) 1.5rem;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
}

.site-header {
  padding-bottom: 1.35rem;
}

.brand {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

main {
  margin: auto 0;
  padding: clamp(4rem, 11vh, 8.5rem) 0;
}

.hero {
  max-width: 55rem;
}

.eyebrow {
  margin: 0 0 1.75rem;
  color: var(--accent);
}

.hero h1,
.document h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 9.4vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.84;
}

.hero h1 span {
  display: block;
  color: var(--accent);
  font-style: italic;
}

.statement {
  margin: clamp(2.3rem, 5vw, 4rem) 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  padding-top: 1.35rem;
  justify-content: flex-end;
}

.site-footer a {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: var(--ink);
}

.page-shell--document main {
  display: block;
}

.document {
  width: min(100%, 54rem);
}

.document h1 {
  font-size: clamp(3.4rem, 7vw, 6.7rem);
  line-height: 0.94;
}

.document-copy {
  max-width: 41rem;
  margin: 3rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.document-copy a {
  color: var(--ink);
  text-underline-offset: 0.35rem;
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(3.7rem, 18vw, 6rem);
  }
}

@media (max-width: 430px) {
  .statement {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header,
  .hero,
  .site-footer {
    animation: enter 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero {
    animation-delay: 70ms;
  }

  .site-footer {
    animation-delay: 120ms;
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
