:root {
  --ink: #28271f;
  --ink-soft: #4e4b3e;
  --paper: #e7d7ad;
  --paper-light: #f4e9ca;
  --paper-dark: #c6aa70;
  --olive: #303824;
  --olive-mid: #46503a;
  --olive-light: #6d7654;
  --khaki: #9b9169;
  --wood: #4a2f20;
  --wood-dark: #271910;
  --brass: #bd9348;
  --brass-light: #e2c47c;
  --red: #7e2e24;
  --cream: #fff8df;
  --focus: #ffe092;
  --shadow: 0 16px 40px rgb(30 20 10 / 24%);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 2%) 50%, transparent 50%) 0 0 / 4px 4px,
    linear-gradient(rgb(0 0 0 / 2%) 50%, transparent 50%) 0 0 / 3px 3px,
    #817956;
  font: 1rem/1.65 Georgia, "Times New Roman", serif;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.28;
  background:
    repeating-linear-gradient(0deg, transparent 0 8px, rgb(30 35 22 / 18%) 8px 9px),
    repeating-linear-gradient(90deg, transparent 0 11px, rgb(245 236 197 / 12%) 11px 12px);
  pointer-events: none;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

button,
input {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: var(--cream);
  font-weight: 700;
  transform: translateY(-160%);
}

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

