/* ================================================================
   MORK — KING OF NOTHING
   Layout is CSS. The visual surfaces and illustrations live in assets/.
   ================================================================ */

:root {
  --paper: #e9e0c8;
  --paper-light: #f1ead7;
  --ink: #11110f;
  --crown: #e9a72d;
  --olive: #6f7350;
  --brown: #6b523e;
  --steel: #686a66;
  --red: #a44232;
  --header-height: 62px;
  --content: 1440px;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --typewriter: "Courier New", Courier, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("assets/paper-texture.png");
  background-size: 1050px auto;
  font-family: var(--typewriter);
  line-height: 1.45;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

a {
  text-decoration: none;
}

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

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

.royal-loader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  background: var(--paper) url("assets/paper-texture.png") center / cover;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.royal-loader img {
  width: 110px;
  animation: crown-wobble 700ms steps(2, end) infinite;
}

.royal-loader p {
  margin: -3px 0 0;
  font: 32px/1 var(--display);
  letter-spacing: 0.04em;
}

.royal-loader small {
  margin-top: 5px;
  font-weight: 700;
}

body.loaded .royal-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Header */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px max(24px, calc((100vw - var(--content)) / 2));
  background: rgba(233, 224, 200, 0.96) url("assets/paper-texture.png") center / 850px auto;
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 3px 0 rgba(17, 17, 15, 0.18);
}

.wordmark {
  font: 36px/1 var(--display);
  letter-spacing: 0.025em;
  transform: rotate(-1deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.4vw, 25px);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.035em;
}

.site-nav a {
  cursor: pointer;
  transition: transform 140ms ease, color 140ms ease;
}

.site-nav a:hover {
  color: var(--red);
  transform: translateY(-2px) rotate(-1deg);
}

.site-nav .nav-buy {
  min-width: 76px;
  padding: 7px 18px 8px;
  color: var(--ink);
  text-align: center;
  background: url("assets/button-bg.png") center / 100% 100% no-repeat;
}

.menu-toggle {
  display: none;
  padding: 7px 12px;
  font: 18px/1 var(--display);
  background: var(--crown);
  border: 2px solid var(--ink);
  cursor: pointer;
}

/* Shared layout */

main {
  padding-top: var(--header-height);
}

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

.ruled-section {
  position: relative;
}

.ruled-section::before,
.ruled-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ink);
  opacity: 0.85;
}

.ruled-section::before { top: 0; }
.ruled-section::after { bottom: 0; }

.section-divider {
  width: min(82%, 1220px);
  height: 72px;
  margin: -4px auto;
  object-fit: fill;
  pointer-events: none;
}

.section-heading {
  text-align: center;
}

.section-heading > span,
.mini-heading > span {
  display: inline-block;
  padding: 3px 9px;
  color: var(--paper-light);
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: rotate(-1deg);
}

.section-heading h2,
.mini-heading h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.section-heading h2 {
  font-size: clamp(54px, 6vw, 96px);
}

.section-heading p {
  margin: 12px 0 0;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  color: var(--paper-light);
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.075em;
  transform: rotate(-1deg);
}

.taped-note {
  padding: 17px 20px;
  background: var(--paper-light) url("assets/paper-texture.png") center / 650px auto;
  border: 2px solid var(--ink);
  box-shadow: 4px 5px 0 rgba(17, 17, 15, 0.28);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  transform: rotate(3deg);
}

.taped-note::before,
.taped-note::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 14px;
  background: rgba(117, 91, 59, 0.55);
}

.taped-note::before {
  top: -9px;
  left: 18px;
  transform: rotate(-8deg);
}

.taped-note::after {
  right: 12px;
  bottom: -7px;
  transform: rotate(7deg);
}

.art-frame {
  position: relative;
  overflow: hidden;
  background: #d8cfba;
  border: 4px solid var(--ink);
  box-shadow: 8px 9px 0 rgba(17, 17, 15, 0.17);
}

/* Hero */

.hero {
  min-height: 800px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: stretch;
  padding: 42px 0 34px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 4vw, 62px) clamp(18px, 4vw, 70px) clamp(20px, 4vw, 56px) 0;
}

.hero h1,
.final-copy h2 {
  margin: 0;
  font-family: var(--display);
  line-height: 0.76;
  letter-spacing: -0.025em;
}

.hero h1 {
  font-size: clamp(122px, 14vw, 238px);
  transform: scaleX(0.93);
  transform-origin: left center;
}

.hero-subtitle,
.final-subtitle {
  margin: 18px 0 0;
  font-family: var(--display);
  line-height: 0.95;
  letter-spacing: 0.015em;
}

