:root {
  --ink: #0B1F1A;
  --char: #101514;
  --teal-deep: #0E4A44;
  --line: #1E3A32;
  --amber: #F2B544;
  --amber-dim: #8A6420;
  --cyan: #38E1C6;
  --fog: #E8EFEA;
  --muted: #93A79E;
  --red: #FF5A4E;
  --shell: min(1320px, calc(100% - clamp(32px, 6vw, 96px)));
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 84% -8%, rgba(56, 225, 198, 0.075), transparent 42%),
    radial-gradient(circle at 8% 18%, rgba(242, 181, 68, 0.045), transparent 34%);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--cyan);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

strong {
  font-weight: 800;
  color: var(--fog);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

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

#main-content {
  display: block;
  scroll-margin-top: 120px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 16px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--teal-deep);
  transform: translateY(-140%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(12px);
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 26, 0.97);
  border-bottom: 2px solid var(--line);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header[data-scrolled] {
  border-bottom-color: var(--teal-deep);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
}

.header-rail {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 30px;
  padding: 6px clamp(16px, 4vw, 48px);
  background: var(--char);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.rail-label {
  color: var(--amber);
  white-space: nowrap;
}

.rail-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 225, 198, 0.14);
}

.rail-meta {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rail-version {
  margin-left: auto;
  color: var(--fog);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.header-frame {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  width: var(--shell);
  margin-inline: auto;
  padding-block: 12px;
}

.header-frame::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--amber);
  border-top: 2px solid var(--amber);
  pointer-events: none;
}

.header-frame::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--fog);
  text-decoration: none;
}

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

.brand-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  background: var(--amber);
  color: #08120F;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  box-shadow: 4px 4px 0 var(--teal-deep);
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-sub {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.site-nav {
  justify-self: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover {
  color: var(--amber);
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: rgba(56, 225, 198, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
}

.header-actions .btn {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #08120F;
  box-shadow: 4px 4px 0 var(--teal-deep);
}

.btn-primary:hover {
  background: var(--amber);
  color: #08120F;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--teal-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--fog);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fog);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.nav-toggle:hover {
  border-color: var(--amber);
  background: rgba(242, 181, 68, 0.06);
}

.nav-toggle-box {
  display: grid;
  gap: 4px;
  width: 20px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fog);
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.progress-track {
  height: 3px;
  overflow: hidden;
  background: var(--line);
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  transition: width 0.12s linear;
}

.page-main {
  display: block;
  padding-bottom: clamp(64px, 9vw, 112px);
}

.page-header {
  position: relative;
  padding: clamp(44px, 7vw, 88px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 2px solid var(--line);
}

.page-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--amber);
}

.page-title {
  max-width: 22ch;
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.page-lede {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.9;
}

.section {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0;
  scroll-margin-top: 120px;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 10px;
  max-width: 62ch;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.panel {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  background: var(--char);
  border: 2px solid var(--line);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.34);
}

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.panel-meta {
  margin-bottom: 10px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack {
  display: grid;
  gap: 20px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.col-4 {
  grid-column: span 4;
}

.col-5 {
  grid-column: span 5;
}

.col-6 {
  grid-column: span 6;
}

.col-7 {
  grid-column: span 7;
}

.col-8 {
  grid-column: span 8;
}

.col-12 {
  grid-column: span 12;
}

.prose {
  max-width: 68ch;
  color: var(--fog);
  font-size: 17px;
  line-height: 1.95;
}

.prose p + p {
  margin-top: 18px;
}

.prose h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--fog);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
}

.prose ul,
.prose ol {
  margin: 16px 0 0;
  padding-left: 1.25em;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--amber);
}

.prose a {
  color: var(--cyan);
}

.prose blockquote {
  margin: 24px 0;
  padding: 14px 0 14px 18px;
  border-left: 3px solid var(--amber);
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.85;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: var(--cyan);
}

.breadcrumb-current {
  color: var(--fog);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  background: var(--teal-deep);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--teal-deep);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.34);
}

