:root {
  color-scheme: dark;
  --width: 1100px;
  --gutter: 24px;
  --paper: #0b1019;
  --panel: #121c2b;
  --line: #334154;
  --text: #f5f7fb;
  --muted: #b6c2d2;
  --accent: #ffb554;
  font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(var(--width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; background: var(--paper); padding: 8px; z-index: 5; transform: translateY(-160%); }
.skip:focus { transform: none; }
.top { background: #101827; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; line-height: 1.2; }
.brand small { color: var(--accent); font-size: inherit; }
.desktop { display: flex; gap: clamp(12px, 2.3vw, 27px); }
.top nav a { color: var(--muted); font-size: .9rem; text-decoration: none; font-weight: 650; }
.top nav a:hover, .top nav [aria-current] { color: var(--accent); }
.mobile { display: none; }
.hero { overflow: hidden; position: relative; min-height: 460px; display: grid; align-items: center; background: linear-gradient(90deg, #07101df2, #07101da8 43%, transparent 77%), url('/assets/cage.jpg') center 55% / cover; border: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.homepage { padding-block: 28px 52px; }
.hero-copy { padding: clamp(25px, 5vw, 58px); }
.kicker { color: var(--accent); font-size: .86rem; font-weight: 750; letter-spacing: .04em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.035em; }
h1 { font-size: clamp(2.15rem, 5.7vw, 4.6rem); margin-bottom: .28em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .65em; }
h3 { font-size: 1.2rem; }
.hero-copy > p:last-of-type, .intro { max-width: 57ch; color: var(--muted); font-size: 1.07rem; }
.hero-copy > p:last-of-type { max-width: 42ch; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.button { display: inline-block; padding: 10px 16px; color: #17110a; background: var(--accent); font-weight: 800; border: 1px solid var(--accent); border-radius: 5px; text-decoration: none; }
.button.secondary { color: var(--text); background: #0d1725; border-color: #67768c; }
.button:hover { filter: brightness(1.15); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--panel); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; }
.facts div { padding: 15px 20px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: .78rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 750; }
.native { width: 100%; }
.rail { display: none; }
@media (min-width: 1428px) {
  .rail { display: block; position: absolute; top: max(0px, calc(100vh - 604px)); right: calc(50% + var(--width) / 2 + 4px); width: 160px; height: 600px; }
}
section { margin-top: 34px; padding-top: 23px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.reading { max-width: 790px; }
.interior { min-height: 65vh; padding-block: 32px 50px; }
.interior h1 { font-size: clamp(2rem, 4.5vw, 3.65rem); }
.breadcrumb, .source, .updated { font-size: .89rem; color: var(--muted); }
.source, .updated { margin-top: 24px; }
.table-scroll { margin: 0 0 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 11px 14px; vertical-align: top; }
th { background: var(--panel); color: var(--muted); }
td { border-top: 1px solid var(--line); }
.steps { padding-left: 24px; }
.steps li { padding-left: 7px; }
.steps li::marker { color: var(--accent); font-weight: 750; }
.steps p { color: var(--muted); margin-bottom: 12px; }
.homepage .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 36px; }
.move-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.move-grid article { border: 1px solid var(--line); background: var(--panel); padding: 16px; border-radius: 7px; }
.move-grid article p { margin: 0; color: var(--muted); }
input { display: block; width: min(100%, 28rem); margin: 4px 0 16px; padding: 10px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; }
summary { cursor: pointer; font-weight: 700; }
.homepage details { padding: 10px 0; border-bottom: 1px solid var(--line); }
.homepage details p { margin: 8px 0 0; color: var(--muted); }
.related div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer { background: #101827; border-top: 1px solid var(--line); }
.foot { padding-block: 32px; display: grid; grid-template-columns: 1.4fr 2fr 1fr; align-items: start; gap: 18px 24px; }
.foot h2 { font-size: 1rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 5px 16px; }
.foot nav a, .foot p { font-size: .85rem; color: var(--muted); }
.foot p { grid-column: 1 / -1; margin: 0; }
@media (max-width: 790px) {
  :root { --gutter: 16px; }
  .desktop { display: none; }
  .mobile { display: block; }
  .mobile nav { position: absolute; right: var(--gutter); top: 59px; z-index: 2; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; display: grid; min-width: 180px; }
  .mobile nav a { padding: 8px 14px; }
  .hero { min-height: 360px; background-position: 58% center; }
}
@media (max-width: 550px) {
  .homepage { padding-top: 16px; }
  .hero { background-image: linear-gradient(0deg, #07101d, #07101dd9 42%, #07101d24 100%), url('/assets/cage.jpg'); background-position: 65% center; align-items: end; min-height: 400px; }
  .hero-copy { padding: 18px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 10px 12px; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .homepage .steps, .move-grid { grid-template-columns: 1fr; gap: 8px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot .brand { grid-column: 1 / -1; }
  th, td { padding: 8px; overflow-wrap: anywhere; }
}
