/* ──────────────────────────────
   THE CIVIC PRISM — CORE THEME
   ────────────────────────────── */

:root {
  /* Dark mode (default) */
  --cp-bg: #020611;
  --cp-surface: #050816;
  --cp-text: #EFEADA;
  --cp-muted: rgba(239,234,218,0.8);
  --cp-accent: #f5c356;

  /* Legacy variables mapped to theme */
  --bg-body: var(--cp-bg);
  --text-full: var(--cp-text);
  --text-dim: var(--cp-muted);
  --border-soft: rgba(239,234,218,0.18);
  --radius: 14px;
  --font-body: Georgia, "Times New Roman", serif;
  --font-head: Garamond, Georgia, "Times New Roman", serif;
}

/* Light mode overrides */
:root[data-theme="light"] {
  --cp-bg: #f7f7fb;
  --cp-surface: #ffffff;
  --cp-text: #0b101a;
  --cp-muted: rgba(15,23,42,0.65);
  --cp-accent: #7c3aed;

  --bg-body: var(--cp-bg);
  --text-full: var(--cp-text);
  --text-dim: var(--cp-muted);
  --border-soft: rgba(17,24,39,0.12);
}


/* ──────────────────────────────
   BASE LAYOUT
   ────────────────────────────── */

.cp-body {
  background-color: var(--bg-body);
  color: var(--text-full);
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-body);
  margin: 0;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  padding: 2rem 1rem 4rem;
}

.cp-shell {
  max-width: 50rem;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* ──────────────────────────────
   TITLE + SUBTITLE + LEDE
   ────────────────────────────── */

.cp-title {
  font-family: var(--font-head);
  letter-spacing: .03em;
  font-weight: 500;
  color: var(--text-full);
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
}

.cp-subtitle {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-top: -0.75rem;
  margin-bottom: 2rem;
  letter-spacing: .02em;
  opacity: 0.85;
}

.cp-lede {
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 40rem;
  font-size: 1rem;
  margin: 0 0 2rem 0;
}

.cp-contact {
  font-size: .9rem;
  opacity: .6;
  margin: 0 0 2.5rem 0;
  color: var(--text-full);
  line-height: 1.4;
}

.cp-contact-email {
  color: var(--text-full);
}

/* sigil / signature */
.cp-sigil {
  font-size: .8rem;
  opacity: .5;
  letter-spacing: .3em;
  margin: 0;
  color: var(--text-full);
}

/* watermark echo */
.cp-watermark {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  font-size: 2.75rem;
  line-height: 1;
  font-family: var(--font-head);
  color: var(--text-full);
  opacity: .18;
  letter-spacing: .3em;
  user-select: none;
  pointer-events: none;
  text-shadow: 0 0 18px rgba(239,234,218,0.08);
}

/* ──────────────────────────────
   NAV BAR
   ────────────────────────────── */

.cp-nav {
  width: 100%;
  max-width: 50rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 20;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
  color: var(--text-full);
  font-family: var(--font-head);
  letter-spacing: .03em;
}

.cp-nav-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cp-nav-title {
  font-size: 1.1rem;
  font-weight: 500;
}

.cp-nav-mark {
  font-size: 0.9rem;
  opacity: 0.8;
}

.cp-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  line-height: 1.2;
  align-items: center;
}

.cp-nav-link {
  font-size: .8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, opacity .15s ease;
  opacity: .8;
}

.cp-nav-link:hover {
  color: var(--text-full);
  border-color: var(--border-soft);
  opacity: 1;
}

/* Theme toggle button */
.cp-theme-toggle {
  margin-left: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-full);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.85;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease, border-color .15s ease;
}

.cp-theme-toggle:hover {
  opacity: 1;
  background-color: rgba(0,0,0,0.12);
  border-color: var(--border-soft);
}


/* ──────────────────────────────
   CTA ROW / BUTTONS
   ────────────────────────────── */