.section-shell {
  width: min(calc(100% - 2.25rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0.65rem max(1rem, calc((100vw - var(--max-width)) / 2));
  color: var(--cream);
  border-bottom: 1px solid #171c12;
  background:
    repeating-linear-gradient(90deg, transparent 0 7px, rgb(255 255 255 / 3%) 7px 8px),
    var(--olive);
  box-shadow: 0 3px 12px rgb(0 0 0 / 24%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
}

.brand span {
  display: grid;
  line-height: 1.15;
}

.brand strong,
.site-header nav,
.header-source,
.button,
.eyebrow,
.hero-facts dt,
.feature-index,
.brass-label,
.docs-grid span,
.code-heading,
.copy-button {
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.brand strong {
  font-size: 0.96rem;
  white-space: nowrap;
}

.brand small {
  margin-top: 0.18rem;
  color: #cfc7a5;
  font: 0.68rem/1.2 "Courier New", Courier, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  gap: 1.3rem;
  margin-left: auto;
  font-size: 0.76rem;
  font-weight: 700;
}

.site-header nav a {
  color: #ece3c1;
  text-decoration: none;
}

.site-header nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.header-source {
  padding: 0.55rem 0.72rem;
  color: var(--ink);
  border: 1px solid #f2d78f;
  border-radius: 2px;
  background: linear-gradient(#d8b866, #a77e37);
  box-shadow: inset 0 1px rgb(255 255 255 / 45%);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.source-short {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100vh - 72px);
  padding-block: clamp(4rem, 9vw, 8rem);
}

.hero-copy {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background:
    linear-gradient(105deg, transparent 28px, var(--paper-light) 29px) top left,
    var(--paper-light);
  box-shadow: var(--shadow);
}

.hero-copy::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-right: 29px solid #ad9867;
  border-bottom: 29px solid transparent;
  content: "";
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 4vw, 3.55rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
}

.hero-lede {
  max-width: 62ch;
  margin-bottom: 1.6rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.button-row,
.install-actions,
.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 150ms ease, filter 150ms ease;
}

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

.button-primary {
  color: #fffbe8;
  border-color: #1d2318;
  background: var(--olive);
  box-shadow: 3px 3px 0 #8b7648;
}

.button-secondary {
  color: var(--ink);
  border-color: #8e7139;
  background: var(--brass-light);
  box-shadow: 3px 3px 0 #8b7648;
}

.button-paper {
  color: var(--ink);
  border-color: #6e6042;
  background: var(--paper-light);
  box-shadow: 3px 3px 0 rgb(35 25 15 / 25%);
}

.release-note {
  margin: 1rem 0 0;
  color: #625c49;
  font-size: 0.84rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px dashed #988660;
}

.hero-facts div {
  min-width: 0;
}

.hero-facts dt {
  color: var(--red);
  font-size: 0.65rem;
  font-weight: 700;
}

.hero-facts dd {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
}

.hero-case {
  position: relative;
  padding: 1.2rem;
  border: 8px solid #242b1c;
  border-radius: 15px;
  background:
    repeating-linear-gradient(0deg, transparent 0 5px, rgb(255 255 255 / 4%) 5px 6px),
    var(--olive-mid);
  box-shadow:
    inset 0 0 0 2px #70795b,
    0 22px 50px rgb(31 20 11 / 42%);
  transform: rotate(1.1deg);
}

.hero-case::before {
  position: absolute;
  z-index: -1;
  inset: -18px;
  border: 2px dashed #afa57b;
  border-radius: 24px;
  content: "";
}

.case-lid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: #e2ddc3;
  font: 700 0.74rem/1 "Courier New", Courier, monospace;
  letter-spacing: 0.13em;
}

.case-number {
  color: #d6ba70;
}

.case-screen {
  overflow: hidden;
  border: 2px solid #11150d;
  background: #14180f;
  box-shadow: inset 0 0 0 4px #777354;
}

.case-screen img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-latch {
  position: absolute;
  bottom: -18px;
  left: 50%;
  width: 82px;
  height: 26px;
  border: 2px solid #6d4c19;
  border-radius: 2px;
  background: linear-gradient(90deg, #8c6629, #d7b968 45%, #997431);
  box-shadow: 0 4px 5px rgb(0 0 0 / 35%);
  transform: translateX(-50%);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  color: #f6efd7;
  border-block: 1px solid #171b11;
  background: #171b11;
}

.signal-strip p {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 1.35rem max(1.5rem, calc((100vw - var(--max-width)) / 6));
  background: var(--olive);
  text-align: center;
}

.signal-strip strong {
  font: 700 0.8rem/1.2 "Courier New", Courier, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-strip span {
  color: #c9c4ab;
  font-size: 0.84rem;
}

.section-block {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.4rem;
}

.section-heading > p:last-child {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.screenshot-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 0;
  color: var(--cream);
  border: 5px solid #31261b;
  border-radius: 3px;
  background: #1a1d15;
  box-shadow: 7px 8px 0 rgb(44 30 18 / 28%);
  cursor: zoom-in;
  text-align: left;
}

.screenshot-card::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 18%);
  content: "";
  pointer-events: none;
}

.screenshot-wide {
  grid-column: span 2;
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 240ms ease, opacity 240ms ease;
}

.screenshot-card:hover img,
.screenshot-card:focus-visible img {
  opacity: 0.78;
  transform: scale(1.02);
}

.screenshot-card > span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 0.1rem;
  padding: 1.6rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgb(15 18 12 / 92%) 55%);
}

.screenshot-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.screenshot-card small {
  color: #d4ceb2;
  font: 0.67rem/1.3 "Courier New", Courier, monospace;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.screenshot-mobile img {
  object-position: center 12%;
}

.folder-section {
  padding-top: 3.4rem;
}

.folder-tabs {
  display: flex;
  width: min(calc(100% - 2.25rem), var(--max-width));
  margin-inline: auto;
  padding-left: 2rem;
}

.folder-tabs span {
  min-width: 130px;
  padding: 0.7rem 1rem 0.5rem;
  border: 1px solid #9f875b;
  border-bottom: 0;
  border-radius: 6px 18px 0 0;
  background: var(--paper-dark);
  font: 700 0.68rem/1 "Courier New", Courier, monospace;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.folder-tabs span:nth-child(2) {
  background: #d4bc86;
  transform: translateX(-5px);
}

.folder-tabs span:nth-child(3) {
  background: #e4d09f;
  transform: translateX(-10px);
}

.folder-paper {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid #a98e59;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgb(80 95 93 / 9%) 31px 32px),
    var(--paper-light);
  box-shadow: var(--shadow);
}

.folder-paper::after {
  position: absolute;
  right: 2rem;
  bottom: 1.6rem;
  width: 100px;
  height: 100px;
  border: 4px double rgb(126 46 36 / 55%);
  border-radius: 50%;
  content: "FIELD\A APPROVED";
  color: rgb(126 46 36 / 55%);
  font: 700 0.75rem/1.15 "Courier New", Courier, monospace;
  text-align: center;
  white-space: pre;
  transform: rotate(-11deg);
  display: grid;
  place-content: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1000px;
}

.feature-grid article {
  min-height: 220px;
  padding: 1.4rem;
  border-right: 1px dashed #9d8c67;
  border-bottom: 1px dashed #9d8c67;
}

.feature-grid article:nth-child(3n) {
  border-right: 0;
}

.feature-grid article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.feature-index {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
}

.feature-grid p {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.catalog-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(5rem, 10vw, 9rem);
}

.catalog-card {
  max-width: 760px;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid #8d7952;
  background: #e8d9b7;
  box-shadow: 9px 11px 0 rgb(46 29 17 / 20%);
}

.catalog-card p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.text-link {
  color: #5f271f;
  font-weight: 700;
}

.catalog-stamp {
  display: grid;
  place-items: center;
  width: 230px;
  aspect-ratio: 1;
  padding: 2rem;
  color: #22291b;
  border: 10px double #4f5b3d;
  border-radius: 50%;
  background: rgb(216 190 125 / 52%);
  box-shadow: inset 0 0 0 5px rgb(79 91 61 / 22%);
  text-align: center;
  text-transform: uppercase;
  transform: rotate(5deg);
}

.catalog-stamp span,
.catalog-stamp small {
  font: 700 0.8rem/1.2 "Courier New", Courier, monospace;
  letter-spacing: 0.08em;
}

.catalog-stamp strong {
  font-size: 4.2rem;
  line-height: 0.85;
}

.security-section {
  color: #f5efd7;
  border-block: 8px solid var(--wood-dark);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px) 0 0 / 48px 100%,
    linear-gradient(7deg, transparent 45%, rgb(0 0 0 / 12%) 46%, transparent 48%) 0 0 / 180px 70px,
    var(--wood);
  box-shadow: inset 0 12px 25px rgb(0 0 0 / 28%);
}

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: clamp(5rem, 10vw, 8rem);
}

.security-copy {
  margin: 0;
}

.security-copy .eyebrow {
  color: var(--brass-light);
}

.security-copy > p:last-of-type {
  color: #ddd2b5;
}

.light-link {
  color: #f3d787;
}

.role-stack {
  display: grid;
  gap: 0.6rem;
  padding: 1.2rem;
  border: 5px solid #15190f;
  background:
    repeating-linear-gradient(0deg, transparent 0 6px, rgb(255 255 255 / 3%) 6px 7px),
    var(--olive);
  box-shadow: 12px 14px 0 rgb(18 11 8 / 28%);
}

.role-stack article {
  display: grid;
  grid-template-columns: minmax(155px, 0.7fr) 1fr;
  gap: 1rem;
  padding: 1rem;
  color: var(--ink);
  border-left: 7px solid var(--brass);
  background: var(--paper);
}

.role-stack strong {
  line-height: 1.25;
}

.role-stack span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.35;
}

