:root {
  --navy-950: #060c1e;
  --navy-900: #0a1530;
  --navy-600: #24407f;
  --silver: #aeb6c3;
  --silver-dim: #8b94a5;
  --white: #f3f5f8;
  --glow: #d6e6ff;
  --line: rgba(174, 182, 195, .14);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  background: var(--navy-950); color: var(--white);
  font-family: "Archivo", system-ui, sans-serif; font-variation-settings: "wdth" 100;
}
a { color: inherit; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* Nav */
.lnav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  background: rgba(6, 12, 30, .8); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  font-style: italic; font-weight: 900; font-size: 22px; letter-spacing: -.04em; font-variation-settings: "wdth" 125;
  background: linear-gradient(180deg, #fff 20%, var(--silver) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-weight: 800; font-size: 13px; letter-spacing: .18em; font-variation-settings: "wdth" 125; }
.brand__text small { font-size: 9px; letter-spacing: .5em; color: var(--silver); }
.back {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(174,182,195,.3); text-decoration: none; font-size: 13px; font-weight: 600;
  transition: border-color .3s;
}
.back:hover { border-color: var(--white); }
.back svg { transition: transform .5s var(--ease); }
.back:hover svg { transform: translateX(-3px); }

/* Header */
.lhead { padding: 96px var(--gutter) 56px; border-bottom: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--silver); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lhead h1 {
  font-style: italic; font-weight: 850; font-size: clamp(36px, 6vw, 88px); line-height: .95; letter-spacing: -.035em;
  font-variation-settings: "wdth" 118; max-width: 16ch;
}
.lhead p { color: var(--silver); margin-top: 20px; max-width: 60ch; line-height: 1.6; }
.meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 32px; color: var(--silver-dim); }

/* Layout */
.lwrap { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(32px, 6vw, 96px); padding: 64px var(--gutter) 120px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc h2 { color: var(--silver-dim); font-weight: 400; margin-bottom: 16px; }
.toc ol { list-style: none; display: grid; gap: 10px; counter-reset: t; }
.toc a { color: var(--silver); text-decoration: none; font-size: 14px; line-height: 1.4; display: flex; gap: 10px; transition: color .3s; }
.toc a::before { counter-increment: t; content: counter(t, decimal-leading-zero); font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--silver-dim); padding-top: 2px; }
.toc a:hover { color: var(--white); }

.doc section { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.doc h2 {
  font-style: italic; font-weight: 800; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.02em; line-height: 1.15;
  font-variation-settings: "wdth" 115; margin-bottom: 20px;
}
.doc h3 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; }
.doc p, .doc li { color: var(--silver); font-size: 16px; line-height: 1.7; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 20px; margin-top: 12px; display: grid; gap: 8px; }
.doc strong { color: var(--white); font-weight: 600; }
.doc a { color: var(--white); text-underline-offset: 3px; }

.card {
  border: 1px solid rgba(174,182,195,.16); border-radius: 16px; padding: 22px 24px; margin-top: 16px;
  background: rgba(16, 32, 71, .35);
}
.card dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 20px; }
.card dt { color: var(--silver-dim); font-size: 14px; }
.card dd { color: var(--white); font-size: 15px; line-height: 1.5; }

.table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.table th { color: var(--silver-dim); font-weight: 400; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.table td { color: var(--silver); }
.table td:first-child { color: var(--white); font-weight: 600; }
.table-wrap { overflow-x: auto; }

.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: rgba(174,182,195,.12); color: var(--white); white-space: nowrap; }
.tag--on { background: var(--navy-600); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--white); color: var(--navy-950); text-decoration: none; font-weight: 600; font-size: 14px; margin-top: 20px;
}
.doc .btn { color: var(--navy-950); }

/* Footer */
.lfoot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 24px var(--gutter) 32px; border-top: 1px solid var(--line); color: var(--silver-dim);
}
.lfoot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.lfoot a { text-decoration: none; transition: color .3s; }
.lfoot a:hover { color: var(--white); }
.lfoot a[aria-current] { color: var(--white); }
.eclabs b { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .12em; color: var(--white); font-variation-settings: "wdth" 125; margin-left: 8px; }

@media (max-width: 900px) {
  .lwrap { grid-template-columns: 1fr; padding-top: 40px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
  .lhead { padding-top: 64px; }
  .card dl { grid-template-columns: 1fr; gap: 2px; }
  .card dd { margin-bottom: 10px; }
}
@media (max-width: 520px) {
  .back span { display: none; }
  .back { padding: 0 14px; }
}
