*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --maple: #C8102E;
  --maple-deep: #8E0B20;
  --pine: #0F4D3A;
  --pine-deep: #0A3528;
  --paper: #F7F3EA;
  --ink: #12211B;
  --amber: #C9962B;
  --moss: #4F6B5D;
  --mist: #DCE7E0;
  --line: #E3DDCE;
  --blush: #F3D6DA;
  --rail-w: 88px;
  --topbar-h: 48px;
  --content-max: 1280px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-micro: 0 1px 2px rgba(18, 33, 27, .06);
  --font-serif: "Source Han Serif SC", "Songti SC", "Noto Serif CJK SC", serif;
  --font-sans: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-latin: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: var(--topbar-h);
  padding-left: var(--rail-w);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(18, 33, 27, .025) 1px, transparent 1px);
  background-size: 4px 4px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.01em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

img {
  display: block;
  max-width: 100%;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

a {
  color: var(--maple-deep);
  text-underline-offset: .22em;
}

a:hover {
  color: var(--maple);
}

::selection {
  background: var(--maple);
  color: #fff;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--maple);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

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

.container {
  width: min(calc(100% - 64px), var(--content-max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(48px, 7vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--maple);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--amber);
}

.display-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.lede {
  max-width: 34em;
  color: var(--moss);
  font-size: 18px;
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

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

.button--primary {
  border-color: var(--maple);
  background: var(--maple);
  color: #fff;
}

.button--primary:hover {
  border-color: var(--maple-deep);
  background: var(--maple-deep);
  color: #fff;
}

.button--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--pine);
}

.button--ghost:hover {
  border-color: var(--moss);
  background: var(--mist);
  color: var(--pine);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  background: rgba(247, 243, 234, .7);
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
}

.panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .34);
  box-shadow: var(--shadow-micro);
}

.image-frame {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--mist), #EDF2EE 58%, var(--paper));
  aspect-ratio: 16 / 10;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame__caption {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: rgba(247, 243, 234, .9);
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}

.data-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  overflow: hidden;
  border: 1px solid var(--pine);
  background: var(--pine);
  color: var(--paper);
}

.stat {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, .16);
}

.stat:last-child {
  border-right: 0;
}

.stat__value {
  display: block;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: 6px;
  color: rgba(247, 243, 234, .68);
  font-size: 12px;
  line-height: 1.45;
}

.site-header {
  position: relative;
  z-index: 100;
}

.site-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--rail-w);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 clamp(16px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 234, .94);
  backdrop-filter: blur(10px);
}

.topbar-brand {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--pine);
  text-decoration: none;
}

.topbar-brand__seal {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--amber);
  color: var(--maple);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
}

.topbar-brand__name {
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-context {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.context-kicker {
  color: var(--maple);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1;
  white-space: nowrap;
}

.context-divider {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
}

.context-current {
  overflow: hidden;
  color: var(--moss);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.version-badge {
  padding: 3px 8px;
  border: 1px solid var(--amber);
  background: rgba(201, 150, 43, .08);
  color: var(--pine);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--pine);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.nav-toggle:hover {
  border-color: var(--moss);
  background: var(--mist);
}

.nav-toggle__mark {
  width: 18px;
  height: 12px;
  background:
    linear-gradient(var(--pine), var(--pine)) top / 100% 1px no-repeat,
    linear-gradient(var(--pine), var(--pine)) center / 100% 1px no-repeat,
    linear-gradient(var(--pine), var(--pine)) bottom / 100% 1px no-repeat;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__mark {
  background:
    linear-gradient(var(--maple), var(--maple)) top / 100% 1px no-repeat,
    linear-gradient(var(--maple), var(--maple)) center / 100% 1px no-repeat,
    linear-gradient(var(--maple), var(--maple)) bottom / 100% 1px no-repeat;
}

.read-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--maple), var(--amber));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 100ms linear;
  will-change: transform;
}

.brand-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--rail-w);
  height: 100vh;
  height: 100dvh;
  padding: 18px 8px 14px;
  border-right: 1px solid rgba(201, 150, 43, .35);
  background: var(--pine);
  color: var(--paper);
}

.brand-rail::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 6px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201, 150, 43, .32) 14%, rgba(201, 150, 43, .08) 86%, transparent);
  pointer-events: none;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 6px 0;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark:hover {
  color: var(--paper);
}

.brand-mark__seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
}

.brand-mark__seal::before,
.brand-mark__seal::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 1px;
  background: var(--amber);
  opacity: .55;
}

.brand-mark__seal::before {
  top: 14px;
  left: 7px;
  transform: rotate(32deg);
}

.brand-mark__seal::after {
  right: 7px;
  bottom: 14px;
  transform: rotate(-32deg);
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.brand-mark__name {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
}

.brand-mark__en {
  color: rgba(255, 255, 255, .55);
  font-family: var(--font-latin);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .24em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.rail-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  margin-top: 26px;
}

.drawer-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.drawer-title {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
}

.drawer-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(201, 150, 43, .5);
  background: transparent;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: .08em;
}

.drawer-close:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-item {
  min-width: 0;
}

.rail-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 54px;
  padding: 10px 4px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: color 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease);
}

.rail-link::before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 0;
  width: 2px;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 180ms var(--ease);
}

