@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/Cinzel-normal-400.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/Fraunces-normal-400.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/Fraunces-italic-500.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/SourceSerif4-normal-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/SourceSerif4-italic-400.woff2") format("woff2");
}

:root {
  --parchment: #f3e4c4;
  --parchment-deep: #e6cf9e;
  --cream: #fbf6ea;
  --ink: #2b1810;
  --ink-soft: #5c3b28;
  --oxblood: #6e2a1c;
  --rust: #a43d18;
  --gold: #b8893e;
  --gold-light: #e0c575;
  --rule: #c4a35a;
  --page-pad: clamp(1rem, 4vw, 2.5rem);
  --measure: 40rem;
  --frame: 0.55rem;
}

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

html {
  scroll-behavior: smooth;
  background: var(--parchment);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  background-color: var(--parchment);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("/assets/paper-grain.png");
  background-size: 240px 240px;
  opacity: 0.18;
  mix-blend-mode: multiply;
}

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

a {
  color: var(--oxblood);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--rust); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* Page as a royal broadside */
.page {
  position: relative;
  z-index: 1;
  margin: var(--page-pad);
  padding: clamp(1.25rem, 3vw, 2.75rem) clamp(1rem, 4vw, 3rem) 2.75rem;
  border: 2px solid var(--oxblood);
  min-height: calc(100vh - 2 * var(--page-pad));
  background: rgba(251, 246, 234, 0.42);
}
.page::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.page::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184, 137, 62, 0.45);
  pointer-events: none;
}

.inner {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
}

/* Header */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--gold);
  margin-bottom: 2.25rem;
}
.wordmark {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--oxblood); }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.nav a:hover { color: var(--oxblood); }

/* Hero */
.hero {
  text-align: center;
  padding: 0.25rem 0 2.5rem;
}
.crown {
  width: 3.1rem;
  height: auto;
  margin: 0 auto 0.85rem;
  color: var(--gold);
  display: block;
}
.kicker {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0 0 0.45rem;
}
.hero h1 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  margin: 0.15rem 0 0.15rem;
}
.hero h1 span {
  display: block;
}
.subtitle {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 3.4vw, 1.55rem);
  color: var(--oxblood);
  margin: 0.35rem 0 0;
}

.portrait-wrap {
  width: min(16.5rem, 72vw);
  margin: 1.35rem auto 1.5rem;
  position: relative;
}
.portrait-wrap svg.ring { display: none; }
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 50% / 42%;
  border: 3px solid var(--gold-light);
  box-shadow:
    0 0 0 2px var(--oxblood),
    0 0 0 7px var(--gold),
    0 0 0 9px var(--oxblood),
    0 10px 24px rgba(43, 24, 16, 0.22);
  background: var(--parchment-deep);
}

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.1rem auto;
  max-width: 16rem;
  color: var(--gold);
}
.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
}
.rule .diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.lede {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 34rem;
}
.lede p { margin: 0; }

/* Sections */
.section {
  padding: 2.1rem 0 0.4rem;
  border-top: 1px solid rgba(184, 137, 62, 0.55);
  margin-top: 2.25rem;
}
.section h2 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(1.55rem, 5.5vw, 2.1rem);
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0.15rem 0 0.55rem;
  text-align: center;
}
.section .kicker { text-align: center; }
.section-intro {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 auto 1.35rem;
  max-width: 32rem;
  font-style: italic;
}