.install-section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.deployment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.deployment-card {
  display: flex;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid #97805a;
  background: var(--paper-light);
  box-shadow: var(--shadow);
  flex-direction: column;
}

.deployment-card > p {
  color: var(--ink-soft);
}

.deployment-card .compact-code-card {
  margin: 1rem 0 1.4rem;
}

.deployment-card .install-actions {
  align-items: center;
  margin-top: auto;
}

.verification-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px dashed #6e6042;
  background: rgb(244 233 202 / 72%);
}

.verification-panel > div:first-child {
  align-self: center;
}

.code-card.compact-code-card {
  padding: 1rem;
}

.compact-code-card pre {
  max-height: none;
}

.install-caution {
  margin: 1.2rem 0 0;
  padding-left: 1rem;
  color: var(--ink-soft);
  border-left: 4px solid var(--red);
  font-size: 0.9rem;
}

.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
}

.install-card,
.code-card {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.install-card {
  border: 1px solid #97805a;
  background: var(--paper-light);
}

.brass-label {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.4rem 0.65rem;
  color: #30230f;
  border: 1px solid #72511b;
  background: linear-gradient(#e3c97f, #ac843c);
  font-size: 0.65rem;
  font-weight: 700;
}

.install-card ol {
  margin: 1.4rem 0 2rem;
  padding-left: 1.35rem;
}

.install-card li {
  margin-bottom: 0.7rem;
}

.code-card {
  color: #f1ecd7;
  border: 5px solid #181c12;
  background: var(--olive);
}

.code-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #d9cfac;
  font-size: 0.72rem;
  font-weight: 700;
}

.copy-button {
  padding: 0.45rem 0.65rem;
  color: #231f16;
  border: 1px solid #73551f;
  background: var(--brass-light);
  font-size: 0.63rem;
  font-weight: 700;
  cursor: pointer;
}

pre {
  overflow-x: auto;
  margin: 0 0 1.2rem;
  padding: 1.2rem;
  color: #fff8da;
  border: 1px solid #6f775b;
  background: #1e2418;
  font: 0.82rem/1.55 "Courier New", Courier, monospace;
  white-space: pre;
}

.code-card > p {
  margin-bottom: 0;
  color: #cec7ab;
  font-size: 0.88rem;
}

.code-card code {
  font-family: "Courier New", Courier, monospace;
}

.docs-section {
  padding-block: clamp(5rem, 10vw, 8rem);
  background:
    repeating-linear-gradient(0deg, transparent 0 28px, rgb(66 73 61 / 8%) 28px 29px),
    #d7c38f;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.docs-grid a {
  position: relative;
  display: grid;
  min-height: 180px;
  padding: 1.4rem;
  border: 1px solid #8f764a;
  background: var(--paper-light);
  box-shadow: 5px 6px 0 rgb(50 34 20 / 18%);
  text-decoration: none;
  transition: transform 150ms ease;
}

.docs-grid a::before {
  position: absolute;
  top: -1px;
  right: 1rem;
  width: 36px;
  height: 16px;
  border: 1px solid #806126;
  border-top: 0;
  background: var(--brass);
  content: "";
}

.docs-grid a:hover {
  transform: translateY(-3px) rotate(-0.3deg);
}

.docs-grid span {
  margin-bottom: 2rem;
  color: var(--red);
  font-size: 0.62rem;
  font-weight: 700;
}

.docs-grid strong {
  align-self: end;
  font-size: 1.14rem;
}

.docs-grid small {
  margin-top: 0.25rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.release-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.release-section h2 {
  max-width: 650px;
}

.release-section p:not(.eyebrow) {
  max-width: 640px;
  color: var(--ink-soft);
}

.release-actions {
  max-width: 390px;
  justify-content: flex-end;
}

.legal-strip {
  padding-block: 2.5rem;
  color: #e2dcc3;
  border-top: 1px solid #171c12;
  background: var(--olive);
}

.legal-strip .section-shell {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: start;
  gap: 2rem;
}

.legal-strip h2 {
  margin: 0;
  color: var(--brass-light);
  font: 700 0.8rem/1.4 "Courier New", Courier, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-strip p {
  margin: 0;
  font-size: 0.82rem;
}

.legal-strip a {
  color: #f3d787;
  font-size: 0.8rem;
}

.site-footer {
  padding-block: 2.2rem;
  color: #d6ceb0;
  border-top: 1px solid #60452c;
  background: var(--wood-dark);
}

.footer-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.footer-layout p {
  margin: 0;
  font-size: 0.8rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.lightbox {
  width: min(96vw, 1200px);
  max-width: none;
  padding: 0;
  color: var(--cream);
  border: 8px solid #20251a;
  background: var(--olive);
  box-shadow: 0 30px 80px rgb(0 0 0 / 70%);
}

.lightbox::backdrop {
  background: rgb(15 14 10 / 84%);
  backdrop-filter: blur(3px);
}

.lightbox-frame {
  position: relative;
  padding: 1rem;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #11140d;
}

.lightbox p {
  margin: 0;
  padding: 0.9rem 3rem 0.15rem 0.2rem;
  color: #ded6b9;
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  z-index: 1;
  top: 1.5rem;
  right: 1.5rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  border: 2px solid #5f461b;
  border-radius: 50%;
  background: var(--brass-light);
  box-shadow: 0 3px 12px rgb(0 0 0 / 40%);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
}

.error-case {
  width: min(100%, 650px);
  padding: clamp(2rem, 7vw, 4rem);
  border: 1px solid #95805a;
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.error-case img {
  margin-bottom: 2rem;
}

.error-case h1 {
  font-size: clamp(2.5rem, 8vw, 4.8rem);
}

.error-case > p:not(.eyebrow) {
  max-width: 55ch;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

@media (max-width: 980px) {
  .site-header nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding: 0.25rem 0 0.2rem;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .header-source {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-case {
    width: min(100%, 800px);
    justify-self: center;
  }

  .security-layout,
  .install-layout,
  .verification-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .security-copy {
    max-width: 750px;
  }

  .role-stack {
    max-width: 760px;
  }

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

  .feature-grid article:nth-child(3n) {
    border-right: 1px dashed #9d8c67;
  }

  .feature-grid article:nth-child(2n) {
    border-right: 0;
  }

  .feature-grid article:nth-last-child(-n + 3) {
    border-bottom: 1px dashed #9d8c67;
  }

  .feature-grid article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

  .release-actions {
    max-width: none;
    justify-content: flex-start;
  }

  .legal-strip .section-shell,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .footer-layout p {
    text-align: left;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 8.5rem;
  }

  .section-shell {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .site-header {
    gap: 0.7rem;
    min-height: 64px;
    padding-inline: 0.75rem;
  }

  .brand strong {
    font-size: 0.78rem;
  }

  .brand small {
    font-size: 0.57rem;
  }

  .site-header .brand img {
    width: 34px;
    height: 34px;
  }

  .header-source {
    padding: 0.45rem 0.55rem;
    font-size: 0.6rem;
  }

  .source-long {
    display: none;
  }

  .source-short {
    display: inline;
  }

  .site-header nav {
    gap: 1rem;
    font-size: 0.68rem;
  }

  .hero {
    gap: 3rem;
    padding-block: 3rem 4.5rem;
  }

  .hero-copy {
    padding: 1.4rem;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.4rem);
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-case {
    padding: 0.75rem;
    border-width: 5px;
    transform: none;
  }

  .hero-case::before {
    display: none;
  }

  .case-lid {
    font-size: 0.58rem;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .screenshot-grid,
  .deployment-grid,
  .docs-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-wide {
    grid-column: auto;
  }

  .screenshot-card {
    min-height: 230px;
  }

  .screenshot-card img {
    min-height: 230px;
  }

  .screenshot-mobile {
    width: min(82%, 390px);
    justify-self: center;
  }

  .screenshot-mobile img {
    min-height: 490px;
  }

  .folder-tabs {
    width: calc(100% - 1.25rem);
    overflow: hidden;
    padding-left: 0;
  }

  .folder-tabs span {
    min-width: 104px;
    padding-inline: 0.55rem;
    font-size: 0.58rem;
  }

  .folder-paper {
    padding: 2.2rem 1.2rem 7rem;
  }

  .feature-grid article,
  .feature-grid article:nth-child(2n),
  .feature-grid article:nth-child(3n),
  .feature-grid article:nth-last-child(-n + 2),
  .feature-grid article:nth-last-child(-n + 3) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px dashed #9d8c67;
  }

  .feature-grid article:last-child {
    border-bottom: 0;
  }

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

  .catalog-stamp {
    width: 190px;
    justify-self: center;
  }

  .role-stack {
    padding: 0.7rem;
  }

  .role-stack article {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .install-actions,
  .release-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .code-card {
    padding: 1rem;
  }

  .code-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  pre {
    font-size: 0.72rem;
  }

  .lightbox {
    width: 100vw;
    border-width: 3px;
  }

  .lightbox-frame {
    padding: 0.5rem;
  }

  .lightbox-close {
    top: 0.9rem;
    right: 0.9rem;
  }
}

@media (max-width: 420px) {
  .site-header .brand small {
    display: none;
  }

  .site-header .brand strong {
    font-size: 0.7rem;
  }
}

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

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

@media print {
  .site-header,
  .signal-strip,
  .lightbox,
  .copy-button {
    display: none;
  }

  body {
    background: #fff;
  }

  .hero {
    min-height: 0;
  }

  .hero-case {
    break-inside: avoid;
  }
}
