:root {
  --navy: #0f1b37;
  --deep-blue: #1b2b55;
  --cream: #f6efe6;
  --gold: #c6a25f;
  --accent: #cf5a5a;
  --lilac: #c9beda;
  --text: rgba(15, 27, 55, 0.86);
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--navy);
  color: var(--cream);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}

[hidden] {
  display: none !important;
}

body.star-sky::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), radial-gradient(rgba(198, 162, 95, 0.1) 1px, transparent 1px);
  background-size: 120px 120px, 180px 180px;
  background-position: 0 0, 60px 90px;
  pointer-events: none;
  opacity: 0.6;
  z-index: -2;
}

body.star-sky::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(246, 239, 230, 0.12), transparent 55%), linear-gradient(180deg, rgba(15, 27, 55, 0.4), rgba(15, 27, 55, 0.9));
  pointer-events: none;
  z-index: -1;
}

main {
  display: block;
}

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

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

a:hover,
a:focus-visible {
  color: var(--gold);
}

p {
  margin: 0 0 1rem;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  color: var(--deep-blue);
  margin: 0 0 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
  letter-spacing: 0.02em;
}

.section-lead {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: inherit;
}

.section-subtitle {
  font-size: 1.5rem;
  color: inherit;
}

.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
}

.section--light {
  background: rgba(246, 239, 230, 0.94);
  color: var(--text);
}

.section--light h1,
.section--light h2,
.section--light h3,
.section--light p,
.section--light li,
.section--light .section-lead {
  color: var(--text);
}

.section--dark {
  background: rgba(15, 27, 55, 0.92);
  color: var(--cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark p,
.section--dark li,
.section--dark .section-lead {
  color: var(--cream);
}

.section--dark .panel,
.section--dark .card,
.section--dark .gallery-item {
  background: rgba(246, 239, 230, 0.96);
  color: var(--text);
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.split {
  display: grid;
  gap: clamp(2rem, 3vw, 3rem);
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.panel {
  background: rgba(246, 239, 230, 0.95);
  border-radius: 1.25rem;
  padding: clamp(1.8rem, 3vw, 2.5rem);
  box-shadow: 0 30px 60px -35px rgba(15, 27, 55, 0.7), 0 10px 25px -15px rgba(15, 27, 55, 0.5);
  border: 1px solid rgba(198, 162, 95, 0.25);
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(198, 162, 95, 0.3);
  pointer-events: none;
}

.event-panel {
  display: grid;
  gap: 1rem;
  text-align: center;
  justify-items: center;
}

.event-panel .cta-group {
  justify-content: center;
}

.panel--book {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lore-layout {
  display: grid;
  gap: clamp(1.5rem, 2.8vw, 2.2rem);
}

.lore-overview {
  position: relative;
}

.lore-list {
  display: grid;
  gap: clamp(1.25rem, 2.2vw, 1.75rem);
}

.lore-item {
  padding: 0;
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.lore-item--prolog .lore-preview {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: rgba(15, 27, 55, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}

.lore-item--prolog .lore-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(246, 239, 230, 0), rgba(246, 239, 230, 0.95));
}

.lore-item--prolog.is-open .lore-preview {
  display: none;
}

.lore-item.is-open {
  box-shadow: 0 35px 70px -45px rgba(15, 27, 55, 0.8), 0 16px 35px -28px rgba(15, 27, 55, 0.6);
}

.lore-item::before {
  transition: opacity 220ms ease;
}

.lore-trigger {
  display: grid;
  gap: 0.3rem;
  padding: clamp(1.15rem, 2.3vw, 1.5rem);
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.lore-trigger:hover,
.lore-trigger:focus-visible {
  background: rgba(198, 162, 95, 0.08);
}

.lore-trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.lore-trigger-label {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(27, 43, 85, 0.65);
}

.lore-trigger-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem);
  color: var(--deep-blue);
}

.lore-trigger-icon {
  justify-self: end;
  font-size: 1.4rem;
  transition: transform 240ms ease;
  color: rgba(198, 162, 95, 0.8);
}

.lore-item.is-open .lore-trigger-icon {
  transform: rotate(180deg);
}

.lore-panel {
  padding: 0 clamp(1.35rem, 2.5vw, 1.75rem);
  padding-bottom: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease, padding-top 320ms ease, padding-bottom 320ms ease, opacity 320ms ease;
  opacity: 0;
}

.lore-panel__content {
  display: grid;
  gap: 0.85rem;
}

.lore-panel__subhead {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.35rem;
  color: var(--deep-blue);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.lore-item--prolog .lore-panel__subhead {
  color: rgba(15, 27, 55, 0.86);
}

.lore-panel p:last-child {
  margin-bottom: 0;
}

.lore-item.is-open .lore-panel {
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  padding-top: 0.25rem;
  opacity: 1;
}

.book-card {
  position: relative;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, rgba(246, 239, 230, 0.96), rgba(201, 190, 218, 0.4));
  box-shadow: inset 0 0 0 1px rgba(198, 162, 95, 0.35), 0 18px 40px -25px rgba(15, 27, 55, 0.6);
}

.book-content {
  position: relative;
  z-index: 1;
}

.book-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.book-content p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(15, 27, 55, 0.85);
  border-bottom: 1px solid rgba(198, 162, 95, 0.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
}

.site-nav {
  display: none;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 239, 230, 0.78);
  padding: 0.25rem 0;
  display: inline-flex;
  align-items: center;
}

.site-nav a.active {
  color: var(--gold);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(198, 162, 95, 0.35);
  background: rgba(15, 27, 55, 0.6);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: box-shadow 180ms ease, border 180ms ease;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--cream);
}

.nav-toggle[aria-expanded="true"] {
  box-shadow: 0 0 0 2px rgba(198, 162, 95, 0.4);
}

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

@media (min-width: 940px) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    display: block;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 1.5rem;
  }
}

