:root {
  --ink: #050505;
  --paper: #fff2df;
  --orange: #ff8a2a;
  --orange-soft: #ffc26e;
  --line: rgba(20, 10, 4, 0.2);
  --muted: rgba(20, 10, 4, 0.66);
}

* { box-sizing: border-box; }

html {
  color: var(--ink);
  background: var(--orange);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, var(--orange-soft) 0, transparent 38rem),
    var(--orange);
}

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.shell {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  border-bottom: 1px solid var(--line);
}

.wordmark,
.eyebrow,
.meta,
.nav {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }

.mark {
  position: relative;
  width: 1.8rem;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}

.mark::after {
  content: "";
  position: absolute;
  inset: 0.3rem;
  border: 1px solid var(--ink);
}

.nav { display: flex; gap: 1rem; letter-spacing: 0.08em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 0.7fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
  align-items: end;
}

.eyebrow { margin: 0 0 1.3rem; }

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 8.5rem);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.hero-copy {
  margin: 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
}

.document {
  display: grid;
  grid-template-columns: minmax(10rem, 0.45fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.document-nav { position: sticky; top: 1rem; align-self: start; }
.document-nav p { margin: 0 0 0.75rem; }
.meta { color: var(--muted); letter-spacing: 0.08em; line-height: 1.5; }

.content { max-width: 48rem; }
.content section { margin: 0 0 3.25rem; }

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

p, li { font-size: 1rem; line-height: 1.68; }
.content p { margin: 0 0 1rem; }
.content ul { margin: 0; padding-left: 1.25rem; }
.content li + li { margin-top: 0.65rem; }

.callout {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ink);
  color: var(--paper);
  border-radius: 1rem;
}

.callout a { color: var(--orange-soft); }
.callout h2 { color: var(--orange); }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--line);
}

.support-card { padding: 1.6rem; background: rgba(255, 242, 223, 0.34); }
.support-card p:last-child { margin-bottom: 0; }

.primary-link {
  display: inline-flex;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--orange);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

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

.hero > *, .document { animation: enter 500ms both cubic-bezier(.2,.8,.2,1); }
.hero > :nth-child(2) { animation-delay: 90ms; }
.document { animation-delay: 160ms; }

@media (max-width: 48rem) {
  .hero, .document { grid-template-columns: 1fr; }
  .hero { align-items: start; }
  .document-nav { position: static; }
  .support-grid { grid-template-columns: 1fr; }
  .nav { gap: 0.65rem; font-size: 0.62rem; }
  .wordmark { font-size: 0.62rem; letter-spacing: 0.12em; }
}

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