:root {
  --navy: #14213D; --navy-2: #1D2D50; --paper: #F7F5EF; --green: #7DB89A; --mist: #AEB8CC;
  --ink: #14213D; --soft: #4A556E; --line: #DAD7CC;
  --side: clamp(20px, 6vw, 96px);
  --bar: 84px; --gap: 9px; --slope: .625;       /* the logo's cut, reused by the stack bars */
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font: 500 1.0625rem/1.65 Manrope, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  color: var(--ink); background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2 { font-weight: 800; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
h3 { font-weight: 800; line-height: 1.3; }
a { color: inherit; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); color: var(--ink); padding: 8px 14px; z-index: 2; }

.top, footer { background: var(--navy); color: var(--paper); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding: 20px var(--side); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 30px; height: 26px; }
nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
nav a { text-decoration: none; padding: 10px 0; }
nav a:hover, nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
footer { padding: 36px var(--side); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px; }
footer nav { color: var(--mist); font-size: .95rem; }

/* Home */
.hero { margin-top: -1px; background: var(--navy); color: var(--paper); padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px) var(--side); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); max-width: 12ch; text-wrap: wrap; }
.hero > p { color: var(--mist); font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 38em; margin: 22px var(--side) clamp(36px, 5vw, 60px) 0; }
.bars { list-style: none; padding: 0; display: grid; gap: var(--gap); max-width: 1180px; padding-right: var(--side); }
.bars li { --i: 0; margin-right: calc(var(--i) * (var(--bar) + var(--gap)) * var(--slope)); }
.bars li:nth-child(2) { --i: 1; } .bars li:nth-child(3) { --i: 2; }
.bars li:nth-child(4) { --i: 3; } .bars li:nth-child(5) { --i: 4; }
.bars a { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--bar);
  padding: 10px calc(var(--bar) * var(--slope) + 28px) 10px 28px; background: var(--paper); color: var(--ink); text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--bar) * var(--slope)) 100%, 0 100%); transition: background-color .18s; }
.bars li:first-child a, .bars a:hover, .bars a:focus-visible { background: var(--green); }
.bars a:focus-visible { outline: none; text-decoration: underline; text-decoration-color: var(--ink); }
.bars b { font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.bars span { font-size: 1rem; text-align: right; }

.band { padding: clamp(56px, 8vw, 104px) var(--side) 0; max-width: 1400px; }
.band:last-child { padding-bottom: clamp(56px, 8vw, 104px); }
.band h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); max-width: 18ch; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(32px, 6vw, 96px); }
.split p + p { margin-top: 16px; }
.checks { list-style: none; padding: 0; margin-top: 24px; }
.checks li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 1.15rem; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.button { display: inline-block; background: var(--navy); color: var(--paper); text-decoration: none; font-weight: 800;
  padding: 14px 34px 14px 22px; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); margin: 0 10px 10px 0; }
.button:hover, .button:focus-visible { background: var(--green); color: var(--ink); }

/* Text pages and articles */
.text { padding: clamp(40px, 6vw, 80px) var(--side); max-width: calc(44rem + 2 * var(--side)); overflow-wrap: break-word; }
.text h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 28px; }
.text h2 { font-size: 1.6rem; margin: 44px 0 12px; }
.text h3 { margin: 28px 0 8px; }
.text p, .text ul, .text ol, .text table, .text pre { margin-bottom: 16px; }
.text ul, .text ol { padding-left: 1.3em; }
.text li { margin-bottom: 8px; }
.text li::marker { color: var(--green); }
.text img { max-width: 100%; height: auto; }
.text table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.text th, .text td { text-align: left; vertical-align: top; padding: 12px 18px 12px 0; border-bottom: 1px solid var(--line); }
.text pre { background: var(--navy); color: var(--paper); padding: 18px; overflow-x: auto; }
.meta { color: var(--soft); }
.note { border-left: 6px solid var(--green); padding-left: 16px; }
mark { background: #FFE08A; padding: 2px 4px; }

.lane { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px clamp(32px, 6vw, 96px);
  padding: 34px 0; margin: 0 var(--side); border-top: 1px solid var(--line); max-width: 1180px; scroll-margin-top: 12px; }
.lane:last-child { margin-bottom: 72px; }
.lane h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.lane:target h2 { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 5px; text-underline-offset: 8px; }
.asks { margin-top: 12px; font-weight: 800; }
.guides { list-style: none; padding: 0; margin-top: 28px; }
.guides a { display: grid; gap: 4px; padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; }
.guides b { font-size: 1.35rem; font-weight: 800; line-height: 1.25; }
.guides a:hover b { text-decoration: underline; text-decoration-color: var(--green); }
.guides small, .guides span { color: var(--soft); font-size: 1rem; }

@media (max-width: 760px) {
  :root { --bar: 74px; --slope: .2; }
  .bars a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding-left: 18px; }
  .bars span { text-align: left; font-size: .95rem; }
  .split, .lane { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bars a { transition: none; } }
