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

:root {
  --black:     #06090E;
  --navy:      #0A1520;
  --mid:       #0D1E2E;
  --card:      #0F1E2E;
  --card-alt:  #132232;
  --light-bg:  #F0EDE6;
  --fg-rgb:    240,237,230;
  --border:    rgba(var(--fg-rgb),.07);
  --border-lg: rgba(var(--fg-rgb),.12);
  --ink:       #14202B;  /* fixed dark text - for text on surfaces that stay light in both themes */
  --paper:     #F0EDE6;  /* fixed light surface - for accents that stay light in both themes */
  --offwhite:  #F0EDE6;
  --white:     #FFFFFF;
  --slate:     #7A8599;
  --slate-lt:  #9AAABB;
  --red:       #C8392B;
  --darkred:   #A02E22;
  --red-dim:   rgba(200,57,43,.12);
  --red-glow:  rgba(200,57,43,.06);
  --cobalt:    #1A6CF6;
  --grey:      #1E2D3E;
  --gold:      #C9A84C;
}

/* ══════════════════════════════════════════
   LIGHT THEME
   Same tokens, different values - everything above that references
   var(--black), var(--card), var(--offwhite) etc. automatically re-tints
   when this attribute is present, with no other CSS changes needed.
══════════════════════════════════════════ */
[data-theme="light"] {
  --black:     #F5F2EA;  /* page background */
  --navy:      #ECE7DC;  /* alternating section background */
  --mid:       #ECE7DC;
  --card:      #FFFFFF;  /* elevated card surfaces */
  --card-alt:  #F6F2E9;  /* card hover state */
  --light-bg:  #FFFFFF;  /* the "elevated/lighter" accent section */
  --fg-rgb:    20,32,43; /* dark-navy tint, used for translucent borders/text on light surfaces */
  --offwhite:  #14202B;  /* primary text */
  --slate:     #5B6472;  /* secondary/muted text, darkened for contrast on a light page */
  --slate-lt:  #48505C;
}

/* ══════════════════════════════════════════
   TEXT SIZE (Settings)
   Scales the root font size; nearly all type in this stylesheet is set in
   rem, so this cascades through the whole site automatically.
══════════════════════════════════════════ */
html[data-text-size="small"]  { font-size: 14px; }
html[data-text-size="medium"] { font-size: 16px; }
html[data-text-size="large"]  { font-size: 18px; }

/* ══════════════════════════════════════════
   REDUCED MOTION (Settings)
   A manual override alongside the OS-level prefers-reduced-motion query
   below, for people who want it off in-app regardless of system setting.
══════════════════════════════════════════ */
[data-reduced-motion="true"] .ticker-track,
[data-reduced-motion="true"] .wizard-panel.active,
[data-reduced-motion="true"] .hero-kicker,
[data-reduced-motion="true"] .mobile-menu.open {
  animation: none !important;
}
[data-reduced-motion="true"] .reveal {
  opacity: 1 !important; transform: none !important; transition: none !important;
}
[data-reduced-motion="true"] .hero-slide {
  transition: none !important;
}
[data-reduced-motion="true"] .hero-slide.active {
  animation: none !important; opacity: 1 !important; transform: none !important;
}

html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--offwhite);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.page { display: none; }
.page.active { display: block; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}
@keyframes heroRotate {
  0%   { opacity: 0; transform: translateY(8px); }
  8%   { opacity: 1; transform: translateY(0); }
  88%  { opacity: 1; transform: translateY(0); }
  96%  { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* Scroll-triggered entrance */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  background: rgba(6,9,14,.93);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
nav.scrolled { background: rgba(6,9,14,.99); }

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-img { height: 36px; width: 36px; object-fit: contain; }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 900; letter-spacing: .02em;
  color: var(--offwhite);
}
.nav-logo-text span { color: var(--red); }

.nav-links {
  display: flex; gap: 2px; list-style: none;
  flex: 1; justify-content: center; min-width: 0;
}
.nav-links a, .nav-links button.nav-tab {
  font-family: 'Space Mono', monospace;
  font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate); text-decoration: none;
  background: none; border: none; cursor: pointer;
  padding: 6px 12px; transition: color .2s; white-space: nowrap;
}
.nav-links a:hover,
.nav-links button.nav-tab:hover,
.nav-links button.nav-tab.active { color: var(--offwhite); }

.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-search-wrap { position: relative; }
.nav-search {
  background: rgba(var(--fg-rgb),.05); border: 1px solid rgba(var(--fg-rgb),.08);
  color: var(--offwhite); font-family: 'Inter', sans-serif; font-size: .82rem;
  padding: 7px 30px 7px 12px; outline: none; width: 150px;
  transition: all .2s;
}
.nav-search:focus { border-color: var(--red); width: 190px; background: rgba(200,57,43,.06); }
.nav-search::placeholder { color: var(--slate); }
.nav-search-icon { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--slate); font-size: .8rem; pointer-events: none; }

.nav-cta {
  font-family: 'Space Mono', monospace; font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--offwhite); background: var(--red);
  border: none; padding: 8px 18px; cursor: pointer;
  transition: background .15s, transform .15s; white-space: nowrap;
}
.nav-cta:hover { background: var(--darkred); transform: translateY(-1px); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--offwhite); transition: all .2s; }

