/* ══════════════════════════════════════════════════════════════
   RLX — THE RLX LETTER
   Editorial CSS — extends style.css, never overrides global tokens
   Philosophy: RLX with the volume turned down.
   ══════════════════════════════════════════════════════════════ */

/* ── EDITORIAL TOKENS (local only) ─────────────────────────── */
:root {
  --ed-reading-w:   680px;   /* comfortable long-form line length */
  --ed-lede-w:      760px;   /* slightly wider for introductory elements */
  --ed-body-size:   clamp(1.05rem, 1.6vw, 1.18rem);
  --ed-body-lh:     1.85;
  --ed-para-gap:    1.65rem;
  --ed-section-y:   clamp(72px, 10vw, 128px);
}

/* ══════════════════════════════════════════════════════════════
   EDITORIAL LANDING — editorial.html
   ══════════════════════════════════════════════════════════════ */

/* ── Page wrapper ───────────────────────────────────────────── */
.ed-page {
  background: var(--navy-0);
  color: #fff;
  min-height: 100vh;
}

/* ── Editorial masthead ─────────────────────────────────────── */
.ed-masthead {
  padding: clamp(120px, 18vw, 200px) var(--pad-x) clamp(48px, 7vw, 80px);
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.ed-masthead__pub {
  font-family: var(--sans);
  font-size: clamp(.54rem, .9vw, .62rem);
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(201,168,76,.22);
  padding-bottom: .55rem;
  display: inline-block;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.ed-masthead__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.ed-masthead__title em {
  font-style: italic;
  color: var(--gold-lt);
}

.ed-masthead__descriptor {
  font-family: var(--serif);
  font-size: clamp(.95rem, 1.7vw, 1.15rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,.42);
  letter-spacing: .02em;
  max-width: 560px;
  margin: clamp(1.2rem, 2.2vw, 1.8rem) auto 0;
  line-height: 1.7;
}

/* ── Editorial transition thread ────────────────────────────── */
.ed-transition {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.ed-transition__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: clamp(2.4rem, 4vw, 3.6rem) 0;
}

.ed-transition__label {
  font-family: var(--sans);
  font-size: clamp(.5rem, .82vw, .58rem);
  font-weight: 600;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(201,168,76,.55);
  white-space: nowrap;
  flex-shrink: 0;
}

.ed-transition__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,.22), transparent);
}

/* ── Hero Feature ────────────────────────────────────────────── */
.ed-hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(72px, 10vw, 120px);
}

.ed-hero__inner {
  /* No borders, no boxes — whitespace and type carry the weight */
}

/* Magazine-scale headline */
.ed-hero__title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: #fff;
  margin-bottom: clamp(2.8rem, 5vw, 4.4rem);
}

.ed-hero__title em {
  font-style: italic;
  color: var(--gold-lt);
  font-weight: 300;
}

/* THE IDEA block — editorial opening thought */
.ed-hero__idea {
  padding: clamp(2rem, 3.5vw, 2.8rem) 0;
  border-top: 1px solid rgba(201,168,76,.12);
  margin-bottom: clamp(2.4rem, 4vw, 3.4rem);
}

.ed-hero__idea-eyebrow {
  font-family: var(--sans);
  font-size: clamp(.48rem, .78vw, .56rem);
  font-weight: 600;
  letter-spacing: .44em;
  text-transform: uppercase;
  color: rgba(201,168,76,.6);
  display: block;
  margin-bottom: clamp(1.2rem, 2vw, 1.8rem);
}

.ed-hero__idea-text {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2.2vw, 1.38rem);
  font-weight: 300;
  line-height: 1.78;
  color: rgba(255,255,255,.68);
  max-width: 680px;
  letter-spacing: .005em;
}

/* Footer row — metadata + CTA */
.ed-hero__foot {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ed-hero__read-time {
  font-family: var(--sans);
  font-size: clamp(.5rem, .8vw, .57rem);
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.24);
}

/* Text-link CTA — editorial continuation, not button */
.ed-hero__cta {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-lt);
  text-decoration: none;
  letter-spacing: -.005em;
  transition: color .28s var(--ease), letter-spacing .28s var(--ease);
  position: relative;
}

.ed-hero__cta::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(201,168,76,.3);
  transition: background .28s var(--ease);
}

.ed-hero__cta:hover {
  color: #fff;
}

.ed-hero__cta:hover::after {
  background: rgba(201,168,76,.6);
}

/* ── Publication cadence — "The Next Letter" ────────────────── */
.ed-next {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) var(--pad-x);
  border-top: 1px solid rgba(255,255,255,.05);
}

.ed-next__inner {
  /* Restrained — type only */
}

.ed-next__label {
  font-family: var(--sans);
  font-size: clamp(.48rem, .78vw, .56rem);
  font-weight: 600;
  letter-spacing: .44em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  display: block;
  margin-bottom: clamp(1rem, 1.8vw, 1.4rem);
}

.ed-next__issue {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: rgba(255,255,255,.52);
  line-height: 1.5;
  margin-bottom: .65rem;
}

