/* ============================================================
   conjuring.cloud — style.css
   Aesthetic: Arcane editorial. Gold ink on night sky.
   Fonts: Cormorant Garamond (headings) + Jost (body)
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --radius: 2px;
  --trans: 0.22s ease;
  --max-w: 1160px;
  --header-h: 68px;

  /* @link https://utopia.fyi/type/calculator?c=360,16,1.2,1240,24,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
  --step--2: clamp(0.6944rem, 0.5858rem + 0.4828vw, 0.96rem);
  --step--1: clamp(0.8333rem, 0.6833rem + 0.6667vw, 1.2rem);
  --step-0: clamp(1rem, 0.7955rem + 0.9091vw, 1.5rem);
  --step-1: clamp(1.2rem, 0.9239rem + 1.2273vw, 1.875rem);
  --step-2: clamp(1.44rem, 1.0703rem + 1.6432vw, 2.3438rem);
  --step-3: clamp(1.728rem, 1.2364rem + 2.1849vw, 2.9297rem);
  --step-4: clamp(2.0736rem, 1.4238rem + 2.8882vw, 3.6621rem);
  --step-5: clamp(2.4883rem, 1.6336rem + 3.7988vw, 4.5776rem);

  /* @link https://utopia.fyi/space/calculator?c=360,18,1.2,1240,20,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
  --space-3xs: clamp(0.3125rem, 0.3125rem + 0vw, 0.3125rem);
  --space-2xs: clamp(0.5625rem, 0.5369rem + 0.1136vw, 0.625rem);
  --space-xs: clamp(0.875rem, 0.8494rem + 0.1136vw, 0.9375rem);
  --space-s: clamp(1.125rem, 1.0739rem + 0.2273vw, 1.25rem);
  --space-m: clamp(1.6875rem, 1.6108rem + 0.3409vw, 1.875rem);
  --space-l: clamp(2.25rem, 2.1477rem + 0.4545vw, 2.5rem);
  --space-xl: clamp(3.375rem, 3.2216rem + 0.6818vw, 3.75rem);
  --space-2xl: clamp(4.5rem, 4.2955rem + 0.9091vw, 5rem);
  --space-3xl: clamp(6.75rem, 6.4432rem + 1.3636vw, 7.5rem);

  /* One-up pairs */
  --space-3xs-2xs: clamp(0.3125rem, 0.1847rem + 0.5682vw, 0.625rem);
  --space-2xs-xs: clamp(0.5625rem, 0.4091rem + 0.6818vw, 0.9375rem);
  --space-xs-s: clamp(0.875rem, 0.7216rem + 0.6818vw, 1.25rem);
  --space-s-m: clamp(1.125rem, 0.8182rem + 1.3636vw, 1.875rem);
  --space-m-l: clamp(1.6875rem, 1.3551rem + 1.4773vw, 2.5rem);
  --space-l-xl: clamp(2.25rem, 1.6364rem + 2.7273vw, 3.75rem);
  --space-xl-2xl: clamp(3.375rem, 2.7102rem + 2.9545vw, 5rem);
  --space-2xl-3xl: clamp(4.5rem, 3.2727rem + 5.4545vw, 7.5rem);

  /* Custom pairs */
  --space-s-l: clamp(1.125rem, 0.5625rem + 2.5vw, 2.5rem);
}

[data-theme="dark"] {
  --bg: #0d0d0f;
  --bg-raised: #131316;
  --bg-card: #17171c;
  --bg-card-h: #1d1d24;
  --border: rgba(201, 168, 76, 0.14);
  --border-h: rgba(201, 168, 76, 0.42);
  --text: #e8e4dc;
  --text-muted: #ccc6bc;
  --text-faint: #9b9387;
  --accent: #c9a84c;
  --accent-dim: rgba(201, 168, 76, 0.12);
  --header-bg: rgba(13, 13, 15, 0.94);
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  --map-filter: brightness(0.85) contrast(1.1) saturate(0.6);
}

[data-theme="light"] {
  --bg: #f5f0e8;
  --bg-raised: #ede8de;
  --bg-card: #faf7f2;
  --bg-card-h: #ffffff;
  --border: rgba(100, 75, 20, 0.15);
  --border-h: rgba(140, 100, 30, 0.45);
  --text: #1a1814;
  --text-muted: #6b6459;
  --text-faint: #756b57;
  --accent: #7a5218;
  --accent-dim: rgba(122, 82, 24, 0.08);
  --header-bg: rgba(245, 240, 232, 0.95);
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  --map-filter: saturate(0.85) brightness(1.02);
}

/* ── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Jost", sans-serif;
  font-weight: 300;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition:
    background var(--trans),
    color var(--trans);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}
::selection {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ── Typography ──────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}
h1 {
  /* font-size: clamp(2.4rem, 6vw, 4.5rem); */
  font-size: var(--step-5);
  letter-spacing: -0.01em;
}
h2 {
  /* font-size: clamp(1.7rem, 3.5vw, 2.6rem); */
  font-size: var(--step-3);
}
h3 {
  /* font-size: clamp(1.25rem, 2vw, 1.6rem); */
  font-size: var(--step-1);
}

.eyebrow {
  font-family: "Jost", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}

.ccname {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  letter-spacing: 0.02rem;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  /* padding-inline: clamp(1.25rem, 4vw, 2.5rem); */
  padding-inline: var(--space-xs-s);
}
section {
  /* margin-block: clamp(3.5rem, 7vw, 6rem); */
  margin-block: var(--space-m-l);
}

/* Horizontal Rule */
hr {
  overflow: visible;
  padding: 0;
  border: none;
  border-top: solid 1px var(--border);
  color: var(--text-muted);
  text-align: center;
}

hr::after {
  content: "✦";
  display: inline-block;
  position: relative;
  top: -0.85rem;
  font-size: 1rem;
  /* font-size: var(--step--1); */
  color: var(--accent);
  padding: 0 1rem;
  background: var(--bg);
}

hr.club::after {
  font-size: 1rem;
  content: "♣︎";
}
hr.heart::after {
  font-size: 1rem;
  content: "♥︎";
}
hr.diamond::after {
  font-size: 1rem;
  content: "♦︎";
}
hr.spade::after {
  font-size: 1rem;
  content: "♠︎";
}

.rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block: 1.25rem 2.5rem;
  /* font-size: 0.85rem; */
  font-size: var(--step--1);
  color: var(--accent);
  flex-shrink: 0;
}
.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  color: var(--text-muted);
}

/* ── Skip link ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #0d0d0f;
  padding: 0.5rem 1rem;
  /* font-size: 0.8rem; */
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 9000;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition:
    background var(--trans),
    box-shadow var(--trans);
}
.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover {
  text-decoration: none;
}
.logo-sigil {
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  animation: sigil-pulse 4s ease-in-out infinite;
}
@keyframes sigil-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.88);
  }
}
.logo-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.logo-dot {
  color: var(--accent);
}

.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 0.2rem;
}
.site-nav a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.38rem 0.8rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all var(--trans);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--border);
  background: var(--accent-dim);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.theme-toggle,
.theme-switcher {
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
  position: relative;
  overflow: hidden;

  &:hover {
    border-color: var(--border-h);
    background: var(--accent-dim);
  }
}

