/* Golden Goddess Hub — Retro-Futurist Synthwave
   Palette: #ff0000 primary · #ff006e secondary · #1a1a2e deep-space ink
   Typography: Libre Bodoni headlines · Public Sans body
   ================================================================ */

/* ---- Google Fonts fallback (loaded in head.js) ---- */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
a { color: #ff006e; text-decoration: underline; }
a:hover { color: #ff0000; }
ul, ol { list-style: none; }

/* ---- Design tokens ---- */
:root {
  --col-bg:        #1a1a2e;
  --col-surface:   #16213e;
  --col-surface2:  #0f3460;
  --col-primary:   #ff0000;
  --col-secondary: #ff006e;
  --col-cyan:      #00ffff;
  --col-text:      #e2e2f0;
  --col-muted:     #8888aa;
  --col-border:    rgba(255,0,110,0.35);
  --font-head:     'Libre Bodoni', Georgia, serif;
  --font-body:     'Public Sans', system-ui, sans-serif;
  --nav-h:         64px;
  --radius:        0;
  --max-prose:     72ch;
  --max-site:      1200px;
  --glow-red:      0 0 8px #ff0000, 0 0 20px rgba(255,0,0,0.45);
  --glow-pink:     0 0 8px #ff006e, 0 0 24px rgba(255,0,110,0.5);
  --glow-cyan:     0 0 8px #00ffff, 0 0 20px rgba(0,255,255,0.4);
}

/* ---- Base typography ---- */
body {
  background: var(--col-bg);
  color: var(--col-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: var(--nav-h);
  overflow-x: hidden;
  position: relative;
}

/* CRT scanlines overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.18) 2px,
    rgba(0,0,0,0.18) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--col-text);
  line-height: 1.2;
}
h1 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.9rem); font-weight: 600; margin-top: 2rem; margin-bottom: 0.5rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.4rem; }
h4 { font-size: 1.1rem; font-weight: 500; margin-top: 1.25rem; }
p  { margin-bottom: 1rem; }

hr {
  border: none;
  border-top: 1px solid var(--col-secondary);
  box-shadow: var(--glow-pink);
  margin: 0.5rem 0 1.2rem;
}

/* ---- Shell ---- */
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ================================================================
   BOTTOM NAV (fixed, mobile-style on desktop too)
   ================================================================ */
.site-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(22, 33, 62, 0.97);
  border-top: 2px solid var(--col-secondary);
  box-shadow: 0 -2px 24px rgba(255,0,110,0.3);
  height: var(--nav-h);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
  position: relative;
}

.nav-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--col-primary);
  text-decoration: none;
  text-shadow: var(--glow-red);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: 0 0 auto;
  order: 2;
  /* Ensure tap target is at least 44px tall */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
}

.nav-left {
  display: flex;
  align-items: center;
  flex: 1;
  order: 1;
  overflow: hidden;
}

.nav-left ol {
  display: flex;
  gap: 0;
  align-items: center;
}
.nav-left ol li a {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--col-text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  min-height: 44px;
  transition: color 0.2s;
}
.nav-left ol li a:hover { color: var(--col-secondary); text-shadow: var(--glow-pink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  order: 3;
  flex: 0 0 auto;
}

/* CTA buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: var(--radius);
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.cta-signup {
  background: var(--col-primary);
  color: #fff;
  border: 2px solid var(--col-primary);
}
.cta-signup:hover {
  background: #cc0000;
  box-shadow: var(--glow-red);
  color: #fff;
}
.cta-login {
  background: transparent;
  color: var(--col-secondary);
  border: 2px solid var(--col-secondary);
}
.cta-login:hover {
  background: rgba(255,0,110,0.12);
  box-shadow: var(--glow-pink);
  color: var(--col-secondary);
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--col-border);
  cursor: pointer;
  padding: 8px;
  order: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--col-text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-menu-overlay {
  display: none;
  position: fixed;
  bottom: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(22, 33, 62, 0.98);
  border-top: 1px solid var(--col-border);
  z-index: 999;
  padding: 1rem 0;
}
.nav-menu-overlay.is-open { display: block; }
.nav-menu-overlay ol {
  display: flex;
  flex-direction: column;
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0 1rem;
}
.nav-menu-overlay ol li a {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--col-text);
  text-decoration: none;
  border-bottom: 1px solid var(--col-border);
  min-height: 44px;
}
.nav-menu-overlay ol li a:hover { color: var(--col-secondary); }

/* ================================================================
   PAGE HEADERS / HERO
   ================================================================ */
.hero--home,
.page-header {
  background: linear-gradient(135deg, var(--col-surface) 0%, var(--col-bg) 100%);
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.5rem 5rem;
}

/* Neon grid decoration */
.hero--home::before,
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,0,110,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,110,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.hero-copy { flex: 1 1 55%; }
.hero-media { flex: 0 1 45%; display: flex; justify-content: flex-end; }
.hero-media img, .hero-img {
  max-height: 320px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255,0,110,0.5));
}

