:root {
  --bg-0: #0b0c0e;
  --bg-1: #15171a;
  --stone-0: #2a2d30;
  --stone-1: #4a4e51;
  --stone-2: #8a8d86;
  --moss-0: #2e3b22;
  --moss-1: #556b2f;
  --gold: #f2d7a0;
  --torch: #ffb547;
  --ember: #ff7a2f;
  --burnt: #d65a1f;
  --ink: #e9e4d6;
  --muted: #b9b1a0;
  --panel: rgba(20, 22, 25, 0.78);
  --parchment: rgba(242, 215, 160, 0.08);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --glow: 0 0 26px rgba(255, 181, 71, 0.28);
  --iron-border: 1px solid rgba(242, 215, 160, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top, rgba(255, 181, 71, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 55%, #0c0d10 100%);
  min-height: 100vh;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(86, 107, 47, 0.12), transparent 55%),
    radial-gradient(circle at 70% 0%, rgba(255, 122, 47, 0.12), transparent 40%);
  background-size: 4px 4px, 100% 100%, 100% 100%;
  pointer-events: none;
  z-index: -1;
}

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: #1b140d;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: #0a0b0d;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 55%, rgba(8, 9, 11, 0.6) 100%);
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100vh;
  max-height: 100svh;
  max-height: 100dvh;
  object-fit: contain;
  object-position: center;
}

.hero__content {
  text-align: center;
}

.hero__callout {
  max-width: 680px;
  padding: 2.5rem 2rem;
  background: rgba(12, 13, 16, 0.78);
  border: var(--iron-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.hero__callout h1 {
  margin: 0 0 0.75rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__tagline {
  margin: 0;
  color: var(--muted);
}

.hero__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 13, 16, 0.92);
  border-bottom: 1px solid rgba(242, 215, 160, 0.12);
  backdrop-filter: blur(10px);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: var(--iron-border);
  color: var(--gold);
  padding: 0.6rem 0.65rem;
  border-radius: 12px;
  min-height: 44px;
  min-width: 44px;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  margin: 4px 0;
  transition: transform 0.3s ease;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  padding: 0.6rem 0.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

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

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section--panel {
  background: linear-gradient(180deg, rgba(20, 22, 25, 0.6), rgba(12, 14, 16, 0.65));
  border-top: 1px solid rgba(242, 215, 160, 0.08);
  border-bottom: 1px solid rgba(242, 215, 160, 0.08);
}

.section__header {
  max-width: 650px;
  margin-bottom: 2rem;
}

.section__header h1,
.section__header h2 {
  margin: 0 0 0.75rem;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.section__header p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.panel,
.card,
.tile,
.service,
.countdown {
  position: relative;
  background: linear-gradient(160deg, rgba(36, 39, 43, 0.95), rgba(15, 17, 20, 0.95));
  border: var(--iron-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel::before,
.card::before,
.tile::before,
.service::before,
.countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(86, 107, 47, 0.16), transparent 45%),
    radial-gradient(circle at top right, rgba(255, 181, 71, 0.08), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.panel > *,
.card > *,
.tile > *,
.service > *,
.countdown > * {
  position: relative;
  z-index: 1;
}

.panel--compact {
  margin-top: 2rem;
}

.card-grid,
.tile-grid,
.service-grid,
.location-grid {
  display: grid;
  gap: 1.5rem;
}

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

.tile-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-grid {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.location-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card h3,
.tile h3 {
  margin-top: 0;
  color: var(--gold);
}

.role {
  color: var(--muted);
  margin-top: -0.25rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tags span {
  border: 1px solid rgba(242, 215, 160, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
}

.artist-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.artist-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.artist-card-portrait-frame,
.portrait-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(242, 215, 160, 0.18);
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(86, 107, 47, 0.2), transparent 65%),
    linear-gradient(180deg, rgba(20, 22, 25, 0.8), rgba(12, 14, 16, 0.9));
}

.artist-card__portrait,
.artist-card-portrait,
.artist-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-card__content {
  display: grid;
  gap: 0.35rem;
}

.artist-handle,
#artist-handle {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

#artist-role {
  color: var(--gold);
  font-weight: 600;
}

#artist-styles {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
}

#artist-styles li {
  border: 1px solid rgba(242, 215, 160, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
}

.artist-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.artist-profile {
  display: grid;
  gap: 2rem;
  align-items: start;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
}

.artist-bio {
  grid-column: 1 / -1;
}

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

.tome-shell {
  border: var(--iron-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(20, 22, 25, 0.7), rgba(12, 14, 16, 0.8));
  box-shadow: var(--shadow);
}

.tome-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#tome-page-indicator {
  color: var(--muted);
  font-weight: 600;
}

.tome-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.tome-spread {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tome-page {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(242, 215, 160, 0.12);
  background: rgba(12, 14, 16, 0.6);
}

.tome-slot {
  min-height: 140px;
  border-radius: calc(var(--radius) - 8px);
  border: 1px dashed rgba(242, 215, 160, 0.24);
  background: rgba(20, 22, 25, 0.5);
}

.service {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  color: var(--ink);
}

.service__icon {
  color: var(--gold);
  font-size: 1.2rem;
}

.map-card__art {
  height: 180px;
  border-radius: var(--radius);
  background: linear-gradient(130deg, rgba(42, 45, 48, 0.8), rgba(21, 23, 26, 0.8));
  border: 1px solid rgba(242, 215, 160, 0.12);
  display: grid;
  place-items: center;
  color: var(--muted);
  margin-bottom: 1rem;
}

.countdown__label {
  color: var(--muted);
}

.countdown__timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: center;
}

.countdown__timer span {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
}

.countdown__timer small {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  color: #1b1208;
  background: linear-gradient(135deg, var(--torch), var(--ember));
  box-shadow: var(--glow);
  border: none;
  animation: torch-pulse 4s ease-in-out infinite;
}

.btn--ghost {
  border: var(--iron-border);
  color: var(--gold);
  background: transparent;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), var(--glow);
}

.card,
.tile,
.service {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.tile:hover,
.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), var(--glow);
}

.footer {
  padding: 4rem 1.5rem 3rem;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.9), rgba(8, 9, 11, 0.95));
  border-top: 1px solid rgba(242, 215, 160, 0.12);
}

.footer__cta {
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
}

.footer__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.section__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.detail-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.footer__fineprint {
  text-align: center;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes torch-pulse {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(255, 181, 71, 0.25);
  }
  50% {
    box-shadow: 0 0 28px rgba(255, 181, 71, 0.45);
  }
}

@media (max-width: 900px) {
  .nav-menu {
    position: absolute;
    right: 1.5rem;
    top: 100%;
    flex-direction: column;
    background: rgba(12, 13, 16, 0.95);
    border: var(--iron-border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer__actions {
    flex-direction: column;
  }

  .artist-profile {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    width: 100%;
    max-height: 420px;
  }

  .tome-spread {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3.5rem 1.25rem;
  }

  .countdown__timer {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }
}

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

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

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
