:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --ink: #151515;
  --muted: #aaa8a2;
  --ghost: rgba(21, 21, 21, 0.07);
  --rule: rgba(21, 21, 21, 0.32);
  --accent: #2457ff;
  --page-gutter: clamp(1.5rem, 4.5vw, 4.5rem);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

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

html {
  background: var(--paper);
}

body {
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

.site-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--page-gutter);
}

.site-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: clamp(4.75rem, 10.5vh, 6.75rem);
  padding-bottom: clamp(1.1rem, 2.2vh, 1.5rem);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.35rem, 0.7vw, 0.55rem);
  color: inherit;
  text-decoration: none;
}

.brand:focus-visible {
  border-radius: 0.2rem;
  outline: 2px solid var(--accent);
  outline-offset: 0.35rem;
}

.brand-mark {
  position: absolute;
  top: 0.75rem;
  left: calc(1.25rem - var(--page-gutter));
  display: block;
  width: clamp(4rem, 5.6vw, 4.5rem);
  height: clamp(2.7rem, 3.8vw, 3rem);
  object-fit: contain;
}

.wordmark {
  margin-left: clamp(2.25rem, calc(6rem - var(--page-gutter)), 4.5rem);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.045em;
}

.menu-toggle {
  position: absolute;
  top: 0.75rem;
  right: calc(0.75rem - var(--page-gutter));
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}

.menu-toggle svg,
.site-menu svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.5;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  color: var(--accent);
}

.menu-toggle:focus-visible,
.site-menu a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.2rem;
}

.site-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.75rem);
  right: calc(0.75rem - var(--page-gutter));
  width: min(13rem, calc(100vw - 1.5rem));
  border: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: 0 1rem 2.5rem rgba(21, 21, 21, 0.12);
}

.site-menu[hidden] {
  display: none;
}

.site-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
}

.site-menu a:hover {
  background: var(--accent);
  color: #fff;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding-top: clamp(5rem, 15vh, 9rem);
}

.hero h1 {
  max-width: 70rem;
  margin: 0;
  font-size: clamp(3rem, 6.6vw, 7rem);
  font-weight: 760;
  letter-spacing: -0.068em;
  line-height: 0.98;
}

.lineage {
  display: flex;
  align-items: baseline;
  gap: 0.25em;
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.25rem, 2.5vw, 2.6rem);
  letter-spacing: 0.035em;
}

.lineage .arrow {
  color: #b8b6b0;
}

.lineage strong,
.lineage-display strong {
  color: var(--accent);
  font-weight: 650;
}

.lineage-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: clamp(3.5rem, 8vh, 7rem);
  color: var(--ghost);
  font-size: clamp(4.5rem, 10.2vw, 10rem);
  font-weight: 680;
  letter-spacing: -0.075em;
  line-height: 0.72;
  white-space: nowrap;
}

.lineage-display .arrow {
  color: rgba(21, 21, 21, 0.09);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.lineage-display .char {
  display: inline;
}

.site-footer {
  margin-top: clamp(2.25rem, 5vh, 3.75rem);
  padding: clamp(1.25rem, 2.6vh, 1.75rem) 0 clamp(1.5rem, 3.4vh, 2.25rem);
  border-top: 1px solid var(--rule);
}

.site-footer p {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  letter-spacing: 0.02em;
}

@media (max-width: 48rem) {
  main {
    padding-top: clamp(3.5rem, 11vh, 6rem);
  }

  .hero h1 {
    font-size: clamp(2.85rem, 12.5vw, 5rem);
    letter-spacing: -0.065em;
    line-height: 0.96;
  }

  .lineage {
    justify-content: space-between;
    gap: 0.25em;
    font-size: clamp(0.92rem, 4vw, 1.35rem);
  }

  .lineage-display {
    font-size: clamp(1.85rem, 9.2vw, 4.5rem);
    letter-spacing: -0.06em;
    line-height: 0.8;
  }
}

@media (max-width: 22.5rem) {
  .hero h1 {
    font-size: 11vw;
  }
}

@media (max-height: 43rem) and (min-width: 48.01rem) {
  main {
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 7.5vw, 5.8rem);
  }

  .lineage-display {
    margin-top: 3.5rem;
    font-size: clamp(4rem, 9vw, 7rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero {
    animation: enter 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .lineage-display .char {
    opacity: 0;
    animation: write-character 70ms linear forwards;
    animation-delay: var(--char-delay);
  }

  .site-footer {
    animation: fade-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 140ms;
  }
}

@keyframes write-character {
  to {
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }

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