:root {
  --ink: #171511;
  --charcoal: #24211b;
  --muted: #625c50;
  --line: #d7d0c0;
  --paper: #f6f0e4;
  --cream: #fff9ef;
  --copper: #b84f2a;
  --moss: #526d4a;
  --lake: #5b8196;
  --brass: #d69a45;
  --shadow: 0 18px 50px rgba(36, 33, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.article-body {
  background: var(--cream);
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--cream);
  padding: 0.7rem 1rem;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0.85rem clamp(1rem, 4vw, 3.5rem);
  color: var(--cream);
  background: rgba(23, 21, 17, 0.88);
  border-bottom: 1px solid rgba(255, 249, 239, 0.18);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  background: rgba(23, 21, 17, 0.96);
}

.article-header-nav {
  color: var(--ink);
  background: rgba(255, 249, 239, 0.92);
  border-bottom: 1px solid var(--line);
}

.article-header-nav.is-scrolled {
  background: rgba(255, 249, 239, 0.98);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.brand-name,
.footer-brand {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.brand-byline {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(255, 249, 239, 0.72);
}

.article-header-nav .brand-byline {
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.4rem);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
}

.nav-links a:hover,
.card-actions a:hover,
.footer-links a:hover {
  color: var(--brass);
}

.article-header-nav .nav-links a:hover {
  color: var(--copper);
}

.nav-cta {
  padding: 0.72rem 1rem;
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink) !important;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 140px));
  display: flex;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 18, 18, 0.82) 0%, rgba(16, 18, 18, 0.62) 38%, rgba(16, 18, 18, 0.12) 100%),
    linear-gradient(0deg, rgba(16, 18, 18, 0.72) 0%, rgba(16, 18, 18, 0) 44%);
}

.hero-content {
  position: relative;
  width: min(820px, 100%);
  padding: clamp(4rem, 8vw, 6rem) clamp(1.2rem, 5vw, 4.5rem);
  color: var(--cream);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero .eyebrow {
  color: var(--brass);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.hero h1 {
  max-width: 12ch;
  font-size: 6.2rem;
  font-weight: 800;
}

.hero-deck {
  max-width: 45rem;
  margin: 1.3rem 0 0;
  color: rgba(255, 249, 239, 0.88);
  font-size: 1.24rem;
}

.hero-actions,
.feature-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.82rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--cream);
}

.button.secondary {
  background: rgba(255, 249, 239, 0.1);
  color: var(--cream);
}

.button.quiet {
  color: var(--ink);
  background: transparent;
}

.button:hover {
  transform: translateY(-1px);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--cream);
}

.stats-band div {
  min-height: 128px;
  padding: 1.6rem clamp(1rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  line-height: 1;
}

.stats-band span {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.section-grid,
.taxonomy-section,
.directory-section,
.source-section,
.feature-strip {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.2rem, 5vw, 4.5rem);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.section-grid h2,
.section-heading h2,
.feature-strip h2 {
  max-width: 11ch;
  font-size: 4rem;
}

.intro-copy {
  max-width: 70ch;
  font-size: 1.12rem;
  color: var(--muted);
}

.intro-copy p:first-child {
  margin-top: 0;
}

.feature-strip {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  background: var(--charcoal);
  color: var(--cream);
}

.feature-strip h2 {
  max-width: 16ch;
}

.feature-strip p:not(.eyebrow) {
  max-width: 54rem;
  color: rgba(255, 249, 239, 0.74);
  font-size: 1.08rem;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.4rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.format-grid article {
  min-height: 270px;
  padding: 1.4rem;
  background: var(--cream);
}

.format-index {
  display: block;
  margin-bottom: 1.4rem;
  color: var(--copper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 800;
}

.format-grid h3 {
  font-size: 1.15rem;
}

.format-grid p,
.event-card p,
.playbook-list p,
.source-section p {
  color: var(--muted);
}

.directory-section {
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.directory-heading {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 380px);
  gap: 1.5rem;
  align-items: end;
}

.directory-heading h2 {
  max-width: 15ch;
}

.section-deck {
  max-width: 58rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
}

.filter-bar {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 2rem 0 0.9rem;
}

.filter-button {
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.filter-button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.result-count {
  color: var(--muted);
  font-size: 0.9rem;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  min-height: 405px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: 0 1px 0 rgba(36, 33, 27, 0.04);
}

.event-card[hidden] {
  display: none;
}

.directory-divider {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin: 1.2rem 0 0.15rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--ink);
}

.directory-divider[hidden] {
  display: none;
}

.directory-divider span {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directory-divider p {
  margin: 0;
  max-width: 68rem;
  color: var(--muted);
}

.event-card.featured-event {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(184, 79, 42, 0.12), rgba(91, 129, 150, 0.12)),
    #fffdfa;
}

.event-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.5rem;
}

.event-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: auto 0 1.1rem;
}

.event-card dl div {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.event-card dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-card dd {
  margin: 0.28rem 0 0;
  font-weight: 800;
}

.card-actions {
  margin-top: auto;
}

.card-actions a {
  font-weight: 900;
  color: var(--moss);
  text-decoration: none;
}

.organize-section {
  background: var(--charcoal);
  color: var(--cream);
}

.organize-section .eyebrow,
.organize-section .playbook-list span {
  color: var(--brass);
}

.playbook-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 249, 239, 0.25);
}

.playbook-list article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.3rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 249, 239, 0.18);
}