.site-nav.open {
  display: block;
  position: absolute;
  inset: 100% 1rem auto;
  padding: 1rem 1.5rem;
  background: rgba(15, 27, 55, 0.95);
  border-radius: 1rem;
  border: 1px solid rgba(198, 162, 95, 0.35);
  box-shadow: 0 25px 40px -30px rgba(15, 27, 55, 0.75);
}

@media (min-width: 940px) {
  .site-nav.open {
    position: static;
    inset: auto;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }
}

.hero {
  overflow: hidden;
  color: var(--cream);
}

.hero .container {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.hero-arch {
  width: min(1200px, 96%);
  height: min(88vh, 680px);
  border-radius: 50% 50% 0 0 / 72% 72% 0 0;
  background:
    radial-gradient(circle at top center, rgba(246, 239, 230, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(27, 43, 85, 0.92), rgba(15, 27, 55, 0.98));
  border: 1px solid rgba(198, 162, 95, 0.35);
  position: absolute;
  top: 4%;
  box-shadow: 0 45px 120px -65px rgba(0, 0, 0, 0.85), inset 0 40px 80px rgba(201, 190, 218, 0.04);
}

.hero-arch::before {
  content: "";
  position: absolute;
  inset: 2% 8% auto 8%;
  height: 60%;
  border-radius: 50% 50% 0 0 / 85% 85% 0 0;
  border: 1px solid rgba(201, 190, 218, 0.16);
  background: radial-gradient(circle at top, rgba(246, 239, 230, 0.12), transparent 70%);
}

.hero-arch::after {
  content: "";
  position: absolute;
  inset: auto 18% -6% 18%;
  height: clamp(55px, 10vh, 90px);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    linear-gradient(180deg, rgba(246, 239, 230, 0.12), rgba(246, 239, 230, 0)),
    radial-gradient(circle at 50% -30%, rgba(198, 162, 95, 0.35), transparent 70%);
  border: 1px solid rgba(198, 162, 95, 0.25);
  box-shadow: 0 35px 75px -55px rgba(0, 0, 0, 0.85);
}

.hero-ornament { 
  width: clamp(120px, 12vw, 180px);
  opacity: 0.4;
  filter: drop-shadow(0 12px 20px rgba(12, 18, 30, 0.6));
  transition: transform 600ms ease, opacity 420ms ease;
}

.hero-ornament[data-hero-badge].is-fading {
  opacity: 0;
}

.hero-badge-controls {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 5vh, 48px);
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 2;
}

.hero-badge-control {
  border: none;
  background: rgba(198, 162, 95, 0.18);
  color: var(--deep-blue);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.35rem;
  transition: background 200ms ease, transform 200ms ease, opacity 200ms ease;
}

.hero-badge-control:hover,
.hero-badge-control:focus-visible {
  background: rgba(198, 162, 95, 0.32);
  transform: translateY(-2px);
  color: var(--navy);
}

.hero-badge-control:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hero-badge-control[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.hero-ornament--left {
  position: absolute;
  left: 5%;
  top: 10%;
}

.hero-ornament--right {
  position: absolute;
  right: 5%;
  bottom: 5%;
  transform: scaleX(-1);
}

.hero-text {
  position: relative;
  z-index: 1;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 1.5rem;
  background: rgba(246, 239, 230, 0.08);
  border: 1px solid rgba(198, 162, 95, 0.2);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.8);
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  color: var(--cream);
}

.hero-subtitle {
  color: rgba(246, 239, 230, 0.9);
  font-size: 1.2rem;
}

.hero-intro {
  color: rgba(246, 239, 230, 0.86);
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-figure {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
}

.figure-frame {
  border-radius: 2.5rem;
  padding: 0.8rem;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  position: relative;
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: inherit;
  border: 1px solid rgba(246, 239, 230, 0.25);
  pointer-events: none;
}

.figure-image {
  border-radius: 2rem;
  background: rgba(15, 27, 55, 0.7);
  padding: 1.5rem;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: transform 220ms ease, box-shadow 220ms ease, color 220ms ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(198, 162, 95, 0.95), rgba(235, 204, 139, 0.9));
  color: var(--navy);
  box-shadow: 0 12px 24px -18px rgba(198, 162, 95, 0.8);
}

.btn-secondary {
  background: rgba(246, 239, 230, 0.1);
  border: 1px solid rgba(198, 162, 95, 0.45);
  color: var(--cream);
}

.btn-tertiary {
  background: rgba(27, 43, 85, 0.6);
  border: 1px solid rgba(198, 162, 95, 0.4);
  color: var(--cream);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -18px rgba(198, 162, 95, 0.8);
  color: var(--navy);
}

.btn-tertiary:hover,
.btn-tertiary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--gold);
  box-shadow: 0 12px 24px -18px rgba(198, 162, 95, 0.55);
}

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

