:root {
  --paper: #e7e3d8;
  --paper-2: #f6f1e6;
  --ink: #1c1915;
  --ink-soft: #514c43;
  --line: rgba(28, 25, 21, 0.14);
  --sluice: #0f6e62;
  --sluice-deep: #0b4f47;
  --sluice-wash: #d5e6e0;
  --rakho: #9a5a0c;
  --rakho-bright: #c4842a;
  --rakho-wash: #f0e1c6;
  --block: #8d2e1c;
  --allow: #1d5c34;
  --plate: #161410;
  --plate-text: #ebe4d6;
  --plate-dim: #a39888;
  --shadow: 0 22px 50px rgba(28, 25, 21, 0.14);
  --mono: "IBM Plex Mono", "Noto Sans Devanagari", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background-color: #e4dfd4;
  background-image:
    radial-gradient(1200px 700px at 8% -10%, rgba(15, 110, 98, 0.16), transparent 55%),
    radial-gradient(900px 600px at 100% 18%, rgba(196, 132, 42, 0.16), transparent 50%),
    linear-gradient(180deg, #d5e4de 0%, #e7e3d8 36%, #f0e6d2 72%, #f2dfc2 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("grain.png");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

::selection {
  background: var(--sluice);
  color: #f4f0e6;
}

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

img { max-width: 100%; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(15, 110, 98, 0.55);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: currentColor;
}

p code,
dd code,
.fine code,
.who code,
.meta code {
  font-family: var(--mono);
  font-size: 0.88em;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 40;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(231, 227, 216, 0.9);
  backdrop-filter: blur(12px);
}

.top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0f6e62 0%, #6d8f62 48%, #c4842a 100%);
  transform: scaleX(0);
  transform-origin: left center;
  animation: bar-in 0.9s var(--ease) 0.05s forwards;
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 14px;
}

.brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

.top nav a {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 1px;
  transition: color 0.2s ease, background-size 0.35s var(--ease);
}

.top nav a:hover,
.top nav a.is-here {
  color: var(--ink);
  background-size: 100% 1px;
}

.hero {
  padding: 48px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: start;
}

#sluice,
#rakho,
#usecase,
#noticed,
#start,
#problem {
  scroll-margin-top: 76px;
}