.hero-slant {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--col-bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--col-secondary);
  text-shadow: var(--glow-pink);
  margin-bottom: 0.75rem;
}

.hero-h1 {
  color: var(--col-text);
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--col-muted);
  max-width: 52ch;
  margin-bottom: 1.5rem;
}

.page-header-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-header--category .page-header-inner h1 {
  color: var(--col-primary);
  text-shadow: var(--glow-red);
}

.breadcrumb-hint {
  font-size: 0.8rem;
  color: var(--col-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.breadcrumb-hint a { color: var(--col-muted); display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; }

/* Byline */
.byline {
  font-size: 0.82rem;
  color: var(--col-muted);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}
.byline time { color: var(--col-secondary); }

/* Stage badge */
.stage-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--col-border);
  color: var(--col-secondary);
  margin-bottom: 0.75rem;
}
.stage-badge--awareness  { border-color: var(--col-cyan);  color: var(--col-cyan); }
.stage-badge--decision   { border-color: var(--col-primary); color: var(--col-primary); }

/* ================================================================
   GLITCH EFFECT
   ================================================================ */
@keyframes glitch-skew {
  0%,100% { clip-path: none; transform: skewX(0); }
  5%  { transform: skewX(-2deg); }
  10% { transform: skewX(0); }
  85% { transform: skewX(0); }
  90% { transform: skewX(1.5deg); }
  95% { transform: skewX(0); }
}
@keyframes glitch-before {
  0%  { clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); transform: translate(-3px, 0); }
  50% { clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%); transform: translate(3px, 0); }
  100%{ clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); transform: translate(-3px, 0); }
}

.glitch {
  position: relative;
  animation: glitch-skew 6s infinite linear;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  overflow: hidden;
}
.glitch::before {
  color: var(--col-cyan);
  text-shadow: -2px 0 var(--col-secondary);
  animation: glitch-before 3s infinite linear alternate;
  opacity: 0.7;
}
.glitch::after {
  color: var(--col-secondary);
  text-shadow: 2px 0 var(--col-cyan);
  clip-path: polygon(0 55%, 100% 55%, 100% 80%, 0 80%);
  transform: translate(2px, 0);
  opacity: 0.6;
  animation: glitch-before 4s infinite linear alternate-reverse;
}
@media (prefers-reduced-motion: reduce) {
  .glitch, .glitch::before, .glitch::after { animation: none; }
  .glitch::before, .glitch::after { display: none; }
}

/* ================================================================
   MAIN LAYOUT — structure lottery: main > div.wrap > article > section
   ================================================================ */
main { flex: 1; }

.wrap {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.content-section {
  /* direct child of .wrap */
}

.content-section--with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

section.prose {
  /* direct child of article */
  min-width: 0;
}

/* ================================================================
   PROSE
   ================================================================ */
.prose h2 { color: var(--col-text); }
.prose h2 + hr { margin-top: 0; }
.prose h3 { color: var(--col-secondary); }
.prose a { color: var(--col-secondary); text-decoration: underline; }
.prose a:hover { color: var(--col-primary); }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote {
  border-left: 3px solid var(--col-secondary);
  padding: 0.75rem 1.25rem;
  color: var(--col-muted);
  background: rgba(255,0,110,0.06);
  margin: 1.5rem 0;
}
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1.5rem; font-size: 0.9rem; }
.prose th { background: var(--col-surface2); color: var(--col-secondary); padding: 0.6rem 0.8rem; text-align: left; border: 1px solid var(--col-border); }
.prose td { padding: 0.55rem 0.8rem; border: 1px solid var(--col-border); }
.prose tr:nth-child(even) td { background: rgba(255,255,255,0.03); }
.prose figure { margin: 1.5rem 0; }
.prose figure img { border: 1px solid var(--col-border); box-shadow: var(--glow-pink); }

.prose--legal h2 { font-size: 1.2rem; }
.prose--legal p { font-size: 0.95rem; }

/* Entry hero image */
.entry-figure { margin-bottom: 1.5rem; }
.entry-hero-img { width: 100%; max-height: 360px; object-fit: cover; border: 1px solid var(--col-border); }

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar { min-width: 0; }

.sidebar-inner {
  background: var(--col-surface);
  border: 1px solid var(--col-border);
  padding: 1.5rem;
  position: sticky;
  top: 1rem;
}

.sidebar-heading {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--col-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.25rem;
}

.sidebar-list { margin-top: 0.75rem; }
.sidebar-list li { border-bottom: 1px solid rgba(255,0,110,0.12); }
.sidebar-list li a {
  display: flex;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 0.9rem;
  color: var(--col-text);
  text-decoration: none;
  min-height: 44px;
  line-height: 1.4;
}
.sidebar-list li a:hover { color: var(--col-secondary); }

