:root {
  --color-bg: #061A9C;
  --color-panel: #0A249F;
  --color-panel-raised: #102EAE;
  --color-border: #AFC4FF;
  --color-accent: #FFE44D;
  --color-accent-pressed: #D8BA00;
  --color-text: #F7F9FF;
  --color-text-muted: #B8C8F2;
  --color-success: #F7F9FF;
  --color-warning: #FFE44D;
  --color-error: #FFD08A;
  --color-overlay: rgb(0 8 70 / 0.24);
  --color-overlay-strong: rgb(0 8 70 / 0.72);
  --color-texture: rgb(175 196 255 / 0.13);
  --color-focus: rgb(255 228 77 / 0.48);
  --color-transparent: transparent;
  --font-display: "JetBrains Mono", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", monospace;
  --font-body: "JetBrains Mono", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", monospace;
  --font-mono: "JetBrains Mono", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", Consolas, monospace;
  --radius-none: 0;
  --line-thin: 1px;
  --line-strong: 2px;
  --header-height: 68px;
  --terminal-chrome-height: 34px;
  --terminal-status-height: 38px;
  --content-max: 1440px;
  --content-reading: 920px;
  --gutter: clamp(16px, 3vw, 34px);
  --section-space: clamp(56px, 8vw, 112px);
  --transition-fast: 140ms ease-out;
  --transition-base: 260ms ease-out;
  --transition-reveal: 520ms ease-out;
  --layer-header: 50;
  --layer-veil: 40;
  --layer-drawer: 60;
  --layer-fab: 30;
}

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

html {
  width: 100%;
  min-width: 0;
  scroll-behavior: smooth;
  background: var(--color-bg);
}

html.nav-open {
  overflow: hidden;
}

body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

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

img {
  height: auto;
}

button,
a,
summary {
  -webkit-tap-highlight-color: var(--color-transparent);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border-radius: var(--radius-none);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: var(--line-strong) solid var(--color-accent);
  outline-offset: 3px;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
dl,
dd,
blockquote,
pre,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(52px, 8vw, 116px);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 4.5vw, 52px);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: -0.02em;
}

h4 {
  margin-bottom: 10px;
  font-size: 17px;
}

p {
  margin-bottom: 1.2em;
}

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

small {
  font-size: 0.8em;
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
}

:not(pre) > code {
  padding: 0.1em 0.35em;
  border: var(--line-thin) solid var(--color-border);
  color: var(--color-accent);
  background: var(--color-panel);
  overflow-wrap: anywhere;
  word-break: break-word;
}