.playbook-list span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 800;
}

.playbook-list h3 {
  font-size: 1.3rem;
}

.playbook-list p {
  margin: 0.4rem 0 0;
  color: rgba(255, 249, 239, 0.72);
}

.source-section {
  max-width: 1080px;
}

.source-section h2 {
  max-width: 18ch;
}

.source-section p {
  max-width: 78ch;
  font-size: 1.02rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem clamp(1.2rem, 5vw, 4.5rem);
  background: var(--ink);
  color: rgba(255, 249, 239, 0.72);
}

.site-footer p {
  max-width: 44rem;
}

.footer-brand {
  color: var(--cream);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: end;
  gap: 0.85rem 1.25rem;
  min-width: min(100%, 320px);
}

.footer-links a {
  color: rgba(255, 249, 239, 0.78);
  font-weight: 800;
  text-decoration: none;
}

.article-page {
  background: var(--cream);
}

.article-hero {
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.2rem, 5vw, 4.5rem) 2.3rem;
  border-bottom: 1px solid var(--line);
}

.article-hero h1 {
  max-width: 13ch;
  font-size: 6rem;
}

.article-deck {
  max-width: 780px;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.35rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.article-meta span {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.canonical-note {
  max-width: 820px;
  margin-top: 1.6rem;
  padding: 1rem;
  border-left: 4px solid var(--copper);
  background: #fffdfa;
}

.canonical-note a {
  color: var(--moss);
  font-weight: 900;
}

.article-image {
  width: min(1120px, calc(100% - 2rem));
  max-height: 620px;
  object-fit: cover;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-content {
  width: min(760px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 0 0 5rem;
  font-size: 1.1rem;
}

.article-content p {
  color: var(--charcoal);
}

.article-callout {
  margin: 2rem 0;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.article-callout h2 {
  margin-bottom: 1rem;
  font-size: 1.7rem;
}

.article-callout ul {
  margin: 0;
  padding-left: 1.2rem;
}

.article-callout li + li {
  margin-top: 0.55rem;
}

.article-callout a {
  color: var(--moss);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .format-grid,
  .event-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .format-grid article {
    min-height: 230px;
  }

  .event-card.featured-event {
    grid-column: span 1;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0.35rem;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    max-width: 8.5ch;
    font-size: 3.25rem;
    line-height: 0.98;
  }

  .hero-content {
    width: 100vw;
    max-width: 100vw;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-deck {
    max-width: 20rem;
    font-size: 1.06rem;
  }

  .hero h1,
  .hero .eyebrow,
  .hero-actions {
    max-width: 20rem;
  }

  .hero .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .hero-actions .button {
    width: 100%;
  }

  .stats-band strong {
    font-size: 3rem;
  }

  .section-grid h2,
  .section-heading h2,
  .feature-strip h2 {
    font-size: 2.7rem;
  }

  .article-hero h1 {
    font-size: 3.4rem;
  }

  .article-deck {
    font-size: 1.1rem;
  }

  .stats-band,
  .section-grid,
  .directory-heading,
  .feature-strip,
  .event-list {
    grid-template-columns: 1fr;
  }

  .feature-strip,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-band div {
    min-height: 108px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-band div:last-child {
    border-bottom: 0;
  }

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

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

  .directory-divider {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: start;
  }
}
