:root {
  --bg-canvas: #3b0d1a;
  --bg-surface: #531827;
  --text-primary: #fff8ed;
  --text-muted: #dbc6c2;
  --accent-primary: #e8d5a8;
  --border-subtle: #946776;
  --shadow-soft: 0 10px 30px rgba(25, 4, 10, 0.45);
  --shadow-lift: 0 18px 38px rgba(25, 4, 10, 0.65);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(232, 213, 168, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(232, 213, 168, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.68;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover, a:focus-visible {
  color: #fff;
}

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

/* Accessible skip-to-content link: fully off-screen until focused, smoothly frames at top */
.skip-link {
  position: absolute;
  top: -120px;
  left: 20px;
  background: var(--accent-primary);
  color: #260710;
  padding: 10px 20px;
  z-index: 100000;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: top 0.2s ease-in-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Proper sticky header and navigation bar */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(43, 9, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(25, 4, 10, 0.45);
}

.site-header {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  position: relative;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-wrapper:hover {
  opacity: 0.9;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent-primary);
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(232, 213, 168, 0.08);
}

.brand-title {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.8px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 9px 16px;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  background: var(--accent-primary);
  color: var(--bg-canvas);
}

.menu-toggle {
  display: none;
  background: rgba(232, 213, 168, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  padding: 8px 14px;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(232, 213, 168, 0.16);
  border-color: var(--accent-primary);
}

/* Hero Section */
.hero-factual {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  margin-bottom: 3rem;
  background-color: #260710;
  background-image: 
    linear-gradient(rgba(59, 13, 26, 0.82), rgba(59, 13, 26, 0.94)),
    radial-gradient(ellipse at center, rgba(232, 213, 168, 0.15) 0%, rgba(38, 7, 16, 0.9) 80%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-factual-content {
  max-width: 820px;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--accent-primary);
  padding-bottom: 4px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-lede {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 68ch;
  margin: 0 auto 2rem;
}

/* Layout Containers */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.reading-column {
  max-width: 70ch;
  margin: 0 auto;
}

.editorial-section {
  margin-bottom: 4rem;
}

.section-head {
  margin-bottom: 1.8rem;
  border-left: 3px solid var(--accent-primary);
  padding-left: 1rem;
}

.section-head h2 {
  font-size: 1.85rem;
  line-height: 1.25;
  color: var(--text-primary);
}

.section-head .section-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 0.3rem;
}

/* Editorial Components */
.pull-quote {
  margin: 2.5rem 0;
  padding: 1.8rem 2rem;
  background: var(--bg-surface);
  border-left: 4px solid var(--accent-primary);
  box-shadow: var(--shadow-soft);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent-primary);
}

.pull-quote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 0.8rem;
  text-transform: uppercase;
}

.wide-breakout {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 2.5rem 1.5rem;
  background: var(--bg-surface);
  margin-top: 3rem;
  margin-bottom: 3rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.wide-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Grids & Borderless Shadow Cards */
.grid-festivals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.festival-card {
  background: var(--bg-surface);
  box-shadow: var(--shadow-soft);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
}

.festival-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  background-color: #2a0812;
  border-bottom: 1px solid var(--border-subtle);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-primary);
  margin-bottom: 0.8rem;
}

.card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 103, 118, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Date Specification Cards */
.edition-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  background: var(--bg-surface);
  box-shadow: var(--shadow-soft);
}

.edition-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  min-width: 600px;
}

.edition-table th, .edition-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 103, 118, 0.35);
}

.edition-table th {
  background: rgba(40, 9, 18, 0.6);
  color: var(--accent-primary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
}

.edition-table tr:hover td {
  background: rgba(232, 213, 168, 0.04);
}

/* Standard Buttons & Inputs */
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 12px 24px;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border-radius: 0;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: var(--bg-canvas);
}

.btn-secondary {
  border-color: var(--border-subtle);
  color: var(--text-muted);
}
.btn-secondary:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

/* FAQ Accordion */
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.faq-item {
  background: var(--bg-surface);
  box-shadow: var(--shadow-soft);
  border-left: 3px solid var(--border-subtle);
}

.faq-item[open] {
  border-left-color: var(--accent-primary);
}

.faq-question {
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  color: var(--accent-primary);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "—";
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(148, 103, 118, 0.25);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

/* Interactive drafting tool */
.tool-box {
  background: var(--bg-surface);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-primary);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(30, 6, 13, 0.7);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  border-radius: 0;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-primary);
  outline: none;
}

.draft-preview {
  background: rgba(18, 3, 8, 0.8);
  border: 1px dashed var(--border-subtle);
  padding: 1.25rem;
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.2rem;
  max-height: 240px;
  overflow-y: auto;
}

.tool-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: #250610;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 103, 118, 0.3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Responsive Navigation & Breakpoints */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 2px solid var(--accent-primary);
    padding: 1.5rem 1.25rem;
    box-shadow: 0 18px 36px rgba(18, 3, 8, 0.8);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    z-index: 999;
  }
  .primary-nav.is-open {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 0.5rem;
  }
  .nav-link {
    display: block;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(148, 103, 118, 0.25);
  }
  .nav-link::after {
    display: none;
  }
  .nav-cta-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  .site-header {
    padding: 12px 16px;
  }
}

@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;
  }
  .festival-card:hover {
    transform: none;
  }
}