pre {
  max-width: 100%;
  margin-bottom: 24px;
  padding: 18px;
  overflow-x: auto;
  border: var(--line-strong) solid var(--color-border);
  color: var(--color-text);
  background: var(--color-panel);
  font-size: 13px;
  line-height: 1.65;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

pre code {
  display: block;
  min-width: max-content;
  padding: 0;
  border: 0;
  color: inherit;
  background: var(--color-transparent);
  overflow-wrap: normal;
  word-break: normal;
}

hr {
  height: 0;
  margin: 40px 0;
  border: 0;
  border-top: var(--line-thin) dashed var(--color-border);
}

::selection {
  color: var(--color-bg);
  background: var(--color-accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: var(--layer-drawer);
  padding: 10px 14px;
  color: var(--color-bg);
  background: var(--color-accent);
  transform: translateY(-160%);
}

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

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

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

.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  overflow-x: clip;
}

.section--compact {
  padding-top: calc(var(--section-space) * 0.55);
  padding-bottom: calc(var(--section-space) * 0.55);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
  padding-bottom: 16px;
  border-bottom: var(--line-strong) solid var(--color-text);
}

.section-heading > * {
  min-width: 0;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid > * {
  min-width: 0;
}

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

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

.panel,
.card {
  min-width: 0;
  border: var(--line-strong) solid var(--color-border);
  border-radius: var(--radius-none);
  color: var(--color-text);
  background: var(--color-panel);
}

.panel {
  padding: clamp(20px, 3vw, 34px);
}

.card {
  padding: 22px;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.card:hover {
  border-color: var(--color-accent);
  background: var(--color-panel-raised);
  transform: translateY(-2px);
}

.card--inverted {
  color: var(--color-bg);
  border-color: var(--color-text);
  background: var(--color-text);
}

.card--accent {
  color: var(--color-bg);
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.card__eyebrow {
  margin-bottom: 10px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card__title {
  margin-bottom: 10px;
  font-size: 21px;
}

.card__copy {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.btn,
.action {
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: var(--line-strong) solid var(--color-accent);
  border-radius: var(--radius-none);
  color: var(--color-bg);
  background: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.btn:hover,
.action:hover {
  border-color: var(--color-accent-pressed);
  background: var(--color-accent-pressed);
}

.btn:active,
.action:active {
  transform: translateY(2px);
}

.btn--secondary,
.action--secondary {
  color: var(--color-accent);
  background: var(--color-bg);
}

.btn--secondary:hover,
.action--secondary:hover {
  color: var(--color-bg);
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.btn--quiet {
  color: var(--color-text);
  border-color: var(--color-border);
  background: var(--color-panel);
}

.btn--quiet:hover {
  color: var(--color-bg);
  border-color: var(--color-text);
  background: var(--color-text);
}

.btn[disabled],
.btn.is-disabled,
.action[disabled] {
  color: var(--color-text-muted);
  border-color: var(--color-border);
  background: var(--color-panel);
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.badge-row,
.tag-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
}

.badge,
.tag {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 2px 8px;
  overflow: hidden;
  border: var(--line-thin) solid var(--color-border);
  border-radius: var(--radius-none);
  color: var(--color-text);
  background: var(--color-panel);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.badge::before,
.status-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  margin-right: 7px;
  background: var(--color-accent);
  content: "";
}

.badge--accent,
.tag--accent {
  color: var(--color-bg);
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.badge--muted,
.tag--muted {
  color: var(--color-text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--transition-reveal),
    transform var(--transition-reveal);
}

.reveal.shown {
  opacity: 1;
  transform: none;
}

.tilt,
.tilt-card {
  transform: rotate(-0.35deg);
}

.site-header {
  position: relative;
  z-index: var(--layer-header);
  height: var(--header-height);
  border-bottom: var(--line-strong) solid var(--color-border);
  background: var(--color-bg);
}

.site-header__inner,
.header-inner {
  position: relative;
  display: flex;
  width: min(100%, var(--content-max));
  height: 100%;
  align-items: center;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-brand,
.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-brand__logo,
.brand-logo {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
}

.site-brand__copy,
.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.16;
}

.site-brand__copy small,
.brand-copy small {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.desktop-nav,
.primary-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.desktop-nav a,
.primary-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav a:hover,
.primary-nav a:hover {
  color: var(--color-text);
  background: var(--color-panel-raised);
}

.desktop-nav a[aria-current="page"],
.primary-nav a[aria-current="page"] {
  color: var(--color-bg);
  background: var(--color-accent);
}

.header-tools {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
}

.language-control {
  position: relative;
}

.language-button,
.language-static {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  border: var(--line-thin) solid var(--color-border);
  border-radius: var(--radius-none);
  color: var(--color-text);
  background: var(--color-panel);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  width: 168px;
  padding: 5px;
  border: var(--line-strong) solid var(--color-border);
  background: var(--color-panel);
}

.language-control.is-open .language-menu {
  display: block;
}

.language-menu a {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 10px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] {
  color: var(--color-bg);
  background: var(--color-accent);
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 9px;
  border: var(--line-thin) solid var(--color-border);
  color: var(--color-text);
  background: var(--color-panel);
  cursor: pointer;
}

.menu-toggle__lines {
  display: grid;
  width: 22px;
  gap: 5px;
}

.menu-toggle__lines span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transition: transform var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:first-child {
  transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  right: 0;
  left: 0;
  z-index: var(--layer-drawer);
  display: none;
  max-height: calc(100dvh - var(--header-height));
  padding: 10px var(--gutter) 22px;
  overflow-y: auto;
  border-bottom: var(--line-strong) solid var(--color-border);
  background: var(--color-panel);
  overscroll-behavior: contain;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-drawer a {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  padding: 11px 12px;
  border-bottom: var(--line-thin) solid var(--color-border);
  color: var(--color-text);
  font-weight: 700;
}

.mobile-drawer a:hover,
.mobile-drawer a[aria-current="page"],
.mobile-drawer a[aria-current="true"] {
  color: var(--color-bg);
  background: var(--color-accent);
}

.mobile-drawer__languages {
  margin-top: 14px;
}

.mobile-drawer__label {
  margin: 0;
  padding: 8px 12px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.nav-veil {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: var(--layer-veil);
  display: none;
  border: 0;
  background: var(--color-overlay-strong);
}

.nav-veil.is-open {
  display: block;
}

.bios-screen {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  overflow-x: clip;
  isolation: isolate;
  background: var(--color-bg);
}

.screen-texture,
.corner-mask {
  position: absolute;
  pointer-events: none;
}

.screen-texture {
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  color: var(--color-texture);
}

.corner-mask {
  z-index: -1;
  width: 19vw;
  height: 19vh;
  background: var(--color-overlay);
}

.corner-mask--tl {
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.corner-mask--tr {
  top: 0;
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.corner-mask--bl {
  bottom: 0;
  left: 0;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.corner-mask--br {
  right: 0;
  bottom: 0;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.terminal {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  background: var(--color-bg);
}

.terminal-chrome {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 170px;
  height: var(--terminal-chrome-height);
  align-items: center;
  padding-inline: var(--gutter);
  border-bottom: var(--line-thin) solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-panel);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chrome-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}

.chrome-light {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: var(--line-thin) solid var(--color-border);
  background: var(--color-text);
}

.chrome-light:nth-child(2) {
  background: var(--color-error);
}

.chrome-light:nth-child(3) {
  background: var(--color-accent);
}

.chrome-title {
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chrome-mode {
  justify-self: end;
  color: var(--color-accent);
}

.terminal-body {
  position: relative;
  width: min(100%, var(--content-max));
  min-height: calc(100svh - var(--header-height) - var(--terminal-chrome-height));
  margin-inline: auto;
  padding: 12px var(--gutter) calc(var(--terminal-status-height) + 38px);
}

.bios-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
}

.dot-title {
  display: block;
  width: 100%;
  height: 150px;
  overflow: visible;
}

.dot-title-circle {
  fill: var(--color-text);
}

.dot-title-text {
  font-family: var(--font-display);
  font-size: 145px;
  font-weight: 800;
  letter-spacing: -7px;
}

.heading-keyword {
  display: block;
  margin-top: -3px;
  color: var(--color-accent);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.025em;
}

.heading-keyword::before {
  color: var(--color-text);
  content: "> ";
}

.hero-control {
  display: grid;
  grid-template-columns: minmax(550px, 1fr) auto;
  align-items: end;
  gap: 30px;
  margin-top: 10px;
  padding-bottom: 12px;
  border-bottom: var(--line-thin) dashed var(--color-border);
}

.hero-control > * {
  min-width: 0;
}

.hero-summary {
  margin: 0 0 9px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-log {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 3px;
  margin: 11px 0 10px;
  padding: 0;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  list-style: none;
}

.post-log li {
  display: flex;
  min-width: 0;
  opacity: 0;
  transform: translateY(4px);
  animation: post-line 280ms ease-out forwards;
}

.post-log li:nth-child(2) {
  animation-delay: 80ms;
}

.post-log li:nth-child(3) {
  animation-delay: 160ms;
}

.post-log li:nth-child(4) {
  animation-delay: 240ms;
}

.log-prefix {
  flex: 0 0 auto;
  margin-right: 9px;
  color: var(--color-accent);
}

.log-label {
  color: var(--color-text);
}

.log-divider {
  min-width: 22px;
  flex: 1 1 auto;
  margin-inline: 8px;
  overflow: hidden;
  color: var(--color-border);
  white-space: nowrap;
}

.log-value {
  flex: 0 0 auto;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.device-block {
  min-width: 0;
  overflow-x: auto;
  border-top: var(--line-strong) solid var(--color-text);
  border-bottom: var(--line-strong) solid var(--color-text);
  background: var(--color-panel);
  -webkit-overflow-scrolling: touch;
}

.device-caption,
.device-row {
  display: grid;
  min-width: 820px;
  grid-template-columns: 80px 190px minmax(250px, 1fr) 205px;
  align-items: center;
  gap: 14px;
  padding-inline: 12px;
}

.device-caption {
  min-height: 25px;
  color: var(--color-bg);
  background: var(--color-text);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.device-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.device-row {
  min-height: 36px;
  padding-block: 4px;
  border-top: var(--line-thin) solid var(--color-border);
  opacity: 0;
  transform: translateX(-5px);
  animation: enumerate 300ms ease-out forwards;
}

.device-row:nth-child(1) {
  animation-delay: 300ms;
}

.device-row:nth-child(2) {
  animation-delay: 380ms;
}

.device-row:nth-child(3) {
  animation-delay: 460ms;
}

.device-row:nth-child(4) {
  animation-delay: 540ms;
}

.device-row:nth-child(5) {
  animation-delay: 620ms;
}

.device-row:hover,
.device-row:focus-within {
  background: var(--color-panel-raised);
}

.device-code {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.device-name {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.device-spec {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.device-download {
  display: inline-flex;
  justify-self: stretch;
  justify-content: center;
  padding: 3px 8px;
  color: var(--color-bg);
  background: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.device-download:hover,
.device-download:focus-visible {
  background: var(--color-accent-pressed);
}

.boot-prompt {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--terminal-status-height) + 8px);
  left: var(--gutter);
  display: flex;
  min-width: 0;
  min-height: 22px;
  align-items: center;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 11px;
}

.prompt-mark {
  flex: 0 0 auto;
  margin-right: 8px;
  color: var(--color-accent);
}

.cursor {
  display: inline-block;
  width: 9px;
  height: 14px;
  flex: 0 0 auto;
  margin-left: 8px;
  background: var(--color-accent);
  animation: cursor-blink 900ms steps(1, end) infinite;
}

.status-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: var(--terminal-status-height);
  align-items: center;
  padding: 7px var(--gutter);
  color: var(--color-bg);
  background: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.status-right {
  padding-left: 24px;
  white-space: nowrap;
}

.status-key {
  color: var(--color-panel-raised);
}

.prose {
  min-width: 0;
  color: var(--color-text-muted);
}

.prose h2,
.prose h3,
.prose h4 {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.prose h2 {
  margin-top: 2em;
  padding-top: 14px;
  border-top: var(--line-strong) solid var(--color-text);
}

.prose h3 {
  margin-top: 1.7em;
  color: var(--color-accent);
}

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.prose li {
  margin-bottom: 0.55em;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: var(--line-strong) solid var(--color-border);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: var(--color-text);
  background: var(--color-panel);
  font-family: var(--font-mono);
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-right: var(--line-thin) solid var(--color-border);
  border-bottom: var(--line-thin) solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--color-bg);
  background: var(--color-text);
  font-weight: 800;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table th:last-child,
.data-table td:last-child {
  border-right: 0;
}

.site-footer {
  border-top: var(--line-strong) solid var(--color-text);
  background: var(--color-panel);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(170px, 1fr));
  gap: 42px;
  padding-top: 54px;
  padding-bottom: 44px;
}

.site-footer__grid > * {
  min-width: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.footer-intro {
  max-width: 410px;
  color: var(--color-text-muted);
}

.footer-heading {
  margin-bottom: 14px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 7px;
}

.footer-links a {
  display: inline-flex;
  max-width: 100%;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

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

.footer-bottom {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 20px;
  border-top: var(--line-thin) dashed var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.footer-legal {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal a:hover {
  color: var(--color-accent);
}

@keyframes post-line {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes enumerate {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cursor-blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 1120px) {
  .desktop-nav a {
    padding-inline: 8px;
    font-size: 12px;
  }

  .site-brand__copy small {
    display: none;
  }

  .hero-control {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .hero-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 860px) {
  .desktop-nav,
  .header-tools .language-control {
    display: none;
  }

  .header-tools {
    display: flex;
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .terminal-chrome {
    grid-template-columns: 80px minmax(0, 1fr) 80px;
  }

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

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

  .section-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 60px;
    --terminal-chrome-height: 32px;
    --terminal-status-height: 56px;
    --gutter: 16px;
  }

  body {
    font-size: 14px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 64px);
  }

  h2 {
    font-size: clamp(28px, 10vw, 40px);
  }

  .wrap,
  .reading-wrap {
    width: 100%;
    padding-inline: var(--gutter);
  }

  .grid--2,
  .grid--3,
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tilt,
  .tilt-card {
    transform: none;
  }

  .site-brand,
  .brand {
    gap: 9px;
    font-size: 14px;
  }

  .site-brand__logo,
  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .site-brand__copy small,
  .brand-copy small {
    display: none;
  }

  .terminal-chrome {
    grid-template-columns: 64px minmax(0, 1fr);
    padding-inline: var(--gutter);
    font-size: 9px;
  }

  .chrome-mode {
    display: none;
  }

  .dot-title {
    height: 84px;
  }

  .heading-keyword {
    margin-top: 2px;
    font-size: 17px;
  }

  .hero-control {
    gap: 14px;
    margin-top: 12px;
  }

  .hero-summary {
    font-size: 12px;
  }

  .hero-actions {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .action,
  .button-row .btn {
    width: 100%;
  }

  .post-log {
    margin-top: 14px;
    font-size: 10px;
  }

  .log-divider {
    display: none;
  }

  .log-label {
    margin-right: auto;
  }

  .log-value {
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .device-caption,
  .device-row {
    min-width: 700px;
  }

  .boot-prompt {
    align-items: flex-start;
    font-size: 10px;
  }

  .status-bar {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    font-size: 9px;
    line-height: 1.35;
  }

  .status-right {
    padding-left: 0;
    white-space: normal;
  }

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

  .card:hover {
    transform: none;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section--compact {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

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

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

  .post-log li,
  .device-row,
  .cursor,
  .reveal {
    opacity: 1;
    transform: none;
  }
}