:root {
  --paper: #f3ead7;
  --paper-deep: #e5d3b3;
  --ink: #1a1d21;
  --ink-soft: #4d4f52;
  --terracotta: #c44d2d;
  --forest: #23433b;
  --night: #13242b;
  --sand: #dcc8aa;
  --cream: #faf4e8;
  --line: rgba(26, 29, 33, 0.16);
  --line-strong: rgba(26, 29, 33, 0.28);
  --shadow: 0 28px 60px rgba(19, 36, 43, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", Arial, sans-serif;
  --font-condensed: "IBM Plex Sans Condensed", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(196, 77, 45, 0.12), transparent 28%),
    linear-gradient(180deg, #f7efde 0%, #efe2c8 52%, #f8f1e6 100%);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

p,
ul,
h1,
h2,
h3 {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-frame {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 20px;
}

.eyebrow,
.mini-label,
.edition-note,
.dialog-kicker,
.cookie-title {
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.button-solid,
.button-ghost {
  border: 1px solid var(--line-strong);
  padding: 0.95rem 1.2rem;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button-solid {
  background: var(--terracotta);
  color: #fff;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
}

.button-solid:hover,
.button-ghost:hover,
.edition-nav a:hover,
.colophon-links a:hover,
.closing-links a:hover,
.legal-topline a:hover,
.return-strip a:hover {
  transform: translateY(-1px);
}

.dialog-shell {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(19, 36, 43, 0.68);
  z-index: 100;
}

.dialog-shell.active {
  display: flex;
}

.dialog-card {
  width: min(100%, 520px);
  background: var(--cream);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  padding: 28px;
}

.dialog-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.05;
  margin: 10px 0 14px;
}

.dialog-card p + p {
  margin-top: 10px;
}

.dialog-actions,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.cookie-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  width: min(100% - 36px, 360px);
  padding: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(250, 244, 232, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(19, 36, 43, 0.16);
  z-index: 90;
}

.cookie-panel.active {
  display: block;
}

.cookie-panel p + p,
.cookie-panel p + .cookie-actions {
  margin-top: 10px;
}

.edition-strip,
.return-strip,
.legal-topline {
  display: grid;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(250, 244, 232, 0.62);
}

.edition-strip {
  grid-template-columns: 1.3fr 1fr 1.4fr;
}

.brand-mark,
.legal-topline a,
.return-strip a {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.edition-nav,
.closing-links,
.colophon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: flex-end;
}

.edition-nav a,
.closing-links a,
.colophon-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.edition-nav a:hover,
.closing-links a:hover,
.colophon-links a:hover {
  border-color: currentColor;
}

.poster-stage {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr 1fr;
  gap: 22px;
  margin-top: 22px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, rgba(35, 67, 59, 0.1), transparent 40%);
}

.poster-crest {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 100%;
  padding: 12px 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
}

.poster-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.poster-copy h1,
.scene-intro h2,
.atlas-head h2,
.chronicle-sidebar h2,
.visit-ticket h2,
.entry-copy h1,
.rooms-heading h2,
.tempo-head h2,
.slab-primary h2,
.protocol-ticket h2,
.legal-rail h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.8vw, 5.7rem);
  line-height: 0.94;
  font-weight: 400;
}

.lead,
.legal-rail p,
.dialog-card p,
.visit-ticket p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.poster-image-stack {
  display: grid;
  gap: 18px;
  align-self: end;
}

.poster-image {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.poster-image.tall {
  margin-left: 10%;
}

.poster-image.tall img {
  aspect-ratio: 0.92 / 1.12;
  object-fit: cover;
}

.poster-image.wide {
  width: 82%;
  margin-top: -52px;
}

.poster-image.wide img {
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
}

.poster-marginalia {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.manifesto-band {
  margin-top: 26px;
  padding: 28px clamp(20px, 4vw, 42px);
  background: var(--terracotta);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.manifesto-band p {
  width: min(100%, 980px);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.14;
}

.scene-ledger {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.92fr;
  gap: 18px;
  margin-top: 26px;
}

.scene-intro,
.scene-card,
.scene-photo,
.atlas-note,
.atlas-track,
.atlas-timetable,
.atlas-photo,
.chronicle-sidebar,
.chronicle-columns,
.visit-ticket,
.visit-grid,
.entry-copy,
.entry-board,
.entry-image,
.rooms-heading,
.room-card,
.tempo-head,
.tempo-layout,
.responsibility-slab,
.protocol-ticket,
.protocol-grid,
.legal-rail,
.legal-article {
  border: 1px solid var(--line);
  background: rgba(250, 244, 232, 0.7);
}

.scene-intro,
.rooms-heading,
.tempo-head,
.legal-rail {
  padding: clamp(24px, 3vw, 34px);
}

.scene-photo {
  grid-row: span 2;
  overflow: hidden;
}

.scene-photo img {
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.scene-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
}

.scene-card h3,
.atlas-grid h3,
.visit-grid h3,
.room-card h3,
.tempo-column h3,
.protocol-grid h3,
.legal-article h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.05;
  font-weight: 500;
}

.scene-index {
  font-family: var(--font-condensed);
  font-size: 3rem;
  color: var(--terracotta);
  line-height: 1;
}

.density-high {
  min-height: 340px;
}

.density-medium {
  background: rgba(35, 67, 59, 0.09);
}

.density-low {
  background: rgba(255, 255, 255, 0.72);
}

.menu-atlas {
  margin-top: 26px;
}

.atlas-head {
  width: min(100%, 720px);
  padding: 0 6px 18px;
}

.atlas-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.2fr 0.78fr;
  gap: 18px;
  align-items: start;
}

.atlas-note,
.atlas-track,
.atlas-timetable,
.atlas-photo,
.visit-grid,
.entry-board,
.tempo-layout,
.protocol-grid,
.legal-article {
  padding: 24px;
}

.atlas-track ul,
.tempo-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.atlas-track li,
.tempo-list li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.atlas-photo {
  grid-column: 2 / 4;
  overflow: hidden;
}

.atlas-photo img {
  aspect-ratio: 1.9 / 0.92;
  object-fit: cover;
}

.house-chronicle {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 18px;
  margin-top: 26px;
}

.chronicle-sidebar {
  background:
    linear-gradient(180deg, rgba(35, 67, 59, 0.14), rgba(35, 67, 59, 0.05)),
    rgba(250, 244, 232, 0.72);
}

.chronicle-columns {
  column-count: 2;
  column-gap: 28px;
  padding: 28px;
  line-height: 1.82;
  color: var(--ink-soft);
}

.chronicle-columns p + p {
  margin-top: 0;
}

.visit-ledger {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
  margin-top: 26px;
  margin-bottom: 26px;
}

.visit-ticket,
.protocol-ticket {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px;
  background: var(--night);
  color: #f4ead7;
}

.visit-ticket p,
.protocol-ticket p,
.casino-closing p {
  color: rgba(244, 234, 215, 0.82);
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.visit-grid div,
.protocol-grid article {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.colophon-board,
.casino-closing {
  display: grid;
  gap: 18px;
  padding: 22px 18px 34px;
  border-top: 1px solid var(--line-strong);
}

.colophon-board {
  grid-template-columns: 1.2fr 1fr;
}

.colophon-major p:last-child,
.colophon-small {
  color: var(--ink-soft);
}

.colophon-small {
  grid-column: 1 / -1;
}

.page-casino {
  background:
    radial-gradient(circle at top right, rgba(196, 77, 45, 0.12), transparent 30%),
    linear-gradient(180deg, #ecdfc7 0%, #d7ccb6 42%, #eff0ec 100%);
}

.casino-frame {
  max-width: 1450px;
}

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

.entry-sequence {
  display: grid;
  grid-template-columns: 1.12fr 0.84fr;
  gap: 18px;
  margin-top: 22px;
}

.entry-copy {
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(19, 36, 43, 0.08), transparent 46%),
    rgba(250, 244, 232, 0.72);
}

.entry-board {
  display: grid;
  gap: 14px;
  align-content: start;
  background: rgba(19, 36, 43, 0.96);
  color: #f4ead7;
}

.board-block {
  padding: 6px 0 18px;
  border-bottom: 1px solid rgba(244, 234, 215, 0.18);
}

.board-block p {
  margin-top: 6px;
  line-height: 1.7;
}

.entry-image {
  grid-column: 1 / -1;
  overflow: hidden;
}

.entry-image img {
  aspect-ratio: 2.3 / 0.95;
  object-fit: cover;
}

.rooms-map,
.tempo-table,
.arrival-protocol {
  margin-top: 26px;
}

.rooms-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.room-card {
  padding: 24px;
}

.room-card-large {
  min-height: 290px;
}

.room-card-dark {
  background: rgba(19, 36, 43, 0.92);
  color: #f4ead7;
}

.room-card-dark p {
  color: rgba(244, 234, 215, 0.82);
}

.room-card-accent {
  background: rgba(196, 77, 45, 0.1);
}

.room-card-photo {
  grid-column: 2 / 4;
  padding: 0;
  overflow: hidden;
}

.room-card-photo img {
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.tempo-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 18px;
}

.responsibility-slab {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 0;
  margin-top: 26px;
  overflow: hidden;
}

.slab-primary {
  padding: 28px;
  background: var(--forest);
  color: #f4ead7;
}

.slab-secondary {
  padding: 28px;
  background: rgba(250, 244, 232, 0.84);
}

.slab-secondary p + p {
  margin-top: 16px;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.casino-closing {
  margin-top: 30px;
  border: 1px solid var(--line);
  background: rgba(250, 244, 232, 0.56);
}

.page-legal {
  background:
    linear-gradient(180deg, #f1e7d2 0%, #efe3cd 50%, #f8f3e9 100%);
}

.legal-frame {
  max-width: 1380px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 18px;
  margin-top: 22px;
}

.legal-rail {
  align-self: start;
  position: sticky;
  top: 18px;
  background:
    linear-gradient(180deg, rgba(196, 77, 45, 0.12), transparent 34%),
    rgba(250, 244, 232, 0.72);
}

.legal-article {
  display: grid;
  gap: 0;
}

.legal-article section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.legal-article section:first-child {
  padding-top: 0;
}

.legal-article h2 {
  margin-bottom: 12px;
}

.legal-article p {
  max-width: 72ch;
  line-height: 1.82;
  color: var(--ink-soft);
}

@media (max-width: 1100px) {
  .edition-strip,
  .poster-stage,
  .scene-ledger,
  .atlas-grid,
  .house-chronicle,
  .visit-ledger,
  .entry-sequence,
  .rooms-grid,
  .tempo-layout,
  .responsibility-slab,
  .protocol-grid,
  .legal-layout,
  .colophon-board {
    grid-template-columns: 1fr;
  }

  .edition-nav,
  .closing-links,
  .colophon-links {
    justify-content: flex-start;
  }

  .poster-crest {
    writing-mode: horizontal-tb;
    flex-direction: row;
    min-height: auto;
  }

  .poster-image.wide,
  .poster-image.tall {
    width: 100%;
    margin: 0;
  }

  .poster-marginalia,
  .visit-grid,
  .protocol-grid {
    grid-template-columns: 1fr;
  }

  .scene-photo,
  .atlas-photo,
  .room-card-photo,
  .entry-image {
    grid-column: auto;
    grid-row: auto;
  }

  .chronicle-columns {
    column-count: 1;
  }

  .legal-rail {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-frame {
    padding: 12px;
  }

  .poster-copy h1,
  .scene-intro h2,
  .atlas-head h2,
  .chronicle-sidebar h2,
  .visit-ticket h2,
  .entry-copy h1,
  .rooms-heading h2,
  .tempo-head h2,
  .slab-primary h2,
  .protocol-ticket h2,
  .legal-rail h1 {
    font-size: clamp(2.15rem, 12vw, 3.35rem);
  }

  .dialog-card,
  .scene-card,
  .atlas-note,
  .atlas-track,
  .atlas-timetable,
  .visit-ticket,
  .visit-grid,
  .entry-copy,
  .entry-board,
  .room-card,
  .tempo-layout,
  .slab-primary,
  .slab-secondary,
  .protocol-ticket,
  .protocol-grid,
  .legal-rail,
  .legal-article {
    padding: 18px;
  }

  .atlas-photo img,
  .entry-image img {
    aspect-ratio: 1.2 / 1;
  }

  .scene-card h3,
  .atlas-grid h3,
  .visit-grid h3,
  .room-card h3,
  .tempo-column h3,
  .protocol-grid h3,
  .legal-article h2 {
    font-size: 1.4rem;
  }
}
