:root {
  --bg: #14181c;
  --bg-2: #1a2128;
  --panel: #1c242c;
  --ink: #f4f1ea;
  --soft: #9aa3ad;
  --line: rgba(244, 241, 234, 0.12);
  --accent: #e23b22;
  --accent-deep: #b82e1a;
  --field: #243038;
  --bs-body-font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  --bs-body-color: #f4f1ea;
  --bs-body-bg: #14181c;
  --bs-link-color: #f4f1ea;
  --bs-link-hover-color: #e23b22;
  --bs-border-color: rgba(244, 241, 234, 0.12);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(226, 59, 34, 0.18), transparent 60%),
    linear-gradient(180deg, #1a2128 0%, var(--bg) 220px),
    var(--bg);
  line-height: 1.55;
}
body::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--accent) 0 28%, transparent 28% 36%, var(--accent) 36% 42%, transparent 42%);
  background-size: 120px 6px;
  animation: lane 18s linear infinite;
}
@keyframes lane {
  from { background-position: 0 0; }
  to { background-position: 120px 0; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.skip {
  position: absolute; left: 12px; top: -40px; background: var(--accent); color: #fff; padding: 8px 12px; z-index: 5;
}
.skip:focus { top: 12px; }

.wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 12px; position: sticky; top: 0; z-index: 4;
  background: rgba(20, 24, 28, 0.92);
  backdrop-filter: blur(10px);
}
.site-nav .navbar-nav > .nav-link:last-child {
  padding-right: 4px !important;
}
.brand, .navbar-brand.brand {
  font-family: Oswald, "Arial Narrow", sans-serif;
  color: var(--ink) !important;
  text-decoration: none;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  white-space: normal;
  max-width: min(240px, 58vw);
}
.brand small {
  display: block;
  margin-top: 4px;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  font-size: 0.68rem;
}
.site-nav { width: 100%; }
.site-nav .navbar-nav { gap: 2px 14px; }
.site-nav .nav-link {
  color: var(--soft) !important;
  font-weight: 600;
  padding: 0.35rem 0 !important;
}
.site-nav .nav-link:hover,
.site-nav .nav-link[aria-current="page"] { color: var(--ink) !important; }
.site-nav .nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-gap { flex: 1 1 12px; min-width: 12px; }
.navbar-toggler.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 6px;
  padding: 0;
  box-shadow: none;
}
.navbar-toggler.nav-toggle:focus { box-shadow: none; }
.nav-toggle span { display: block; height: 1.5px; margin: 6px 10px; background: var(--ink); }

h1, h2, h3 {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}
h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.lede { font-size: 1.15rem; color: var(--soft); max-width: 38rem; margin: 0 0 8px; }

