:root {
  --bg: #ffffff;
  --ink: #080808;
  --muted: #666666;
  --line: rgba(8, 8, 8, 0.28);
  --line-strong: #080808;
  --accent: #5b28ff;
  --accent-hover: #4517df;
  --focus: rgba(91, 40, 255, 0.3);
  --shell: 1440px;
  --gutter: clamp(20px, 3.4vw, 48px);
  --section: clamp(80px, 10vw, 156px);
  --font: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

button {
  font: inherit;
}

img,
svg {
  display: block;
}

code {
  color: inherit;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.91em;
  overflow-wrap: anywhere;
}

.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.site-nav a {
  position: relative;
  padding-block: 12px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-action {
  justify-self: end;
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button svg,
.ledger a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.button-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button-outline {
  background: var(--bg);
}

.button-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  min-height: min(770px, calc(100vh - 92px));
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: clamp(40px, 8vw, 128px);
  padding-top: clamp(70px, 9vw, 132px);
  padding-bottom: clamp(72px, 9vw, 124px);
}

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

.hero h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(58px, 7.1vw, 112px);
  font-weight: 650;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero-lead {
  margin-bottom: 44px;
  color: #3d3d3d;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-actions .button {
  min-width: 196px;
}

.network-warning {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-mark {
  align-self: center;
  justify-self: end;
  width: min(100%, 390px);
  transform: translateY(8%) translateX(-3%);
}

.hero-mark img {
  width: 100%;
  height: auto;
}

.section-rule {
  height: 1px;
  margin-bottom: 26px;
  background: var(--line-strong);
}

.record h2,
.purpose h2,
.roadmap h2 {
  margin-bottom: 28px;
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
}

.record-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.25fr 0.9fr;
  margin: 0;
  border-top: 1px solid var(--line);
}

.record-grid > div {
  min-width: 0;
  padding: 22px 22px 24px 0;
  border-bottom: 1px solid var(--line);
}

.record-grid dt,
.record-grid dd,
.ledger dt,
.ledger dd,
.principle-list dt,
.principle-list dd {
  margin: 0;
}

.record-grid dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 14px;
}

.record-grid dd {
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 560;
  letter-spacing: -0.02em;
}

.record-grid .record-address {
  grid-column: 1 / -1;
  padding-right: 0;
}

.record-address dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.copy-button {
  min-height: 44px;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.section-space {
  padding-top: var(--section);
}

.section-intro {
  max-width: 720px;
  margin-bottom: clamp(46px, 6vw, 88px);
  color: #383838;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.5;
}

.purpose-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.purpose-list li {
  min-width: 0;
  min-height: 260px;
  padding: 0 clamp(24px, 2.8vw, 44px);
  border-left: 1px solid var(--line);
}

.purpose-list li:first-child {
  padding-left: 0;
  border-left: 0;
}

.purpose-list li:last-child {
  padding-right: 0;
}

.index {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 17px;
  font-weight: 700;
}

.purpose-list h3 {
  min-height: 58px;
  margin-bottom: 28px;
  font-size: clamp(19px, 1.55vw, 24px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.purpose-list p {
  margin-bottom: 0;
  color: #333;
  font-size: 15px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 2.22fr);
  gap: clamp(48px, 9vw, 150px);
}

.section-heading h2,
.transparency-header h2 {
  margin-bottom: 20px;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-heading p,
.transparency-header p,
.roadmap-header p {
  max-width: 460px;
  color: var(--muted);
  font-size: 16px;
}

.principle-list {
  margin: 0;
}

.principle-list > div {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.45fr);
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.principle-list > div:first-child {
  border-top: 1px solid var(--line);
}

.principle-list dt {
  display: flex;
  gap: 16px;
  font-size: 17px;
  font-weight: 650;
}

.principle-list dt span {
  flex: none;
  color: var(--accent);
}

.principle-list dd {
  color: #333;
  font-size: 15px;
}

.principle-list .planned-rule {
  border-bottom-color: var(--accent);
}

.principle-list .planned-rule dt::after {
  align-self: flex-start;
  margin-left: auto;
  color: var(--accent);
  content: "ПЛАН";
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.transparency-header,
.roadmap-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 48px;
  margin-bottom: clamp(48px, 6vw, 84px);
}

.transparency-header h2,
.transparency-header p,
.roadmap-header h2,
.roadmap-header p {
  margin-bottom: 0;
}

.transparency-header p,
.roadmap-header p {
  justify-self: end;
  font-size: clamp(17px, 1.55vw, 22px);
}

.ledger {
  margin: 0;
  border-top: 1px solid var(--line);
}

.ledger > div {
  display: grid;
  grid-template-columns: minmax(160px, 0.65fr) minmax(0, 2fr);
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.ledger dt {
  font-weight: 620;
}

.ledger dd {
  min-width: 0;
  color: #303030;
  overflow-wrap: anywhere;
}

.ledger a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.risk-statement {
  margin-top: 36px;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--accent);
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.risk-statement strong {
  color: var(--accent);
}

.roadmap-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-list::before {
  position: absolute;
  top: 48px;
  right: 10%;
  left: 0;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.roadmap-list li {
  position: relative;
  min-height: 250px;
  padding: 0 clamp(18px, 2vw, 30px) 36px 0;
}

.roadmap-list .index {
  margin-bottom: 34px;
  color: var(--ink);
}

.roadmap-dot {
  position: absolute;
  z-index: 2;
  top: 41px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
}

.roadmap-list h3 {
  margin-bottom: 13px;
  font-size: 20px;
  line-height: 1.2;
}

.roadmap-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.roadmap-list .is-current .index,
.roadmap-list .is-current h3,
.current-label {
  color: var(--accent);
}

.roadmap-list .is-current .roadmap-dot {
  border-color: var(--accent);
  background: var(--accent);
}

.current-label {
  display: block;
  margin-top: 16px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.document-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.document-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  text-decoration: none;
}

.document-links a:first-child {
  padding-right: 32px;
}

.document-links a + a {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.document-links span {
  font-size: 20px;
  font-weight: 650;
}

.document-links small {
  max-width: 240px;
  color: var(--muted);
  text-align: right;
}

.document-links a:hover span {
  color: var(--accent);
}

.site-footer {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  margin-top: var(--section);
  border-top: 1px solid var(--ink);
}

.footer-brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-footer nav {
  display: flex;
  gap: 30px;
}

.site-footer nav a {
  font-size: 14px;
}

.site-footer p {
  justify-self: end;
  margin: 0;
  font-size: 14px;
}

.site-footer strong {
  color: var(--accent);
}

.copy-status {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  max-width: calc(100vw - 40px);
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.copy-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav {
    gap: 24px;
    margin-inline: auto;
  }

  .header-action {
    display: none;
  }

  .purpose-list {
    grid-template-columns: 1fr 1fr;
    row-gap: 56px;
  }

  .purpose-list li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-heading h2 br {
    display: none;
  }

  .roadmap-list {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 44px;
  }

  .roadmap-list::before {
    display: none;
  }

  .roadmap-list li {
    min-height: 0;
    padding-left: 30px;
  }

  .roadmap-list .index {
    margin-bottom: 14px;
  }

  .roadmap-dot {
    top: 3px;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 86px;
  }

  .header-inner {
    min-height: 76px;
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 32px var(--gutter);
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.04em;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 68px;
  }

  .hero h1 {
    font-size: clamp(52px, 13vw, 86px);
  }

  .hero-mark {
    justify-self: end;
    width: min(48vw, 260px);
    margin-right: 4vw;
    transform: none;
  }

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

  .record-address dd {
    align-items: flex-start;
    flex-direction: column;
  }

  .transparency-header,
  .roadmap-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .transparency-header p,
  .roadmap-header p {
    justify-self: start;
  }

  .document-links {
    grid-template-columns: 1fr;
  }

  .document-links a + a {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .document-links a:first-child {
    padding-right: 0;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    padding-block: 40px;
  }

  .site-footer nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    order: 3;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 56px;
    padding-bottom: 44px;
    gap: 28px;
  }

  .hero h1 {
    max-width: 10ch;
    margin-bottom: 18px;
    font-size: clamp(50px, 14vw, 68px);
    line-height: 0.96;
  }

  .hero-lead {
    margin-bottom: 34px;
    font-size: 19px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 34px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .network-warning {
    font-size: 11px;
    line-height: 1.7;
  }

  .hero-mark {
    width: 120px;
    margin-right: 10vw;
  }

  .record h2,
  .purpose h2,
  .roadmap h2 {
    font-size: 36px;
  }

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

  .record-grid > div,
  .record-grid .record-address {
    grid-column: auto;
    padding: 18px 0;
  }

  .record-grid dd {
    font-size: 20px;
  }

  .purpose-list {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .purpose-list li,
  .purpose-list li:nth-child(3) {
    min-height: 0;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .purpose-list li:first-child {
    border-top: 0;
  }

  .purpose-list h3 {
    min-height: 0;
    margin-bottom: 14px;
    font-size: 23px;
  }

  .section-heading h2,
  .transparency-header h2 {
    font-size: 46px;
  }

  .principle-list > div,
  .ledger > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .principle-list dt {
    font-size: 17px;
  }

  .principle-list .planned-rule dt::after {
    margin-left: 8px;
  }

  .ledger dd code {
    font-size: 12px;
  }

  .risk-statement {
    font-size: 18px;
  }

  .roadmap-list {
    grid-template-columns: 1fr;
    row-gap: 0;
    padding-left: 8px;
  }

  .roadmap-list::before {
    top: 8px;
    bottom: 0;
    left: 15px;
    width: 1px;
    height: auto;
    display: block;
  }

  .roadmap-list li {
    min-height: 158px;
    padding: 0 0 42px 52px;
  }

  .roadmap-list .index {
    margin-bottom: 6px;
  }

  .roadmap-dot {
    top: 4px;
    left: 0;
  }

  .document-links a {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .document-links small {
    text-align: left;
  }

  .site-footer {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer nav {
    grid-column: auto;
    grid-row: auto;
    flex-wrap: wrap;
    gap: 20px;
  }

  .site-footer p {
    justify-self: start;
  }
}

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

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

/* Documentation pages */

.document-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}

.document-back {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.document-back:hover {
  color: var(--accent);
}

.document {
  max-width: 1120px;
}

.document-title {
  padding-block: clamp(76px, 10vw, 148px) clamp(70px, 9vw, 124px);
}

.document-title > p:first-child {
  margin-bottom: 30px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.document-title h1 {
  margin: 0 0 30px;
  font-size: clamp(58px, 8.5vw, 124px);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.document-lead {
  max-width: 850px;
  margin-bottom: 44px;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.document-warning {
  padding: 24px 0;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-size: 17px;
  font-weight: 620;
}

.document-toc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: var(--section);
  border-top: 1px solid var(--ink);
}

.document-toc a {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.document-toc a:hover {
  color: var(--accent);
}

.document > section {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  padding-block: clamp(68px, 8vw, 112px);
  border-top: 1px solid var(--ink);
}

.document > section > *:not(.document-index) {
  grid-column: 2;
}

.document-index {
  grid-row: 1 / span 20;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
}

.document section h2 {
  margin-bottom: 42px;
  font-size: clamp(38px, 5.2vw, 70px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.document section h3 {
  margin: 38px 0 12px;
  font-size: 23px;
  letter-spacing: -0.025em;
}

.document section p,
.document section li {
  max-width: 780px;
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.6;
}

.document section ul,
.document section ol {
  max-width: 850px;
  margin: 0;
  padding-left: 1.25em;
}

.document section li + li {
  margin-top: 14px;
}

.document-facts {
  max-width: 850px;
  margin: 0 0 44px;
  border-top: 1px solid var(--line);
}

.document-facts > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.document-facts dt,
.document-facts dd {
  margin: 0;
}

.document-facts dt {
  color: var(--muted);
}

.document-facts dd {
  overflow-wrap: anywhere;
  font-weight: 620;
}

.document-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-block: 48px 80px;
  border-top: 1px solid var(--ink);
}

.document-footer a {
  color: var(--accent);
  font-weight: 650;
}

@media (max-width: 640px) {
  .document-header {
    min-height: 76px;
  }

  .document-title h1 {
    overflow-wrap: anywhere;
    font-size: clamp(40px, 11vw, 64px);
  }

  .document-toc {
    grid-template-columns: 1fr 1fr;
  }

  .document > section {
    grid-template-columns: 1fr;
  }

  .document > section > *:not(.document-index) {
    grid-column: 1;
  }

  .document-index {
    grid-row: auto;
    margin-bottom: 24px;
  }

  .document-facts > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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