.kicker {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.kicker .sep {
  margin: 0 0.15rem;
  color: rgba(28, 25, 21, 0.45);
}

.kicker .k-s { color: var(--sluice); }
.kicker .k-r { color: var(--rakho); }

h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 .h1-next {
  display: block;
  margin-top: 0.12em;
  font-weight: 400;
  color: #3d3830;
}

.lede {
  margin: 22px 0 0;
  font-size: 1.02rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.lede + .lede {
  margin-top: 12px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: transparent;
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.3s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
  z-index: -1;
}

.btn:hover { color: var(--paper); }
.btn:hover::before { transform: scaleX(1); }

.btn.solid { color: var(--paper); }
.btn.solid::before { transform: scaleX(1); }

.btn.solid:hover { color: var(--ink); }
.btn.solid:hover::before {
  transform: scaleX(0);
  transform-origin: right center;
}

.btn .mark-s { color: #8fd0c6; }
.btn.solid:hover .mark-s,
.btn:hover .mark-s { color: var(--sluice); }
.btn .mark-r { color: #f0c27a; }
.btn.solid:hover .mark-r,
.btn:hover .mark-r { color: var(--rakho); }

.plate {
  background: var(--plate);
  color: var(--plate-text);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.4s ease;
}

.plate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(235, 228, 214, 0.12);
}

.tabs {
  display: flex;
  gap: 4px;
}

.tabs button,
.ghost {
  border: 0;
  background: transparent;
  color: var(--plate-dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 8px;
  cursor: pointer;
  transition: color 0.2s ease, box-shadow 0.25s ease;
}

.tabs button[aria-selected="true"] {
  color: var(--plate-text);
  box-shadow: inset 0 -1px 0 var(--plate-text);
}

.tabs button:hover,
.ghost:hover {
  color: var(--plate-text);
}

.plate-body {
  padding: 18px 18px 16px;
  flex: 1;
}

.scene[hidden] {
  display: none;
}

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

.line {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 8px 12px;
  align-items: baseline;
  padding: 7px 0;
}

.line + .call {
  margin-top: 8px;
  border-top: 1px solid rgba(235, 228, 214, 0.08);
  padding-top: 14px;
}

.idx,
.tool,
.badge,
.path,
.verbs,
.cmd code,
.bib-id,
.top nav a,
.kicker,
.spec dt,
.outcome-k {
  font-family: var(--mono);
}

.idx {
  color: var(--plate-dim);
  font-size: 0.75rem;
}

.tool {
  font-size: 0.98rem;
  font-weight: 500;
}

.detail {
  grid-column: 2;
  color: var(--plate-dim);
  font-size: 0.92rem;
}

.line.verdict {
  grid-template-columns: 1.8rem auto minmax(0, 1fr);
}

.badge {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 1px 6px;
  line-height: 1.5;
}

.why {
  color: var(--plate-dim);
  font-size: 0.86rem;
  text-wrap: pretty;
}

.tone-allow { color: #b7d7a8; }
.tone-block { color: #ffb4a4; }
.tone-keep { color: #f0d7a2; }
.tone-refuse { color: #f3b48a; }
.tone-tag { color: #9fd0ea; }

.caption {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(235, 228, 214, 0.12);
  color: #d9d0c2;
  font-size: 0.88rem;
  text-wrap: pretty;
}

.js .scene.is-active {
  animation: scene-in 0.4s var(--ease);
}

.js .scene.is-active .line,
.js .scene.is-active .caption {
  animation: rise 0.45s ease both;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes scene-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes bar-in {
  to { transform: scaleX(1); }
}

@keyframes sheen {
  from { transform: translateX(-130%); }
  to { transform: translateX(460%); }
}

.js .hero-copy > * {
  animation: rise 0.6s var(--ease) both;
}

.js .hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
.js .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.js .hero-copy > *:nth-child(3) { animation-delay: 0.2s; }
.js .hero-copy > *:nth-child(4) { animation-delay: 0.28s; }
.js .hero-copy > *:nth-child(5) { animation-delay: 0.36s; }

.js .plate {
  animation: rise 0.7s var(--ease) 0.16s both;
}

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

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .scene.is-active,
  .js .scene.is-active .line,
  .js .scene.is-active .caption,
  .js .hero-copy > *,
  .js .plate,
  .top::before {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .js .reveal,
  .js .band .specimen,
  .js .rule-note,
  .js .rule-row {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .specimen::after { display: none; }
  .outcome:hover { transform: none; }
}

.fails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 28px auto 0;
}

.fails article {
  padding: 28px 22px 32px 0;
}

.fails article + article {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.fails h2,
.product h2,
.case h2,
.noticed h2,
.start h2,
.mail h2 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.fails h2 {
  margin: 8px 0 10px;
  font-size: 1.25rem;
}

.fails p,
.product .dek,
.case .dek,
.noticed .dek,
.mail .dek {
  text-wrap: pretty;
}

.fails p,
.product .dek,
.case .dek,
.noticed .dek {
  margin: 0;
  color: var(--ink-soft);
}

.num {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.band {
  padding: 84px 0;
}

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

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

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  column-gap: 40px;
  align-items: start;
}

.product > .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 22px;
}

#sluice .product {
  row-gap: 0;
  align-items: stretch;
}

#sluice .product > .eyebrow {
  margin-bottom: 10px;
}

#sluice .product > h2,
#sluice .product > .dek {
  grid-column: 1 / -1;
}

#sluice .product > .dek {
  margin-bottom: 32px;
}

#sluice .specimen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sluice-deep);
}

.band.rakho .eyebrow { color: var(--rakho); }

.product h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
}

.hindi {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--rakho);
}

.dek {
  margin-top: 18px !important;
  font-size: 1.08rem;
}

.product .dek + p,
.stack p {
  color: var(--ink-soft);
}

.stack p {
  margin: 14px 0 0;
}

.path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.path li {
  padding: 4px 0;
}

.path .arrow {
  color: rgba(28, 25, 21, 0.4);
}

.spec {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}

.spec dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.spec dd {
  margin: 0;
}

.code {
  margin: 22px 0 0;
  padding: 16px 16px 14px;
  background: var(--plate);
  color: var(--plate-text);
  overflow-x: auto;
}

.specimen {
  position: relative;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--plate);
  color: var(--plate-text);
  box-shadow: var(--shadow);
}

.specimen::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 252, 246, 0.14), transparent);
  transform: translateX(-130%);
  pointer-events: none;
}

