:root {
  --bg-canvas: #3b0d1a;
  --bg-surface: #4d1424;
  --bg-surface-hover: #5b182b;
  --bg-deep: #260710;
  --text-primary: #f6efe0;
  --text-muted: #d6c5b3;
  --accent-primary: #e8d5a8;
  --accent-ink: #260710;
  --border-subtle: rgba(232, 213, 168, 0.38);
  --border-strong: #e8d5a8;
  --font-display: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
  --radius-card: 16px;
  --space-unit: 8px;
  --duration: 380ms;
  --ease-kinetic: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-offset: 4px 4px 0 #260710;
}

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

html {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 20px;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.page-frame {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  background-color: var(--bg-canvas);
  min-height: calc(100vh - 40px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-primary);
  color: var(--accent-ink);
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  z-index: 100;
  border: 2px solid var(--bg-deep);
}

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

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease-kinetic), background-color var(--duration) var(--ease-kinetic);
}

a:hover {
  color: var(--text-primary);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.18;
  margin-top: 0;
  overflow-wrap: anywhere;
}

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

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.42rem);
  margin-bottom: 10px;
}

p {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

.prose {
  max-width: 70ch;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: relative;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.top-notice-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 7px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
  border-top-left-radius: var(--radius-card);
  border-top-right-radius: var(--radius-card);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--accent-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.94rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.nav-link:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-subtle);
  color: var(--accent-primary);
}

.nav-link[aria-current="page"] {
  background-color: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--accent-primary);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--bg-surface);
  color: var(--accent-primary);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.menu-toggle:hover {
  background-color: var(--bg-surface-hover);
}

/* Bands */
.band {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.band-base {
  background-color: var(--bg-canvas);
}

.band-surface {
  background-color: var(--bg-surface);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 4px;
  margin-bottom: 14px;
}

/* Hero */
.hero-band {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background-color: var(--bg-deep);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--bg-deep);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.45;
}

.hero-panel {
  position: relative;
  z-index: 2;
  max-width: 780px;
  width: 100%;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow-offset);
}

.hero-panel p {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
}

.page-header-band {
  padding: 48px 0 40px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumbs {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--accent-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  background-color: var(--accent-primary);
  color: var(--accent-ink);
  border: 2px solid var(--bg-deep);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-offset);
  transition: transform 180ms var(--ease-kinetic), box-shadow 180ms var(--ease-kinetic), background-color 180ms var(--ease-kinetic);
}

.btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--bg-deep);
  color: var(--accent-ink);
  background-color: var(--text-primary);
}

.btn-secondary {
  background-color: var(--bg-canvas);
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: 4px 4px 0 var(--bg-deep);
}

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

/* Ruled List Rows (No boxed cards) */
.ruled-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--border-strong);
}

.ruled-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 8px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--duration) var(--ease-kinetic);
}

.ruled-row:hover {
  background-color: rgba(232, 213, 168, 0.04);
}

.row-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
  margin-top: 3px;
}

.row-meta {
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.row-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
}

/* Split layout */
.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: start;
}

.inset-panel {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  background-color: var(--bg-surface);
}

.band-surface .inset-panel {
  background-color: var(--bg-canvas);
}

/* Images */
.media-frame {
  margin: 0 0 20px;
  background-color: var(--bg-deep);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-caption {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  margin: 24px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  text-align: left;
}

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

th {
  background-color: var(--bg-deep);
  color: var(--accent-primary);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tr:last-child td {
  border-bottom: none;
}

/* Accordion FAQ */
.faq-list {
  border-top: 1px solid var(--border-strong);
  margin-top: 24px;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

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

.faq-trigger:hover {
  color: var(--accent-primary);
}

.faq-symbol {
  color: var(--accent-primary);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.faq-panel {
  padding: 0 8px 22px;
  color: var(--text-muted);
  max-width: 72ch;
}

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

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  border-top: 1px solid var(--border-subtle);
}

.checklist li {
  padding: 14px 4px 14px 28px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent-primary);
  border-radius: 2px;
}

/* Forms / Contact Tool */
.field-group {
  margin-bottom: 18px;
}

.field-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--accent-primary);
}

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

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.status-note {
  margin-top: 14px;
  font-size: 0.94rem;
  color: var(--accent-primary);
  min-height: 1.4em;
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  padding: 44px 0 36px;
  border-bottom-left-radius: var(--radius-card);
  border-bottom-right-radius: var(--radius-card);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  display: inline-block;
  padding: 4px 0;
  text-decoration: none;
  color: var(--text-primary);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Motion reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration) var(--ease-kinetic), transform var(--duration) var(--ease-kinetic);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal.reveal-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 8px;
  }
  .page-frame {
    min-height: calc(100vh - 16px);
  }
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 16px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
  }
  .main-nav.is-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-link {
    width: 100%;
  }
  .hero-panel {
    padding: 28px 20px;
  }
  .band {
    padding: 44px 0;
  }
  .container {
    padding: 0 16px;
  }
}