.mobile-menu {
  display: none; position: fixed; inset: 64px 0 0 0;
  background: var(--black); z-index: 199;
  flex-direction: column; padding: 32px 24px;
  border-top: 1px solid var(--border); overflow-y: auto;
}
.mobile-menu.open { display: flex; animation: fadeIn .2s ease; }
.mobile-menu button, .mobile-menu a {
  font-family: 'Space Mono', monospace; font-size: .75rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); background: none; border: none;
  padding: 16px 0; cursor: pointer; text-align: left;
  border-bottom: 1px solid var(--border); text-decoration: none;
  transition: color .15s;
}
.mobile-menu button:hover, .mobile-menu a:hover { color: var(--offwhite); }
.mobile-menu .mobile-cta { color: #fff; background: var(--red); padding: 14px 24px; margin-top: 16px; text-align: center; border-bottom: none; }

/* ══════════════════════════════════════════
   HERO — ROTATING TYPOGRAPHIC
══════════════════════════════════════════ */
.hero {
  min-height: 100vh; padding-top: 64px;
  display: flex; flex-direction: column;
  background: var(--black);
  position: relative; overflow: hidden;
}

/* Decorative background elements */
.hero-bg-line {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 1px; background: linear-gradient(180deg, transparent, var(--red) 40%, transparent);
  opacity: .3; right: 42%;
}
.hero-bg-dot {
  position: absolute; width: 400px; height: 400px;
  border-radius: 50%; background: radial-gradient(circle, rgba(200,57,43,.08) 0%, transparent 70%);
  top: 10%; right: 5%; pointer-events: none;
}

.hero-inner {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding: 60px 48px 40px;
  position: relative; z-index: 1;
}

.hero-kicker {
  font-family: 'Space Mono', monospace;
  font-size: .62rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--red); margin-bottom: 32px;
  display: flex; align-items: center; gap: 14px;
  animation: slideInLeft .8s ease both;
}
.hero-kicker::before { content: ''; display: block; width: 32px; height: 1px; background: var(--red); }

/* Rotating slides */
.hero-slides { position: relative; margin-bottom: 40px; min-height: clamp(180px, 28vw, 320px); }
.hero-slide {
  position: absolute; top: 0; left: 0; opacity: 0;
  pointer-events: none;
}
.hero-slide.active { animation: heroRotate 8s ease both; pointer-events: auto; }

.hero-slide-num {
  font-family: 'Space Mono', monospace;
  font-size: .6rem; letter-spacing: .14em;
  color: rgba(200,57,43,.5); margin-bottom: 16px; display: block;
}
.hero-slide-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 6.5vw, 7rem);
  font-weight: 900; line-height: .96; letter-spacing: -.03em;
  color: var(--offwhite); max-width: 820px;
}
.hero-slide-headline em { font-style: italic; color: var(--red); }
.hero-slide-sub {
  font-size: 1rem; color: var(--slate); line-height: 1.7;
  max-width: 480px; margin-top: 20px;
}

/* Slide dots */
.hero-dots {
  display: flex; gap: 8px; margin-bottom: 32px;
}
.hero-dot {
  width: 24px; height: 2px; background: rgba(var(--fg-rgb),.2);
  cursor: pointer; transition: all .3s; border: none; padding: 0;
}
.hero-dot.active { background: var(--red); width: 40px; }

.hero-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.hero-actions { display: flex; gap: 12px; }

.hero-stats-row { display: flex; gap: 40px; }
.hero-stat-item { text-align: right; }
.hero-stat-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; font-weight: 900; color: var(--offwhite);
  line-height: 1; display: block;
}
.hero-stat-item .lbl {
  font-family: 'Space Mono', monospace;
  font-size: .55rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); display: block; margin-top: 4px;
}

/* Quote & ticker band */
.hero-band {
  background: var(--red); padding: 18px 48px;
  display: flex; align-items: center; gap: 20px;
  position: relative; overflow: hidden; z-index: 1;
}
.hero-band::before {
  content: '"';
  position: absolute; left: 8px; top: -30px;
  font-family: 'Playfair Display', serif;
  font-size: 9rem; font-weight: 900;
  color: rgba(0,0,0,.12); line-height: 1; pointer-events: none;
}
.hero-band-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(.95rem, 1.6vw, 1.2rem);
  font-style: italic; font-weight: 700;
  color: rgba(255,255,255,.92); position: relative; z-index: 1;
}

/* Ticker */
.ticker-wrap { background: var(--paper); padding: 11px 0; overflow: hidden; }
.ticker-track { display: flex; white-space: nowrap; animation: ticker 36s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-family: 'Space Mono', monospace;
  font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.ticker-item::after { content: '◆'; font-size: .4rem; color: var(--red); }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-primary {
  font-family: 'Space Mono', monospace; font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--red);
  border: none; padding: 13px 28px; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background .15s, transform .15s;
}
.btn-primary:hover { background: var(--darkred); transform: translateY(-2px); }

.btn-outline {
  font-family: 'Space Mono', monospace; font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--offwhite); background: transparent;
  border: 1px solid rgba(var(--fg-rgb),.2);
  padding: 13px 28px; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: border-color .15s, transform .15s;
}
.btn-outline:hover { border-color: rgba(var(--fg-rgb),.5); transform: translateY(-2px); }

.btn-dark {
  font-family: 'Space Mono', monospace; font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--offwhite); background: var(--black);
  border: none; padding: 14px 32px; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background .15s, transform .15s;
}
.btn-dark:hover { background: var(--navy); transform: translateY(-2px); }

