:root {
  --paper: #f4f3ec;
  --paper-2: #ecebe2;
  --ink: #121417;
  --muted: #666a70;
  --line: rgba(18, 20, 23, 0.14);
  --line-strong: rgba(18, 20, 23, 0.28);
  --blue: #2d5bff;
  --blue-dark: #1739b6;
  --acid: #d8ff58;
  --white: #fff;
  --shadow: 0 24px 70px rgba(26, 34, 58, 0.13);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 4%, rgba(216, 255, 88, 0.24), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  color: var(--ink);
  background: var(--acid);
}

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

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 243, 236, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
}

.brand-mark::after {
  content: "A";
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.topnav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.topnav a.active {
  color: var(--white);
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 52px;
  padding: clamp(32px, 6vw, 68px);
  border-radius: 34px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -190px;
  top: -210px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.82;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 5px rgba(216, 255, 88, 0.12);
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 17ch;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.05em;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.05rem;
}

.hero p,
.lede {
  max-width: 74ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-grid,
.grid-3,
.grid-2,
.metric-grid,
.link-grid {
  display: grid;
  gap: 14px;
}

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

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

.hero .hero-grid {
  margin-top: 34px;
}

.hero .doc-card {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.hero .doc-card p {
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

.hero .doc-links a {
  color: var(--ink);
  background: var(--acid);
}

.card,
.doc-card,
.metric,
.note,
.quick-links,
.cross-links,
.section-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 46px rgba(27, 30, 38, 0.07);
}

.doc-card,
.metric,
.note,
.quick-links,
.cross-links,
.section-panel {
  padding: 22px;
}

.doc-card strong,
.metric strong {
  display: block;
  margin-bottom: 8px;
}

.doc-card p,
.metric p,
.note p,
.section-panel p {
  color: var(--muted);
}

.section {
  margin-top: 72px;
}

.section-head {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: end;
  gap: 32px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.section-head > p,
.section-head .lede {
  margin-bottom: 0;
  color: var(--muted);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

button,
.button-link {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

button:hover,
.button-link:hover {
  border-color: var(--ink);
  background: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(45, 91, 255, 0.32);
  outline-offset: 3px;
}

.pill-row,
.summary-list,
.compact-list,
.anchor-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill,
.anchor-list a,
.tag-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.anchor-list a:hover {
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
}

.tag-list span.tag-strong {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.collapsible {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.collapsible:hover,
.collapsible[open] {
  border-color: var(--line-strong);
  background: var(--white);
  box-shadow: 0 14px 42px rgba(27, 30, 38, 0.07);
}

.collapsible summary {
  padding: 20px 22px;
  list-style: none;
  cursor: pointer;
}

.collapsible summary::-webkit-details-marker {
  display: none;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.summary-copy {
  max-width: 76ch;
}

.summary-copy p {
  margin: 8px 0 0;
  color: var(--muted);
}

.caret {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  font-weight: 800;
  transition: transform 0.2s ease;
}

.collapsible[open] .caret {
  transform: rotate(45deg);
}

.detail-body {
  padding: 0 22px 22px;
  border-top: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  margin-top: 20px;
}

.detail-block {
  padding: 20px;
  border: 1px solid rgba(18, 20, 23, 0.08);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.detail-grid > .detail-block:only-child {
  grid-column: 1 / -1;
}

.detail-block ul,
.detail-block ol {
  margin: 10px 0 0 18px;
}

.detail-block li + li {
  margin-top: 6px;
}

.detail-block p {
  margin: 0;
  color: var(--muted);
}

.cross-links {
  margin-top: 16px;
  border-left: 4px solid var(--blue);
}

.cross-links h4,
.quick-links h4,
.note h4 {
  margin-bottom: 10px;
}

.cross-links p,
.quick-links p,
.note p {
  margin: 0;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.doc-links a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.doc-links a:hover {
  background: var(--blue-dark);
  text-decoration: none;
}

.table-like {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.table-like th,
.table-like td {
  padding: 15px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-like th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 72px;
  padding: 26px 28px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.5);
  background: var(--ink);
  font-size: 12px;
}

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

.footer a {
  color: rgba(255, 255, 255, 0.74);
}

.footer a:hover {
  color: var(--acid);
  text-decoration: none;
}

@media (max-width: 1100px) {
  .topbar {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .metric-grid,
  .detail-grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .controls {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 24px), var(--max));
    padding-bottom: 24px;
  }

  .topbar {
    margin-bottom: 20px;
  }

  .brand span:last-child {
    font-size: 12px;
  }

  .hero {
    margin-bottom: 40px;
    padding: 34px 22px;
    border-radius: 26px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .section {
    margin-top: 54px;
  }

  .collapsible summary,
  .detail-body,
  .doc-card,
  .metric,
  .note,
  .quick-links,
  .cross-links,
  .section-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .summary-row {
    align-items: flex-start;
  }

  .table-like {
    display: block;
    overflow-x: auto;
  }

  .footer {
    min-height: 140px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-top: 54px;
    padding: 24px 20px;
  }
}

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