.rail-link:hover {
  border-color: rgba(201, 150, 43, .28);
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.rail-link:focus-visible {
  outline-offset: -3px;
}

.rail-link[aria-current="page"] {
  border-color: rgba(201, 150, 43, .65);
  background: linear-gradient(90deg, rgba(200, 16, 46, .38), rgba(200, 16, 46, .12));
  color: #fff;
}

.rail-link[aria-current="page"]::before {
  transform: scaleY(1);
}

.rail-link__index {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .08em;
}

.rail-link__label {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
}

.rail-tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.rail-tool {
  display: block;
  padding: 7px 2px;
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

.rail-tool:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--amber);
}

.rail-footnote {
  margin-top: 14px;
  color: rgba(255, 255, 255, .35);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
}

.nav-scrim {
  display: none;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 8vw, 112px);
  border-top: 2px solid var(--amber);
  background: var(--pine);
  color: var(--paper);
}

.site-footer::before {
  content: "28";
  position: absolute;
  right: clamp(16px, 4vw, 56px);
  bottom: 0;
  color: rgba(255, 255, 255, .035);
  font-family: var(--font-mono);
  font-size: clamp(140px, 20vw, 260px);
  font-weight: 600;
  line-height: .78;
  letter-spacing: -.08em;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: .35;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), var(--content-max));
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) 0 24px;
}

.footer-lead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--paper);
}

.footer-brand__mark {
  padding: 4px 8px;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
}

.footer-brand__name {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.footer-brand__en {
  flex-basis: 100%;
  color: rgba(247, 243, 234, .5);
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.footer-lead__note {
  margin: 0;
  color: rgba(247, 243, 234, .62);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .12em;
  text-align: right;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding: 32px 0 40px;
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  margin: 0 0 14px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  width: fit-content;
  max-width: 100%;
  border-bottom: 1px solid transparent;
  color: rgba(247, 243, 234, .78);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.footer-link:hover {
  border-bottom-color: var(--amber);
  color: #fff;
}

.footer-contact {
  display: grid;
  gap: 8px;
}

.footer-contact__line {
  overflow-wrap: anywhere;
  color: rgba(247, 243, 234, .78);
  font-size: 14px;
  line-height: 1.55;
}

.footer-contact__line:first-child {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -.01em;
}

.footer-contact__note {
  color: rgba(247, 243, 234, .52);
  font-size: 12px;
  line-height: 1.5;
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.footer-copy,
.footer-icp {
  margin: 0;
  color: rgba(247, 243, 234, .6);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .02em;
}

.footer-icp {
  color: rgba(201, 150, 43, .78);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--amber);
  background: var(--pine);
  box-shadow: var(--shadow-micro);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), background-color 180ms var(--ease);
}

.back-to-top[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--maple);
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --topbar-h: 56px;
  }

  body {
    padding-left: 0;
  }

  body.is-nav-open {
    overflow: hidden;
  }

  .site-topbar {
    left: 0;
    padding-inline: 16px;
  }

  .topbar-brand {
    display: flex;
  }

  .topbar-tools {
    gap: 8px;
  }

  .version-badge {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .brand-rail {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .brand-rail::before {
    display: none;
  }

  .brand-mark,
  .rail-footnote {
    display: none;
  }

  .rail-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    width: min(86vw, 340px);
    max-width: 340px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    background: var(--pine);
    box-shadow: 12px 0 32px rgba(18, 33, 27, .24);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 220ms var(--ease), visibility 0s linear 220ms;
  }

  .rail-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
    transition: transform 220ms var(--ease), visibility 0s linear 0s;
  }

  .drawer-head {
    display: flex;
  }

  .rail-list {
    gap: 2px;
    padding: 12px 18px 0;
  }

  .rail-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    min-height: 50px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .78);
  }

  .rail-link::before {
    display: none;
  }

  .rail-link[aria-current="page"] {
    border-color: rgba(201, 150, 43, .38);
    background: linear-gradient(90deg, rgba(200, 16, 46, .22), transparent);
  }

  .rail-link__index {
    font-size: 10px;
  }

  .rail-link__label {
    font-size: 16px;
    letter-spacing: .06em;
    writing-mode: horizontal-tb;
  }

  .rail-tools {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }

  .rail-tool {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .66);
    font-size: 14px;
    text-align: left;
  }

  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    background: rgba(18, 33, 27, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms var(--ease);
  }

  .nav-scrim[data-open] {
    opacity: 1;
    pointer-events: auto;
  }

  .topbar-context {
    gap: 8px;
  }

  .context-kicker,
  .context-divider {
    display: none;
  }

  .context-current {
    color: var(--moss);
    font-size: 12px;
    letter-spacing: .06em;
  }

  .footer-inner {
    width: min(calc(100% - 32px), var(--content-max));
  }

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

  .footer-lead__note {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .container {
    width: min(calc(100% - 32px), var(--content-max));
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
  }

  .stat:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .topbar-brand__name {
    display: none;
  }

  .topbar-context {
    display: none;
  }

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

  .footer-brand__name {
    font-size: 20px;
  }

  .footer-lead__note {
    font-size: 10px;
    line-height: 1.6;
  }

  .site-footer::before {
    font-size: 140px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }

  .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .rail-nav,
  .rail-nav[data-open] {
    transition: none;
  }

  .back-to-top {
    transition: none;
  }

  .read-progress__bar {
    transition: none;
  }
}