.btn-ghost {
  font-family: 'Space Mono', monospace; font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); background: none; border: none;
  padding: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.btn-ghost:hover { gap: 10px; }

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
.section { padding: 80px 48px; }
.section-alt { background: var(--mid); }
.section-light {
  background: var(--light-bg); color: var(--ink);
}
.section-light .section-label { color: var(--red); }
.section-light .section-title { color: var(--ink); }
.section-light .section-link { color: #444; }
.section-light .section-link:hover { color: var(--red); }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px; padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.section-light .section-header { border-bottom-color: rgba(0,0,0,.1); }

.section-label {
  font-family: 'Space Mono', monospace; font-size: .6rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 7px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 900; color: var(--offwhite); line-height: 1;
}
.section-link {
  font-family: 'Space Mono', monospace; font-size: .6rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate); text-decoration: none; background: none; border: none;
  cursor: pointer; transition: color .15s;
  display: flex; align-items: center; gap: 6px;
}
.section-link:hover { color: var(--red); }

/* ══════════════════════════════════════════
   FEATURED — LARGE EDITORIAL LAYOUT
══════════════════════════════════════════ */
.featured-grid {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 1px; background: var(--border);
}
.featured-main {
  background: var(--card); padding: 48px;
  cursor: pointer; transition: background .25s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.featured-main::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--red);
  transform: scaleY(0); transform-origin: top;
  transition: transform .35s ease;
}
.featured-main:hover { background: var(--card-alt); }
.featured-main:hover::after { transform: scaleY(1); }
.featured-main:hover .featured-arrow { transform: translate(4px, -4px); }

.featured-arrow { position: absolute; top: 32px; right: 32px; color: var(--red); font-size: 1.2rem; transition: transform .2s; }