.hero {
  padding: 28px 0 56px;
  animation: rise 0.7s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.hero-board {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: rise 0.9s ease 0.12s both;
}
.hero-board img { width: 100%; }
.hero-board::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--accent);
  transform-origin: left;
  animation: bar 2.4s ease-in-out infinite alternate;
}
@keyframes bar {
  from { transform: scaleX(0.35); opacity: 0.7; }
  to { transform: scaleX(1); opacity: 1; }
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn, a.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent) !important;
  color: #fff !important;
  border: 1px solid var(--accent) !important;
  border-radius: 6px;
  padding: 12px 18px;
  font: 700 0.95rem/1 "IBM Plex Sans", sans-serif;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn:hover, a.btn:hover { background: var(--accent-deep) !important; border-color: var(--accent-deep) !important; color: #fff !important; }
.btn.ghost, a.btn.ghost {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
.btn.ghost:hover, a.btn.ghost:hover {
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}

.section { padding: 12px 0 64px; }
.section > h2 { margin: 0 0 18px; }

.doors { display: grid; gap: 12px; }
@media (min-width: 700px) {
  .doors { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .doors { grid-template-columns: repeat(3, 1fr); }
}
a.door {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 18px 18px 20px;
  text-decoration: none;
  color: inherit;
  background: rgba(28, 36, 44, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.door:hover {
  border-color: rgba(226, 59, 34, 0.55);
  transform: translateY(-2px);
}
a.door .num {
  font-family: Oswald, sans-serif;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}
a.door h2 { margin: 0; font-size: 1.35rem; }
a.door p { margin: 0; color: var(--soft); }

.door, .card.hm-card, article.hm-card {
  background: rgba(28, 36, 44, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.row > [class*="col-"] { min-width: 0; }
.door h2, .hm-card h2, .hm-card h3 {
  margin: 8px 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.door p, .hm-card p { margin: 0; color: var(--soft); }
.hm-card a { color: var(--accent); font-weight: 700; text-decoration: none; }
.hm-card a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hm-card-cover { padding-top: 0; overflow: hidden; }
.bio-photo {
  display: block;
  margin: 0 -18px 14px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0d1116;
}
.bio-photo.match-photo {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, rgba(226, 59, 34, 0.12), transparent 42%),
    #0d1116;
}
.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.bio-photo.match-photo img {
  object-fit: contain;
  object-position: center;
  padding: 12px 8px;
  background: #0d1116;
}
.portrait.match-cover {
  max-width: 40rem;
}
.portrait.match-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0d1116;
}
.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 8px;
  font-family: Oswald, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.bio-tags span { color: inherit; }
.portrait {
  margin: 1.2rem 0 1.6rem;
  max-width: 22rem;
}
.portrait img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1116;
}

.events-cal { margin: 0 0 22px; }
.events-cal-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.events-cal-nav {
  flex: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.events-cal-nav:hover { border-color: rgba(226, 59, 34, 0.55); color: var(--accent); }
.events-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 2px 2px 8px;
  flex: 1;
  scrollbar-width: thin;
}
.events-day {
  flex: 0 0 auto;
  scroll-snap-align: center;
  min-width: 56px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(28, 36, 44, 0.9);
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
a.events-day { cursor: pointer; }
a.events-day:hover { border-color: rgba(226, 59, 34, 0.45); transform: translateY(-1px); color: var(--ink); }
.events-day.is-active {
  border-color: var(--accent);
  background: rgba(226, 59, 34, 0.12);
}
.events-day.is-today .events-day-num { color: var(--accent); }
.events-day.is-empty {
  opacity: 0.38;
  border-style: dashed;
  cursor: default;
  pointer-events: none;
}
.events-day-dow, .events-day-mon {
  font-family: Oswald, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}
.events-day-num {
  font-family: Oswald, sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}
.events-cal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 10px 0 0;
  color: var(--soft);
  font-size: 0.95rem;
}
.events-cal-today {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: 700 0.9rem/1 "IBM Plex Sans", sans-serif;
  cursor: pointer;
  padding: 0;
}
.events-cal-today:hover { text-decoration: underline; text-underline-offset: 3px; }

.live-feed ul {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 1.2rem;
  border-left: 2px solid rgba(226, 59, 34, 0.35);
}
.live-feed li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1rem;
  margin: 0;
  color: var(--ink);
  border-bottom: 1px solid rgba(244, 241, 234, 0.06);
}
.live-feed li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 1.05em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.hm-card-live .kicker { color: var(--accent); }

.quiet, .intro {
  color: var(--soft);
  max-width: 40rem;
}
.stop {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  color: var(--soft);
}

.band {
  margin: 0 0 48px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 1.05rem;
}

.article { width: min(68ch, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 72px; }
.article h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: none; letter-spacing: -0.01em; }
.article .kicker a { color: var(--accent); text-decoration: none; }
.prose h2 { margin: 1.4em 0 0.35em; text-transform: none; letter-spacing: 0; }
.prose p, .prose li { font-size: 1.08rem; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin: 36px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pager-auto {
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding-top: 0;
  border-top: none;
  min-height: 1px;
}
.pager-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}
.pager-meta {
  color: var(--soft);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin: 0;
}

.foot {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--soft);
}
.foot a {
  display: block;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
  margin: 6px 0 0;
}
.foot a:hover { color: var(--accent); }
.foot .kicker { margin-bottom: 8px; }
.foot-copy { margin: 18px 0 0; font-size: 0.9rem; }

@media (max-width: 991.98px) {
  .navbar-toggler.nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; }
  .site-nav .navbar-collapse {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: rgba(20, 24, 28, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
  }
  .site-nav .navbar-nav { padding: 0 20px; }
}