/* Audience / chat — a correspondence sheet, not a widget card */
.court {
  background: var(--cream);
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--parchment-deep);
  padding: 0;
}
.court-letterhead {
  text-align: center;
  padding: 0.85rem 1rem 0.7rem;
  border-bottom: 1px solid var(--gold);
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oxblood);
}
.transcript {
  min-height: 12rem;
  max-height: min(52vh, 22rem);
  overflow-y: auto;
  padding: 1rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  -webkit-overflow-scrolling: touch;
}
.speech {
  margin: 0;
  max-width: 92%;
}
.speech p {
  margin: 0;
}
.speech-king {
  align-self: flex-start;
  padding-left: 0.7rem;
  border-left: 2px solid var(--gold);
}
.speech-king .who {
  font-family: "Cinzel", serif;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxblood);
  display: block;
  margin-bottom: 0.2rem;
}
.speech-you {
  align-self: flex-end;
  text-align: right;
  padding-right: 0.7rem;
  border-right: 2px solid var(--oxblood);
}
.speech-you .who {
  font-family: "Cinzel", serif;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.2rem;
}
.speech-note {
  align-self: stretch;
  max-width: 100%;
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border: 0;
}
.speech.pending .dots::after {
  content: "…";
  animation: ellipsis 1.2s steps(4, end) infinite;
}
@keyframes ellipsis {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem 0.9rem;
  border-top: 1px solid rgba(184, 137, 62, 0.55);
  background: #f7efe0;
}
.chat-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chat-form input[type="text"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--ink-soft);
  padding: 0.7rem 0.75rem;
  border-radius: 0;
}
.chat-form input[type="text"]::placeholder {
  color: #8a6a52;
  font-style: italic;
}
.chat-form button {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--oxblood);
  border: 1px solid var(--ink);
  padding: 0 1rem;
  cursor: pointer;
  min-width: 4.8rem;
}
.chat-form button:hover:not(:disabled) { background: var(--rust); }
.chat-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Gallery — lead portrait, then a tight square contact sheet */
.gallery-section {
  margin-top: 2.6rem;
  margin-bottom: 0.5rem;
}
.gallery-head {
  max-width: var(--measure);
  margin: 0 auto 1.15rem;
  text-align: center;
}
.gallery-head .section-intro { margin-bottom: 0.7rem; }

.gallery-feature {
  position: relative;
  margin: 0 auto 0.7rem;
  max-width: 28rem;
  width: 100%;
  padding: 0;
  cursor: pointer;
  background: var(--cream);
  border: 1px solid var(--ink);
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 0 4px var(--oxblood);
}
.gallery-feature[hidden] { display: none; }
.gallery-feature img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  background: var(--parchment-deep);
}
.gallery-feature .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2.1rem 0.8rem 0.55rem;
  background: linear-gradient(transparent, rgba(26, 12, 8, 0.78));
  color: var(--cream);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.3;
  text-align: left;
  pointer-events: none;
}

.frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.22rem;
  margin: 0;
  padding: 0;
}
.tile {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--parchment-deep);
  color: inherit;
  font: inherit;
  display: block;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}
.tile .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.15rem 0.28rem 0.22rem;
  background: linear-gradient(transparent, rgba(26, 12, 8, 0.8));
  color: var(--cream);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.62rem;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.tile:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
  z-index: 1;
}