.featured-sidebar { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.side-article {
  background: var(--card); padding: 28px 32px;
  cursor: pointer; transition: background .2s; flex: 1;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.side-article::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.side-article:hover { background: var(--card-alt); }
.side-article:hover::before { transform: scaleX(1); }

.article-category {
  font-family: 'Space Mono', monospace; font-size: .58rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.article-title {
  font-family: 'Playfair Display', serif; font-size: 1.15rem;
  font-weight: 700; line-height: 1.25; color: var(--offwhite); margin-bottom: 10px;
}
.featured-main .article-title { font-size: 2rem; line-height: 1.1; margin-bottom: 16px; }
.article-excerpt { font-size: .87rem; line-height: 1.7; color: var(--slate); margin-bottom: 20px; flex: 1; }
.article-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: 'Space Mono', monospace; font-size: .58rem;
  letter-spacing: .06em; color: var(--slate);
  padding-top: 14px; border-top: 1px solid var(--border); margin-top: auto;
}
.article-meta .author { color: rgba(var(--fg-rgb),.75); }

/* ══════════════════════════════════════════
   TRENDING — NUMBERED LIST
══════════════════════════════════════════ */
.trending-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.trending-item {
  background: var(--card); padding: 24px 28px;
  display: flex; align-items: flex-start; gap: 20px;
  cursor: pointer; transition: background .2s;
}
.trending-item:hover { background: var(--card-alt); }
.trending-item:hover .trending-num { color: var(--red); }
.trending-num {
  font-family: 'Playfair Display', serif; font-size: 2rem;
  font-weight: 900; color: rgba(var(--fg-rgb),.1);
  line-height: 1; flex-shrink: 0; width: 36px;
  transition: color .2s;
}
.trending-content { flex: 1; }
.trending-title {
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  font-weight: 700; color: var(--offwhite); margin-bottom: 6px; line-height: 1.3;
}
.trending-meta {
  font-family: 'Space Mono', monospace; font-size: .58rem;
  letter-spacing: .06em; color: var(--slate);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.trending-badge {
  font-family: 'Space Mono', monospace; font-size: .56rem;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(200,57,43,.12); color: var(--red);
  padding: 3px 8px; flex-shrink: 0; align-self: flex-start;
}

/* ══════════════════════════════════════════
   MOST DISCUSSED
══════════════════════════════════════════ */
.discussed-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
}
.discussed-card {
  background: var(--light-bg); padding: 32px 28px;
  cursor: pointer; transition: background .2s;
  display: flex; flex-direction: column;
  position: relative;
}
.discussed-card:hover { background: #E8E4DC; }
.discussed-card:hover .discussed-arrow { transform: translate(3px,-3px); }
.discussed-cat {
  font-family: 'Space Mono', monospace; font-size: .58rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.discussed-title {
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
  font-weight: 700; color: var(--ink); line-height: 1.3;
  margin-bottom: 12px; flex: 1;
}
.discussed-stats {
  display: flex; gap: 16px; align-items: center;
  padding-top: 14px; border-top: 1px solid rgba(0,0,0,.1);
  font-family: 'Space Mono', monospace; font-size: .6rem;
  letter-spacing: .06em; color: #666;
}
.discussed-stat-num { font-weight: 700; color: var(--red); }
.discussed-arrow { position: absolute; top: 24px; right: 24px; color: var(--red); font-size: 1rem; transition: transform .2s; }

/* ══════════════════════════════════════════
   FEATURED WRITERS
══════════════════════════════════════════ */
.writers-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--border);
}
.writer-card {
  background: var(--card); padding: 32px 24px;
  cursor: pointer; transition: background .2s;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; position: relative;
}
.writer-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transition: transform .3s;
}
.writer-card:hover { background: var(--card-alt); }
.writer-card:hover::after { transform: scaleX(1); }
.writer-avatar {
  width: 64px; height: 64px;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 900;
  color: #fff; text-transform: uppercase; margin-bottom: 14px;
  transition: transform .2s;
}
.writer-card:hover .writer-avatar { transform: translateY(-4px); }
.writer-name {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  font-weight: 700; color: var(--offwhite); margin-bottom: 4px;
}
.writer-grade {
  font-family: 'Space Mono', monospace; font-size: .58rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.writer-bio { font-size: .82rem; color: var(--slate); line-height: 1.6; margin-bottom: 14px; flex: 1; }
.writer-stats {
  display: flex; gap: 16px; justify-content: center;
  font-family: 'Space Mono', monospace; font-size: .58rem;
  letter-spacing: .08em; color: var(--slate);
}
.writer-stat-num { color: var(--offwhite); font-weight: 700; }

/* ══════════════════════════════════════════
   COMMUNITY ACTIVITY
══════════════════════════════════════════ */
.activity-section { background: var(--navy); }
.activity-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.activity-feed { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.activity-item {
  background: var(--card); padding: 18px 22px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: background .2s;
}
.activity-item:hover { background: var(--card-alt); }
.activity-icon {
  width: 32px; height: 32px; background: var(--red-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.activity-text { flex: 1; }
.activity-main { font-size: .88rem; color: var(--offwhite); line-height: 1.5; margin-bottom: 3px; }
.activity-main strong { color: var(--offwhite); }
.activity-time { font-family: 'Space Mono', monospace; font-size: .58rem; letter-spacing: .06em; color: var(--slate); }

.activity-pulse {
  background: var(--card); padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.pulse-title {
  font-family: 'Playfair Display', serif; font-size: 1.2rem;
  font-weight: 700; color: var(--offwhite); margin-bottom: 4px;
}
.pulse-sub { font-size: .82rem; color: var(--slate); }
.pulse-stat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.pulse-stat-row:last-child { border-bottom: none; }
.pulse-stat-label { font-family: 'Space Mono', monospace; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.pulse-stat-val {
  font-family: 'Playfair Display', serif; font-size: 1.6rem;
  font-weight: 900; color: var(--offwhite);
}
.pulse-live {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Space Mono', monospace; font-size: .58rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--green, #27AE60);
}
.pulse-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #27AE60; animation: pulse 1.5s ease infinite;
}

/* ══════════════════════════════════════════
   TOPICS
══════════════════════════════════════════ */
.topics-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--border);
}
.topic-card {
  background: var(--card); padding: 36px 28px;
  cursor: pointer; transition: background .2s;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.topic-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.topic-card:hover { background: var(--card-alt); }
.topic-card:hover::before { transform: scaleX(1); }
.topic-card:hover .topic-arrow { transform: translate(4px,-4px); color: var(--red); }
.topic-icon { font-size: 1.8rem; margin-bottom: 16px; display: block; }
.topic-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--offwhite); margin-bottom: 8px; }
.topic-desc { font-size: .83rem; line-height: 1.65; color: var(--slate); flex: 1; }
.topic-arrow { position: absolute; top: 24px; right: 24px; color: var(--slate); font-size: 1rem; transition: transform .2s, color .2s; }

/* ══════════════════════════════════════════
   SUBMIT CTA
══════════════════════════════════════════ */
.submit-section {
  background: var(--red); padding: 88px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; position: relative; overflow: hidden;
}
.submit-section::before {
  content: '→';
  position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  font-family: 'Playfair Display', serif; font-size: 20rem; font-weight: 900;
  color: rgba(0,0,0,.07); pointer-events: none; user-select: none; line-height: 1;
}
.submit-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 900; line-height: 1.05; color: #fff;
}
.submit-headline em { font-style: italic; }
.submit-body { font-size: .97rem; line-height: 1.8; color: rgba(255,255,255,.75); margin-bottom: 32px; }
.submit-step { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.step-num { font-family: 'Space Mono', monospace; font-size: .58rem; letter-spacing: .1em; color: rgba(255,255,255,.4); min-width: 22px; padding-top: 2px; }
.step-text { font-size: .9rem; color: rgba(255,255,255,.82); line-height: 1.6; }
.step-text strong { color: #fff; }

/* ══════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════ */
.newsletter-section {
  padding: 64px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
  background: var(--mid);
}
.newsletter-left .label {
  font-family: 'Space Mono', monospace; font-size: .62rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.newsletter-left h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--offwhite); }
.newsletter-form { display: flex; flex: 1; max-width: 440px; }
.newsletter-form input {
  flex: 1; padding: 13px 16px;
  background: rgba(var(--fg-rgb),.05); border: 1px solid rgba(var(--fg-rgb),.1); border-right: none;
  color: var(--offwhite); font-family: 'Inter', sans-serif; font-size: .9rem; outline: none;
  transition: border-color .15s;
}
.newsletter-form input::placeholder { color: var(--slate); }
.newsletter-form input:focus { border-color: var(--red); }
.newsletter-form button {
  font-family: 'Space Mono', monospace; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--red); border: none; padding: 13px 20px; cursor: pointer;
  transition: background .15s; white-space: nowrap;
}
.newsletter-form button:hover { background: var(--darkred); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer { padding: 56px 48px 32px; border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo-img { height: 32px; width: 32px; object-fit: contain; }
.footer-logo-text { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 900; color: var(--offwhite); }
.footer-logo-text span { color: var(--red); }
.footer-desc { font-size: .84rem; line-height: 1.75; color: var(--slate); max-width: 280px; }
.footer-col h4 { font-family: 'Space Mono', monospace; font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .85rem; color: rgba(var(--fg-rgb),.42); text-decoration: none; transition: color .15s; cursor: pointer; background: none; border: none; }
.footer-col a:hover { color: var(--offwhite); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 22px; }
.footer-copy { font-family: 'Space Mono', monospace; font-size: .58rem; letter-spacing: .08em; color: var(--slate); }
.footer-tagline { font-family: 'Playfair Display', serif; font-style: italic; font-size: .82rem; color: var(--slate); }

/* ══════════════════════════════════════════
   EXPLORE PAGE
══════════════════════════════════════════ */
#page-explore { padding-top: 64px; min-height: 100vh; }
.explore-header { padding: 56px 48px 0; border-bottom: 1px solid var(--border); }
.explore-title { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem,4.5vw,3.4rem); font-weight: 900; color: var(--offwhite); margin-bottom: 10px; letter-spacing: -.02em; }
.explore-sub { font-size: .93rem; color: var(--slate); line-height: 1.65; margin-bottom: 28px; }
.explore-search-bar { display: flex; max-width: 520px; margin-bottom: 36px; }
.explore-search-input { flex: 1; padding: 12px 16px; background: rgba(var(--fg-rgb),.05); border: 1px solid rgba(var(--fg-rgb),.1); border-right: none; color: var(--offwhite); font-family: 'Inter', sans-serif; font-size: .9rem; outline: none; }
.explore-search-input:focus { border-color: var(--red); }
.explore-search-input::placeholder { color: var(--slate); }
.explore-search-btn { font-family: 'Space Mono', monospace; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--red); border: none; padding: 12px 20px; cursor: pointer; transition: background .15s; }
.explore-search-btn:hover { background: var(--darkred); }

.filter-tabs { display: flex; padding: 0 48px; border-bottom: 1px solid var(--border); background: var(--black); }
.filter-tab { font-family: 'Space Mono', monospace; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); background: none; border: none; border-bottom: 2px solid transparent; padding: 14px 18px; cursor: pointer; transition: color .15s, border-color .15s; margin-bottom: -1px; }
.filter-tab:hover { color: var(--offwhite); }
.filter-tab.active { color: var(--offwhite); border-bottom-color: var(--red); }

.posts-grid { padding: 40px 48px; display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); min-height: 200px; }
.post-card { background: var(--card); padding: 28px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: background .2s; position: relative; }
.post-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .28s; }
.post-card:hover { background: var(--card-alt); }
.post-card:hover::after { transform: scaleX(1); }
.post-card-cat { font-family: 'Space Mono', monospace; font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.post-card-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--offwhite); line-height: 1.3; }
.post-card-excerpt { font-size: .84rem; line-height: 1.65; color: var(--slate); flex: 1; }
.post-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: 'Space Mono', monospace; font-size: .56rem; letter-spacing: .06em; color: var(--slate); padding-top: 10px; border-top: 1px solid var(--border); }
.post-card-meta .author { color: rgba(var(--fg-rgb),.65); }
.post-card-badge { font-family: 'Space Mono', monospace; font-size: .54rem; letter-spacing: .1em; text-transform: uppercase; background: var(--red-dim); color: var(--red); padding: 3px 8px; }
.no-results { padding: 80px 48px; text-align: center; color: var(--slate); font-family: 'Playfair Display', serif; font-size: 1.4rem; font-style: italic; }