.halloween-highlight {
  background: radial-gradient(circle at top left, rgba(207, 90, 90, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(20, 24, 52, 0.94), rgba(47, 26, 63, 0.92));
  color: var(--cream);
  overflow: hidden;
}

.halloween-highlight .section-title,
.halloween-highlight .section-lead,
.halloween-highlight p,
.halloween-highlight li {
  color: rgba(246, 239, 230, 0.92);
}

.halloween-highlight__container {
  position: relative;
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  isolation: isolate;
}

@media (min-width: 920px) {
  .halloween-highlight__container {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  }
}

.halloween-highlight__content {
  max-width: 640px;
}

.halloween-highlight__list {
  margin: 0 0 1.75rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.halloween-highlight__list li {
  margin-bottom: 0.35rem;
}

.halloween-highlight__actions .btn {
  min-width: 220px;
}

.halloween-highlight__visual {
  position: relative;
  display: grid;
  place-items: center;
}

.halloween-highlight__halo {
  width: clamp(220px, 28vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 162, 95, 0.4), transparent 70%);
  filter: blur(0.5px);
}

.halloween-highlight__ghost {
  position: absolute;
  width: clamp(160px, 22vw, 260px);
  top: 4%;
  left: 50%;
  transform: translate(-50%, -8%) rotate(-2deg);
  opacity: 0.92;
}

.halloween-highlight__pumpkin {
  position: absolute;
  width: clamp(120px, 18vw, 180px);
  bottom: -6%;
  right: 8%;
  transform: rotate(6deg);
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.45));
}

