:root {
  --canvas: #10100f;
  --canvas-deep: #090909;
  --surface: #171614;
  --surface-raised: #1d1c19;
  --paper: #f4f1ea;
  --paper-raised: #fffdf8;
  --ink: #242320;
  --text: #f8f6f0;
  --muted: #aaa69e;
  --muted-dark: #625e57;
  --orange: #ff6129;
  --orange-soft: #ff8542;
  --mint: #43c79e;
  --line: rgba(255, 255, 255, 0.105);
  --line-dark: rgba(29, 27, 24, 0.13);
  --max: 1180px;
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 97, 41, 0.19), transparent 32rem),
    var(--canvas);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: rgba(16, 16, 15, 0.78);
  backdrop-filter: blur(20px) saturate(145%);
}

.site-nav::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  content: "";
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.nav-links a {
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.pilot-pill {
  padding: 7px 10px;
  border: 1px solid rgba(255, 133, 66, 0.28);
  border-radius: 999px;
  color: #ffc2a4;
  background: rgba(255, 97, 41, 0.09);
  font-size: 11px;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero {
  position: relative;
  padding: 92px 0 78px;
  overflow: hidden;
}

.page-hero::before {
  position: absolute;
  top: 14%;
  left: 66%;
  width: 420px;
  height: 320px;
  border-radius: 50%;
  background: rgba(67, 199, 158, 0.1);
  filter: blur(90px);
  content: "";
}

.page-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: center;
  max-width: 940px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 8vw, 6.8rem);
  font-weight: 790;
}

.page-lede {
  max-width: 700px;
  margin: 0;
  color: #c8c3ba;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.page-meta {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.page-icon {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.4));
}

.page-body {
  padding: 84px 0 112px;
  color: var(--ink);
  background: var(--paper);
}

.content-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: clamp(48px, 8vw, 104px);
  justify-content: center;
  align-items: start;
}

.toc {
  position: sticky;
  top: 112px;
  padding-top: 6px;
}

.toc strong {
  display: block;
  margin-bottom: 14px;
  color: #8c3a20;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: #716d66;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  color: #8c3a20;
}

.prose {
  min-width: 0;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 72px 0 20px;
  scroll-margin-top: 105px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 780;
}

.prose h3 {
  margin: 36px 0 12px;
  scroll-margin-top: 105px;
  font-size: 1.32rem;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.prose p,
.prose li {
  color: #514e48;
}

.prose p {
  margin: 0 0 20px;
}

.prose ul,
.prose ol {
  margin: 0 0 26px;
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.prose a {
  color: #873719;
  font-weight: 690;
  text-underline-offset: 3px;
}

.prose code {
  padding: 0.15em 0.42em;
  border: 1px solid rgba(36, 35, 32, 0.09);
  border-radius: 6px;
  background: rgba(36, 35, 32, 0.055);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.summary-card,
.callout,
.contact-card,
.support-banner {
  border-radius: 20px;
}

.summary-card {
  margin-bottom: 60px;
  padding: clamp(25px, 4vw, 38px);
  border: 1px solid rgba(255, 97, 41, 0.16);
  background:
    radial-gradient(circle at 96% 4%, rgba(67, 199, 158, 0.12), transparent 15rem),
    var(--paper-raised);
  box-shadow: 0 22px 50px rgba(32, 28, 23, 0.06);
}

.summary-card .eyebrow {
  margin-bottom: 12px;
  color: #8c3a20;
}

.summary-card h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.summary-card p:last-child {
  margin-bottom: 0;
}

.callout {
  margin: 30px 0;
  padding: 24px 26px;
  border-left: 4px solid var(--orange);
  background: #ebe5dc;
}

.callout.mint {
  border-left-color: #208c6d;
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.callout p:last-child {
  margin-bottom: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 48px;
}

.detail-card {
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: var(--paper-raised);
}

.detail-card span {
  display: block;
  margin-bottom: 7px;
  color: #8c3a20;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-card strong {
  display: block;
  line-height: 1.25;
}

.contact-card,
.support-banner {
  margin-top: 36px;
  padding: clamp(28px, 5vw, 42px);
  color: var(--text);
  background:
    radial-gradient(circle at 90% 10%, rgba(67, 199, 158, 0.16), transparent 17rem),
    linear-gradient(135deg, rgba(255, 97, 41, 0.15), transparent 58%),
    var(--surface);
  box-shadow: 0 24px 60px rgba(24, 20, 16, 0.17);
}

.contact-card h2,
.support-banner h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.contact-card p,
.support-banner p {
  color: #c4bfb6;
}

.contact-card a:not(.button),
.support-banner a:not(.button) {
  color: #ffab7a;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 21px;
  border-radius: 999px;
  color: #1c1612;
  background: linear-gradient(135deg, #ff8a4b, var(--orange));
  box-shadow: 0 14px 32px rgba(255, 97, 41, 0.22);
  font-size: 13px;
  font-weight: 790;
  text-decoration: none;
}

footer {
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d9d5ce;
  font-weight: 700;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

@media (max-width: 820px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-icon {
    width: 82px;
    height: 82px;
    grid-row: 1;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 20px;
    padding: 0 0 28px;
    border-bottom: 1px solid var(--line-dark);
  }

  .toc strong {
    grid-column: 1 / -1;
  }

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

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-nav {
    position: relative;
  }

  .nav-inner {
    min-height: 64px;
  }

  .nav-links a {
    display: none;
  }

  .page-hero {
    padding: 68px 0 60px;
  }

  .page-body {
    padding: 64px 0 84px;
  }

  .toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prose h2 {
    margin-top: 58px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