/* Reactions */
.reactions-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.reaction-btn { display: flex; align-items: center; gap: 5px; font-family: 'Space Mono', monospace; font-size: .56rem; letter-spacing: .06em; color: var(--slate); background: rgba(var(--fg-rgb),.04); border: 1px solid rgba(var(--fg-rgb),.08); padding: 4px 8px; cursor: pointer; transition: all .15s; user-select: none; }
.reaction-btn:hover { border-color: rgba(var(--fg-rgb),.2); color: var(--offwhite); }
.reaction-btn.reacted { background: var(--red-dim); border-color: rgba(200,57,43,.3); color: var(--red); }
.reaction-count { font-size: .6rem; }

/* Tags */
.tags-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag { font-family: 'Space Mono', monospace; font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--fg-rgb),.55); background: rgba(var(--fg-rgb),.05); border: 1px solid rgba(var(--fg-rgb),.1); padding: 4px 9px; }
.tag.primary { color: var(--red); background: var(--red-dim); border-color: rgba(200,57,43,.22); }

/* ══════════════════════════════════════════
   ARTICLE VIEW
══════════════════════════════════════════ */
#page-article { padding-top: 64px; min-height: 100vh; }
.article-view-wrap { max-width: 740px; margin: 0 auto; padding: 60px 48px 88px; }
.article-back { font-family: 'Space Mono', monospace; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 8px; margin-bottom: 44px; transition: color .15s; padding: 0; }
.article-back:hover { color: var(--offwhite); }
.article-view-cat { font-family: 'Space Mono', monospace; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.article-view-title { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem,4vw,2.8rem); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; color: var(--offwhite); margin-bottom: 18px; }
.article-view-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: 'Space Mono', monospace; font-size: .6rem; letter-spacing: .06em; color: var(--slate); margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.article-view-meta .author { color: rgba(var(--fg-rgb),.8); font-weight: 700; }
.article-view-body { font-size: 1.03rem; line-height: 1.9; color: rgba(var(--fg-rgb),.82); margin-bottom: 44px; }
.article-view-body p { margin-bottom: 1.5em; }
.article-reactions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 0; margin-bottom: 44px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.article-reactions-label { font-family: 'Space Mono', monospace; font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.article-reaction-btn { display: flex; align-items: center; gap: 6px; font-family: 'Space Mono', monospace; font-size: .6rem; letter-spacing: .06em; color: var(--slate); background: rgba(var(--fg-rgb),.04); border: 1px solid rgba(var(--fg-rgb),.08); padding: 7px 12px; cursor: pointer; transition: all .15s; user-select: none; }
.article-reaction-btn:hover { border-color: rgba(var(--fg-rgb),.2); color: var(--offwhite); }
.article-reaction-btn.reacted { background: var(--red-dim); border-color: rgba(200,57,43,.3); color: var(--red); }

/* Comments */
.comments-section { border-top: 1px solid var(--border); padding-top: 44px; }
.comments-heading { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--offwhite); margin-bottom: 24px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.comment-form textarea { background: rgba(var(--fg-rgb),.04); border: 1px solid rgba(var(--fg-rgb),.1); color: var(--offwhite); font-family: 'Inter', sans-serif; font-size: .9rem; padding: 13px 15px; outline: none; transition: border-color .15s; min-height: 95px; resize: vertical; line-height: 1.65; }
.comment-form textarea:focus { border-color: var(--red); }
.comment-form textarea::placeholder { color: rgba(122,133,153,.45); }
.comment-submit { font-family: 'Space Mono', monospace; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--red); border: none; padding: 11px 24px; cursor: pointer; align-self: flex-start; transition: background .15s; }
.comment-submit:hover { background: var(--darkred); }
.comment-signin-prompt { background: var(--card); padding: 22px 26px; border-left: 3px solid rgba(200,57,43,.3); margin-bottom: 24px; text-align: center; }
.comment-signin-prompt p { font-size: .88rem; color: var(--slate); margin-bottom: 12px; }
.comment-signin-prompt button { font-family: 'Space Mono', monospace; font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--red); border: none; padding: 9px 20px; cursor: pointer; }
.comments-list { display: flex; flex-direction: column; gap: 14px; }
.comment-card { background: var(--card); padding: 20px 22px; border-left: 2px solid rgba(200,57,43,.25); transition: border-color .2s; }
.comment-card:hover { border-left-color: var(--red); }
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.comment-name { font-family: 'Space Mono', monospace; font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; color: var(--offwhite); font-weight: 700; }
.comment-date { font-family: 'Space Mono', monospace; font-size: .56rem; letter-spacing: .06em; color: var(--slate); }
.comment-body { font-size: .88rem; line-height: 1.7; color: rgba(var(--fg-rgb),.72); }
.comment-delete-btn { margin-left: auto; background: none; border: none; color: var(--slate); font-size: 1rem; cursor: pointer; padding: 0 4px; line-height: 1; transition: color .15s; }
.comment-delete-btn:hover { color: var(--red); }
/* Report button sits next to (or in place of, if no delete button is
   shown) the delete "×" in the comment header. Deliberately understated -
   a flag glyph rather than a loud red button - since this is a low-
   frequency, "just in case" action rather than a primary interaction. */
