/* License forbids altering or converting the file, so it ships as the raw OTF. */
@font-face {
  font-family: 'JHC Audemars';
  src: url('/fonts/JHCAudemars-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #121010;
  --bg-elev: #1c1717;
  --surface-line: #352a2a;
  --surface-line-soft: #291f1f;

  --text: #ece7e0;
  --text-muted: #b3a8a2;
  --text-faint: #877c78;

  --accent: #b3312b;
  --accent-strong: #e0655a;
  --accent-bright: #f2938a;
  --accent-dim: #6e211d;
  --accent-glow: #b3312b26;

  --nft: #c9c9cc;
  --nft-bg: #26262a;
  --danger: #e2705c;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 14px 34px -18px #000000cc;
  --content-width: 66rem;
  --header-height: 4.5rem;
  --backdrop-opacity: 0.14;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'JHC Audemars', 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 55% at 50% -8%, #241413 0%, rgba(36, 20, 19, 0) 60%),
    radial-gradient(90% 40% at 50% 0%, var(--accent-glow) 0%, rgba(179, 49, 43, 0) 55%);
  background-attachment: fixed;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { color: var(--accent-bright); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

[id] { scroll-margin-top: var(--header-height); }

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

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--text);
  letter-spacing: 0.01em;
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-synthesis: none;
}
h3, h4 { font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 0 0 0.6em; text-transform: uppercase; letter-spacing: 0.03em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.2rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, #1a1414f2, #1a1414e0);
  border-bottom: 1px solid var(--surface-line);
  backdrop-filter: blur(6px);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background:
    repeating-radial-gradient(circle at 6px 50%, var(--accent) 0 1.4px, rgba(179, 49, 43, 0) 1.5px 12px),
    linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-dim));
  opacity: 0.85;
}

.site-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  font-synthesis: none;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: auto;
}
.site-name:hover { color: var(--accent-strong); text-decoration: none; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}
.site-nav a {
  color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover {
  color: var(--accent-strong);
  background: var(--accent-glow);
  text-decoration: none;
}

.nav-dropdown { position: relative; }
.nav-dropdown > a { display: block; }
.nav-caret { font-size: 0.7em; margin-left: 0.35em; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: max-content;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem;
  background: linear-gradient(180deg, #1a1414fa, #1a1414f0);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }

.nav-toggle {
  display: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent-dim); color: var(--accent-strong); }

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 3.5rem;
}
main.wide { max-width: none; }

body.has-backdrop { isolation: isolate; }
body.has-backdrop::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--backdrop) center / cover no-repeat;
  opacity: var(--backdrop-opacity);
}

body.fill-viewport {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
body.fill-viewport .site-header,
body.fill-viewport .site-footer { flex-shrink: 0; }
body.fill-viewport main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  padding-bottom: clamp(1rem, 3vw, 1.75rem);
}
body.fill-viewport main > :not(.table-wrap) { flex-shrink: 0; }
body.fill-viewport .table-wrap { flex: 0 1 auto; min-height: 6rem; }

.site-footer {
  flex-shrink: 0;
  display: flex;
  gap: 1rem;
  color: var(--text-faint);
  font-size: 0.9rem;
  padding: 2.25rem;
  border-top: 1px solid var(--surface-line-soft);
}
.site-footer .updated { margin-left: auto; white-space: nowrap; }

.prose { max-width: 42rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin: 0.3em 0; }
.prose strong { color: var(--accent-strong); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

.page-intro { max-width: none; }
.page-intro p, .page-intro li { color: var(--text-muted); font-size: 0.95rem; }

.columns { column-gap: 2.5rem; }
.columns > :first-child { margin-top: 0; }
.columns li { break-inside: avoid; }
@media (min-width: 44rem) { .columns { column-count: 2; } }
@media (min-width: 62rem) { .columns { column-count: 3; } }

.hero-body { max-width: 46rem; font-size: 1.08rem; }
.hero-body p:first-child { margin-top: 0; }
.hero-body strong { color: var(--accent-strong); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin: 1.75rem 0 0;
}
.stat { display: flex; flex-direction: column; }
.stat dt {
  order: 2;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-faint);
}
.stat dd {
  order: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
}