.cp-cta-row {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.cp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: transparent;
  color: var(--text-full);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}

.cp-cta-btn:hover {
  background-color: rgba(239,234,218,0.08);
  border-color: rgba(239,234,218,0.5);
  transform: translateY(-1px);
}

/* ──────────────────────────────
   LINK STYLING (GLOBAL)
   Harmonized with navigation bar
   ────────────────────────────── */

a {
  color: #e0e0e0;             /* soft ivory/gray */
  text-decoration: none;      /* no browser default underline */
  transition: color 0.25s ease, border-bottom 0.25s ease;
  border-bottom: 1px solid transparent;
}

a:hover,
a:focus {
  color: #ffffff;             /* bright white on hover */
  border-bottom: 1px solid #ffffff;
}

/* footer-specific tone (lighter by default) */
footer a,
.footer a {
  color: #cccccc;
}

footer a:hover,
.footer a:hover {
  color: #ffffff;
  border-bottom: 1px solid #888;
}

/* optional: nav-style anchors if you ever use .nav/.button-link */
.nav a,
.button-link {
  color: #f5f5f5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.nav a:hover,
.button-link:hover {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* ──────────────────────────────
   UTILITY CLASSES
   ────────────────────────────── */

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.ghost {
  opacity: .5;
}

/* ──────────────────────────────
   FOOTER
   ────────────────────────────── */

.footer {
  background-color: var(--cp-bg);
  color: #ddd;
  text-align: center;
  padding: 2em 1em;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: 'Georgia', serif;
}

.footer-symbol {
  font-size: 1.3em;
  color: #fff;
  margin-top: 0.5em;
}

/* ──────────────────────────────
   RESPONSIVE ADJUSTMENTS
   ────────────────────────────── */

@media (max-width: 768px) {
  .cp-body {
    padding: 2rem 1.25rem 4rem;
  }
  .cp-title {
    font-size: 1.6rem;
  }
  .cp-lede {
    font-size: 1rem;
  }
}

/* ──────────────────────────────
   CONTENT PANELS / BOXES
   Shared across About & Press
   ────────────────────────────── */

.cp-panel {
  background-color: var(--cp-surface);       /* subtle lift off background */
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

.cp-panel + .cp-panel {
  margin-top: 1.75rem; /* extra breathing room between panels */
}

.cp-section-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-full);
  margin: 0 0 0.75rem 0;
  opacity: 0.9;
}

.cp-panel p {
  margin: 0 0 0.9rem 0;
  color: var(--text-dim);
}

.cp-panel p:last-child {
  margin-bottom: 0;
}


@media (max-width: 480px) {
  .cp-body {
    padding: 2rem 1rem 4rem;
  }
  .cp-title {
    font-size: 1.5rem;
  }
  .cp-lede {
    font-size: 1rem;
    line-height: 1.55;
  }
  .cp-watermark {
    font-size: 2rem;
    right: .75rem;
    bottom: .75rem;
    opacity: .2;
  }
  .cp-nav {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 .25rem;
  }
  .cp-nav-links {
    gap: 0.75rem;
  }
  .cp-nav-title {
    font-size: .95rem;
  }
  .cp-nav-mark {
    font-size: .8rem;
  }
  .cp-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .cp-cta-btn {
    width: 100%;
    text-align: center;
  }
}

/* ──────────────────────────────
   KEYFRAMES
   ────────────────────────────── */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}



/* Light mode nav/footer fixes */
:root[data-theme="light"] .cp-nav,
:root[data-theme="light"] .cp-nav-link,
:root[data-theme="light"] .cp-nav-title,
:root[data-theme="light"] .cp-nav-mark {
  color: var(--cp-text) !important;
}

:root[data-theme="light"] .footer,
:root[data-theme="light"] .footer a,
:root[data-theme="light"] .footer-links a,
:root[data-theme="light"] .footer-symbol {
  color: var(--cp-text) !important;
}
