:root {
  --bg: #0b1218;
  --ink: #f2efe8;
  --muted: rgba(242, 239, 232, 0.78);
  --line: rgba(242, 239, 232, 0.18);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", Candara, Calibri, sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 42rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a.quiet,
.quiet-links a {
  color: rgba(242, 239, 232, 0.38);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.25s ease;
}

a.quiet:hover,
.quiet-links a:hover {
  color: rgba(242, 239, 232, 0.72);
  text-decoration: none;
}

.page a:not(.quiet) {
  color: rgba(242, 239, 232, 0.55);
  text-decoration: underline;
  text-decoration-color: rgba(242, 239, 232, 0.22);
  text-underline-offset: 0.18em;
}

.page a:not(.quiet):hover {
  color: var(--ink);
  text-decoration-color: rgba(242, 239, 232, 0.55);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.04);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 18, 24, 0.28) 0%, rgba(11, 18, 24, 0.18) 40%, rgba(11, 18, 24, 0.88) 100%),
    linear-gradient(90deg, rgba(11, 18, 24, 0.55) 0%, rgba(11, 18, 24, 0.1) 55%, rgba(11, 18, 24, 0.35) 100%);
}

.hero__content {
  width: min(100% - (var(--space) * 2), 48rem);
  margin: 0 auto var(--space);
  padding-bottom: clamp(1.5rem, 6vh, 4rem);
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.lede {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.quiet-links {
  position: absolute;
  right: var(--space);
  bottom: var(--space);
  display: flex;
  gap: 1rem;
  z-index: 1;
}

.page {
  width: min(100% - (var(--space) * 2), var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 0 4rem;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.page p,
.page li {
  color: var(--muted);
}

.page ul {
  padding-left: 1.2rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

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

  .hero__media img,
  .hero__content,
  .page {
    animation: none;
  }

  .hero__media img {
    transform: none;
  }

}
