:root {
  --bg-canvas: #0b0b0d;
  --bg-surface: #19191d;
  --bg-surface-alt: #131316;
  --bg-surface-hover: #222227;
  --text-primary: #f3f3f5;
  --text-muted: #c0c4cc;
  --accent-primary: #dc2626;
  --accent-hover: #b91c1c;
  --accent-subtle: rgba(220, 38, 38, 0.14);
  --border-subtle: #2a2a30;
  --border-silver: #3d3d46;
  --radius-card: 4px;
  --radius-pill: 9999px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  --glow-accent: 0 0 20px -3px rgba(220, 38, 38, 0.45);
}

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

html {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.75;
  scroll-behavior: smooth;
}

body {
  overflow-wrap: anywhere;
  hyphens: auto;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: 0.85rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.25rem; }
p.lead { font-size: 1.15rem; color: #dedee3; line-height: 1.8; }
a { color: var(--text-primary); text-decoration: none; transition: color 0.2s var(--ease-kinetic); }
a:hover { color: var(--accent-primary); }

.tag-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

/* Header & Navigation */
header.site-header {
  position: relative;
  background-color: #0f0f12;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  z-index: 50;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
}

.brand-symbol {
  width: 28px;
  height: 28px;
  background: var(--accent-primary);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 0.9rem;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-card);
  transition: all 0.2s var(--ease-kinetic);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background-color: var(--bg-surface);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  border-radius: 4px;
}

.mobile-nav-panel {
  display: none;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
}

.mobile-nav-panel.open {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Layout Wrappers */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
  flex: 1;
}

.editorial-reading-pane {
  max-width: 72ch;
  margin: 0 auto;
}

/* Faint Silver Dot Grid */
.dot-grid-bg {
  background-image: radial-gradient(rgba(192, 196, 204, 0.12) 1px, transparent 0);
  background-size: 20px 20px;
}

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.65rem;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-kinetic), background-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-pill:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-silver);
}

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

/* Hero Section */
.hero-editorial {
  position: relative;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-alt);
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  overflow: hidden;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
  align-items: center;
}

.vector-art-frame {
  width: 100%;
  max-height: 280px;
  background: #111114;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vector-art-frame img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.hero-facts-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-silver);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-elevation);
}

.hero-fact-row {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-fact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fact-bullet {
  color: var(--accent-primary);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
}

.fact-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.fact-text strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.2rem;
}

/* Two-column Editorial Section */
.ledger-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.column-header {
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.column-header span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Icon-Led Discovery Rows */
.discovery-ledger-list {
  display: flex;
  flex-direction: column;
}

.ledger-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.2s var(--ease-kinetic);
}

.ledger-row:last-child {
  border-bottom: none;
}

.ledger-row:hover {
  background-color: var(--accent-subtle);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.ledger-pictogram {
  width: 44px;
  height: 44px;
  background-color: #251215;
  border: 1px solid #4a191f;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.ledger-pictogram img {
  width: 24px;
  height: 24px;
}

.ledger-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.ledger-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.ledger-meta span {
  display: inline-flex;
  align-items: center;
}

.ledger-desc {
  font-size: 0.92rem;
  color: #c9c9d1;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Spoiler Disclosures */
details.spoiler-panel {
  background: #141417;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

details.spoiler-panel summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  user-select: none;
}

details.spoiler-panel[open] summary {
  margin-bottom: 0.65rem;
}

details.spoiler-panel p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Genre Filter Bar */
.filter-bar {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-btn {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

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

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-silver);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--accent-primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Form & Interactive Tool */
.tip-tool-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-silver);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin: 2rem 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #0e0e11;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.preview-box {
  background-color: #0b0b0d;
  border: 1px dashed var(--border-silver);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  margin-top: 1.5rem;
  font-family: monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  color: #dedee3;
}

.action-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Scroll reveal utility */
.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}

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

/* Footer */
footer.site-footer {
  background-color: #0d0d10;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

/* Responsive queries */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ledger-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