.hero-subtitle {
  font-size: clamp(38px, 4.1vw, 68px);
}

.still-line {
  margin: 7px 0 24px;
  color: var(--red);
  font: clamp(25px, 2.4vw, 40px)/1 var(--display);
  letter-spacing: 0.05em;
}

.ca-button {
  width: min(100%, 650px);
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper-light) url("assets/paper-texture.png") center / 630px auto;
  border: 3px solid var(--ink);
  box-shadow: 4px 5px 0 rgba(17, 17, 15, 0.17);
  cursor: pointer;
  transform: rotate(-0.5deg);
}

.ca-button:hover {
  transform: rotate(0deg) translateY(-2px);
}

.ca-button.copied {
  animation: ca-shake 380ms steps(2, end);
}

.ca-label,
.ca-action {
  font-family: var(--display);
  letter-spacing: 0.045em;
}

.ca-value {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
  font-weight: 700;
}

.ca-action {
  padding: 4px 7px;
  color: var(--paper-light);
  background: var(--ink);
  font-size: 13px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-buttons {
  margin-top: 17px;
}

.rough-button {
  min-width: 148px;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 9px 21px;
  color: var(--ink);
  background-color: transparent;
  background-image: url("assets/button-bg.png");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: transform 130ms ease;
}

.rough-button:hover {
  transform: translateY(-3px) rotate(-1deg);
}

.rough-button.gray {
  filter: grayscale(0.88) brightness(0.92);
}

.rough-button.green {
  filter: hue-rotate(55deg) saturate(0.55) brightness(0.83);
}

.hero-art {
  min-height: 690px;
}

.hero-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 300ms steps(3, end);
}

.hero-art:hover > img {
  transform: scale(1.015) translateY(-3px);
}

.hero-note {
  position: absolute;
  z-index: 2;
  top: 7%;
  right: 5%;
}

.hero-note span {
  color: var(--red);
}

.cabinet-label,
.ticket-label {
  position: absolute;
  display: inline-block;
  padding: 5px 8px;
  color: var(--paper-light);
  background: var(--ink);
  border: 2px solid var(--paper-light);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.cabinet-label {
  left: 4%;
  bottom: 4%;
  transform: rotate(-4deg);
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(400px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(34px, 7vw, 110px);
  padding: 46px 0 68px;
}

.about-art {
  aspect-ratio: 1;
  transform: rotate(-1deg);
}

.about-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-label {
  right: 4%;
  bottom: 5%;
  color: var(--ink);
  background: var(--crown);
  border-color: var(--ink);
  transform: rotate(4deg);
}

.about-copy h2 {
  max-width: 780px;
  margin: 8px 0 26px;
  font: clamp(64px, 8vw, 126px)/0.86 var(--display);
  letter-spacing: 0.01em;
}

.lore-copy {
  max-width: 790px;
  padding-left: clamp(18px, 3vw, 36px);
  border-left: 6px solid var(--ink);
  font-size: clamp(17px, 1.6vw, 25px);
  font-weight: 700;
}

.lore-copy p {
  margin: 0 0 10px;
}

.lore-copy p:nth-child(4) {
  color: var(--red);
}

/* Kingdom */

.kingdom {
  padding: 64px 0 82px;
}

.kingdom-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 24px);
  margin-top: 44px;
}

.kingdom-card {
  position: relative;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 38px 32px 42px;
  isolation: isolate;
  transition: transform 160ms steps(2, end);
}

.kingdom-card:hover {
  z-index: 3;
  transform: rotate(0deg) translateY(-8px);
}