.comment-report-btn { background: none; border: none; color: var(--slate); font-size: .78rem; cursor: pointer; padding: 0 4px; line-height: 1; transition: color .15s; }
.comment-report-btn:hover { color: var(--red); }
.no-comments { font-style: italic; color: var(--slate); font-size: .88rem; }

/* ══════════════════════════════════════════
   PROFILES
══════════════════════════════════════════ */
#page-profile { padding-top: 64px; min-height: 100vh; }
.profile-wrap { max-width: 860px; margin: 0 auto; padding: 56px 48px 80px; }
.profile-header { display: flex; align-items: flex-start; gap: 28px; margin-bottom: 44px; padding-bottom: 36px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.profile-avatar { width: 72px; height: 72px; flex-shrink: 0; background: var(--red); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: #fff; text-transform: uppercase; }
.profile-info { flex: 1; }
.profile-name { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 900; color: var(--offwhite); margin-bottom: 4px; }
.profile-grade { font-family: 'Space Mono', monospace; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.profile-bio { font-size: .9rem; color: var(--slate); line-height: 1.7; max-width: 520px; }
.profile-link { font-family: 'Space Mono', monospace; font-size: .62rem; letter-spacing: .08em; color: var(--red); text-decoration: none; margin-top: 8px; display: inline-block; }
.profile-link:hover { text-decoration: underline; }
.profile-edit-btn { font-family: 'Space Mono', monospace; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); background: none; border: 1px solid rgba(var(--fg-rgb),.12); padding: 8px 15px; cursor: pointer; margin-top: 12px; transition: all .15s; display: none; }
.profile-edit-btn:hover { color: var(--offwhite); border-color: rgba(var(--fg-rgb),.3); }
.profile-stats { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.profile-stat-num { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 900; color: var(--offwhite); line-height: 1; }
.profile-stat-label { font-family: 'Space Mono', monospace; font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-top: 4px; }
.profile-section-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--offwhite); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.profile-articles-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.profile-article-item { background: var(--card); padding: 20px 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; cursor: pointer; transition: background .2s; flex-wrap: wrap; }
.profile-article-item:hover { background: var(--card-alt); }
.profile-article-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--offwhite); margin-bottom: 5px; }
.profile-article-cat { font-family: 'Space Mono', monospace; font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.profile-article-meta { font-family: 'Space Mono', monospace; font-size: .56rem; letter-spacing: .06em; color: var(--slate); display: flex; gap: 8px; flex-wrap: wrap; }

/* Profile editor modal */
.pe-overlay { display: none !important; position: fixed !important; inset: 0 !important; background: rgba(0,0,0,.85) !important; z-index: 500 !important; align-items: center !important; justify-content: center !important; padding: 24px !important; }
.pe-overlay.open { display: flex !important; }
.pe-modal { background: var(--navy) !important; border-left: 3px solid var(--red) !important; max-width: 540px !important; width: 100% !important; padding: 44px !important; position: relative !important; max-height: 90vh !important; overflow-y: auto !important; z-index: 501 !important; }
.pe-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 900; color: var(--offwhite); margin-bottom: 6px; }
.pe-sub { font-size: .84rem; color: var(--slate); margin-bottom: 24px; line-height: 1.65; }
.pe-close { position: absolute; top: 18px; right: 18px; font-family: 'Space Mono', monospace; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); background: none; border: 1px solid rgba(var(--fg-rgb),.12); padding: 6px 11px; cursor: pointer; }
.pe-close:hover { color: var(--offwhite); }
.pe-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.pe-label { font-family: 'Space Mono', monospace; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.pe-input, .pe-textarea { background: rgba(var(--fg-rgb),.04); border: 1px solid rgba(var(--fg-rgb),.1); color: var(--offwhite); font-family: 'Inter', sans-serif; font-size: .88rem; padding: 10px 13px; outline: none; width: 100%; transition: border-color .15s; }
.pe-input:focus, .pe-textarea:focus { border-color: var(--red); }
.pe-textarea { min-height: 80px; resize: vertical; line-height: 1.6; }
.pe-actions { display: flex; gap: 10px; margin-top: 20px; }
.pe-save { font-family: 'Space Mono', monospace; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--red); border: none; padding: 10px 24px; cursor: pointer; transition: background .15s; }
.pe-save:hover { background: var(--darkred); }
.pe-cancel { font-family: 'Space Mono', monospace; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); background: none; border: 1px solid rgba(var(--fg-rgb),.12); padding: 10px 16px; cursor: pointer; }