.ed-next__cadence {
  font-family: var(--serif);
  font-size: clamp(.88rem, 1.5vw, 1rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,.24);
  line-height: 1.6;
}

/* ── Worldview bridge — before footer ───────────────────────── */
.ed-worldview {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) var(--pad-x) clamp(72px, 11vw, 128px);
}

.ed-worldview__inner {
  border-top: 1px solid rgba(201,168,76,.08);
  padding-top: clamp(2.8rem, 5vw, 4rem);
}

.ed-worldview__belief {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.9vw, 1.22rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,.32);
  line-height: 1.75;
  max-width: 600px;
}

/* ══════════════════════════════════════════════════════════════
   ARTICLE PAGE
   ══════════════════════════════════════════════════════════════ */

.ed-article-page {
  background: var(--navy-0);
  color: #fff;
  min-height: 100vh;
}

/* ── Article header ─────────────────────────────────────────── */
.ed-article__header {
  max-width: var(--ed-lede-w);
  margin: 0 auto;
  padding: clamp(120px, 18vw, 196px) var(--pad-x) clamp(48px, 7vw, 80px);
  text-align: center;
}

.ed-article__pub {
  font-family: var(--sans);
  font-size: clamp(.52rem, .85vw, .6rem);
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(201,168,76,.22);
  padding-bottom: .5rem;
  display: inline-block;
  margin-bottom: 1.4rem;
}

.ed-article__issue {
  font-family: var(--sans);
  font-size: clamp(.52rem, .82vw, .58rem);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: clamp(1.4rem, 2.5vw, 2rem);
  display: block;
}

.ed-article__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: clamp(1.2rem, 2.2vw, 1.8rem);
}

.ed-article__standfirst {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255,255,255,.52);
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}

.ed-article__byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.ed-article__read-time {
  font-family: var(--sans);
  font-size: clamp(.52rem, .82vw, .58rem);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.26);
}

.ed-article__date {
  font-family: var(--sans);
  font-size: clamp(.52rem, .82vw, .58rem);
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.18);
}

.ed-article__byline-sep {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,.12);
  display: inline-block;
}

/* ── Article rule ───────────────────────────────────────────── */
.ed-article__rule {
  max-width: var(--ed-reading-w);
  margin: clamp(2.4rem, 4vw, 3.6rem) auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.28), transparent);
}

/* ── Article body ───────────────────────────────────────────── */
.ed-article__body {
  max-width: var(--ed-reading-w);
  margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 4rem) var(--pad-x) clamp(64px, 10vw, 112px);
}

/* Typography inside the essay */
.ed-article__body p {
  font-family: var(--serif);
  font-size: var(--ed-body-size);
  font-weight: 300;
  line-height: var(--ed-body-lh);
  color: rgba(255,255,255,.78);
  margin-bottom: var(--ed-para-gap);
}

.ed-article__body p:last-child {
  margin-bottom: 0;
}

/* Opening paragraph — slightly elevated */
.ed-article__body p.ed-lede {
  font-size: clamp(1.1rem, 1.9vw, 1.28rem);
  color: rgba(255,255,255,.85);
  font-weight: 300;
}

/* Subheads — minimal, structural not decorative */
.ed-article__body h2 {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  font-weight: 400;
  letter-spacing: -.01em;
  color: rgba(255,255,255,.72);
  margin-top: clamp(2.8rem, 5vw, 4rem);
  margin-bottom: 1.2rem;
}

/* Restrained inline emphasis */
.ed-article__body strong {
  font-weight: 500;
  color: rgba(255,255,255,.9);
}

.ed-article__body em {
  font-style: italic;
  color: rgba(255,255,255,.82);
}

/* Article list — rare, minimal */
.ed-article__body ul,
.ed-article__body ol {
  padding-left: 1.4rem;
  margin-bottom: var(--ed-para-gap);
}

.ed-article__body li {
  font-family: var(--serif);
  font-size: var(--ed-body-size);
  font-weight: 300;
  line-height: var(--ed-body-lh);
  color: rgba(255,255,255,.75);
  margin-bottom: .6rem;
}

/* Pull quote — used sparingly */
.ed-article__body blockquote {
  margin: clamp(2.8rem, 5vw, 4rem) 0;
  padding: 0 0 0 clamp(1.6rem, 3vw, 2.4rem);
  border-left: 2px solid rgba(201,168,76,.35);
}

