/*
 * Documentation
 * Docs: /Docs/Apps/Microsites/thechoirofclosedmouths.md
 * Visual theme for the thechoirofclosedmouths site. Defines layout, typography, colors, and component styling.
 */
/* Documentation: Base styling and layout rules.  Docs: /Docs/Apps/Microsites/thechoirofclosedmouths.md */

/* WHY: Use full book title for consistent branding in all code comments and documentation */
/* ========== THE CHOIR OF CLOSED MOUTHS: REDACTED ARCHIVE THEME ========== */

:root {
  /* -- PALETTE -- */
  --bg-void: #050505; /* Pure Black */
  --bg-panel: #0a0a0a; /* Slightly lighter black */
  --bg-panel-soft: rgba(16, 16, 16, 0.88); /* Glass panel surface */
  --text-primary: #e6e3df; /* Silver */
  --text-secondary: #9b948f; /* Warm grey */
  --text-muted: #6d6661; /* Archive grey */
  --accent-red: #8a0b0b; /* Deep Dried Blood Red */
  --accent-ruby: #b11414; /* Brighter signal red */
  --accent-gold: #c5a059; /* Muted Gold (for highlights) */
  --accent-glow: rgba(177, 20, 20, 0.35); /* Ambient glow */
  --border-soft: rgba(255, 255, 255, 0.08);
  /* -- TYPEFACE STACK -- */
  --font-display: "Cinzel", serif;
  --font-body: "Cormorant Garamond", serif;
  --font-ui: "Inter", sans-serif;
}
/* Documentation: Component styling and visual treatments.  Docs: /Docs/Apps/Microsites/thechoirofclosedmouths.md */

/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-void);
}

body {
  margin: 0;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  /* WHY: Provide a modern, atmospheric backdrop without introducing extra markup. */
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(177, 20, 20, 0.25), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(197, 160, 89, 0.18), transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(120, 20, 20, 0.2), transparent 50%);
  z-index: 0;
  pointer-events: none;
}

/* ========== UTILS ========== */
.text-white {
  color: #fff;
}

.text-dim {
  color: var(--text-secondary);
}

.small-text {
  font-size: 1.1rem !important;
}

/* Grain Overlay (Film feel) */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 900;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ========== NAV ========== */
.hud-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0.3));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  z-index: 1000;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hud-left,
.hud-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hud-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}

.hud-link {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.25rem;
}

.hud-link:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* ========== LAYOUT ========== */
.main-grid {
  padding-top: 0;
  position: relative;
  z-index: 1;
}

.panel {
  padding: 6rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--border-soft);
}

.panel-content {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.dark-bg {
  background: #000;
}

.hero-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* WHY: Include top spacing within viewport height so the hero panel does not exceed one screen and trigger phantom scroll. */
  box-sizing: border-box;
  padding-top: 8rem;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(177, 20, 20, 0.35), transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(197, 160, 89, 0.2), transparent 40%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 5;
}