.theme-icon {
  position: absolute;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
[data-theme="dark"] .theme-icon--dark {
  opacity: 1;
  transform: scale(1);
}
[data-theme="dark"] .theme-icon--light {
  opacity: 0;
  transform: scale(0.5);
}
[data-theme="light"] .theme-icon--light {
  opacity: 1;
  transform: scale(1);
}
[data-theme="light"] .theme-icon--dark {
  opacity: 0;
  transform: scale(0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text-muted);
  transition:
    transform var(--trans),
    opacity var(--trans);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb li + li::before {
  content: "›";
  color: var(--text-muted);
  font-size: 0.85rem;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--trans);
  border: none;
}
.btn--primary {
  background: var(--accent);
  color: #0d0d0f;
}
[data-theme="light"] .btn--primary {
  color: #faf7f2;
}
.btn--primary:hover {
  opacity: 0.87;
  transform: translateY(-1px);
  text-decoration: none;
  color: #0d0d0f;
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--border-h);
  color: var(--accent);
  background: var(--accent-dim);
  text-decoration: none;
}
.btn--sm {
  padding: 0.38rem 0.9rem;
  font-size: 0.7rem;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block-start: clamp(4rem, 10vw, 8rem);
  /* padding-block: var(-space-xl-2xl); */
  margin-block-start: 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% -10%,
    rgba(201, 168, 76, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
[data-theme="light"] .hero::before {
  background: radial-gradient(
    ellipse 80% 60% at 50% -10%,
    rgba(201, 168, 76, 0.18) 0%,
    transparent 70%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  animation: fade-up 0.7s ease 0.1s both;
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.hero-title {
  max-width: 14ch;
  animation: fade-up 0.8s ease 0.25s both;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-subtitle {
  margin-top: 1.5rem;
  max-width: 44ch;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  animation: fade-up 0.8s ease 0.4s both;
}
.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: fade-up 0.8s ease 0.55s both;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
  animation: fade-up 0.8s ease 0.65s both;
}
.hero-stats strong {
  color: var(--accent);
  font-weight: 500;
}
.hero-stats-sep {
  color: var(--text-muted);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Features 3-col ─────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: 2rem;
}
.feature {
  background: var(--bg-card);
  padding: 2.25rem 2rem 3rem;
  transition: background var(--trans);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}
.feature:hover {
  background: var(--bg-card-h);
  text-decoration: none;
}
.feature-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}
.feature-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.feature-cta {
  position: absolute;
  bottom: 1.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.feature--muted {
  opacity: 0.8;
}

/* ── Stats band ──────────────────────────────────────────── */
.stats-band {
  background: var(--bg-raised);
  border-block: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.stat {
  background: var(--bg-card);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: block;
}

/* ── Cards ───────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--trans),
    background var(--trans),
    transform var(--trans),
    box-shadow var(--trans);
  text-decoration: none;
  color: inherit;
}
.card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.card-accent {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--trans);
}
.card:hover .card-accent {
  opacity: 1;
}
.card-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 0.18rem 0.55rem;
  border-radius: 1px;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-dot--physical {
  background: #6db87a;
}
.badge-dot--online {
  background: #6baad4;
}
.badge-dot--both {
  background: var(--accent);
}

.card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
  line-height: 1.2;
  color: var(--text);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.card-meta-icon {
  color: var(--accent);
  font-size: 0.6rem;
}
.card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.62;
  flex: 1;
  margin-top: 0.7rem;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}
.card-tags li {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 1px;
}
.card-link {
  margin-top: 1.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  align-self: flex-start;
}
.card-link:hover {
  text-decoration: underline;
}

/* ── Page header ─────────────────────────────────────────── */
.page-header {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  /* padding-block: clamp(3rem, 6vw, 5rem) 1.75rem; */
  padding-block: var(--space-m-l) var(--space-s);
  position: relative;
  overflow: hidden;
  container-type: inline-size;

  > .container {
    @container (width > 90ch) {
      display: grid;
      gap: var(--space-m);
      grid-template-columns: 3fr 1fr;
    }

    > .secondary {
      display: flex;
      flex-wrap: wrap;
      flex-direction: column;
      gap: var(--space-2xs);
      justify-content: end;
      @container (width < 90ch) {
        margin-block-start: var(--space-s);
        flex-direction: row;
        justify-content: start;
      }
    }
  }
}
.page-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}

/* ── Directory page layout ───────────────────────────────── */
.directory-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 70vh;
}

/* Sidebar (filters) */
.dir-sidebar {
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.dir-sidebar::-webkit-scrollbar {
  width: 4px;
}
.dir-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.sidebar-section {
  margin-bottom: 2rem;
}
.sidebar-section:last-child {
  margin-bottom: 0;
}
.sidebar-title {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: block;
}

/* Search input in sidebar */
.search-field {
  position: relative;
  margin-bottom: 1.5rem;
}
.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem 0.6rem 2.25rem;
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  transition:
    border-color var(--trans),
    box-shadow var(--trans);
}
.search-input::placeholder {
  color: var(--text-faint);
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Filter chips */
.filter-chips {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.filter-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  font-family: "Jost", sans-serif;
  font-size: 0.76rem;
  color: var(--text-muted);
  transition: all var(--trans);
  text-align: left;
  width: 100%;
}
.filter-chip:hover {
  border-color: var(--border-h);
  color: var(--text);
  background: var(--accent-dim);
}
.filter-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.filter-chip-count {
  font-size: 0.62rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.05rem 0.4rem;
  letter-spacing: 0;
}
.filter-chip.active .filter-chip-count {
  background: var(--accent-dim);
  border-color: var(--border-h);
}

.filter-reset {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: none;
  border: none;
  font-family: "Jost", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.2rem 0;
  transition: color var(--trans);
}
.filter-reset:hover {
  color: var(--accent);
}

/* Main content pane */
.dir-main {
  min-width: 0;
}

/* Results header bar */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: var(--header-h);
  z-index: 10;
}
.results-count {
  font-size: 0.76rem;
  color: var(--text);
  letter-spacing: 0.06em;
}
.results-count strong {
  color: var(--accent);
  font-weight: 500;
}

.view-toggles {
  display: flex;
  gap: 0.3rem;
}
.view-btn {
  width: 30px;
  height: 30px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
}
.view-btn:hover {
  border-color: var(--border-h);
  color: var(--text);
}
.view-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Results area */
.results-area {
  padding: 1.75rem 2rem;
}

/* List view */
.list-view {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.list-item {
  background: var(--bg-card);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: background var(--trans);
}
.list-item:hover {
  background: var(--bg-card-h);
}
.list-item-main {
  min-width: 0;
}
.list-item-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.list-item-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.list-item-meta-sep {
  color: var(--text-muted);
}
.list-item-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.5;
}
.list-item-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.list-item-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.list-item-tags li {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 0.12rem 0.45rem;
  border-radius: 1px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.3;
  display: block;
  margin-bottom: 1rem;
}

/* ── Map ─────────────────────────────────────────────────── */
#directory-map {
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  filter: var(--map-filter);
  transition: filter var(--trans);
}
.leaflet-container {
  background: var(--bg-raised) !important;
  font-family: "Jost", sans-serif !important;
}

/* Custom map marker */
.map-marker {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform var(--trans);
}
.map-marker:hover {
  transform: rotate(-45deg) scale(1.2);
}
.map-marker-inner {
  width: 10px;
  height: 10px;
  background: var(--bg);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  color: var(--text) !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 0 !important;
  padding: 1rem 1.25rem !important;
  font-family: "Jost", sans-serif !important;
  min-width: 200px;
}
.leaflet-popup-tip {
  background: var(--bg-card) !important;
}
.leaflet-popup-close-button {
  color: var(--text-muted) !important;
  top: 6px !important;
  right: 8px !important;
}
.popup-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.popup-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.popup-link {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.popup-link:hover {
  text-decoration: underline;
}

/* Map section on directory page */
.map-section {
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--border);
}
.map-section-title {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.85rem;
  display: block;
}

/* ── Detail page layout ───────────────────────────────────── */
.detail-hero {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 5rem) 2.25rem;
  position: relative;
  overflow: hidden;
}
.detail-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}
.detail-hero-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.detail-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0.5rem 0 0;
}
.detail-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.detail-meta-sep {
  color: var(--text-faint);
}
.detail-meta-icon {
  color: var(--accent);
  font-size: 0.65rem;
}
.detail-tags {
  margin: 1.25rem 0;
}
.detail-rule-spaced {
  margin-top: 2rem;
}
.detail-section {
  margin-top: 2rem;
}
.detail-section-title {
  margin-bottom: 1rem;
}
.detail-meta-note {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.detail-meta-note + .detail-meta-note {
  margin-top: 0.75rem;
}
.detail-meta-note-label {
  color: var(--text);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.detail-lead {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--text);
}
.detail-prose {
  margin-top: 1.5rem;
}
.detail-prose p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}
.info-table tr {
  border-bottom: 1px solid var(--border);
}
.info-table tr:last-child {
  border-bottom: none;
}
.info-table th {
  text-align: left;
  padding: 0.7rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 38%;
  vertical-align: top;
  white-space: nowrap;
}
.info-table td {
  padding: 0.7rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text);
  vertical-align: top;
}
.info-table a {
  color: var(--accent);
}
.info-table a:hover {
  text-decoration: underline;
}