.card-paper {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.kingdom-object {
  width: 100%;
  height: 245px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(2px 4px 0 rgba(17, 17, 15, 0.14));
}

.kingdom-card h3 {
  margin: 0;
  font: clamp(24px, 2vw, 34px)/1 var(--display);
  letter-spacing: 0.02em;
  text-align: center;
}

.kingdom-card p {
  margin: 7px 0 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.tilt-left { transform: rotate(-1.8deg); }
.tilt-right { transform: rotate(1.5deg); }
.tilt-left-soft { transform: rotate(-0.8deg); }
.tilt-right-soft { transform: rotate(1deg); }

/* Inventory */

.inventory {
  padding: 64px 0 56px;
}

.compact-heading h2 {
  font-size: clamp(52px, 6vw, 88px);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.inventory-item {
  min-width: 0;
  min-height: 330px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  place-items: center;
  padding: 28px 25px 36px;
  background: url("assets/panel-frame.png") center / 100% 100% no-repeat;
  transition: transform 150ms steps(2, end);
}

.inventory-item:nth-child(3n + 1) { transform: rotate(-0.9deg); }
.inventory-item:nth-child(3n + 2) { transform: rotate(0.8deg); }
.inventory-item:nth-child(3n + 3) { transform: rotate(-0.35deg); }

.inventory-item:hover {
  z-index: 2;
  transform: translateY(-7px) rotate(0deg);
}

.inventory-item img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  filter: drop-shadow(2px 3px 0 rgba(17, 17, 15, 0.14));
}

.inventory-item h3 {
  margin: 8px 0 3px;
  font: 24px/1 var(--display);
  text-align: center;
}

.inventory-item p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* Daily schedule */

.daily {
  display: grid;
  grid-template-columns: minmax(430px, 0.85fr) minmax(500px, 1.15fr);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  padding: 56px 0 66px;
}

.schedule-card {
  position: relative;
  min-height: 500px;
  padding: 76px 72px 60px;
  isolation: isolate;
  transform: rotate(-1deg);
}

.schedule-paper {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.schedule-stamp {
  position: absolute;
  top: 52px;
  right: 50px;
  padding: 5px 8px;
  color: var(--red);
  border: 3px solid var(--red);
  font-weight: 700;
  transform: rotate(6deg);
}

.schedule-card h2 {
  max-width: 520px;
  margin: 0 0 28px;
  font: clamp(39px, 4vw, 64px)/0.95 var(--display);
}

.schedule-card dl {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 700;
}

.schedule-card dl div {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(17, 17, 15, 0.45);
}

.schedule-card dt,
.schedule-card dd {
  margin: 0;
}

.pencil-note {
  margin: 25px 0 0;
  color: var(--red);
  font-weight: 700;
  transform: rotate(-2deg);
}

.daily-art {
  position: relative;
}

.daily-art img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.sleep-copy {
  position: absolute;
  top: 9%;
  right: 13%;
  font: 34px/0.85 var(--display);
  transform: rotate(12deg);
}

/* Still King comic */

.still-king {
  padding: 60px 0 76px;
}

.loud-heading h2 {
  color: var(--ink);
  font-size: clamp(76px, 10vw, 150px);
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 450px;
  gap: 14px;
  margin-top: 38px;
}

.comic-panel {
  grid-column: auto;
  grid-row: auto;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 15px;
  background: var(--paper-light) url("assets/paper-texture.png") center / 650px auto;
  border: 4px solid var(--ink);
  box-shadow: 5px 6px 0 rgba(17, 17, 15, 0.15);
  transition: transform 150ms steps(2, end);
}

.comic-panel:hover {
  z-index: 2;
  transform: rotate(0deg) translateY(-5px);
}

.comic-panel:nth-child(odd) { transform: rotate(-0.7deg); }
.comic-panel:nth-child(even) { transform: rotate(0.65deg); }

.comic-panel.panel-wide {
  grid-column: auto;
}

.comic-panel.panel-tall {
  grid-column: auto;
}

.comic-panel p {
  z-index: 1;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.comic-panel img {
  width: 100%;
  min-height: 0;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 200ms steps(2, end);
}

.comic-panel:hover img {
  transform: scale(1.04) rotate(-1deg);
}

.comic-panel h3 {
  z-index: 1;
  margin: 6px 0 0;
  font: clamp(25px, 2.2vw, 38px)/1 var(--display);
  text-align: center;
}

/* Online and treasury */

.online-treasury {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 64px 0 70px;
}

.online-block,
.treasury-block {
  padding: clamp(22px, 3vw, 42px);
  background: rgba(241, 234, 215, 0.72);
  border: 4px solid var(--ink);
  box-shadow: 6px 7px 0 rgba(17, 17, 15, 0.15);
}

.treasury-block {
  width: min(100%, 1100px);
  margin-inline: auto;
}

.mini-heading {
  text-align: center;
}

.mini-heading h2 {
  font-size: clamp(44px, 4vw, 67px);
}

.online-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.online-panel {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 10px;
  background: var(--paper-light);
  border: 3px solid var(--ink);
  transform: rotate(-1deg);
}

.online-panel.many-likes {
  transform: rotate(1deg);
}

.online-panel img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.online-panel figcaption {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 7px 9px;
  background: rgba(241, 234, 215, 0.9);
  border: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.online-arrow {
  font: 22px/1 var(--display);
  transform: rotate(-3deg);
}

.ledger-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(220px, 1.1fr);
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.ledger {
  padding: 22px;
  background: var(--paper-light) url("assets/paper-texture.png") center / 620px auto;
  border: 3px solid var(--ink);
  transform: rotate(-1deg);
}

.ledger > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 2px dotted var(--steel);
  font-size: 12px;
}

.ledger > div:last-child {
  border-bottom: 0;
}

.ledger strong {
  max-width: 120px;
  text-align: right;
}

.ledger-wrap > img {
  width: 100%;
  mix-blend-mode: multiply;
}

/* Gallery */

.archives {
  padding: 56px 0 76px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 18px;
  margin-top: 40px;
  padding: 16px;
  background: rgba(107, 82, 62, 0.18);
  border: 3px solid var(--ink);
}

.gallery-item {
  position: relative;
  min-width: 0;
  padding: 10px;
  background: var(--paper-light) url("assets/paper-texture.png") center / 500px auto;
  border: 3px solid var(--ink);
  box-shadow: 4px 5px 0 rgba(17, 17, 15, 0.16);
  cursor: zoom-in;
  transition: transform 150ms steps(2, end), z-index 0s;
}

.gallery-item::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -9px;
  left: 50%;
  width: 54px;
  height: 15px;
  background: rgba(120, 96, 63, 0.58);
  transform: translateX(-50%) rotate(-2deg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.gallery-item:hover {
  z-index: 5;
  transform: rotate(0deg) scale(1.05);
}

.g1 { transform: rotate(-2deg); }
.g2 { transform: rotate(1.4deg); }
.g3 { transform: rotate(-0.6deg); }
.g4 { transform: rotate(2deg); }
.g5 { transform: rotate(-1deg); }
.g6 { transform: rotate(1deg); }
.g7 { transform: rotate(-1.6deg); }
.g8 { transform: rotate(0.6deg); }
.g9 { transform: rotate(1.8deg); }
.g10 { transform: rotate(-1.1deg); }

/* Final CTA and footer */

.final-cta {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(30px, 7vw, 110px);
  padding: 56px clamp(24px, 4vw, 70px);
  background: rgba(241, 234, 215, 0.8);
  border: 5px solid var(--ink);
  border-bottom: 0;
}

.final-art img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  mix-blend-mode: multiply;
  animation: throne-drift 3.2s steps(2, end) infinite;
}

.final-copy h2 {
  font-size: clamp(100px, 12vw, 210px);
}

.final-subtitle {
  font-size: clamp(38px, 4.2vw, 70px);
}

.final-ca {
  max-width: 700px;
}

.final-buttons {
  margin-top: 17px;
}

.site-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px max(20px, calc((100vw - var(--content)) / 2));
  color: var(--paper-light);
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

/* Lightbox */

.lightbox {
  width: min(92vw, 780px);
  max-height: 92vh;
  padding: 14px;
  color: var(--ink);
  background: var(--paper-light) url("assets/paper-texture.png") center / 800px auto;
  border: 5px solid var(--ink);
  box-shadow: 12px 14px 0 rgba(17, 17, 15, 0.35);
}

.lightbox::backdrop {
  background: rgba(17, 17, 15, 0.84);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.lightbox figcaption {
  padding: 10px 8px 3px;
  font-weight: 700;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  padding: 8px 11px;
  color: var(--paper-light);
  background: var(--ink);
  border: 2px solid var(--paper-light);
  font-family: var(--display);
  cursor: pointer;
}

/* Motion */

@keyframes crown-wobble {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-3px); }
}

@keyframes ca-shake {
  0%, 100% { transform: translateX(0) rotate(-0.5deg); }
  25% { transform: translateX(-5px) rotate(-1deg); }
  50% { transform: translateX(5px) rotate(1deg); }
  75% { transform: translateX(-3px) rotate(0); }
}

@keyframes throne-drift {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-4px) rotate(0.5deg); }
}

/* Responsive */

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  }

  .hero h1 {
    font-size: clamp(105px, 15vw, 178px);
  }

  .kingdom-grid,
  .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 420px;
  }

  .comic-panel,
  .comic-panel.panel-wide,
  .comic-panel.panel-tall {
    grid-column: auto;
  }

  .comic-panel:last-child {
    grid-column: auto;
  }

  .online-treasury {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 58px;
  }

  .site-header {
    padding-inline: 18px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 12px 18px 18px;
    background: var(--paper) url("assets/paper-texture.png") center / 850px auto;
    border-bottom: 3px solid var(--ink);
    box-shadow: 0 6px 0 rgba(17, 17, 15, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 11px 6px;
    border-bottom: 1px dashed var(--steel);
  }

  .site-nav .nav-buy {
    min-width: 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero h1 {
    font-size: clamp(112px, 29vw, 190px);
  }

  .hero-art {
    min-height: auto;
    aspect-ratio: 1;
  }

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

  .about-art {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .about-copy {
    order: -1;
  }

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

  .schedule-card {
    width: min(100%, 690px);
    margin-inline: auto;
  }

  .daily-art {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 230px;
  }

  .final-cta {
    grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  }
}

@media (max-width: 680px) {
  .section-shell {
    width: min(calc(100% - 22px), var(--content));
  }

  .section-divider {
    height: 44px;
    margin-block: -2px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-copy {
    padding-block: 25px 30px;
  }

  .hero h1 {
    font-size: clamp(96px, 31vw, 148px);
  }

  .hero-subtitle {
    font-size: clamp(34px, 11vw, 52px);
  }

  .still-line {
    font-size: 28px;
  }

  .ca-button {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ca-action {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  .rough-button {
    flex: 1 1 calc(50% - 8px);
    min-width: 130px;
  }

  .hero-note {
    top: 4%;
    right: 3%;
    padding: 11px 13px;
    font-size: 11px;
  }

  .about {
    gap: 28px;
    padding-block: 32px 50px;
  }

  .about-copy h2 {
    margin-bottom: 18px;
    font-size: clamp(55px, 17vw, 78px);
  }

  .lore-copy {
    font-size: 16px;
  }

  .kingdom,
  .inventory,
  .still-king,
  .archives {
    padding-block: 48px;
  }

  .section-heading h2 {
    font-size: clamp(49px, 15vw, 76px);
  }

  .kingdom-grid,
  .inventory-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .kingdom-card {
    min-height: 390px;
  }

  .inventory-item {
    width: min(100%, 450px);
    min-height: 325px;
    margin-inline: auto;
  }

  .daily {
    padding-block: 40px;
  }

  .schedule-card {
    min-height: 480px;
    padding: 72px 42px 54px;
  }

  .schedule-stamp {
    top: 45px;
    right: 35px;
    font-size: 12px;
  }

  .schedule-card h2 {
    font-size: 38px;
  }

  .schedule-card dl div {
    grid-template-columns: 102px 1fr;
    gap: 8px;
    font-size: 13px;
  }

  .loud-heading h2 {
    font-size: clamp(65px, 22vw, 106px);
  }

  .comic-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 340px;
    gap: 9px;
  }

  .comic-panel,
  .comic-panel.panel-wide,
  .comic-panel.panel-tall,
  .comic-panel:last-child {
    grid-column: span 1;
    grid-row: auto;
    padding: 9px;
  }

  .comic-panel:last-child {
    grid-column: span 1;
    width: auto;
    justify-self: stretch;
  }

  .comic-panel h3 {
    font-size: 24px;
  }

  .online-treasury {
    padding-block: 48px;
  }

  .online-block,
  .treasury-block {
    padding: 24px 14px;
  }

  .online-panels {
    grid-template-columns: 1fr;
  }

  .online-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .ledger-wrap {
    grid-template-columns: 1fr;
  }

  .ledger-wrap > img {
    width: min(100%, 400px);
    margin-inline: auto;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
    gap: 11px;
    padding: 10px;
  }

  .gallery-item {
    padding: 6px;
  }

  .final-cta {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 35px 20px 45px;
  }

  .final-art img {
    max-height: 390px;
  }

  .final-copy {
    text-align: center;
  }

  .final-copy h2 {
    font-size: clamp(105px, 33vw, 168px);
  }

  .final-subtitle {
    font-size: clamp(37px, 11vw, 55px);
  }

  .final-copy .eyebrow {
    margin-inline: auto;
  }

  .final-buttons {
    justify-content: center;
  }

  .site-footer {
    padding-inline: 14px;
  }
}

@media (max-width: 420px) {
  .wordmark {
    font-size: 31px;
  }

  .hero h1 {
    font-size: 94px;
  }

  .hero-subtitle {
    font-size: 36px;
  }

  .rough-button {
    flex-basis: 100%;
  }

  .schedule-card {
    padding-inline: 31px;
  }

  .schedule-card dl div {
    grid-template-columns: 94px 1fr;
    font-size: 12px;
  }

  .comic-grid {
    display: block;
  }

  .comic-panel,
  .comic-panel:last-child {
    width: 100%;
    height: 360px;
    margin-bottom: 10px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 155px;
  }
}

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

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