@media (max-width: 640px) {
  .halloween-highlight__visual {
    min-height: 260px;
  }
}

.event-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.event-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 32, 0.78);
  backdrop-filter: blur(6px);
}

.event-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  background: linear-gradient(135deg, rgba(22, 24, 52, 0.96), rgba(48, 30, 68, 0.94));
  border-radius: 1.5rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid rgba(198, 162, 95, 0.45);
  box-shadow: 0 32px 70px -24px rgba(0, 0, 0, 0.65);
  color: rgba(246, 239, 230, 0.95);
}

.event-modal__dialog h2 {
  color: rgba(246, 239, 230, 0.98);
}

.event-modal__dialog p {
  color: rgba(246, 239, 230, 0.88);
}

.event-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: rgba(246, 239, 230, 0.85);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 200ms ease, transform 200ms ease;
}

.event-modal__close:hover,
.event-modal__close:focus-visible {
  color: var(--gold);
  transform: scale(1.05);
}

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

.event-modal__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(198, 162, 95, 0.85);
  margin-bottom: 0.75rem;
}

.event-modal__actions {
  margin-top: 1.75rem;
}

.event-modal__actions .btn {
  width: 100%;
}

@media (min-width: 540px) {
  .event-modal__actions .btn {
    width: auto;
    min-width: 220px;
  }
}

.frame {
  background: rgba(15, 27, 55, 0.9);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(198, 162, 95, 0.3);
  box-shadow: 0 25px 50px -35px rgba(0, 0, 0, 0.75);
}

.aspect-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

.aspect-video iframe,
.aspect-video > .embed-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.twitch-status {
  background: linear-gradient(135deg, rgba(15, 27, 55, 0.92), rgba(27, 43, 85, 0.88));
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(198, 162, 95, 0.35);
  display: grid;
  gap: 0.65rem;
  justify-items: stretch;
  color: rgba(246, 239, 230, 0.92);
  width: min(100%, 24rem);
  margin: 1.5rem auto 0;
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.65);
  text-align: left;
}

.twitch-status__title {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(246, 239, 230, 0.76);
  margin: 0;
}

.twitch-status__text {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(246, 239, 230, 0.85);
}

.twitch-status .btn {
  width: 100%;
}

.twitch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.twitch-actions .btn {
  flex: 1 1 220px;
}

.social-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.social-links::-webkit-scrollbar {
  display: none;
}

.social-links .btn {
  flex: 0 0 auto;
  min-width: 160px;
  scroll-snap-align: start;
}