.js .band .specimen {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.js .band.is-in .specimen {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

.js .band.is-in .specimen::after {
  animation: sheen 1.15s var(--ease) 0.28s both;
}

.rule-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rule-note {
  margin: 0;
  padding: 18px 18px 14px;
  color: var(--plate-dim);
  font-size: 0.84rem;
  line-height: 1.55;
}

.rule-row {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  margin: 0 18px;
  padding: 12px 0;
  border-top: 1px solid rgba(235, 228, 214, 0.14);
  font-size: 0.92rem;
}

.rule-row span:first-child {
  color: var(--plate-dim);
  letter-spacing: 0.04em;
}

.rule-body .rule-row:last-child {
  margin-bottom: 8px;
}

.js .rule-note,
.js .rule-row {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js .band.is-in .rule-note,
.js .band.is-in .rule-row {
  opacity: 1;
  transform: none;
}

.js .band.is-in .rule-note { transition-delay: 0.22s; }
.js .band.is-in .rule-row:nth-child(2) { transition-delay: 0.32s; }
.js .band.is-in .rule-row:nth-child(3) { transition-delay: 0.42s; }

.specimen figcaption {
  margin: 0;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(235, 228, 214, 0.14);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plate-dim);
}

.specimen pre {
  margin: 0;
  padding: 16px 16px 18px;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.6;
  overflow-x: auto;
}

.specimen .cmt { color: var(--plate-dim); }

.specimen .verbs {
  margin: 0;
  padding: 6px 16px 4px;
  gap: 0;
  border-bottom: 1px solid rgba(235, 228, 214, 0.14);
  color: var(--plate-text);
}

.specimen .verbs > * {
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid rgba(235, 228, 214, 0.08);
}

.specimen .verbs > :nth-last-child(-n + 4) {
  border-bottom: 0;
}

.specimen .verbs span:nth-child(-n + 4) {
  color: var(--plate-dim);
  border-bottom-color: rgba(235, 228, 214, 0.16);
}

.specimen .verbs b {
  font-weight: 500;
  color: var(--plate-text);
}

.code pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.55;
}

.code .cmt { color: var(--plate-dim); }

.pull {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.pull blockquote {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.pull figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.verbs {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr 1.1fr;
  gap: 8px 12px;
  margin: 0 0 22px;
  font-size: 0.92rem;
}

.verbs span:nth-child(-n + 4) {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.verbs b {
  font-weight: 500;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
}

.case h2,
.noticed h2,
.start h2,
.mail h2 {
  margin: 10px 0 0;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  max-width: none;
}

.mail a {
  color: var(--sluice-deep);
}

.case .dek,
.noticed .dek,
.mail .dek {
  margin-top: 16px;
  max-width: none;
  font-size: 1rem;
  text-wrap: pretty;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.outcome {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.72), rgba(246, 241, 230, 0.45));
  box-shadow: inset 0 1px 0 rgba(255, 252, 246, 0.65);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.35s var(--ease);
}

.outcome:hover {
  border-color: rgba(28, 25, 21, 0.38);
  background: rgba(246, 241, 230, 0.9);
  transform: translateY(-3px);
}

.outcome-k {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.outcome h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.outcome p {
  margin: 0;
  color: var(--ink-soft);
}

.outcome .badge {
  align-self: flex-start;
  margin-top: 16px;
}

.board .tone-allow { color: var(--allow); }
.board .tone-block { color: var(--block); }

.fine {
  margin: 22px 0 0;
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.bib {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.bib li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 8px 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.bib-id {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding-top: 0.35rem;
}

.bib h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}

.bib h3 a {
  text-decoration: none;
}

.bib h3 a:hover {
  text-decoration: underline;
}

.bib p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.start {
  background: var(--ink);
  color: var(--paper-2);
}

.start .eyebrow { color: #d7c4a2; }

.installs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}

.install {
  padding: 18px;
  border: 1px solid rgba(235, 228, 214, 0.16);
  transition: border-color 0.3s ease, transform 0.35s var(--ease);
}

.install:hover {
  border-color: rgba(235, 228, 214, 0.4);
  transform: translateY(-3px);
}

.install h3 {
  margin: 0;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.install .who {
  margin: 4px 0 14px;
  color: #b7ad9e;
  font-size: 0.92rem;
}

.cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  background: #0e0d0b;
}

.cmd code {
  font-size: 0.86rem;
  overflow-x: auto;
}

.cmd button {
  flex: none;
  border: 1px solid rgba(235, 228, 214, 0.3);
  background: transparent;
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 8px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.cmd button:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.install .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  font-size: 0.92rem;
}

.pair {
  margin-top: 18px;
  color: #b7ad9e;
}

.pair .cmd {
  margin-top: 10px;
  max-width: 520px;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 28px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.foot p { margin: 0; }

@media (max-width: 980px) {
  .hero-grid,
  .product,
  .installs,
  .fails,
  .board {
    grid-template-columns: 1fr;
  }

  .hero-grid { align-items: start; }

  .fails article,
  .fails article + article {
    padding: 22px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .fails article:first-child {
    border-top: 0;
    padding-top: 8px;
  }

  .plate { min-height: 0; }
}

@media (max-width: 720px) {
  .wrap,
  .top-inner,
  .foot {
    width: min(var(--wrap), calc(100% - 28px));
  }

  .top-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  h1 { font-size: clamp(1.65rem, 7.2vw, 2.1rem); }

  .verbs {
    font-size: 0.82rem;
    gap: 8px 8px;
  }

  .bib li { grid-template-columns: 1fr; gap: 4px; }

  .spec { grid-template-columns: 1fr; gap: 2px 0; }
  .spec div,
  .spec dt,
  .spec dd { display: block; }
  .spec dt { margin-top: 12px; }
}

@media print {
  body::after { display: none; }
  .top { position: static; }
  .ghost, .cmd button { display: none; }
  .scene[hidden] { display: block !important; }
  .js .line, .js .caption { opacity: 1 !important; animation: none !important; }
  .plate, .code, .cmd { box-shadow: none; }
}
