:root {
  color-scheme: dark;
  --background: oklch(0.145 0.008 255);
  --foreground: oklch(0.94 0.007 85);
  --muted: oklch(0.69 0.012 255);
  --border: oklch(0.29 0.014 255);
  --accent: oklch(0.73 0.15 246);
  --accent-hover: oklch(0.8 0.12 246);
  --font:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.page-shell {
  display: flex;
  width: min(100% - clamp(2rem, 7vw, 7rem), 90rem);
  min-height: 100vh;
  margin-inline: auto;
  flex-direction: column;
}

.masthead {
  display: flex;
  min-height: clamp(5rem, 8vw, 7rem);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 1.15rem;
  height: 1.15rem;
}

.archive-date,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.4;
  text-transform: uppercase;
}

main {
  display: grid;
  flex: 1;
  align-items: center;
  padding-block: clamp(4.5rem, 10vw, 9rem);
}

.archive-plaque {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.15fr) minmax(21rem, 0.85fr);
  align-items: start;
  gap: clamp(3.5rem, 9vw, 9rem);
}

.archive-heading {
  max-width: 48rem;
}

h1 {
  max-width: 9ch;
  margin: -0.08em 0 0;
  font-size: clamp(4.25rem, 8.8vw, 8.6rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.91;
}

.archive-copy {
  max-width: 42rem;
  padding-top: 0.35rem;
}

.lede {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 520;
  line-height: 1.48;
}

.note,
.contact-note {
  max-width: 65ch;
  color: var(--muted);
  font-size: 1rem;
}

.note {
  margin: clamp(1.4rem, 3vw, 2rem) 0 0;
}

.contact-note {
  margin: 1.25rem 0 clamp(2.5rem, 5vw, 4rem);
}

.contact-note a {
  color: var(--foreground);
  font-weight: 650;
  text-decoration-color: color-mix(in oklch, var(--accent), transparent 35%);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.contact-note a:hover {
  color: var(--accent-hover);
}

.docs-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.docs-link span {
  color: var(--accent);
  font-size: 1.15rem;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.docs-link:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.docs-link:hover span {
  transform: translate(0.12rem, -0.12rem);
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.error-plaque h1 {
  font-size: clamp(3.8rem, 7.5vw, 7.2rem);
}

.error-plaque .docs-link {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 2rem, 44rem);
  }

  .masthead {
    min-height: 5rem;
  }

  main {
    align-items: start;
    padding-block: clamp(3.5rem, 11vw, 6rem);
  }

  .archive-plaque {
    grid-template-columns: 1fr;
    gap: clamp(2.75rem, 9vw, 4.5rem);
  }

  h1,
  .error-plaque h1 {
    max-width: 10ch;
    font-size: clamp(3.5rem, 15vw, 6rem);
  }

  .archive-copy {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 1.75rem, 44rem);
  }

  .masthead {
    gap: 1rem;
  }

  .archive-date {
    max-width: 10ch;
    text-align: right;
  }

  main {
    padding-block: 3.25rem 4.5rem;
  }

  .archive-plaque {
    gap: 2.5rem;
  }

  h1,
  .error-plaque h1 {
    font-size: clamp(3.25rem, 15.5vw, 4.4rem);
    line-height: 0.94;
  }

  .lede {
    font-size: 1.18rem;
  }
}

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