.media-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44px;
  height: 44px;
  border-top: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
  pointer-events: none;
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.media-frame--wide {
  aspect-ratio: 16 / 9;
}

.media-frame--tall {
  aspect-ratio: 4 / 5;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame--placeholder {
  background:
    repeating-linear-gradient(135deg, var(--teal-deep) 0 14px, var(--char) 14px 28px);
}

.media-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.media-caption::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--amber);
}

.divider-slant {
  height: 2px;
  margin: 32px 0;
  background: linear-gradient(90deg, var(--amber), var(--line) 40%, var(--cyan));
  transform: skewY(-1deg);
}

.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-chapter] {
  transition: box-shadow 0.25s ease;
}

[data-chapter][data-active] {
  box-shadow: inset 3px 0 0 var(--amber);
}

.site-footer {
  position: relative;
  background: var(--char);
  border-top: 2px solid var(--line);
  color: var(--fog);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: min(34%, 420px);
  height: 4px;
  background: var(--amber);
}

.footer-cut {
  position: relative;
  z-index: 1;
  height: 20px;
  background: linear-gradient(90deg, var(--amber) 0 12%, var(--teal-deep) 12% 72%, var(--cyan) 72% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 0 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.55fr) minmax(0, 0.95fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.footer-logo {
  justify-self: start;
  display: inline-block;
  padding-bottom: 7px;
  border-bottom: 3px solid var(--amber);
  color: var(--fog);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.footer-logo:hover {
  color: var(--amber);
}

.footer-summary {
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.footer-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.footer-version-label {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
}

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

.footer-col-title {
  margin-bottom: 12px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 1px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 38px;
  border-bottom: 1px solid transparent;
  color: var(--fog);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

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

.footer-contact {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.contact-list {
  display: grid;
  gap: 13px;
}

.contact-row {
  display: grid;
  gap: 1px;
}

.contact-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-value {
  color: var(--fog);
  font-size: 14px;
  line-height: 1.65;
  word-break: break-word;
}

.contact-note {
  margin-top: 16px;
  padding-left: 10px;
  border-left: 2px solid var(--amber-dim);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: var(--shell);
  margin-inline: auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.footer-legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.footer-legal-link:hover {
  color: var(--cyan);
}

.footer-copy,
.footer-icp {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

@media (max-width: 1180px) {
  .header-actions .btn-ghost {
    display: none;
  }

  .nav-link {
    padding-inline: 8px;
    font-size: 13px;
  }

  .brand-sub {
    letter-spacing: 0;
  }
}

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }

  .footer-contact {
    grid-column: 1 / -1;
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
  }
}

@media (max-width: 900px) {
  .header-frame {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-block: 10px;
  }

  .header-frame::before,
  .header-frame::after {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 30;
    display: block;
    max-height: calc(100vh - 130px);
    overflow: auto;
    padding: 8px;
    background: var(--char);
    border: 2px solid var(--line);
    border-top: 2px solid var(--amber);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.46);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
    font-size: 16px;
  }

  .nav-link::after {
    content: "→";
    color: var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: var(--line);
    border-left-color: var(--cyan);
    background: rgba(56, 225, 198, 0.07);
  }

  .header-actions .btn {
    display: none;
  }

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

  .grid-12 {
    gap: 20px;
  }

  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8 {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  .rail-meta {
    display: none;
  }

  .rail-version {
    margin-left: auto;
  }

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

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-contact {
    grid-column: auto;
  }

  .contact-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .header-rail {
    gap: 9px;
    padding-inline: 16px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    padding: 6px 7px;
    font-size: 12px;
    box-shadow: 3px 3px 0 var(--teal-deep);
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-sub {
    display: none;
  }

  .page-kicker {
    font-size: 10px;
  }

  .panel {
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.34);
  }

  .media-frame {
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.34);
  }

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

  .footer-legal {
    gap: 2px 14px;
  }
}

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

  .rail-version {
    display: none;
  }

  .brand-name {
    font-size: 15px;
  }

  .header-actions {
    gap: 6px;
  }
}

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

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

  .has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .progress-bar {
    transition: none;
  }
}
