
:root {
  --ink: #1b251f;
  --ink-soft: #344238;
  --paper: #f3e6cf;
  --cream: #fff9ed;
  --orange: #e9782f;
  --yellow: #e4b538;
  --sky: #62bad5;
  --green: #73945f;
  --red: #bd4635;
  --line: #2a332c;
}

/* PHP/MySQL package */
.archive-filters a {
  padding: 0.7rem 0.85rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.archive-filters a span {
  margin-left: 0.45rem;
  opacity: 0.62;
}

.archive-filters a.active,
.archive-filters a:hover,
.archive-filters a:focus-visible {
  background: var(--filter-color, var(--ink));
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.admin-header form {
  margin: 0;
}

.admin-link-button {
  padding: 0 0 0.25rem;
  background: transparent;
  color: inherit;
  border: 0;
  border-bottom: 1px solid var(--yellow);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.admin-tabs {
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
}

.admin-tabs a {
  padding: 1rem 1.2rem;
  border-inline: 1px solid transparent;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-tabs a.active {
  background: var(--yellow);
  border-color: var(--ink);
}

.admin-message.global {
  margin: 1rem 1.5rem 0;
}

.admin-new-button {
  padding: 0.65rem 0.8rem;
  background: var(--yellow);
  border: 1px solid var(--ink);
  font-size: 0.66rem;
  font-weight: 750;
  text-transform: uppercase;
}

.admin-entry-list > a {
  width: 100%;
  padding: 0.95rem 1.5rem;
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 0.9rem;
  align-items: start;
  background: transparent;
  border-bottom: 1px solid #c9c2b5;
  text-align: left;
}

.admin-entry-list > a:hover,
.admin-entry-list > a:focus-visible,
.admin-entry-list > a.active {
  background: #f0dcae;
}

.admin-entry-list > a > span {
  width: 8px;
  height: 38px;
}

.admin-entry-list > a strong,
.admin-entry-list > a small {
  display: block;
}

.admin-entry-list > a strong {
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.admin-entry-list > a small {
  color: var(--ink-soft);
  font-size: 0.62rem;
  line-height: 1.35;
  text-transform: uppercase;
}

[hidden] {
  display: none !important;
}

.homepage-editor {
  padding: 2.2rem max(1.5rem, 4vw) 5rem;
}

.homepage-editor-heading {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.homepage-editor-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.homepage-editor-heading .save {
  padding: 0.9rem 1.1rem;
}

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

.homepage-settings-grid fieldset {
  min-width: 0;
  margin: 0;
  padding: 1.5rem;
  background: var(--cream);
  border: 2px solid var(--ink);
}

.homepage-settings-grid fieldset.wide {
  grid-column: 1 / -1;
}

.homepage-settings-grid legend {
  padding: 0 0.55rem;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.homepage-settings-grid label,
.setup-form label,
.login-shell label {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.homepage-settings-grid input,
.homepage-settings-grid textarea,
.setup-form input,
.login-shell input {
  width: 100%;
  padding: 0.8rem;
  background: #fffdf5;
  color: var(--ink);
  border: 1px solid var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

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

.setup-body,
.login-body {
  min-height: 100vh;
  padding: clamp(1.2rem, 5vw, 4rem);
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgb(228 181 56 / 20%), transparent 45%),
    var(--paper);
}

.setup-shell,
.login-shell {
  width: min(100%, 900px);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 14px 14px 0 var(--sky);
}

.login-shell {
  width: min(100%, 520px);
}

.setup-shell header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
}

.setup-shell header > p,
.setup-shell header > span {
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.setup-shell h1,
.login-shell h1 {
  margin: 0.7rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.setup-shell h1 em {
  color: var(--orange);
}

.setup-form fieldset {
  margin: 0 0 1.4rem;
  padding: 1.2rem;
  border: 1px solid var(--ink);
}

.setup-form legend {
  padding: 0 0.6rem;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.setup-form .button,
.login-shell .button {
  margin-top: 1.4rem;
  cursor: pointer;
}

.setup-message {
  margin-bottom: 1.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ink);
}

.setup-message.error {
  background: #f2c8bb;
}

.login-shell .wordmark {
  margin-bottom: 3rem;
  display: block;
}

.login-shell form {
  margin-top: 2rem;
}

@media (max-width: 760px) {
  .homepage-settings-grid,
  .settings-stat-grid,
  .setup-grid {
    grid-template-columns: 1fr;
  }

  .homepage-settings-grid fieldset.wide {
    grid-column: auto;
  }

  .homepage-editor-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-tabs {
    overflow-x: auto;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 8%, rgb(255 255 255 / 55%), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-geist-sans), Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.16;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--cream);
  border: 2px solid var(--ink);
  transform: translateY(-180%);
}

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

.topbar {
  min-height: 78px;
  padding: 0 3.4vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 1px solid rgb(255 255 255 / 24%);
}

.wordmark {
  width: fit-content;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.wordmark span {
  color: var(--orange);
  font-size: 0.65em;
  font-style: italic;
}

.topbar nav {
  display: flex;
  gap: clamp(1.3rem, 3vw, 3.3rem);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar nav a {
  position: relative;
  padding: 1.9rem 0;
}

.topbar nav a::after {
  position: absolute;
  right: 0;
  bottom: 1.35rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease-out;
}

.topbar nav a:hover::after,
.topbar nav a:focus-visible::after {
  transform: scaleX(1);
}

.status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 35%);
  color: var(--paper);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status i {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(115 148 95 / 20%);
}

.color-rail {
  display: grid;
  height: 8px;
  grid-template-columns: 1.2fr 0.8fr 1.4fr 0.6fr 1fr;
}

.color-rail span:nth-child(1) {
  background: var(--orange);
}

.color-rail span:nth-child(2) {
  background: var(--sky);
}

.color-rail span:nth-child(3) {
  background: var(--yellow);
}

.color-rail span:nth-child(4) {
  background: var(--red);
}

.color-rail span:nth-child(5) {
  background: var(--green);
}

.hero {
  min-height: 760px;
  padding: clamp(4rem, 8vw, 7.5rem) 3.4vw 5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 7rem);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.kicker {
  margin: 0 0 1.35rem;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  display: inline-block;
  width: 28px;
  height: 2px;
  margin: 0 0.75rem 0.2rem 0;
  content: "";
  background: var(--red);
}

.hero h1,
.section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.065em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4.2rem, 7.3vw, 8.3rem);
  line-height: 0.84;
}

.hero h1 em {
  color: var(--orange);
  font-weight: 500;
}

.hero-intro {
  max-width: 610px;
  margin: 2.2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.button {
  min-height: 54px;
  padding: 0 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.6rem;
  border: 2px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-primary {
  background: var(--yellow);
}

.button-dark {
  margin-top: 1.8rem;
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.text-link {
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-art {
  position: relative;
  margin: 0;
  padding: 13px;
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow:
    18px 18px 0 var(--sky),
    -13px -13px 0 var(--yellow);
  animation: reveal 620ms ease-out both;
}

.hero-art::before {
  position: absolute;
  top: -46px;
  right: -24px;
  width: 106px;
  height: 106px;
  z-index: -1;
  content: "";
  background: var(--orange);
  border-radius: 50%;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 1200 / 626;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.hero-art figcaption {
  padding: 0.9rem 0.4rem 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
}

.hero-art figcaption span {
  color: var(--red);
  font-family: var(--font-geist-mono), monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.crop-marks::before,
.crop-marks::after {
  position: absolute;
  width: 25px;
  height: 25px;
  z-index: 3;
  content: "";
  border-color: var(--red);
}

.crop-marks::before {
  top: 5px;
  left: 5px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
}

.crop-marks::after {
  right: 5px;
  bottom: 49px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
}

.project-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: var(--cream);
  border-block: 1px solid var(--ink);
}

.project-strip p {
  min-height: 148px;
  margin: 0;
  padding: 1.8rem 3vw;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-right: 1px solid rgb(255 255 255 / 26%);
}

.project-strip p:last-child {
  border-right: 0;
}

.project-strip strong {
  color: var(--yellow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  font-weight: 500;
}

.project-strip span {
  max-width: 8rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section {
  padding: clamp(5rem, 9vw, 9rem) 3.4vw;
}

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

.section-heading h2,
.world-copy h2,
.systems-heading h2 {
  margin: 0;
  font-size: clamp(3.4rem, 6vw, 6.8rem);
  line-height: 0.93;
}

.section-heading > p:last-child,
.systems-heading > p:last-child {
  max-width: 620px;
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.featured-note {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--ink);
}

.featured-copy {
  padding: clamp(2.4rem, 5vw, 5.5rem);
}

.note-index {
  margin: 0 0 1.5rem;
  color: var(--yellow);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.featured-copy h3 {
  max-width: 610px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.featured-copy > p:not(.note-index) {
  max-width: 580px;
  margin: 1.8rem 0 0;
  color: #d8d2c5;
  line-height: 1.7;
}

.tag-list {
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  list-style: none;
}

.tag-list li {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 35%);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.featured-image {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border-left: 2px solid var(--cream);
  background: var(--sky);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 600ms ease;
}

.featured-note:hover .featured-image img {
  transform: scale(1.025);
}

.image-stamp {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.7rem;
  background: var(--red);
  color: white;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}

.note-card {
  position: relative;
  min-height: 360px;
  padding: 2.2rem;
  border-right: 2px solid var(--ink);
}

.note-card:last-child {
  border-right: 0;
}

.note-card.yellow {
  background: var(--yellow);
}

.note-card.orange {
  background: var(--orange);
}

.note-card.sky {
  background: var(--sky);
}

.note-card.custom {
  background: var(--note-color, var(--yellow));
}

.note-card-link {
  display: block;
  min-height: 315px;
}

.note-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.note-topline strong {
  font-size: 2rem;
  font-weight: 500;
}

.note-card h3 {
  max-width: 390px;
  margin: 4rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.note-card p {
  max-width: 450px;
  line-height: 1.6;
}

.note-arrow {
  position: absolute;
  right: 1.6rem;
  bottom: 1.35rem;
  font-size: 2rem;
  transition: transform 180ms ease;
}

.note-card:hover .note-arrow {
  transform: translate(4px, -4px);
}

.world-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  background: var(--green);
  border-block: 2px solid var(--ink);
}

.world-copy h2 {
  max-width: 650px;
}

.large-copy {
  max-width: 620px;
  margin: 1.8rem 0 0;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.6;
}

.place-list {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.place-list span {
  padding: 0.55rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.world-map {
  position: relative;
  margin: 0;
  padding: 15px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 15px 15px 0 var(--yellow);
}

.world-map img {
  width: 100%;
  min-height: 400px;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.world-map figcaption {
  padding: 1rem 0.3rem 0.2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.world-map figcaption span {
  color: var(--red);
  font-family: var(--font-geist-mono), monospace;
}

.cast-section {
  background: var(--cream);
}

.section-heading.compact {
  max-width: 880px;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--ink);
}

.cast-card {
  position: relative;
  min-height: 570px;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 2px solid var(--ink);
}

.cast-card-link {
  color: inherit;
  text-decoration: none;
}

.cast-card-link:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 4px;
}

.cast-card:last-child {
  border-right: 0;
}

.cast-card.orange {
  background: #e9873d;
}

.cast-card.yellow {
  background: #e6ba43;
}

.cast-card.sky {
  background: #72bfd4;
}

.cast-card.green {
  background: #82a271;
}

.cast-number {
  align-self: flex-end;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
}

.cast-card img {
  width: 100%;
  height: 315px;
  margin-top: -0.5rem;
  object-fit: contain;
  object-position: bottom center;
  transition: transform 260ms ease-out;
}

.cast-card:hover img {
  transform: translateY(-7px);
}

.cast-copy {
  min-height: 190px;
  margin: auto -1.5rem 0;
  padding: 1.4rem 1.5rem 1.7rem;
  background: var(--ink);
  color: var(--cream);
  border-top: 2px solid var(--ink);
}

.cast-copy p {
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.63rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cast-copy h3 {
  margin: 0.35rem 0 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 500;
}

.cast-copy blockquote {
  margin: 0;
  color: #d9d5ca;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.45;
}

.systems-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(3rem, 7vw, 8rem);
  background: var(--paper);
}

.systems-heading {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.systems-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--ink);
}

.system-card {
  position: relative;
  min-height: 300px;
  padding: 2rem;
  overflow: hidden;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.system-card:nth-child(2n) {
  border-right: 0;
}

.system-card:nth-child(n + 3) {
  border-bottom: 0;
}

.system-card > span,
.system-card > div > span {
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.system-card h3 {
  max-width: 360px;
  margin: 4rem 0 0.9rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.system-card p {
  max-width: 390px;
  line-height: 1.55;
}

.system-card.skill {
  background: var(--red);
  color: var(--cream);
}

.system-card.map {
  background: var(--yellow);
}

.system-card.map img {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 62px;
}

.system-card.achievement {
  background: var(--sky);
}

.system-card.cards {
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: 1rem;
  background: var(--ink);
  color: var(--cream);
}

.system-card.cards h3 {
  margin-top: 4rem;
}

.system-card.cards img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(9px 10px 0 rgb(0 0 0 / 25%));
  transform: rotate(4deg);
}

.compact-topbar {
  min-height: 70px;
}

.archive-hero {
  padding: clamp(4rem, 8vw, 7rem) 3.4vw 3.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 2px solid var(--ink);
}

.archive-hero h1 {
  max-width: 930px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.87;
}

.archive-hero > div > p:last-child {
  max-width: 620px;
  margin: 1.6rem 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.6;
}

.admin-entry-link {
  flex: 0 0 auto;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--red);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.archive-section {
  min-height: 520px;
  padding: 2rem 3.4vw clamp(5rem, 9vw, 9rem);
}

.archive-filters {
  padding: 1rem 0 2rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ink);
}

.archive-filters button {
  padding: 0.7rem 0.85rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.archive-filters button span {
  margin-left: 0.45rem;
  opacity: 0.62;
}

.archive-filters button.active,
.archive-filters button:hover,
.archive-filters button:focus-visible {
  background: var(--filter-color, var(--ink));
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.archive-result-count {
  margin: 1.3rem 0 2rem;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}

.archive-card {
  min-width: 0;
  background: var(--cream);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.archive-card > a {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.archive-card-media {
  position: relative;
  height: 245px;
  overflow: hidden;
  background: var(--category-color);
  border-bottom: 2px solid var(--ink);
}

.archive-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease-out;
}

.archive-card:hover .archive-card-media img {
  transform: scale(1.035);
}

.archive-placeholder {
  position: absolute;
  right: 1.2rem;
  bottom: 0.3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8rem;
  line-height: 0.75;
}

.archive-card-copy {
  min-height: 340px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.archive-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.61rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.archive-card-meta span {
  color: var(--red);
}

.archive-card-copy h2 {
  margin: 2rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.archive-card-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.archive-card-copy strong {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-empty {
  max-width: 760px;
  margin: 4rem auto 0;
  padding: 3rem;
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--yellow);
  text-align: center;
}

.archive-empty > span {
  color: var(--red);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.archive-empty h2 {
  margin: 1rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.archive-empty button {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}

.article-page {
  padding-bottom: clamp(5rem, 9vw, 9rem);
}

.article-header {
  --category-color: var(--yellow);
  padding: clamp(4rem, 9vw, 8.5rem) max(3.4vw, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, var(--category-color) 0 12px, transparent 12px),
    var(--paper);
  border-bottom: 2px solid var(--ink);
}

.article-back {
  display: inline-block;
  margin-bottom: 3.2rem;
  border-bottom: 1px solid var(--red);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-meta {
  margin-bottom: 1.3rem;
  display: flex;
  gap: 1rem;
  color: var(--ink-soft);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-meta span {
  color: var(--red);
}

.article-header h1 {
  max-width: 1100px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8.5vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.article-header > p:last-child {
  max-width: 760px;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.6;
}

.article-cover {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 3.4vw;
  transform: translateY(3.4vw);
}

.article-cover img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 13px 13px 0 var(--sky);
}

.article-cover + .article-body {
  margin-top: calc(3.4vw + 5rem);
}

.article-body {
  max-width: 1220px;
  margin: 5rem auto 0;
  padding: 0 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.4vw, 1.28rem);
  line-height: 1.85;
}

.article-body h2 {
  margin: 3.5rem 0 1.2rem;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.article-body h3 {
  margin: 2.6rem 0 1rem;
  font-size: 1.9rem;
}

.article-body blockquote {
  margin: 2.8rem -3rem;
  padding: 1.8rem 3rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-size: 1.4em;
  font-style: italic;
  line-height: 1.45;
}

.article-body li {
  margin-bottom: 0.7rem;
}

.article-inline-image {
  margin: 2.4rem 0;
  max-width: none;
}

.article-inline-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
}

.article-inline-image figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
}

.article-inline-image.image-size-small {
  width: min(48%, 360px);
}

.article-inline-image.image-size-medium {
  width: min(72%, 560px);
}

.article-inline-image.image-size-large {
  width: 100%;
}

.article-inline-image.image-size-wide {
  width: min(1100px, calc(100vw - 2rem));
}

.article-inline-image.image-align-left {
  margin-right: auto;
  margin-left: 0;
}

.article-inline-image.image-size-small.image-align-left,
.article-inline-image.image-size-medium.image-align-left {
  float: left;
  margin: 0.35rem 2rem 1rem 0;
}

.article-body::after {
  content: "";
  display: block;
  clear: both;
}

.article-inline-image.image-align-center:not(.image-size-wide) {
  margin-right: auto;
  margin-left: auto;
}

.article-inline-image.image-align-right:not(.image-size-wide) {
  margin-right: 0;
  margin-left: auto;
}

.article-inline-image.image-size-wide.image-align-left {
  position: relative;
  left: 0;
}

.article-inline-image.image-size-wide.image-align-center {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.article-inline-image.image-size-wide.image-align-right {
  position: relative;
  left: 100%;
  transform: translateX(-100%);
}

.article-code-block {
  margin: 2.8rem 0;
  overflow: hidden;
  background: #151b17;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--sky);
  color: #f7efdc;
}

.code-toolbar {
  min-height: 2.5rem;
  margin: 0;
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--yellow);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.code-caption {
  font-weight: 600;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}

.article-code-block pre {
  max-width: 100%;
  margin: 0;
  padding: 1.35rem 1.5rem;
  overflow: auto;
  color: inherit;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.65;
  tab-size: 2;
  white-space: pre;
}

.article-code-block code {
  font: inherit;
}

.article-code-block pre:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -4px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .article-inline-image.image-size-small,
  .article-inline-image.image-size-medium,
  .article-inline-image.image-size-large,
  .article-inline-image.image-size-wide {
    float: none;
    position: static;
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    transform: none;
  }

  .code-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .code-caption {
    text-align: left;
  }

  .article-code-block pre {
    padding: 1.1rem;
    font-size: 0.82rem;
  }
}

.standalone-page .article-header {
  background:
    linear-gradient(90deg, var(--sky) 0 12px, transparent 12px),
    var(--paper);
}

.admin-shell {
  min-height: 100vh;
  background: #e7dcc8;
}

.admin-header {
  min-height: 68px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 6px solid var(--orange);
}

.admin-header > div {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-header > div span {
  color: #babdb5;
}

.admin-header > div a {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--yellow);
}

.admin-layout {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-right: 2px solid var(--ink);
}

.admin-sidebar-title {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--ink);
}

.admin-sidebar-title span,
.category-maker > span {
  color: var(--red);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-sidebar-title h1 {
  margin: 0.2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.admin-sidebar-title button {
  padding: 0.7rem 0.8rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.admin-entry-list {
  max-height: calc(100vh - 285px);
  overflow-y: auto;
}

.admin-entry-list > button {
  width: 100%;
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 0.8rem;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid #c9c0af;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.admin-entry-list > button:hover,
.admin-entry-list > button.active {
  background: #ebe0cd;
}

.admin-entry-list > button.active {
  box-shadow: inset 5px 0 0 var(--red);
}

.admin-entry-list > button > span {
  width: 10px;
  height: 42px;
}

.admin-entry-list strong {
  display: block;
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-entry-list small {
  display: block;
  margin-top: 0.35rem;
  color: #6d706b;
  font-size: 0.62rem;
}

.admin-empty-list {
  padding: 2rem 1.4rem;
  color: #777970;
  font-size: 0.78rem;
  line-height: 1.5;
}

.category-maker {
  margin-top: auto;
  padding: 1.2rem;
  background: var(--paper);
  border-top: 2px solid var(--ink);
}

.category-maker > div {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: 1fr 42px auto;
}

.category-maker input,
.category-maker button {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--ink);
  border-right: 0;
  font: inherit;
}

.category-maker input[type="text"],
.category-maker input:not([type]) {
  padding: 0 0.6rem;
}

.category-maker input[type="color"] {
  padding: 3px;
}

.category-maker button {
  padding: 0 0.6rem;
  background: var(--ink);
  color: var(--cream);
  border-right: 1px solid var(--ink);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-editor {
  min-width: 0;
  padding: 1.6rem;
}

.admin-editor > form {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--sky);
}

.editor-toolbar {
  min-height: 68px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ink);
  color: var(--cream);
}

.editor-toolbar > div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.editor-toolbar span,
.editor-toolbar strong,
.editor-toolbar a,
.editor-toolbar button {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-toolbar > div:first-child span {
  color: #aeb3ac;
}

.editor-toolbar > div:first-child strong {
  padding: 0.4rem 0.55rem;
  background: var(--green);
  color: white;
}

.editor-toolbar a {
  border-bottom: 1px solid var(--yellow);
}

.editor-toolbar button {
  min-height: 38px;
  padding: 0 0.8rem;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.editor-toolbar button.save {
  background: var(--yellow);
  border: 1px solid var(--yellow);
}

.editor-toolbar button.danger {
  background: transparent;
  color: #ff9a86;
  border: 1px solid #8d4b41;
}

.editor-toolbar button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.admin-message {
  margin: 0;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
}

.admin-message.success {
  background: #cfe0bf;
}

.admin-message.error {
  background: #f4c0af;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.editor-main {
  padding: clamp(1.4rem, 3vw, 2.6rem);
  border-right: 2px solid var(--ink);
}

.admin-editor label {
  position: relative;
  margin-bottom: 1.8rem;
  display: block;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-editor label > input:not([type="file"]),
.admin-editor label > textarea,
.admin-editor label > select {
  width: 100%;
  margin-top: 0.55rem;
  background: #fffdf5;
  color: var(--ink);
  border: 1px solid #8d8e85;
  border-radius: 0;
  font: inherit;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.admin-editor label > input:not([type="file"]),
.admin-editor label > select {
  min-height: 46px;
  padding: 0 0.75rem;
}

.admin-editor label > textarea {
  padding: 0.8rem;
  resize: vertical;
  line-height: 1.55;
}

.admin-editor label:first-child > input {
  min-height: 72px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.admin-editor label > small {
  position: absolute;
  right: 0;
  bottom: -1.1rem;
  color: #73766f;
  font-size: 0.59rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.admin-editor .body-editor {
  min-height: 470px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

.editor-settings {
  padding: 1.4rem;
  background: #eee3d0;
}

.editor-settings fieldset {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 1px solid var(--ink);
}

.editor-settings legend {
  padding: 0 0.4rem;
  color: var(--red);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-settings label {
  margin-bottom: 1.1rem;
}

.cover-preview {
  min-height: 150px;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: #a8aca5;
  border: 1px solid var(--ink);
}

.cover-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cover-preview span {
  font-size: 0.7rem;
  text-transform: uppercase;
}

.editor-settings input[type="file"] {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  text-transform: none;
}

.editor-settings fieldset > small {
  color: #6e716b;
  font-size: 0.6rem;
}

footer {
  min-height: 190px;
  padding: 3rem 3.4vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  background: var(--ink);
  color: var(--cream);
  border-top: 8px solid var(--orange);
}

footer p {
  color: #c7c3b9;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

footer > a:last-child {
  justify-self: end;
  border-bottom: 1px solid var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-mark {
  font-size: 1.35rem;
}

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

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(0.8deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar nav {
    display: none;
  }

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

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

  .hero-art {
    max-width: 900px;
  }

  .featured-note,
  .world-section,
  .systems-section {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 460px;
    border-top: 2px solid var(--cream);
    border-left: 0;
  }

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

  .cast-card:nth-child(2) {
    border-right: 0;
  }

  .cast-card:nth-child(-n + 2) {
    border-bottom: 2px solid var(--ink);
  }

  .systems-heading {
    position: static;
  }

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

  .admin-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .editor-main {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 70px;
    padding-inline: 1rem;
    gap: 1rem;
  }

  .wordmark {
    font-size: 0.95rem;
  }

  .status {
    padding: 0.55rem 0.65rem;
    font-size: 0.55rem;
  }

  .hero {
    padding: 4rem 1.1rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    font-size: clamp(3.5rem, 16vw, 5.2rem);
  }

  .hero-art {
    padding: 8px;
    box-shadow:
      9px 9px 0 var(--sky),
      -7px -7px 0 var(--yellow);
  }

  .hero-art figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .project-strip p {
    min-height: 120px;
    padding: 1.3rem;
    border-bottom: 1px solid rgb(255 255 255 / 26%);
  }

  .section {
    padding: 5rem 1.1rem;
  }

  .archive-hero {
    padding: 4rem 1.1rem 2.6rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-hero h1 {
    font-size: clamp(3.6rem, 17vw, 5.6rem);
  }

  .archive-section {
    padding: 1.2rem 1.1rem 5rem;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .archive-card-media {
    height: 220px;
  }

  .article-header {
    padding: 4rem 1.1rem;
  }

  .article-header h1 {
    font-size: clamp(3.7rem, 17vw, 6rem);
  }

  .article-cover {
    padding-inline: 1.1rem;
  }

  .article-body blockquote {
    margin-inline: 0;
    padding-inline: 1.4rem;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .admin-header > div {
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .admin-layout {
    display: block;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .admin-entry-list {
    max-height: 280px;
  }

  .admin-editor {
    padding: 0.8rem;
  }

  .editor-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .editor-toolbar > div:last-child {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .section-heading h2,
  .world-copy h2,
  .systems-heading h2 {
    font-size: clamp(3.1rem, 14vw, 4.8rem);
  }

  .featured-copy {
    padding: 2rem 1.4rem 2.4rem;
  }

  .featured-image {
    min-height: 350px;
  }

  .notes-grid,
  .cast-grid,
  .systems-board {
    grid-template-columns: 1fr;
  }

  .note-card,
  .cast-card,
  .system-card {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .note-card:last-child,
  .cast-card:last-child,
  .system-card:last-child {
    border-bottom: 0;
  }

  .cast-card:nth-child(2) {
    border-right: 0;
  }

  .cast-card:nth-child(-n + 2) {
    border-bottom: 2px solid var(--ink);
  }

  .world-map img {
    min-height: 280px;
  }

  .system-card.cards {
    grid-template-columns: 1fr 0.48fr;
  }

  footer {
    padding: 2.5rem 1.2rem;
    grid-template-columns: 1fr;
    text-align: left;
  }

  footer p {
    text-align: left;
  }

  footer > a:last-child {
    justify-self: start;
  }
}

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

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

.install-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