.hero-visual {
  /* WHY: Keep the 3D book centered in its grid column so the hero composition stays balanced on wide screens. */
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-header {
  margin-bottom: 2rem;
}

.hero-body {
  margin-bottom: 2.5rem;
}

.hero-kicker {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* ========== TYPOGRAPHY ========== */
.chapter-tag {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
  letter-spacing: 0.2em;
  font-weight: 600;
}

.display-type {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin: 0 0 2rem;
  color: #fff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.sub-display {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-primary);
  margin: 0;
}

.serif-italic {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-secondary);
  display: block;
  font-size: 0.8em;
  margin-top: 0.2em;
}

.lead-text {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
  border-left: 3px solid var(--accent-ruby);
  padding-left: 1.5rem;
}

.body-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.highlight-card {
  background: var(--bg-panel-soft);
  border: 1px solid var(--border-soft);
  padding: 1rem 1.2rem;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.highlight-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.highlight-copy {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ========== FORMS ========== */
.form-wrapper {
  margin-top: 3rem;
  max-width: 460px;
}

.clean-form {
  position: relative;
}

.input-group {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  display: flex;
  padding-bottom: 0.5rem;
  padding: 0.4rem 0.4rem 0.4rem 1.4rem;
  transition: border 0.3s;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(6px);
}

.input-group:focus-within {
  border-color: var(--text-primary);
}

.clean-input {
  background: transparent;
  border: none;
  width: 100%;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  outline: none;
}

.clean-input::placeholder {
  color: #444;
}

.clean-btn {
  background: linear-gradient(135deg, rgba(177, 20, 20, 0.85), rgba(138, 11, 11, 0.85));
  border: 1px solid transparent;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s;
  white-space: nowrap;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(138, 11, 11, 0.4);
}

.clean-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(177, 20, 20, 0.55);
}

.form-output {
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  height: 1.5em;
  color: var(--accent-red);
}

.interest-status.message {
  color: var(--text-secondary);
}

.interest-status.message.pending {
  color: var(--text-secondary);
}

.interest-status.message.success {
  color: var(--accent-gold);
}

.interest-status.message.error {
  color: var(--accent-red);
}

/* ========== SECTIONS ========== */
.split-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.split-header {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.split-data {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.data-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.entry-header {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--accent-red);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.5rem;
}

.quote-bar {
  max-width: 800px;
  margin: 4rem auto 0;
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid var(--border-soft);
}

.serif-quote {
  font-size: 1.8rem;
  font-style: italic;
  color: #fff;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.clean-list {
  list-style: none;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 2;
  margin-top: 2rem;
}

/* ========== COMMUNITY ========== */
.col-left {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.col-author {
  border-left: 1px solid var(--border-soft);
  padding-left: 3rem;
}

.serif-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.status-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--border-soft);
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  background: rgba(10, 10, 10, 0.6);
  border-radius: 999px;
}

.status-live {
  color: var(--accent-red);
  font-weight: bold;
}

.author-profile {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.author-bio {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--text-secondary);
}

.author-img {
  width: 80px;
  height: 80px;
  border-radius: 2px;
  filter: grayscale(100%) contrast(1.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* ========== FOOTER ========== */
.clean-footer {
  padding: 3rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-grid,
  .split-layout,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
    min-height: 400px;
  }

  .col-author {
    border-left: none;
    padding-left: 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .display-type {
    font-size: 3rem;
  }

  .hud-nav {
    padding: 0 1.5rem;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }
}

/* Confirmation page styles */
.confirmation-page {
  margin: 0;
}
/* WHY: Align confirmation screens with the modern, dark microsite aesthetic. */
.confirmation-page--success,
.confirmation-page--error {
  background-color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  /* WHY: Use dynamic viewport height on confirmation screens to prevent phantom vertical scroll on mobile browser chrome changes. */
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
}

.confirmation-page--success .container,
.confirmation-page--error .container {
  max-width: 520px;
  padding: 3.5rem;
  border: 1px solid var(--border-soft);
  background-color: rgba(10, 10, 10, 0.85);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.confirmation-page--success .header,
.confirmation-page--error .header {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid currentColor;
}

.confirmation-page--success .header {
  color: var(--accent-gold);
}

.confirmation-page--error .header {
  color: var(--accent-ruby);
}

.confirmation-page--success .msg,
.confirmation-page--error .msg {
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 0 0 2.5rem 0;
  font-style: italic;
}

.confirmation-page--success a,
.confirmation-page--error a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

.confirmation-page--success a:hover,
.confirmation-page--error a:hover {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

/* Documentation: Focus ring overrides are intentionally omitted to preserve default focus handling. */


/* WHY: Keep the vaMicrosites footer link typography aligned with the surrounding copyright text and remove underlines for a unified footer treatment. */
.powered-by-link {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.powered-by-link:hover,
.powered-by-link:focus {
    color: inherit;
    text-decoration: none;
}

/* WHY: Ensure primary body copy remains neutral and legible across microsites. */
p,
li {
    color: var(--text-neutral, #e5e7eb);
}
/* Last-Modified: 2026-02-25T19:29:34.0000000Z */