.gallery-note {
  text-align: center;
  margin: 1.4rem 0 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* Lightbox */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #160c08;
  color: var(--cream);
}
.lightbox::backdrop {
  background: rgba(16, 8, 6, 0.92);
}
.lightbox[open] {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  grid-template-rows: 3rem 1fr auto;
  align-items: stretch;
}
.lightbox-close {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  width: 3rem;
  height: 3rem;
  margin: 0.15rem 0.15rem 0 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.lightbox-close:hover { color: var(--gold-light); }
.lightbox-nav {
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: 3rem;
  height: 3.4rem;
}
.lightbox-nav:hover { color: var(--cream); }
.lightbox-nav:disabled { opacity: 0.28; cursor: default; }
.lightbox-prev { grid-column: 1; grid-row: 2; }
.lightbox-next { grid-column: 3; grid-row: 2; }
.lightbox-stage {
  grid-column: 2;
  grid-row: 1 / 4;
  margin: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.1rem 0.2rem 1rem;
  pointer-events: none;
}
.lightbox-stage img {
  pointer-events: auto;
  max-width: 100%;
  max-height: calc(100dvh - 7.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-stage figcaption {
  pointer-events: none;
  width: min(40rem, 100%);
  margin: 0.7rem 0 0;
  text-align: center;
  flex-shrink: 0;
}
.lightbox-caption {
  display: block;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.35;
  min-height: 0;
}
.lightbox-caption:empty { display: none; }
.lightbox-count {
  display: block;
  margin-top: 0.3rem;
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}
body.lightbox-open { overflow: hidden; }

@media (max-width: 480px) {
  .lightbox[open] {
    grid-template-columns: 2.6rem 1fr 2.6rem;
    grid-template-rows: 2.8rem 1fr auto;
  }
  .lightbox-stage { padding: 2.7rem 0 0.7rem; }
  .lightbox-stage img { max-height: calc(100dvh - 8.2rem); }
  .lightbox-caption { font-size: 0.98rem; }
}


/* Treats — invitation, not a product card */
.offering {
  text-align: center;
  padding: 0.25rem 0 0.5rem;
}
.offering p {
  margin: 0 auto 1.15rem;
  max-width: 30rem;
}
.coming-soon,
.treat-link {
  display: inline-block;
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--ink);
  text-decoration: none;
}
.coming-soon {
  color: var(--oxblood);
  background: var(--cream);
  border-style: dashed;
  border-color: var(--oxblood);
  cursor: default;
}
.treat-link {
  color: var(--cream);
  background: var(--oxblood);
}
.treat-link:hover { background: var(--rust); color: var(--cream); }
.treat-hint {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Footer / legal */
.colophon {
  margin-top: 2.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--gold);
  text-align: center;
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.colophon a { color: var(--ink-soft); text-decoration: none; }
.colophon a:hover { color: var(--oxblood); }
.colophon .copy {
  display: block;
  margin-top: 0.45rem;
  letter-spacing: 0.08em;
}

/* Privacy & 404 */
.prose h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0 0 0.4rem;
}
.updated {
  text-align: center;
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0 0 1.6rem;
}
.prose h2 {
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  margin: 1.6rem 0 0.4rem;
}
.prose p { margin: 0 0 0.85rem; }
.lost {
  text-align: center;
  padding: 2.5rem 0 3rem;
}
.lost h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 8vw, 3rem);
  margin: 0.4rem 0 0.6rem;
}
.lost p { margin: 0 0 1.25rem; }

@media (min-width: 720px) {
  .page {
    margin: 1.5rem auto;
    max-width: 52rem;
  }
  .transcript { padding: 1.2rem 1.4rem 0.7rem; }
  .chat-form { padding: 0.85rem 1.2rem 1rem; }
  .frames { grid-template-columns: repeat(4, 1fr); gap: 0.28rem; }
}

@media (min-width: 960px) {
  .page { max-width: 66rem; }
  .frames { grid-template-columns: repeat(5, 1fr); }
  .gallery-feature { max-width: 30rem; }
}


