/* ==========================================================================
   Route B — The Threshold
   Register: the space between official language and lived reality.
   High-contrast contemporary critical. Dark mode primary.
   Preview fonts: Cormorant Garamond + Tajawal + Work Sans + Readex Pro
   (production: 29LT Zeyn + Pangea Text + Arabic companion)
   ========================================================================== */

:root {
  --night-margin: #1A1A2E;
  --pearl-report: #F5F4F0;
  --interference: #C8A96E;
  --fault-line: #6B8FA3;
  --witness-white: #FAFAF8;
  --swap: var(--night-margin);
}

body.threshold {
  background: var(--night-margin);
  color: var(--pearl-report);
  font-family: 'Work Sans', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.125rem, 1.0625rem + 0.3vw, 1.25rem);
  line-height: 1.7;
  font-weight: 400;
}

body.threshold .route-nav {
  background: rgba(26, 26, 46, 0.75);
  color: var(--pearl-report);
  border-bottom: 1px solid rgba(200, 169, 110, 0.22);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.24em;
  font-weight: 500;
}

body.threshold .route-nav__link--active { color: var(--interference); opacity: 1; }

/* --- Hero ------------------------------------------------------------------ */

.threshold-hero {
  padding-block: clamp(5rem, 14vw, 10rem);
  position: relative;
}

.threshold-hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.threshold-hero__eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--interference);
  margin-bottom: 2rem;
  font-weight: 500;
}

.threshold-hero__mark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--pearl-report);
}

.threshold-hero__mark--ar {
  font-family: 'Tajawal', 'Readex Pro', sans-serif;
  font-weight: 800;
  direction: rtl;
  font-size: clamp(2.75rem, 7.5vw, 5.5rem);
  line-height: 1.05;
  margin-top: 0.5rem;
  letter-spacing: -0.01em;
}

.threshold-hero__tag {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fault-line);
  margin-top: 3rem;
  font-weight: 500;
}

/* --- Section headings ------------------------------------------------------ */

.threshold-section__number {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--interference);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.threshold-section__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.threshold-section__title em {
  font-style: italic;
  color: var(--interference);
}

.threshold-section__body {
  max-width: 38rem;
  color: var(--pearl-report);
  opacity: 0.88;
  margin-bottom: 3rem;
  font-size: 1.1875rem;
  line-height: 1.7;
}

hr.threshold-rule {
  border: none;
  border-top: 1px solid rgba(200, 169, 110, 0.35);
  margin-block: 3rem 2.5rem;
}

/* --- Palette --------------------------------------------------------------- */

.threshold-palette .swatch {
  border: 1px solid rgba(245, 244, 240, 0.1);
}

.threshold-palette .swatch--night { background: var(--night-margin); color: var(--pearl-report); border-color: rgba(200, 169, 110, 0.4); }
.threshold-palette .swatch--pearl { background: var(--pearl-report); color: var(--night-margin); }
.threshold-palette .swatch--interference { background: var(--interference); color: var(--night-margin); }
.threshold-palette .swatch--fault { background: var(--fault-line); color: var(--pearl-report); }
.threshold-palette .swatch--white { background: var(--witness-white); color: var(--night-margin); }

/* --- Typography specimen --------------------------------------------------- */

.threshold-specimen .specimen__sample {
  border-top-color: rgba(200, 169, 110, 0.28);
  padding-block: 2rem;
}

.threshold-specimen .specimen__label { color: var(--interference); opacity: 0.9; }

.threshold-specimen .specimen__text--display {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.threshold-specimen .specimen__text--display em {
  font-style: italic;
  color: var(--interference);
}

.threshold-specimen .specimen__text--ar-display {
  font-family: 'Tajawal', 'Readex Pro', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.2;
  direction: rtl;
  text-align: right;
  letter-spacing: -0.005em;
}

.threshold-specimen .specimen__text--body {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.25rem;
  line-height: 1.75;
  max-width: 40rem;
  font-weight: 400;
  color: var(--pearl-report);
}

.threshold-specimen .specimen__text--ar-body {
  font-family: 'Readex Pro', sans-serif;
  font-weight: 400;
  font-size: 1.3125rem;
  line-height: 1.95;
  direction: rtl;
  text-align: right;
  max-width: 40rem;
  margin-inline-start: auto;
  color: var(--pearl-report);
}

/* --- Mock article -------------------------------------------------------- */

.threshold-mock {
  border: 1px solid rgba(200, 169, 110, 0.35);
  background: transparent;
  padding: 2.5rem 2rem;
  position: relative;
}

.threshold-mock::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 40px; height: 1px;
  background: var(--interference);
}

.threshold-mock__dateline {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--interference);
  font-weight: 500;
}

.threshold-mock__headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--pearl-report);
  margin-top: 0.75rem;
}

.threshold-mock__deck {
  font-family: 'Work Sans', sans-serif;
  color: var(--pearl-report);
  opacity: 0.85;
  max-width: 40rem;
  line-height: 1.65;
  margin-top: 0.75rem;
  font-size: 1.125rem;
}

.threshold-mock__byline {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fault-line);
  margin-top: 1.5rem;
  font-weight: 500;
}

/* --- Risk note ----------------------------------------------------------- */

.threshold-risk {
  border-top: 1px solid var(--interference);
  padding-top: 1.75rem;
  max-width: 44rem;
  color: var(--pearl-report);
  opacity: 0.82;
  font-size: 1.125rem;
  line-height: 1.7;
}

.threshold-risk strong {
  color: var(--interference);
  font-weight: 500;
  font-family: 'Work Sans', sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  display: block;
  margin-bottom: 0.75rem;
}

/* --- Decide -------------------------------------------------------------- */

.threshold-decide .btn {
  border-color: var(--interference);
  color: var(--pearl-report);
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
}

.threshold-decide .btn:hover { background: var(--interference); }
.threshold-decide .btn:hover .btn__inner { color: var(--night-margin); }
.threshold-decide .btn--picked { background: var(--interference); }
.threshold-decide .btn--picked .btn__inner { color: var(--night-margin); }

.threshold-decide textarea {
  border-color: rgba(200, 169, 110, 0.4);
  color: var(--pearl-report);
  font-family: 'Work Sans', sans-serif;
}
.threshold-decide textarea::placeholder { color: rgba(245, 244, 240, 0.35); }

.threshold-decide .decide__prompt { color: var(--interference); }