/* Highlight list */
.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.highlight-list li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0.7rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--trans);
}
.highlight-list li:hover {
  border-color: var(--border-h);
}
.hl-icon {
  color: var(--accent);
  font-size: 0.52rem;
  flex-shrink: 0;
}

/* Sidebar card */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1.25rem;
}
.sidebar-card:last-child {
  margin-bottom: 0;
}
.sidebar-card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.sidebar-card--subtle {
  background: var(--bg-raised);
}
.sidebar-card--map {
  padding: 0;
  overflow: hidden;
}
.quick-facts-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.quick-facts-term {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.quick-facts-value {
  font-size: 0.88rem;
}
.btn--full {
  width: 100%;
  justify-content: center;
}
.mt-lg {
  margin-top: 1.25rem;
}
.sidebar-note {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.98rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
}
.inline-flex {
  display: inline-flex;
}
.mt-sm {
  margin-top: 0.6rem;
}
.detail-back-link-wrap {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.text-center {
  text-align: center;
}

/* Detail map */
.detail-map {
  height: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  filter: var(--map-filter);
  overflow: hidden;
}

/* Sticky sidebar */
.detail-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

/* ── About page ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-body p {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 0.93rem;
  line-height: 1.78;
}
.about-body h3 {
  margin: 1.75rem 0 0.6rem;
}

/* ── Reveal animation ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem 1.75rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.4rem;
}
.footer-logo:hover {
  color: var(--accent);
  text-decoration: none;
}
.footer-tagline {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
}
.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.footer-bottom a {
  color: var(--text-muted);
}
.footer-bottom a:hover {
  color: var(--accent);
}

/* ── Utility + extracted inline styles ───────────────────── */
.flow-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.is-hidden {
  display: none;
}
.inline-reset-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.empty-state-help {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
.page-header-intro {
  color: var(--text-muted);
  max-width: 48ch;
  margin-top: 0.6rem;
  font-size: 1rem;
  line-height: 1.65;
}

/* About page extracted styles */
.about-contact-btn {
  margin-top: 0.5rem;
}
.about-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.25rem;
}

.about-panel--me {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.6rem;
  h3 {
    grid-column: 1 / span 2;
  }
  img {
    clip-path: circle(50%);
  }
}
.about-panel--stats {
  padding: 2.25rem;
}

.about-stats-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}
.about-stat-term {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.about-stat-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
}
.about-sponsor-copy {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 404 extracted styles */
.error-hero {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}
.error-hero-inner {
  position: relative;
  z-index: 1;
}
.eyebrow--center {
  justify-content: center;
  display: flex;
}
.error-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin: 0.5rem 0 1rem;

  em {
    font-style: italic;
    color: var(--accent);
  }
}
.error-copy {
  color: var(--text-muted);
  max-width: 36ch;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Subscribe section extracted styles */
.subscribe-section {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
}
.subscribe-inner {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}
.subscribe-title {
  margin-bottom: 0.75rem;
}
.subscribe-copy {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
}
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 380px;
  margin-inline: auto;
}
.newsletter-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-family: "Jost", sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--trans);
}
.newsletter-input:focus {
  border-color: var(--accent);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .directory-layout {
    grid-template-columns: 1fr;
  }
  .dir-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
  }
  .dir-sidebar .sidebar-title {
    display: none;
  }
  .filter-chips {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .filter-chip {
    width: auto;
  }
  .results-bar {
    position: static;
  }
  .results-area {
    padding: 1.25rem;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: static;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 800px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .site-nav {
    display: none;
  }
  .site-nav.open {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2rem;
    z-index: 99;
    overflow-y: auto;
  }
  .site-nav.open ul {
    flex-direction: column;
    gap: 0.35rem;
  }
  .site-nav.open a {
    display: block;
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
  }
  .nav-toggle {
    display: flex;
  }
  .detail-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .map-section,
  .results-area {
    padding: 1rem;
  }
}

.icon {
  color: var(--accent);
}

.sprite-sheet {
  display: none;
}

/**
 * Table
 */
table {
  border-collapse: collapse;
  border-spacing: 0;
  text-indent: 0;
  width: 100%;

  th,
  td {
    padding: var(--space-3xs);
    text-align: start;
    a svg {
      vertical-align: middle;
    }
  }

  thead {
    border-bottom: 1px solid var(--border-h);
  }
  /* td {
    border-bottom: var(--table-border-style);
  } */
  tbody tr:nth-child(even) {
    background-color: var(--bg-raised);
  }

  tfoot th,
  tfoot td {
    border-top: 1px solid var(--border-h);
    border-bottom: 0;
  }

  @media (width < 45rem) {
    font-size: var(--step--1);
    .extra-column {
      display: none;
    }
  }
}
