:root {
  color-scheme: dark;
  --ink: #10110f;
  --paper: #f1efe8;
  --paper-dim: #aaa99f;
  --line: rgba(241, 239, 232, 0.16);
  --line-strong: rgba(241, 239, 232, 0.34);
  --amber: #ffb547;
  --mint: #6df7df;
  --coral: #ff735c;
  --page-pad: clamp(1.25rem, 5vw, 5.5rem);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 9%, rgba(109, 247, 223, 0.09), transparent 26rem),
    radial-gradient(circle at 10% 55%, rgba(255, 115, 92, 0.07), transparent 30rem),
    var(--ink);
}

a {
  color: inherit;
}

a:hover {
  color: var(--mint);
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 17, 15, 0.88);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  width: max-content;
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-mark {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 1.8rem;
}

.wordmark-mark::before,
.wordmark-mark::after,
.wordmark-mark i {
  display: block;
  width: 3px;
  border-radius: 10px;
  background: var(--amber);
  content: "";
}

.wordmark-mark::before {
  height: 0.7rem;
}

.wordmark-mark::after {
  height: 1rem;
}

.wordmark-mark i:nth-child(1) {
  height: 1.35rem;
}

.wordmark-mark i:nth-child(2) {
  height: 0.55rem;
  background: var(--mint);
}

.wordmark-mark i:nth-child(3) {
  height: 1.6rem;
  background: var(--coral);
}

.play-link,
.back-link,
.eyebrow,
.updated,
.section-label,
.site-footer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.06em;
}

.play-link {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  font-size: 0.68rem;
  text-decoration: none;
  text-transform: uppercase;
}

main {
  width: min(100%, 77rem);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) var(--page-pad) clamp(5rem, 10vw, 9rem);
}

.document-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.55fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: end;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-label {
  color: var(--amber);
  font-size: 0.68rem;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 1.2rem 0 0;
  font-size: clamp(3.7rem, 9vw, 8.8rem);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.84;
}

.lede {
  margin: 0;
  color: var(--paper-dim);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.updated {
  margin: 1.5rem 0 0;
  color: var(--paper-dim);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.document-body {
  display: grid;
  grid-template-columns: 13rem minmax(0, 43rem);
  gap: clamp(2rem, 7vw, 7rem);
  padding-top: clamp(3rem, 7vw, 6rem);
}

.document-nav {
  position: sticky;
  top: 2rem;
  align-self: start;
  display: grid;
  gap: 0.8rem;
  font-size: 0.78rem;
}

.document-nav a {
  color: var(--paper-dim);
  text-underline-offset: 0.22rem;
}

.document-nav a:hover {
  color: var(--paper);
}

.prose {
  font-size: 1rem;
  line-height: 1.78;
}

.prose section + section {
  margin-top: 4rem;
  padding-top: 3.2rem;
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 620;
  letter-spacing: -0.04em;
}

.prose h3 {
  margin: 2rem 0 0.6rem;
  color: var(--paper);
  font-size: 1.08rem;
}

.prose p,
.prose li {
  color: #cfcdc4;
}

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

.prose li + li {
  margin-top: 0.55rem;
}

.callout {
  margin: 2rem 0;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--mint);
  color: var(--paper);
  background: rgba(109, 247, 223, 0.045);
}

.email-link {
  color: var(--mint);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.back-link {
  display: inline-flex;
  margin-top: 4rem;
  color: var(--paper-dim);
  font-size: 0.7rem;
  text-underline-offset: 0.3rem;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 2rem var(--page-pad);
  border-top: 1px solid var(--line);
  color: var(--paper-dim);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
}

@media (max-width: 760px) {
  :root {
    --page-pad: 1.1rem;
  }

  .document-head,
  .document-body {
    grid-template-columns: 1fr;
  }

  .document-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
  }

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

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