/* ══════════════════════════════════════════
   SETTINGS
══════════════════════════════════════════ */
.settings-btn { background: none; border: 1px solid rgba(var(--fg-rgb),.15); color: var(--slate); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; transition: all .15s; flex-shrink: 0; }
.settings-btn:hover { color: var(--offwhite); border-color: rgba(var(--fg-rgb),.35); background: rgba(var(--fg-rgb),.04); }
.settings-section { margin-bottom: 26px; }
.settings-label { font-family: 'Space Mono', monospace; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.settings-options { display: flex; gap: 8px; flex-wrap: wrap; }
.settings-option {
  font-family: 'Space Mono', monospace; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--slate); background: rgba(var(--fg-rgb),.04); border: 1px solid rgba(var(--fg-rgb),.1);
  padding: 10px 16px; cursor: pointer; transition: all .15s; flex: 1; text-align: center; min-width: 90px;
}
.settings-option:hover { color: var(--offwhite); border-color: rgba(var(--fg-rgb),.25); }
.settings-option.active { color: #fff; background: var(--red); border-color: var(--red); }
.settings-desc { font-size: .78rem; color: var(--slate); line-height: 1.6; margin-top: 8px; }
.settings-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--border); }
.settings-toggle-row:first-child { border-top: none; }
.settings-toggle-text strong { font-size: .86rem; color: var(--offwhite); display: block; margin-bottom: 3px; }
.settings-toggle-text span { font-size: .78rem; color: var(--slate); line-height: 1.5; display: block; max-width: 340px; }
.settings-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; background: rgba(var(--fg-rgb),.12); border: none; cursor: pointer; padding: 0; transition: background .2s; }
.settings-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--slate); transition: all .2s; }
.settings-switch.on { background: var(--red-dim); }
.settings-switch.on::after { left: 21px; background: var(--red); }

/* ══════════════════════════════════════════
   WIZARD
══════════════════════════════════════════ */
#page-submit { padding-top: 64px; min-height: 100vh; }
.wizard-wrap { max-width: 840px; margin: 0 auto; padding: 60px 48px 88px; }
.wizard-header { margin-bottom: 44px; }
.wizard-title { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem,3.5vw,2.6rem); font-weight: 900; color: var(--offwhite); margin-bottom: 10px; letter-spacing: -.02em; }
.wizard-sub { font-size: .92rem; color: var(--slate); line-height: 1.65; }
.wizard-progress { display: flex; align-items: center; margin-bottom: 44px; }
.w-step { display: flex; align-items: center; gap: 10px; flex: 1; }
.w-step-dot { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: 'Space Mono', monospace; font-size: .65rem; font-weight: 700; background: rgba(var(--fg-rgb),.05); color: var(--slate); border: 1px solid rgba(var(--fg-rgb),.1); transition: all .25s; }
.w-step-dot.done { background: var(--red); color: #fff; border-color: var(--red); }
.w-step-dot.active { background: transparent; color: var(--red); border-color: var(--red); }
.w-step-label { font-family: 'Space Mono', monospace; font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); transition: color .25s; }
.w-step-label.active { color: var(--offwhite); }
.w-step-line { flex: 1; height: 1px; background: rgba(var(--fg-rgb),.08); margin: 0 6px; }
.w-step-line.done { background: var(--red); }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: fadeUp .25s ease; }
.panel-card { background: var(--card); padding: 36px 40px; border-left: 3px solid var(--red); }
.panel-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--offwhite); margin-bottom: 5px; }
.panel-desc { font-size: .86rem; color: var(--slate); line-height: 1.65; margin-bottom: 26px; }
.field-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field-label { font-family: 'Space Mono', monospace; font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; color: var(--slate); }
.req { color: var(--red); }
.field-input { background: rgba(var(--fg-rgb),.04); border: 1px solid rgba(var(--fg-rgb),.1); color: var(--offwhite); font-family: 'Inter', sans-serif; font-size: .9rem; padding: 11px 13px; outline: none; width: 100%; transition: border-color .15s, background .15s; -webkit-appearance: none; appearance: none; border-radius: 0; }
.field-input:focus { border-color: var(--red); background: rgba(200,57,43,.04); }
.field-input::placeholder { color: rgba(122,133,153,.4); }
.field-input.error { border-color: var(--red); }
.field-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A8599' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; cursor: pointer; }
.field-select option { background: var(--navy); color: var(--offwhite); }
.field-select optgroup { color: var(--slate); }
.field-textarea { resize: vertical; min-height: 120px; line-height: 1.7; }

