:root {
  --font-sans: Arial, Helvetica, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: "Courier New", Courier, monospace;
  --ink: #0d0c0c;
  --paper: #e9e4db;
  --paper-dark: #d8d1c4;
  --blood: #9f1f2f;
  --blood-dark: #65101c;
  --smoke: #76716b;
  --line: rgba(13, 12, 12, 0.17);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans), Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header {
  height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 4.5vw;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  z-index: 2;
}

.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.brand-mark {
  width: 34px; height: 42px; display: grid; place-items: center;
  font-family: Georgia, serif; font-size: 28px; color: var(--blood);
  border: 1px solid currentColor; transform: skew(-4deg);
}
.brand strong { display: block; font-family: Georgia, serif; font-size: 17px; letter-spacing: .04em; }
.brand small { display: block; margin-top: 2px; color: #898581; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }

nav { display: flex; gap: 34px; }
nav a, nav button {
  color: #aaa5a0; font-size: 11px; text-transform: uppercase; letter-spacing: .18em;
  transition: color .2s ease; background: none; border: 0; padding: 0; cursor: pointer;
}
nav a:hover, nav button:hover { color: white; }
.edition, .admin-link { justify-self: end; color: #77726e; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; }
.admin-link:hover { color: var(--paper); }

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 58% 42%;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.hero-copy { padding: 88px 5vw 84px 9vw; position: relative; z-index: 1; }
.eyebrow, .kicker {
  margin: 0 0 28px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .28em;
}
.eyebrow { color: #8d8883; display: flex; align-items: center; gap: 13px; }
.eyebrow span { width: 28px; height: 1px; background: var(--blood); }

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 28px; font-family: Georgia, serif; font-size: clamp(68px, 9vw, 138px);
  line-height: .78; letter-spacing: -.07em; font-weight: 400;
}
h1 em, .reference h2 em { color: var(--blood); font-weight: 400; }
.intro { max-width: 580px; color: #a5a09a; font-family: Georgia, serif; font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 44px; }
.primary-button {
  display: inline-flex; align-items: center; gap: 28px; padding: 17px 21px;
  background: var(--blood); color: white; font-size: 11px; text-transform: uppercase; letter-spacing: .15em;
  transition: background .2s, transform .2s;
}
.primary-button:hover { background: #bd2b3e; transform: translateY(-2px); }
.primary-button span { font-size: 16px; }
.microcopy { color: #696560; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }

.hero-art {
  position: relative; min-height: 650px; border-left: 1px solid rgba(255,255,255,.06);
  background: radial-gradient(circle at 45% 46%, #2b2422 0, #141211 37%, #0d0c0c 68%);
}
.hero-art::before, .hero-art::after {
  content: ""; position: absolute; left: 50%; top: 9%; bottom: 9%; width: 1px; background: rgba(255,255,255,.06);
}
.hero-art::after { left: 14%; right: 14%; top: 50%; bottom: auto; width: auto; height: 1px; }
.moon {
  position: absolute; width: 360px; height: 360px; left: 50%; top: 50%; transform: translate(-50%,-50%);
  border: 1px solid rgba(183,171,157,.22); border-radius: 50%;
  box-shadow: 0 0 80px rgba(113,84,72,.1), inset -30px -15px 70px rgba(0,0,0,.7);
}
.moon::before {
  content: ""; position: absolute; inset: 24px; border: 1px solid rgba(183,171,157,.08); border-radius: 50%;
}
.monogram {
  position: absolute; left: 50%; top: 48%; transform: translate(-50%,-50%);
  color: #c9c0b3; font: 260px/.9 Georgia, serif; opacity: .78;
}
.blood-line {
  position: absolute; left: calc(50% - 5px); top: 54%; width: 10px; height: 210px;
  background: linear-gradient(var(--blood), var(--blood-dark));
  clip-path: polygon(38% 0, 100% 0, 73% 36%, 83% 70%, 42% 100%, 54% 54%, 0 33%);
}
.hero-art p { position: absolute; right: 7%; bottom: 6%; margin: 0; color: #5f5a56; font-size: 9px; line-height: 1.7; letter-spacing: .28em; }

.quickstart { padding: 80px 5vw; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; gap: 32px; }
.kicker { color: var(--blood); margin-bottom: 0; white-space: nowrap; }
h2 { font: 400 clamp(38px, 5vw, 66px)/1 Georgia, serif; letter-spacing: -.045em; margin-bottom: 0; }
.steps { list-style: none; padding: 0; margin: 55px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.steps li { min-height: 155px; padding: 20px 24px 12px 0; border-right: 1px solid var(--line); }
.steps li + li { padding-left: 24px; }
.steps li:last-child { border-right: 0; }
.steps span { display: block; color: var(--blood); font: 12px var(--font-mono), monospace; margin-bottom: 35px; }
.steps strong { display: block; font: 20px Georgia, serif; margin-bottom: 8px; }
.steps p { color: var(--smoke); font-size: 12px; line-height: 1.5; }

.archive-menu {
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 5vw;
  background: var(--ink); color: var(--paper); border-top: 1px solid #2b2825;
}
.archive-menu button {
  min-height: 190px; padding: 28px; position: relative; display: flex; flex-direction: column;
  align-items: flex-start; text-align: left; color: inherit; background: transparent; border: 0;
  border-right: 1px solid #2f2b28; cursor: pointer; transition: background .2s;
}
.archive-menu button:first-child { border-left: 1px solid #2f2b28; }
.archive-menu button:hover, .archive-menu button.active { background: #181514; }
.archive-menu button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--blood); }
.archive-menu span { color: var(--blood); font: 10px var(--font-mono), monospace; margin-bottom: 34px; }
.archive-menu strong { font: 30px Georgia, serif; }
.archive-menu small { max-width: 190px; margin-top: 9px; color: #77716b; font-size: 10px; line-height: 1.5; }
.archive-menu em { position: absolute; right: 24px; top: 26px; color: #625d57; font-style: normal; }

.rules-section { padding: 100px 5vw 120px; }
.rules-topline { display: flex; justify-content: space-between; align-items: end; gap: 35px; }
.search {
  width: min(450px, 42vw); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--ink); padding: 12px 0;
}
.search > span:first-child { font-size: 24px; transform: rotate(-15deg); }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search input::placeholder { color: #89837b; }
kbd { color: #89837b; border: 1px solid var(--line); border-radius: 3px; padding: 3px 5px; font-size: 9px; }
.filters { display: flex; align-items: center; gap: 8px; margin: 48px 0 30px; }
.filters button {
  border: 1px solid var(--line); background: transparent; color: #5d5954; padding: 9px 14px;
  font-size: 10px; text-transform: uppercase; letter-spacing: .13em; cursor: pointer; transition: .2s;
}
.filters button:hover, .filters button.active { background: var(--ink); border-color: var(--ink); color: white; }
.result-count { margin-left: auto; color: #8a847d; font: 10px var(--font-mono), monospace; text-transform: uppercase; letter-spacing: .12em; }
.archive-controls { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 42px; }
.archive-controls .filters { margin: 0; flex-wrap: wrap; }
.edition-select { display: flex; align-items: center; gap: 12px; }
.edition-select span { color: #7c756e; font-size: 9px; text-transform: uppercase; letter-spacing: .16em; }
.edition-select select, .admin-form select {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ink);
  padding: 10px 34px 10px 12px; font-size: 11px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%; background-size: 4px 4px; background-repeat: no-repeat;
}
.result-line { margin: 24px 0 14px; color: #89837b; font: 10px var(--font-mono), monospace; text-transform: uppercase; letter-spacing: .12em; }

.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.rule-card {
  min-height: 340px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; background: rgba(255,255,255,.06); transition: background .25s, transform .25s;
}
.rule-card:hover { background: rgba(255,255,255,.32); transform: translateY(-3px); box-shadow: 0 8px 0 var(--blood); }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 46px; }
.card-meta span { color: var(--blood); font: 11px var(--font-mono), monospace; }
.card-meta p { margin: 0; color: #817b75; font-size: 9px; text-transform: uppercase; letter-spacing: .18em; }
.rule-card h3 { font: 400 31px/1.05 Georgia, serif; letter-spacing: -.035em; margin-bottom: 18px; }
.rule-lead { color: #625e58; font-size: 13px; line-height: 1.65; margin-bottom: 24px; }
.archive-card { min-height: 390px; }
.archive-card .card-meta { margin-bottom: 24px; }
.card-category { width: max-content; margin-bottom: 18px; color: var(--blood-dark); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.rule-label { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: #8a847d; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.discipline-levels { margin: 6px 0 24px; border-top: 1px solid var(--ink); }
.discipline-levels details { margin: 0; padding: 0; border-top: 0; border-bottom: 1px solid var(--line); }
.discipline-levels summary {
  min-height: 48px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px;
  color: var(--ink); text-transform: none; letter-spacing: 0;
}
.discipline-levels summary > span { color: var(--blood); font: 9px var(--font-mono), monospace; text-transform: uppercase; letter-spacing: .1em; }
.discipline-levels summary > strong { font: 16px Georgia, serif; }
.discipline-levels summary > em { color: var(--blood); font: normal 18px Georgia, serif; transition: transform .2s; }
.discipline-levels details[open] summary > em { transform: rotate(45deg); }
.level-copy { padding: 2px 0 17px 60px; }
.level-copy p { margin: 0; color: #625e58; font-size: 12px; line-height: 1.6; }
.level-copy h4 { margin: 15px 0 5px; color: var(--blood-dark); font-size: 9px; text-transform: uppercase; letter-spacing: .15em; }
.no-levels { margin: 0; padding: 16px 0; color: #8a847d; font-size: 10px; font-style: italic; }
details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 15px; }
summary {
  list-style: none; display: flex; justify-content: space-between; cursor: pointer;
  color: var(--blood-dark); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
}
summary::-webkit-details-marker { display: none; }
summary span { font-size: 17px; font-weight: 400; line-height: .5; transition: transform .2s; }
details[open] summary span { transform: rotate(45deg); }
details ul { margin: 17px 0 0; padding-left: 16px; color: #5f5a54; font-size: 12px; line-height: 1.6; }
details li + li { margin-top: 8px; }
.empty-state { padding: 90px 20px; text-align: center; border-top: 1px solid var(--ink); }
.empty-state span { color: var(--blood); font: 60px Georgia, serif; }
.empty-state h3 { font: 30px Georgia, serif; margin: 12px 0; }
.empty-state p { color: var(--smoke); }

.reference {
  padding: 90px 7vw; background: var(--ink); color: var(--paper);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7vw; align-items: center;
}
.reference-copy { color: #aaa39a; font: 18px/1.65 Georgia, serif; }
.file-section { padding: 90px 5vw 110px; background: var(--paper-dark); border-top: 1px solid var(--line); }
.file-list { margin-top: 50px; border-top: 1px solid var(--ink); }
.file-list a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  padding: 20px 4px; border-bottom: 1px solid var(--line); transition: padding .2s, background .2s;
}
.file-list a:hover { padding-left: 14px; padding-right: 14px; background: rgba(255,255,255,.25); }
.file-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--blood); color: var(--blood); }
.file-list strong { display: block; font: 19px Georgia, serif; }
.file-list small { display: block; margin-top: 5px; color: var(--smoke); font-size: 11px; }
.file-list em { color: #78726c; font: normal 10px var(--font-mono), monospace; }
.file-empty { margin: 48px 0 0; padding: 36px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); color: var(--smoke); }
.reference h2 { line-height: .95; }
.reference-list { border-top: 1px solid #45413e; }
.reference-list p { display: flex; justify-content: space-between; margin: 0; padding: 16px 0; border-bottom: 1px solid #45413e; }
.reference-list span { color: #8e8984; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.reference-list strong { color: #ddd6cc; font: 15px Georgia, serif; }
blockquote { margin: 0; color: #a59e96; font: italic 21px/1.55 Georgia, serif; }
blockquote span { display: block; color: var(--blood); font: 65px/.6 Georgia, serif; }

footer {
  display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 5vw;
  padding: 42px 5vw; background: #080707; color: #716d68; border-top: 1px solid #272422;
}
.footer-brand { color: var(--paper); }
footer p { margin: 0; font-size: 9px; line-height: 1.6; }
footer > a:last-child { justify-self: end; color: #938d86; font-size: 9px; text-transform: uppercase; letter-spacing: .15em; }
.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; }

.admin-shell { min-height: 100vh; background: var(--paper); }
.admin-header {
  min-height: 78px; padding: 16px 5vw; display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: var(--paper); border-bottom: 1px solid #302c29;
}
.admin-header > div { display: flex; gap: 20px; align-items: center; color: #8d8882; font-size: 10px; }
.admin-header > div form { margin: 0; }
.admin-header > div a, .admin-header > div button {
  border: 0; padding: 0; background: transparent; color: var(--paper); cursor: pointer;
  font-size: inherit; text-transform: uppercase; letter-spacing: .13em;
}
.admin-intro { padding: 72px 5vw 48px; border-bottom: 1px solid var(--line); }
.admin-intro h1, .admin-lock h1 { margin: 0 0 20px; font: 400 clamp(48px, 7vw, 90px)/.9 Georgia, serif; letter-spacing: -.055em; }
.admin-intro > p:last-child, .admin-lock > p { max-width: 620px; color: var(--smoke); line-height: 1.6; }
.admin-status { margin: 26px 5vw 0; padding: 12px 16px; border-left: 3px solid var(--blood); background: rgba(159,31,47,.08); color: var(--blood-dark); font-size: 12px; }
.admin-grid { padding: 48px 5vw; display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; border-bottom: 1px solid var(--line); }
.admin-form { padding: 30px; border: 1px solid var(--line); background: rgba(255,255,255,.18); }
.admin-form .kicker { margin-bottom: 28px; }
.admin-form > label, .form-row label {
  display: grid; gap: 8px; margin-bottom: 18px; color: #655f59; font-size: 9px; text-transform: uppercase; letter-spacing: .14em;
}
.admin-form input:not([type="checkbox"]):not([type="file"]), .admin-form textarea {
  width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.25); color: var(--ink);
  padding: 12px; outline: none; font: 14px/1.5 var(--font-sans), sans-serif; resize: vertical;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: var(--blood); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-row.three-columns { grid-template-columns: .75fr 1fr .85fr; }
.form-row select { width: 100%; }
.admin-form .checkbox { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; }
.admin-form input[type="file"] { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: 0; }
.admin-form button { border: 0; cursor: pointer; }
.admin-form button:disabled { opacity: .5; cursor: wait; }
.form-help { color: var(--smoke); font-size: 11px; line-height: 1.5; }
.admin-content { padding: 60px 5vw 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 45px; }
.admin-content .kicker { margin-bottom: 16px; }
.admin-row {
  min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px solid var(--line); padding: 14px 0;
}
.admin-row strong { display: block; font: 17px Georgia, serif; }
.admin-row small { display: block; margin-top: 5px; color: var(--smoke); font-size: 10px; }
.admin-row button, .row-actions a { border: 0; background: transparent; color: var(--blood); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; cursor: pointer; }
.row-actions { display: flex; align-items: center; gap: 13px; }
.row-actions a { color: var(--ink); }
.edit-workspace { padding: 70px 5vw; background: var(--paper-dark); border-bottom: 1px solid var(--line); }
.edit-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 30px; }
.edit-heading .kicker { margin-bottom: 12px; }
.edit-heading h2 { font-size: clamp(38px, 5vw, 62px); }
.edit-heading > button, .edit-heading > a {
  border: 0; background: transparent; color: var(--blood); cursor: pointer;
  font-size: 9px; text-transform: uppercase; letter-spacing: .14em;
}
.edit-form { background: rgba(255,255,255,.32); }
.level-editor { margin-top: 54px; }
.level-editor-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 30px; margin-bottom: 20px; }
.level-editor-heading .kicker { margin: 0; }
.level-editor-heading > p:last-child { max-width: 520px; margin: 0; color: var(--smoke); font-size: 11px; line-height: 1.5; }
.level-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.level-form {
  padding: 26px; border: 1px solid var(--line); background: rgba(255,255,255,.2);
}
.level-form:last-child { grid-column: 1 / -1; }
.level-form-title { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.level-form-title > span {
  width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--blood);
  color: var(--blood); font: 19px Georgia, serif;
}
.level-form-title strong { font: 22px Georgia, serif; }
.level-form-title em { margin-left: auto; color: #736e68; font-size: 9px; font-style: normal; text-transform: uppercase; letter-spacing: .12em; }
.level-form label {
  display: grid; gap: 7px; margin-bottom: 15px; color: #655f59;
  font-size: 9px; text-transform: uppercase; letter-spacing: .14em;
}
.level-form input, .level-form textarea {
  width: 100%; padding: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.3);
  color: var(--ink); outline: none; font: 13px/1.5 var(--font-sans), sans-serif; resize: vertical;
}
.level-form input:focus, .level-form textarea:focus { border-color: var(--blood); }
.level-actions { display: flex; align-items: center; gap: 18px; }
.level-actions .primary-button { border: 0; cursor: pointer; }
.level-actions > button:last-child:not(:first-child) {
  border: 0; background: transparent; color: var(--blood); cursor: pointer;
  font-size: 9px; text-transform: uppercase; letter-spacing: .13em;
}
.admin-lock { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 8vw; background: var(--ink); color: var(--paper); }
.admin-lock .brand { margin-bottom: 80px; }
.admin-lock .kicker { color: var(--blood); }
.admin-lock-actions { display: flex; align-items: center; gap: 28px; margin-top: 20px; }
.admin-lock-actions > a:last-child { color: #97918a; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 70px 7vw 80px; }
  .hero-art { min-height: 430px; border-left: 0; border-top: 1px solid rgba(255,255,255,.06); }
  .moon { width: 290px; height: 290px; }
  .monogram { font-size: 210px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(3), .steps li:nth-child(4) { border-top: 1px solid var(--line); }
  .rule-grid { grid-template-columns: 1fr 1fr; }
  .archive-menu { grid-template-columns: 1fr 1fr; }
  .archive-menu button:nth-child(2) { border-right: 0; }
  .archive-menu button:nth-child(n+3) { border-top: 1px solid #2f2b28; }
  .reference { grid-template-columns: 1fr 1fr; }
  blockquote { grid-column: 1 / -1; max-width: 540px; }
  .archive-controls { align-items: flex-start; flex-direction: column; }
  .admin-grid { grid-template-columns: 1fr; }
  .level-grid { grid-template-columns: 1fr; }
  .level-form:last-child { grid-column: auto; }
}

@media (max-width: 620px) {
  .site-header { height: 70px; padding: 0 5vw; }
  .brand small, .edition { display: none; }
  .brand-mark { width: 28px; height: 35px; font-size: 23px; }
  .hero { min-height: 0; }
  .hero-copy { padding: 60px 6vw 65px; }
  h1 { font-size: 72px; }
  .intro { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-art { min-height: 360px; }
  .quickstart, .rules-section { padding-left: 5vw; padding-right: 5vw; }
  .section-heading { display: block; }
  .section-heading .kicker { margin-bottom: 14px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { border-right: 0; border-top: 1px solid var(--line); padding: 18px 0; min-height: 0; }
  .steps li:first-child { border-top: 0; }
  .steps span { margin-bottom: 15px; }
  .rules-topline { display: block; }
  .search { margin-top: 35px; width: 100%; }
  kbd { display: none; }
  .filters { overflow-x: auto; padding-bottom: 8px; }
  .archive-controls .filters { flex-wrap: nowrap; width: 100%; }
  .filters button { flex: 0 0 auto; }
  .result-count { display: none; }
  .rule-grid { grid-template-columns: 1fr; }
  .archive-menu { grid-template-columns: 1fr; padding: 0; }
  .archive-menu button, .archive-menu button:first-child { min-height: 135px; border-left: 0; border-right: 0; border-top: 1px solid #2f2b28; padding: 22px 6vw; }
  .archive-menu span { margin-bottom: 17px; }
  .archive-menu small { max-width: 250px; }
  .rule-card { min-height: 300px; }
  .reference { grid-template-columns: 1fr; padding: 75px 7vw; }
  blockquote { grid-column: auto; }
  footer { grid-template-columns: 1fr; }
  footer > a:last-child { justify-self: start; }
  .admin-link { font-size: 9px; }
  .admin-header > div span { display: none; }
  .admin-grid, .admin-content { grid-template-columns: 1fr; }
  .form-row, .form-row.three-columns { grid-template-columns: 1fr; gap: 0; }
  .admin-form { padding: 22px; }
  .admin-lock { padding: 8vw; }
  .admin-lock .brand { margin-bottom: 55px; }
  .admin-lock-actions { align-items: flex-start; flex-direction: column; }
  .edit-heading, .level-editor-heading { align-items: flex-start; flex-direction: column; }
  .level-copy { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