.ed-article__body blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,.62);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── Article closing signature ──────────────────────────────── */
.ed-article__sig {
  max-width: var(--ed-reading-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(3.6rem, 6vw, 5.6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  border-top: 1px solid rgba(201,168,76,.12);
  padding-top: clamp(2.4rem, 4vw, 3.6rem);
}

.ed-article__sig-brand {
  font-family: var(--serif);
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .04em;
}

.ed-article__sig-pub {
  font-family: var(--sans);
  font-size: clamp(.52rem, .82vw, .58rem);
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
}

/* ══════════════════════════════════════════════════════════════
   EMAIL CAPTURE — appears at end of article
   ══════════════════════════════════════════════════════════════ */

.ed-subscribe {
  background: var(--navy-1);
  border-top: 1px solid rgba(201,168,76,.08);
  border-bottom: 1px solid rgba(201,168,76,.08);
  padding: clamp(56px, 9vw, 100px) var(--pad-x);
}

.ed-subscribe__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.ed-subscribe__pub {
  font-family: var(--sans);
  font-size: clamp(.52rem, .85vw, .6rem);
  font-weight: 600;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(1.2rem, 2.2vw, 1.8rem);
  display: block;
}

.ed-subscribe__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 1rem;
}

.ed-subscribe__desc {
  font-family: var(--serif);
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,.4);
  line-height: 1.65;
  margin-bottom: clamp(2rem, 3.5vw, 2.8rem);
}

.ed-subscribe__form {
  display: flex;
  gap: .75rem;
  max-width: 480px;
  margin: 0 auto;
}

.ed-subscribe__input {
  flex: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,168,76,.22);
  border-radius: 3px;
  padding: 1rem 1.4rem;
  font-family: var(--sans);
  font-size: .82rem;
  color: #fff;
  outline: none;
  transition: border-color .3s var(--ease), background .3s;
}

.ed-subscribe__input::placeholder {
  color: rgba(255,255,255,.28);
  font-style: italic;
  font-family: var(--serif);
  font-size: .9rem;
}

.ed-subscribe__input:focus {
  border-color: rgba(201,168,76,.55);
  background: rgba(201,168,76,.04);
}

.ed-subscribe__btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(201,168,76,.45);
  border-radius: 3px;
  padding: 1rem 1.8rem;
  font-family: var(--sans);
  font-size: clamp(.58rem, .9vw, .66rem);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: all .32s var(--ease);
  white-space: nowrap;
}

.ed-subscribe__btn:hover {
  background: rgba(201,168,76,.08);
  border-color: var(--gold);
  color: var(--gold-lt);
  transform: translateY(-2px);
}

.ed-subscribe__btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.ed-subscribe__confirm {
  display: none;
  font-family: var(--serif);
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin-top: 1.4rem;
}

.ed-subscribe__confirm.visible {
  display: block;
}

.ed-subscribe__privacy {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.14);
}

/* ── RLX path block ─────────────────────────────────────────── */
.ed-rlx-path {
  max-width: var(--ed-reading-w);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) var(--pad-x);
  text-align: center;
}

.ed-rlx-path__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.1), transparent);
  margin-bottom: clamp(2.8rem, 5vw, 4rem);
}

.ed-rlx-path__label {
  font-family: var(--sans);
  font-size: clamp(.52rem, .82vw, .58rem);
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  margin-bottom: 1.2rem;
  display: block;
}

.ed-rlx-path__desc {
  font-family: var(--serif);
  font-size: clamp(.92rem, 1.55vw, 1.05rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,.38);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.ed-rlx-path__cta {
  font-family: var(--sans);
  font-size: clamp(.58rem, .9vw, .66rem);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .65;
  transition: opacity .3s;
}

.ed-rlx-path__cta:hover { opacity: 1; }

/* ── Reading progress bar ───────────────────────────────────── */
.ed-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  z-index: 1001;
  transition: width .1s linear;
  pointer-events: none;
}

/* ── Copy-link pill ─────────────────────────────────────────── */
.ed-copy-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--sans);
  font-size: clamp(.52rem, .82vw, .58rem);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  background: none;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 2px;
  padding: .5rem 1rem;
  cursor: pointer;
  transition: all .28s var(--ease);
  margin-top: 2.8rem;
}

.ed-copy-link:hover {
  color: rgba(255,255,255,.5);
  border-color: rgba(255,255,255,.16);
}

.ed-copy-link.copied {
  color: var(--gold);
  border-color: rgba(201,168,76,.3);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .ed-subscribe__form {
    flex-direction: column;
  }

  .ed-subscribe__btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  /* Masthead — keep dramatic, no awkward breaks */
  .ed-masthead__title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  /* Hero headline — dominant but comfortable on mobile */
  .ed-hero__title {
    font-size: clamp(2.2rem, 9.5vw, 3.2rem);
    letter-spacing: -.02em;
  }

  /* On mobile, allow title breaks to flow naturally */
  .ed-hero__title-br {
    display: none;
  }

  .ed-hero__idea-text {
    font-size: clamp(1.05rem, 4.5vw, 1.2rem);
    line-height: 1.72;
  }

  /* CTA stays readable */
  .ed-hero__cta {
    font-size: 1rem;
  }

  .ed-article__title {
    font-size: clamp(1.9rem, 7.5vw, 2.8rem);
  }

  .ed-article__body {
    padding-left: 0;
    padding-right: 0;
  }

  .ed-article__body p {
    font-size: 1.05rem;
    line-height: 1.82;
  }

  .ed-article__header {
    text-align: left;
  }

  .ed-article__byline {
    justify-content: flex-start;
  }
}

/* ── Screen-reader only utility ─────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .ed-progress {
    transition: none;
  }
}
