:root {
  --bg-canvas: #1a0f26;
  --bg-surface: #241636;
  --bg-surface-hover: #2d1c42;
  --text-primary: #ffffff;
  --text-muted: #c7bcd4;
  --accent-primary: #e0409b;
  --accent-secondary: #eab308;
  --border-subtle: #3d2856;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-card: 0px;
  --radius-pill: 9999px;
  --space-unit: 8px;
  --ease-kinetic: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration: 320ms;
  --shadow-elevation: 0 10px 28px rgba(8, 4, 14, 0.42);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.68;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-secondary);
  color: #1a0f26;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.page-frame {
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  padding: 16px 24px 32px;
}

/* Header */
.site-header {
  position: relative;
  margin: 0 0 32px;
  padding: 12px 20px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-elevation);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand-link:hover {
  color: var(--accent-secondary);
}

.brand-mark {
  display: block;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  min-width: 44px;
  min-height: 44px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  transition: color var(--duration) var(--ease-kinetic), background-color var(--duration) var(--ease-kinetic);
}

.primary-nav a:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-hover);
}

.primary-nav a[aria-current="page"] {
  color: var(--accent-secondary);
  border: 1px solid var(--accent-secondary);
}

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 3px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.18;
  margin-top: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

p {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-muted);
}

strong {
  color: var(--text-primary);
}

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

a:hover {
  color: var(--accent-secondary);
}

.measure {
  max-width: 70ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-secondary);
  margin-bottom: 12px;
}

/* Breadcrumbs */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border-subtle);
}

/* Hero Typography Dossier */
.hero-dossier {
  padding: 40px 0 36px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 36px;
}

.hero-dossier-inner {
  max-width: 74ch;
}

.hero-rule {
  width: 72px;
  height: 2px;
  background-color: var(--accent-primary);
  margin: 20px 0;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Page Intro Header (Inner Pages) */
.page-intro {
  padding: 28px 0 24px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

/* Outlined Square Buttons */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 0;
  border: 1px solid var(--accent-primary);
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease-kinetic), color var(--duration) var(--ease-kinetic), border-color var(--duration) var(--ease-kinetic);
}

.btn-outline:hover {
  background-color: var(--accent-primary);
  color: #1a0f26;
}

.btn-secondary {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.btn-secondary:hover {
  background-color: var(--accent-secondary);
  color: #1a0f26;
}

/* Pills / Season & Elevation Markers */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: #1a0f26;
  color: var(--accent-secondary);
  border: 1px solid var(--border-subtle);
}

.pill-accent {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

/* Sections */
.dossier-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.dossier-section:last-of-type {
  border-bottom: none;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

/* Stat Strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.stat-tile {
  background-color: var(--bg-surface);
  padding: 20px;
  border-radius: 0;
  box-shadow: var(--shadow-elevation);
  transition: transform var(--duration) var(--ease-kinetic), background-color var(--duration) var(--ease-kinetic);
}

.stat-tile:hover {
  transform: translateY(-2px);
  background-color: var(--bg-surface-hover);
}

.stat-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-secondary);
  margin-bottom: 8px;
  font-weight: 700;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.stat-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Tabs */
.tabs-wrap {
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-elevation);
  padding: 24px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.tab-btn {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease-kinetic), color var(--duration) var(--ease-kinetic), background-color var(--duration) var(--ease-kinetic);
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.tab-btn[aria-selected="true"] {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #1a0f26;
}

.tab-panel[hidden] {
  display: none;
}

.tab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

/* Accordion */
.accordion-list {
  display: grid;
  gap: 12px;
}

.accordion-item {
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-elevation);
}

.accordion-trigger {
  width: 100%;
  min-height: 52px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease-kinetic);
}

.accordion-trigger:hover {
  background-color: var(--bg-surface-hover);
}

.accordion-icon {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--accent-secondary);
  flex-shrink: 0;
}

.accordion-panel {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border-subtle);
}

.accordion-panel[hidden] {
  display: none;
}

.accordion-panel p:first-child,
.accordion-panel ul:first-child {
  margin-top: 16px;
}

/* Cards & Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.dossier-card {
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-elevation);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration) var(--ease-kinetic), background-color var(--duration) var(--ease-kinetic);
}

.dossier-card:hover {
  transform: translateY(-3px);
  background-color: var(--bg-surface-hover);
}

.card-media {
  background-color: #140a1e;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body p {
  flex: 1;
}

/* Feature Figure */
.feature-figure {
  margin: 0 0 24px;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-elevation);
}

.feature-figure-frame {
  background-color: #140a1e;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.feature-figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-figure figcaption {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

/* Split Layout for Article Body */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.aside-panel {
  background-color: var(--bg-surface);
  padding: 22px;
  box-shadow: var(--shadow-elevation);
}

.aside-panel ul {
  padding-left: 18px;
  margin: 0 0 16px;
  color: var(--text-muted);
}

.aside-panel li {
  margin-bottom: 8px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-elevation);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-secondary);
  background-color: #1f122e;
}

td {
  color: var(--text-muted);
}

/* Lists & Callouts */
.field-list {
  padding-left: 20px;
  margin: 0 0 20px;
  color: var(--text-muted);
}

.field-list li {
  margin-bottom: 10px;
}

.notice-box {
  background-color: var(--bg-surface);
  border-left: 3px solid var(--accent-secondary);
  padding: 18px 20px;
  margin: 24px 0;
  box-shadow: var(--shadow-elevation);
}

.notice-box p:last-child {
  margin-bottom: 0;
}

/* Contact Composer */
.composer-form {
  background-color: var(--bg-surface);
  padding: 24px;
  box-shadow: var(--shadow-elevation);
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.composer-output {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.status-line {
  font-size: 0.9rem;
  color: var(--accent-secondary);
  min-height: 1.4em;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 28px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 28px;
  box-shadow: var(--shadow-elevation);
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-secondary);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

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

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-meta {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Scroll Reveal */
.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease-kinetic), transform 420ms var(--ease-kinetic);
}

.js-ready .reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Breakpoints */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding: 8px;
  }
  .page-frame {
    padding: 12px 14px 24px;
  }
  .site-header {
    border-radius: 16px;
    flex-wrap: wrap;
    padding: 10px 14px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .primary-nav {
    display: none;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
  }
  .primary-nav.is-open {
    display: block;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .primary-nav a {
    border-radius: 0;
    justify-content: flex-start;
  }
  .site-footer {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-dossier {
    padding: 24px 0;
  }
  .tabs-wrap {
    padding: 16px;
  }
}