@media (max-width: 480px) {
  .page {
    margin: 0.65rem;
    padding: 1rem 0.8rem 2rem;
  }
  .masthead {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }
  .nav {
    justify-content: center;
    width: 100%;
    gap: 0.45rem 0.85rem;
  }
  .hero { padding-bottom: 1.75rem; }
  .portrait-wrap { width: min(14.5rem, 70vw); }
  .chat-form button { min-width: 4.4rem; padding: 0 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .speech.pending .dots::after { animation: none; content: "…"; }
}

/* Upload desk */
.desk-title {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0.15rem 0 0.55rem;
}
.desk-form {
  background: var(--cream);
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--parchment-deep);
  padding: 1rem 1rem 1.1rem;
  margin: 0 auto 2rem;
}
.field { margin: 0 0 0.9rem; }
.field label {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 0.3rem;
}
.field .optional {
  letter-spacing: 0.06em;
  text-transform: none;
  font-family: "Source Serif 4", serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.field input[type="password"],
.field input[type="text"],
.field input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--ink-soft);
  padding: 0.7rem 0.75rem;
  border-radius: 0;
}
.field input[type="file"] {
  padding: 0.55rem 0.4rem;
  background: #f7efe0;
}
.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}
.desk-submit {
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--oxblood);
  border: 1px solid var(--ink);
  padding: 0.8rem 1.15rem;
  width: 100%;
  cursor: pointer;
}
.desk-submit:hover:not(:disabled) { background: var(--rust); }
.desk-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.desk-status {
  min-height: 1.4em;
  margin: 0.8rem 0 0;
  text-align: center;
  font-style: italic;
}
.desk-status.is-ok { color: var(--oxblood); }
.desk-status.is-error { color: var(--rust); }
.desk-progress {
  margin-top: 0.7rem;
  height: 4px;
  background: var(--parchment-deep);
}
.desk-progress-bar {
  height: 100%;
  width: 0;
  background: var(--oxblood);
  transition: width 0.2s ease;
}
.desk-list-title {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0 0 0.4rem;
}
.desk-list-note {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.desk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.desk-empty {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  padding: 0.6rem 0;
}
.desk-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--gold);
  padding: 0.55rem;
}
.desk-item img {
  width: 5.2rem;
  height: 6.4rem;
  object-fit: cover;
  object-position: 50% 20%;
  flex-shrink: 0;
  background: var(--parchment-deep);
  border: 1px solid var(--ink);
}
.desk-item-body { flex: 1; min-width: 0; }
.desk-item-caption {
  margin: 0 0 0.2rem;
  font-family: "Fraunces", serif;
  font-style: italic;
}
.desk-item-meta {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.desk-delete {
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oxblood);
  background: transparent;
  border: 1px solid var(--oxblood);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}
.desk-delete:hover:not(:disabled) { background: var(--oxblood); color: var(--cream); }
.desk-delete:disabled { opacity: 0.55; cursor: not-allowed; }

.places {
  text-align: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 auto 1.35rem;
  max-width: 34rem;
}

.nav a[aria-current="page"] { color: var(--oxblood); }

/* Decree of the day */
.decree {
  text-align: center;
  margin: 0 auto 0.5rem;
  padding: 0 0 2.4rem;
  max-width: 34rem;
}
.decree-scroll {
  margin: 0.9rem auto 1.1rem;
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--cream);
  border: 1px solid var(--ink);
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 0 4px var(--oxblood);
  text-align: left;
}
.decree-date {
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0 0 0.7rem;
  text-align: center;
}
.decree-text {
  margin: 0;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--ink);
}
.share-btn,
.guess-actions .desk-submit,
.booth-toolbar .desk-submit,
.booth-upload {
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  background: var(--cream);
  border: 1px solid var(--oxblood);
  padding: 0.65rem 1rem;
  cursor: pointer;
}
.share-btn:hover,
.booth-btn:hover,
.guess-choice:hover:not(:disabled) { background: var(--parchment); }
.share-btn { margin-top: 0.15rem; }

/* Feature page headings */
.feature-page { border-top: 0; margin-top: 0; padding-top: 0; }
.feature-page h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}

