:root {
  --ink: #f4f7fa;
  --muted: #b7c2cd;
  --water: #FFFFFF;
  --night: #071426;
  --line: color-mix(in srgb, var(--water) 34%, transparent);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 85% 5%, color-mix(in srgb, var(--water) 10%, transparent), transparent 30rem), linear-gradient(180deg, #061321 0%, var(--night) 35%, #06111f 100%);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; padding: .7rem 1rem; background: #fff; color: #071426; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(7,20,38,.93); backdrop-filter: blur(16px); }
.header-inner { max-width: var(--max); margin: auto; padding: .9rem 1.4rem; display: flex; align-items: center; gap: 1.6rem; }
.brand { flex: 0 0 auto; text-decoration: none; font-weight: 650; letter-spacing: .02em; }
.brand::before { content: ""; display: inline-block; width: 1.7rem; height: 2px; margin: 0 .7rem .28rem 0; background: var(--water); }
.nav { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--muted); font-size: .76rem; letter-spacing: .055em; text-transform: uppercase; padding: .5rem .65rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: #04131c; background: var(--water); }
.hero { max-width: var(--max); margin: auto; padding: clamp(4.5rem, 10vw, 8rem) 1.4rem clamp(3.2rem, 7vw, 5.5rem); }
.eyebrow { margin: 0 0 1rem; color: var(--water); font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1 { margin: 0; max-width: 980px; color: var(--water); font-size: clamp(3rem, 8vw, 6.8rem); font-weight: 430; line-height: 1; letter-spacing: -.045em; }
h1.label { display: inline; padding: .04em .14em .1em; color: #fff; background: #000; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.page { max-width: var(--max); margin: auto; padding: 0 1.4rem 6rem; }
.content { max-width: 900px; margin: 0 auto; }
.content p { margin: 0 0 1.35rem; color: #d7dee5; }
.content h2 { margin: 5.5rem 0 1.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); color: var(--water); font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.15; font-weight: 550; letter-spacing: -.025em; }
.content h3 { margin: 3rem 0 1rem; color: #f6f9fb; font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.3; font-weight: 650; }
.content h2 + h3 { margin-top: 1.1rem; }
.content ul { margin: .5rem 0 2rem; padding-left: 1.4rem; color: #d7dee5; }
.content li { margin: 0 0 .75rem; padding-left: .25rem; }
.content strong { color: #f8fafc; }
.content figure { margin: 2.6rem 0 3.5rem; }
.content img { display: block; width: 100%; max-height: 760px; object-fit: contain; object-position: center; border-radius: 2px; background: rgba(255,255,255,.035); box-shadow: 0 22px 70px rgba(0,0,0,.28); }
.table-scroll { margin: 3rem 0; overflow-x: auto; }
.content table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: .9rem; line-height: 1.45; }
.content th, .content td { padding: .9rem; border: 1px solid rgba(255,255,255,.15); vertical-align: top; text-align: left; }
.content th { color: #071426; background: var(--water); }
.content td { color: #d7dee5; background: rgba(255,255,255,.025); }
.chapter-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 900px; margin: 0 auto 5rem; }
.chapter-card { min-height: 150px; padding: 1.5rem; text-decoration: none; border: 1px solid var(--line); background: rgba(255,255,255,.025); display: flex; flex-direction: column; justify-content: space-between; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.chapter-card:hover { transform: translateY(-4px); border-color: var(--water); background: color-mix(in srgb, var(--water) 7%, transparent); }
.chapter-card small { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.chapter-card strong { font-size: 1.35rem; font-weight: 560; }
.next { max-width: 900px; margin: 6rem auto 0; padding: 2rem 0 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.next a { color: var(--water); text-decoration: none; }
.footer { border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 2.6rem 1.4rem; color: #8d9aa7; font-size: .82rem; letter-spacing: .06em; }
@media (max-width: 820px) {
  body { font-size: 16px; }
  .header-inner { display: block; padding: .8rem 1rem; }
  .brand { display: inline-block; margin-bottom: .55rem; }
  .nav { margin: 0 -.2rem; }
  .hero { padding-top: 4rem; }
  .chapter-grid { grid-template-columns: 1fr; }
  .content h2 { margin-top: 4.2rem; }
  .content figure { margin: 2.2rem 0 2.8rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
