:root {
  color-scheme: dark;
  --night: #060806;
  --black: #020302;
  --paper: #e7e4d9;
  --muted: #888c82;
  --amber: #efa840;
  --rust: #a94c19;
  --phosphor: #83b89a;
  --line: rgba(231, 228, 217, 0.12);
  --measure: 42rem;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", monospace;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 12% 4%, rgba(239, 168, 64, 0.12), transparent 31rem),
    radial-gradient(circle at 88% 93%, rgba(131, 184, 154, 0.08), transparent 34rem),
    linear-gradient(150deg, var(--night), var(--black) 70%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.26;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

a {
  color: var(--phosphor);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover,
a:focus-visible {
  color: var(--paper);
}

a:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 5px;
}

.shell {
  display: grid;
  width: min(100% - 2rem, 76rem);
  min-height: 100vh;
  margin: 0 auto;
  grid-template-rows: auto 1fr auto;
}

header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

header {
  border-bottom: 1px solid var(--line);
}

footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.brand {
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem 1.4rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

main {
  width: 100%;
}

.hero {
  display: grid;
  min-height: calc(100vh - 10rem);
  padding: clamp(4rem, 14vh, 10rem) 0;
  align-content: center;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.55fr);
  gap: clamp(3rem, 10vw, 9rem);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin: 1.35rem 0 1.6rem;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-size: clamp(3.4rem, 10vw, 8.8rem);
  font-weight: 560;
  letter-spacing: -0.075em;
  line-height: 0.87;
  text-wrap: balance;
}

h2 {
  margin-bottom: 1.2rem;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 540;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

h3 {
  margin: 2.5rem 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lede {
  max-width: 35rem;
  color: #b9b9af;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.55;
}

.hero-note {
  align-self: end;
  padding: 1.4rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  line-height: 1.8;
  transform: rotate(-0.65deg);
}

.hero-note strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--amber);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts {
  display: grid;
  margin-bottom: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.fact {
  min-height: 13rem;
  padding: 1.5rem;
  background: var(--night);
}

.fact p {
  margin: 0;
  color: #c6c5ba;
  font-size: 0.82rem;
  line-height: 1.65;
}

.model-note {
  margin: 0.75rem 0 2rem;
  color: #666a62;
  font-size: 0.65rem;
}

.document {
  max-width: var(--measure);
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.document .updated {
  margin: -0.3rem 0 3rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.document p,
.document li {
  color: #b9b9af;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.96rem;
  line-height: 1.75;
}

.document ul {
  padding-left: 1.25rem;
}

.document .contact {
  margin-top: 3rem;
  padding: 1.25rem;
  border-left: 2px solid var(--amber);
  background: rgba(239, 168, 64, 0.045);
}

.document .contact p {
  margin: 0;
}

.credits {
  display: grid;
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.credit {
  padding: 1rem 1.15rem;
  background: var(--night);
}

.credit p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.error {
  display: grid;
  min-height: calc(100vh - 10rem);
  place-content: center;
  text-align: center;
}

.error strong {
  color: var(--amber);
  font-size: clamp(5rem, 22vw, 13rem);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.error p {
  margin: 2rem 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  header,
  footer {
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-note {
    width: min(100%, 24rem);
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .fact {
    min-height: auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