/* Map */
.map-frame {
  margin: 0 0 1.5rem;
  border: 1px solid var(--ink);
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 0 4px var(--oxblood);
  background: var(--cream);
  overflow: hidden;
}
.travel-map {
  height: min(70vh, 36rem);
  min-height: 18rem;
  width: 100%;
  filter: sepia(0.18) saturate(0.88) contrast(1.04);
}
.travel-map .leaflet-control-attribution {
  font-size: 0.62rem;
  background: rgba(251, 246, 234, 0.9);
}
.crown-pin { background: none !important; border: 0; }
.crown-pin-disk {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--oxblood);
  border: 2px solid var(--gold-light);
  box-shadow: 0 1px 4px rgba(43, 24, 16, 0.35);
  color: var(--gold-light);
}
.crown-pin-svg { width: 22px; height: 12px; fill: currentColor; display: block; }
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--cream);
  color: var(--ink);
  border-radius: 0;
  box-shadow: 0 0 0 1px var(--gold);
}
.leaflet-popup-content { margin: 0; }
.map-pop {
  display: block;
  width: 12.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.map-pop img {
  width: 100%;
  height: 8.5rem;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}
.map-pop-cap,
.map-pop-place {
  display: block;
  padding: 0.35rem 0.5rem 0;
  font-family: "Fraunces", serif;
  font-style: italic;
}
.map-pop-place {
  padding-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Passport */
.passport {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1.1rem 0 0;
  padding: 1rem 0.7rem 1.2rem;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(251, 246, 234, 0.9),
      rgba(251, 246, 234, 0.9) 27px,
      rgba(230, 207, 158, 0.45) 28px
    );
  border: 1px solid var(--ink);
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 0 4px var(--oxblood);
  min-height: 16rem;
}
.stamp {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.2rem;
  cursor: pointer;
}
.stamp-svg { width: 100%; height: auto; display: block; }
.stamp:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Guess */
.scoreboard {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.scoreboard strong { color: var(--oxblood); font-weight: 700; }
.guess-photo {
  margin: 0 auto 1rem;
  max-width: 22rem;
  background: var(--cream);
  border: 1px solid var(--ink);
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 0 4px var(--oxblood);
}
.guess-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 18%;
}
.guess-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin: 0 auto 0.8rem;
  max-width: 22rem;
}
.guess-choice {
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}
.guess-choice.is-right { background: #e7efd8; border-color: #1e4d3a; }
.guess-choice.is-wrong { background: #f3ddd6; border-color: var(--oxblood); }
.guess-choice:disabled { cursor: default; }
.guess-result {
  text-align: center;
  min-height: 1.4em;
  font-family: "Fraunces", serif;
  font-style: italic;
  margin: 0 0 0.8rem;
}
.guess-result.is-ok { color: #1e4d3a; }
.guess-result.is-no { color: var(--oxblood); }
.guess-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* Booth */
.booth-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 0.8rem;
}
.booth-upload { display: inline-block; }
.booth-btn {
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  min-width: 2.4rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
}
.booth-stage {
  margin: 0 auto;
  max-width: 32rem;
  background: var(--cream);
  border: 1px solid var(--ink);
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 0 4px var(--oxblood);
  overflow: hidden;
  touch-action: none;
}
#booth-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: grab;
  touch-action: none;
}
#booth-canvas:active { cursor: grabbing; }
.booth-hint,
.booth-privacy {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0.7rem 0 0;
}
.booth-privacy { font-size: 0.88rem; max-width: 32rem; margin-left: auto; margin-right: auto; }

/* Shop teaser */
.shop-teaser { text-align: center; }
.merch-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin: 1.1rem auto 0.9rem;
  max-width: 34rem;
}
.merch-card {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--ink);
  padding: 0.45rem 0.45rem 0.6rem;
}
.merch-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--parchment);
}
.merch-card figcaption {
  margin-top: 0.4rem;
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.shop-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 auto;
  max-width: 30rem;
}

.lightbox-extra {
  display: block;
  margin-top: 0.2rem;
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.lightbox-extra:empty { display: none; }

.travel-links {
  text-align: center;
  margin: 0 auto 1.2rem;
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.travel-links a { color: var(--oxblood); text-decoration: none; }
.travel-links a:hover { color: var(--rust); }

@media (min-width: 720px) {
  .passport { grid-template-columns: repeat(3, 1fr); padding: 1.3rem; }
  .guess-choices { grid-template-columns: 1fr 1fr; }
  .merch-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .masthead {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
  }
  .nav {
    justify-content: center;
    gap: 0.4rem 0.8rem;
  }
}