.sidebar-parent { margin-top: 1rem; font-size: 0.85rem; }
.sidebar-trust { margin-top: 1rem; font-size: 0.8rem; line-height: 1.8; }
.sidebar-trust a { color: var(--col-muted); font-size: 0.8rem; }

/* ================================================================
   SECTION LABELS / HEADINGS
   ================================================================ */
.section-label {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--col-primary);
  text-shadow: var(--glow-red);
  margin-bottom: 0;
}

/* ================================================================
   CARD LIST (home + category child pages)
   Structure lottery: dl > dt > a + dd
   ================================================================ */
.card-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.card-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  align-items: start;
}

/* DL grid trick: dt+dd pairs in same grid cell */
.card-list dt {
  background: var(--col-surface);
  border: 1px solid var(--col-border);
  border-bottom: none;
  padding: 1rem 1rem 0.4rem;
  margin: 0;
}
.card-list dt a {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--col-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.3;
}
.card-list dt a:hover { color: var(--col-secondary); text-shadow: var(--glow-pink); }
.card-list dd {
  background: var(--col-surface);
  border: 1px solid var(--col-border);
  border-top: none;
  padding: 0 1rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--col-muted);
  line-height: 1.5;
}

/* Entry list (category pages, simpler) */
.entry-list { margin-top: 1rem; }
.entry-list dt {
  padding: 0.5rem 0 0.2rem;
  border-top: 1px solid var(--col-border);
  margin: 0;
}
.entry-list dt a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--col-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.4;
}
.entry-list dt a:hover { color: var(--col-secondary); }
.entry-list dd {
  padding: 0 0 0.75rem;
  font-size: 0.87rem;
  color: var(--col-muted);
  margin: 0;
}
.entry-date { font-size: 0.8rem; }

/* ================================================================
   BTN
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.75rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: box-shadow 0.2s, background 0.2s;
}
.btn--primary {
  background: var(--col-primary);
  color: #fff;
  border: 2px solid var(--col-primary);
}
.btn--primary:hover {
  background: #cc0000;
  box-shadow: var(--glow-red);
  color: #fff;
}

/* ================================================================
   AUTHOR SECTION (about layout)
   ================================================================ */
.author-section { margin-top: 2.5rem; }
.author-card {
  background: var(--col-surface);
  border: 1px solid var(--col-border);
  padding: 1.5rem;
  margin-top: 1rem;
}
.author-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--col-text);
  margin-bottom: 0.25rem;
}
.author-credentials {
  font-size: 0.82rem;
  color: var(--col-secondary);
  text-shadow: var(--glow-pink);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.author-bio { font-size: 0.95rem; color: var(--col-muted); }

/* ================================================================
   CHILD-CARDS article
   ================================================================ */
.child-cards,
.category-grid {
  margin-top: 2.5rem;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--col-surface);
  border-top: 2px solid var(--col-border);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem 1.5rem 2rem;
}

.footer-wordmark {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--col-primary);
  text-shadow: var(--glow-red);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.footer-blurb { font-size: 0.88rem; color: var(--col-muted); margin-bottom: 1rem; }

/* footer address + ul — structure lottery */
.footer-address ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.footer-address ul li a {
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--col-muted);
  text-decoration: none;
  min-height: 44px;
}
.footer-address ul li a:hover { color: var(--col-secondary); }

.footer-nav-heading {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--col-secondary);
  margin-bottom: 0.75rem;
}
.footer-links ul { display: flex; flex-direction: column; }
.footer-links ul li a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--col-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,0,110,0.1);
  min-height: 44px;
}
.footer-links ul li a:hover { color: var(--col-text); }

.footer-bar {
  background: rgba(0,0,0,0.35);
  border-top: 1px solid var(--col-border);
  text-align: center;
  padding: 1rem 1.5rem;
}
.footer-rg {
  font-size: 0.78rem;
  color: var(--col-muted);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}
.footer-copy { font-size: 0.75rem; color: var(--col-muted); opacity: 0.7; }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .content-section--with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { order: -1; }
  .sidebar-inner { position: static; }
  .card-list--grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Show hamburger, hide nav links */
  .nav-toggle { display: flex; }
  .nav-left { display: none; }

  .nav-inner {
    justify-content: space-between;
  }
  .nav-brand {
    order: 1;
    flex: 1;
    text-align: center;
    justify-content: center;
    /* Maintain 44px tap target height on mobile */
    min-height: 44px;
    padding: 0 0.5rem;
    font-size: 1rem;
  }
  .nav-toggle { order: 0; }
  .nav-right { order: 2; }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }
  .hero-copy, .hero-media { flex: unset; width: 100%; }
  .hero-media { justify-content: center; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .card-list--grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wrap { padding: 1.5rem 1rem; }
  .hero--home, .page-header { padding: 2rem 1rem 4rem; }
  .cta { font-size: 0.72rem; padding: 0 0.6rem; }
  .footer-wordmark { font-size: 2rem; }
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}