.card {
  padding: 1.15rem 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.error { color: var(--danger); font-size: 0.9rem; }

.badge-nft {
  display: block;
  width: fit-content;
  margin-top: 0.35rem;
  padding: 0.14em 0.6em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nft);
  background: var(--nft-bg);
  border: 1px solid #4a4a52;
  border-radius: 999px;
}

.rec {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--surface-line-soft);
}
.rec:last-child { border-bottom: 0; }
.show-title {
  width: fit-content;
  font-size: 1.5rem;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid var(--accent);
  margin: 0 0 0.35rem;
}
.rec + .show-title { margin-top: 2rem; }
.tour-title { margin: 0 0 0.25rem; }
.rec + .tour-title { margin-top: 2rem; }
.date { color: var(--accent-strong); font-size: 0.9rem; font-weight: 600; }
.meta { color: var(--text-muted); font-size: 0.9rem; }
h1 .meta { white-space: nowrap; }
.cast { color: var(--text-muted); font-size: 0.9rem; margin: 0.3rem 0 0; }
.notes { white-space: pre-line; color: var(--text-muted); font-size: 0.95rem; margin-top: 1em; }

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
}
.controls label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.controls input[type="text"],
.controls input[type="search"],
.controls select {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  min-width: 0;
}
.controls input[type="search"], .controls input[type="text"] { flex: 1 1 12rem; }
.no-js #list-controls { display: none; }
.controls select { cursor: pointer; }
.controls input::placeholder { color: var(--text-faint); }
.controls input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.controls button {
  font: inherit;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
.controls button:hover { border-color: var(--accent-dim); color: var(--accent-strong); }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.table-wrap table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.92rem; }
.table-wrap th, .table-wrap td {
  padding: 0.6rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--surface-line-soft);
  white-space: nowrap;
}
.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg-elev);
  color: var(--accent-strong);
  font-weight: 600;
}
.js .table-wrap thead th[data-col] { cursor: pointer; }
.js .table-wrap thead th[data-col]:hover { color: var(--accent-strong); }
.table-wrap thead th[aria-sort]::after { margin-left: 0.4em; font-size: 0.85em; }
.table-wrap thead th[aria-sort="ascending"]::after { content: "\2191" / ""; }
.table-wrap thead th[aria-sort="descending"]::after { content: "\2193" / ""; }
.table-wrap tbody tr:hover td { background: #201717; }
.js .table-wrap tbody tr[data-id] { cursor: pointer; }
.table-wrap tbody tr[data-id]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.table-wrap tbody tr[aria-expanded="true"] td { background: #241a1a; }
.table-wrap tr.detail-row td,
.table-wrap tbody tr.detail-row:hover td { white-space: normal; background: var(--bg-elev); }
.detail { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.2rem 0; }
.detail-field { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; }
.detail-label {
  flex: 0 0 8rem;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.85rem;
}
.detail-value { flex: 1 1 16rem; color: var(--text-muted); white-space: pre-line; }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 2.25rem 0 0;
}
.pager a, .pager span {
  min-width: 2.4rem;
  padding: 0.4rem 0.7rem;
  text-align: center;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: var(--bg-elev);
}
.pager a:hover { border-color: var(--accent-dim); color: var(--accent-strong); text-decoration: none; }
.pager .is-current { color: #f5efe9; background: var(--accent); border-color: var(--accent); font-weight: 600; }
.pager .is-disabled { opacity: 0.4; pointer-events: none; }

.notfound { text-align: center; padding: 3rem 0; }
.notfound .code {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4rem, 18vw, 8rem);
  line-height: 1;
  color: var(--accent);
  margin: 0;
}
.notfound p { color: var(--text-muted); margin: 0.75rem 0 1.75rem; }

.button {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  color: #f5efe9;
  background: var(--accent);
  border-radius: 999px;
  border: 1px solid var(--accent);
}
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #f5efe9; text-decoration: none; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .js .nav-toggle { display: inline-block; order: 3; margin-left: auto; }
  .site-name { margin-right: 0; }
  .site-nav {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .site-nav a { padding: 0.55rem 0.7rem; }
  .nav-caret { display: none; }
  .nav-dropdown-menu {
    display: flex;
    position: static;
    padding: 0 0 0 1.25rem;
    background: none;
    border: none;
  }
  .js .site-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .js .site-nav.is-open { max-height: 30rem; padding-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .site-nav { transition: none; }
}