/* Rich text editor */
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: rgba(var(--fg-rgb),.03); border: 1px solid rgba(var(--fg-rgb),.1); border-bottom: none; }
.editor-btn { font-family: 'Space Mono', monospace; font-size: .68rem; letter-spacing: .04em; color: var(--slate); background: none; border: 1px solid transparent; padding: 6px 10px; cursor: pointer; transition: all .15s; min-width: 32px; text-align: center; }
.editor-btn:hover { color: var(--offwhite); background: rgba(var(--fg-rgb),.06); }
.editor-btn.active { color: #fff; background: var(--red); }
.editor-sep { width: 1px; background: rgba(var(--fg-rgb),.14); margin: 4px 2px; }
.editor-content { min-height: 360px; border-top: none; line-height: 1.75; }
.editor-content:focus { border-color: var(--red); }
.editor-content:empty:before { content: attr(data-placeholder); color: rgba(122,133,153,.45); pointer-events: none; }
.editor-content, .article-view-body, .modal-body { }
.editor-content blockquote, .article-view-body blockquote, .modal-body blockquote { border-left: 3px solid var(--red); padding-left: 16px; margin: 12px 0; color: var(--slate); font-style: italic; }
.editor-content ul, .article-view-body ul, .modal-body ul,
.editor-content ol, .article-view-body ol, .modal-body ol { padding-left: 28px; margin: 8px 0; }
.editor-content a, .article-view-body a, .modal-body a { color: var(--red); text-decoration: underline; }
.hanging-indent { padding-left: 32px; text-indent: -32px; margin-bottom: .8em; }
.field-hint { font-size: .74rem; color: var(--slate); line-height: 1.55; }
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rules-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.rule-item { display: flex; gap: 13px; align-items: flex-start; }
.rule-check { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; border: 1px solid rgba(var(--fg-rgb),.18); cursor: pointer; position: relative; transition: all .15s; }
.rule-check.checked { background: var(--red); border-color: var(--red); }
.rule-check.checked::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #fff; font-size: .68rem; }
.rule-text { font-size: .86rem; color: var(--slate); line-height: 1.65; }
.rule-text strong { color: var(--offwhite); display: block; margin-bottom: 2px; font-size: .84rem; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.btn-prev { font-family: 'Space Mono', monospace; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); background: none; border: 1px solid rgba(var(--fg-rgb),.12); padding: 10px 20px; cursor: pointer; transition: all .15s; }
.btn-prev:hover { border-color: var(--slate); color: var(--offwhite); }
.btn-next { font-family: 'Space Mono', monospace; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--red); border: none; padding: 10px 24px; cursor: pointer; transition: background .15s; }
.btn-next:hover { background: var(--darkred); }
.success-screen { text-align: center; padding: 72px 36px; }
.success-eagle { font-size: 3.2rem; margin-bottom: 18px; }
.success-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--offwhite); margin-bottom: 12px; }
.success-msg-text { font-size: .92rem; color: var(--slate); line-height: 1.75; max-width: 460px; margin: 0 auto 24px; }
.success-timeline { background: var(--card); padding: 22px 26px; text-align: left; max-width: 420px; margin: 0 auto 24px; border-left: 3px solid var(--red); }
.success-tl-title { font-family: 'Space Mono', monospace; font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; color: var(--slate); margin-bottom: 16px; }
.tl-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.tl-dot { width: 6px; height: 6px; flex-shrink: 0; margin-top: 5px; }
.tl-dot.red { background: var(--red); }
.tl-dot.grey { background: var(--slate); }
.tl-dot.blue { background: var(--cobalt); }
.tl-label { font-family: 'Space Mono', monospace; font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 2px; }
.tl-text { font-size: .84rem; color: rgba(var(--fg-rgb),.65); line-height: 1.5; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .topics-grid { grid-template-columns: repeat(2,1fr); }
  .writers-grid { grid-template-columns: repeat(2,1fr); }
  .discussed-grid { grid-template-columns: repeat(2,1fr); }
  .posts-grid { grid-template-columns: repeat(2,1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-sidebar { display: none; }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-search-wrap { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .section { padding: 52px 24px; }
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .discussed-grid { grid-template-columns: 1fr; }
  .writers-grid { grid-template-columns: 1fr 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .submit-section { grid-template-columns: 1fr; gap: 28px; padding: 52px 24px; }
  .submit-section::before { display: none; }
  .newsletter-section { padding: 44px 24px; flex-direction: column; align-items: flex-start; }
  .newsletter-form { max-width: 100%; width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  footer { padding: 36px 24px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .explore-header { padding: 36px 24px 0; }
  .filter-tabs { padding: 0 24px; }
  .posts-grid { padding: 24px; grid-template-columns: 1fr; }
  .wizard-wrap { padding: 36px 24px 60px; }
  .field-row-2 { grid-template-columns: 1fr; gap: 0; }
  .panel-card { padding: 24px 20px; }
  .article-view-wrap { padding: 36px 24px 56px; }
  .profile-wrap { padding: 36px 24px 56px; }
  .hero-inner { padding: 40px 24px 32px; }
  .hero-stats-row { display: none; }
  .hero-band { padding: 16px 24px; }
  .hero-band-text { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .wizard-panel.active { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