.btn-social {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 32px -22px rgba(15, 27, 55, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn-social:hover,
.btn-social:focus-visible {
  color: #fff;
  box-shadow: 0 20px 36px -20px rgba(15, 27, 55, 0.85);
}

.btn-discord,
.social-widget--discord {
  background: linear-gradient(135deg, #5865f2, #4d57d9);
}

.btn-youtube,
.social-widget--youtube {
  background: linear-gradient(135deg, #ff3d3d, #c60000);
}

.btn-instagram,
.social-widget--instagram {
  background: linear-gradient(135deg, #f58529, #f77737 25%, #d62976 55%, #962fbf 75%, #4f5bd5);
}

.btn-tiktok,
.social-widget--tiktok {
  background: linear-gradient(135deg, #111111, #ff0050 55%, #00a8c5);
}

.btn-twitter,
.social-widget--twitter {
  background: linear-gradient(135deg, #1d9bf0, #1474b8);
}

.social-widget--throne {
  background: linear-gradient(135deg, #4f3fb6, #8f79ff 60%, #dac9ff);
}

.btn-website,
.social-widget--website {
  background: linear-gradient(135deg, rgba(15, 27, 55, 0.95), rgba(27, 43, 85, 0.9));
}

.social-widget--kofi {
  background: linear-gradient(135deg, #ff5e5b, #ff3b74 55%, #ff8a5c);
}


.social-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

@media (min-width: 1200px) {
  .social-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.social-widget {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 1.35rem 1.25rem;
  border-radius: 1.2rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 16px 36px -30px rgba(15, 27, 55, 0.85);
  position: relative;
  isolation: isolate;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-widget::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  mix-blend-mode: screen;
}

.social-widget:hover,
.social-widget:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px -26px rgba(15, 27, 55, 0.88);
}

.social-widget:focus-visible {
  outline: 2px solid rgba(246, 239, 230, 0.75);
  outline-offset: 3px;
}

.social-widget__title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.social-widget__description {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.88;
}

.card {
  background: rgba(246, 239, 230, 0.98);
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 260px;
  border: 1px solid rgba(198, 162, 95, 0.35);
  box-shadow: 0 18px 45px -30px rgba(15, 27, 55, 0.7);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(198, 162, 95, 0.3);
  pointer-events: none;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-title {
  font-size: 1.25rem;
  color: var(--deep-blue);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}

.card-body .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.card--loaded .card-body {
  gap: 0;
}

.gallery-categories {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.gallery-category {
  display: grid;
  gap: 1.5rem;
}

.gallery-category__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.gallery-category__title {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  margin: 0;
}

.gallery-category__hint {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 27, 55, 0.6);
}

.gallery-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.gallery-carousel--nav-hidden {
  grid-template-columns: 1fr;
}

.gallery-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(140px, 18vw, 200px);
  gap: 0.75rem;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 0.35rem 0.25rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-carousel__track::-webkit-scrollbar {
  display: none;
}

.gallery-carousel__nav {
  border: none;
  background: rgba(198, 162, 95, 0.18);
  color: var(--deep-blue);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease, opacity 200ms ease;
  opacity: 1;
  visibility: visible;
}

.gallery-carousel--nav-hidden .gallery-carousel__nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
}

.gallery-carousel__nav:hover,
.gallery-carousel__nav:focus-visible {
  background: rgba(198, 162, 95, 0.32);
  transform: translateY(-2px);
  color: var(--navy);
}

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

.gallery-carousel__nav[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.gallery-carousel--compact .gallery-carousel__track {
  grid-auto-columns: clamp(120px, 16vw, 160px);
}

.gallery-carousel--artworks .gallery-carousel__track {
  grid-auto-columns: clamp(200px, 24vw, 320px);
}

.gallery-item {
  background: rgba(246, 239, 230, 0.98);
  border-radius: 1.5rem;
  border: 1px solid rgba(198, 162, 95, 0.3);
  box-shadow: 0 18px 45px -30px rgba(15, 27, 55, 0.7);
  overflow: hidden;
  position: relative;
  padding: 0;
  cursor: pointer;
  display: block;
  text-align: left;
  transition: transform 220ms ease, box-shadow 220ms ease;
  scroll-snap-align: start;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 420ms ease;
}

.gallery-item__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.65rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(15, 27, 55, 0.92));
  color: var(--cream);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(9, 12, 24, 0.75);
  backdrop-filter: blur(10px);
  z-index: 90;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox__overlay {
  position: absolute;
  inset: 0;
}

.gallery-lightbox__dialog {
  position: relative;
  max-width: min(960px, 90vw);
  width: 100%;
  background: rgba(15, 27, 55, 0.96);
  border-radius: 1.75rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: auto;
  gap: 1.25rem;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(198, 162, 95, 0.35);
}

.gallery-lightbox__figure {
  margin: 0;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.gallery-lightbox__figure img {
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  box-shadow: 0 25px 60px -35px rgba(0, 0, 0, 0.9);
}

.gallery-lightbox__figure figcaption {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}

.gallery-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(198, 162, 95, 0.16);
  color: var(--cream);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 1.25rem;
  cursor: pointer;
}

.gallery-lightbox__nav {
  border: none;
  background: rgba(198, 162, 95, 0.16);
  color: var(--cream);
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  justify-self: center;
}

@media (min-width: 768px) {
  .gallery-lightbox__dialog {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .gallery-lightbox__figure {
    grid-column: 2;
  }

  .gallery-lightbox__nav {
    align-self: center;
  }
}

.gallery-lightbox__nav:focus-visible,
.gallery-lightbox__close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.gallery-lightbox__nav[aria-disabled='true'] {
  opacity: 0.35;
  cursor: not-allowed;
}

body.modal-open {
  overflow: hidden;
}

.contact-grid {
  display: grid;
  gap: clamp(2rem, 3vw, 3rem);
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.contact-card {
  display: grid;
  gap: 1.25rem;
}

.contact-card__title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  color: var(--deep-blue);
  margin: 0;
}

.contact-card p {
  color: rgba(15, 27, 55, 0.78);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.legal-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.legal-section {
  text-align: left;
}

.legal-content {
  display: grid;
  gap: 1.25rem;
  max-width: 640px;
}

@media (min-width: 640px) {
  .legal-content {
    gap: 1.5rem;
  }
}

.legal-address {
  font-style: normal;
  line-height: 1.8;
}

.site-footer {
  background: rgba(10, 16, 30, 0.9);
  padding: 3rem 0;
  color: rgba(246, 239, 230, 0.8);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.5rem;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.footer-links {
  display: inline-flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-copy {
  margin: 0;
  color: rgba(246, 239, 230, 0.6);
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(198, 162, 95, 0.45);
  background: rgba(15, 27, 55, 0.85);
  color: var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 15px 35px -25px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 20;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.skip-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -40px;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: 999px;
  transition: top 160ms ease;
  z-index: 50;
}

.skip-link:focus {
  top: 10px;
}

[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-animate] {
    opacity: 1;
    transform: none;
  }
  .lore-item,
  .lore-panel,
  .lore-trigger-icon {
    transition-duration: 0.001ms !important;
  }
}

.card .embed-content {
  color: var(--text);
}

.card .embed-content a {
  color: var(--deep-blue);
}

.card .embed-content blockquote {
  margin: 0;
}

.card .embed-content iframe {
  border-radius: 1rem;
}

.star-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 162, 95, 0.6), transparent);
  margin-bottom: 1.5rem;
}

.seo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive overrides */
@media (max-width: 599px) {
  .section {
    padding: 3.5rem 0;
  }
  .hero-title {
    font-size: clamp(3rem, 12vw, 4rem);
  }
  .hero-figure {
    order: -1;
  }
  .hero-text {
    padding: 1.25rem;
  }
}

/* Hover glints */
.btn-primary::after,
.btn-secondary::after,
.btn-tertiary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.btn:hover::after,
.btn:focus-visible::after {
  opacity: 1;
}

.btn {
  position: relative;
  overflow: hidden;
}

/* Parallax hero ornaments */
.hero[data-parallax-active="true"] .hero-ornament {
  will-change: transform;
}

.hero-figure[data-parallax] {
  will-change: transform;
}

/* Offline message styling */
.offline-message {
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(207, 90, 90, 0.12);
  border: 1px solid rgba(207, 90, 90, 0.3);
  border-radius: 1rem;
  color: rgba(15, 27, 55, 0.75);
  display: inline-flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 939px) {
  .site-nav.open {
    display: block;
  }
}

