/* ═══════════════════════════════════════════════════════════════════════
   couture-stage.css — out of the box.

   Star, 16 November 2026: "now quintessence feels like a basic bitch, and
   you need to fix that ASAP." The bar is infiniteabundance.earth's power,
   starheart.love's depth and starheartsong.com's play.

   What this layer does, after couture.css:
     1. Display type gets the weight a didone needs at monument size, so a
        hairline crossbar never vanishes (the H in "Heartsong" read as "I I").
     2. The portrait is a stage: the name and the reading on the left, the
        living chart beside it at full size, held in view while you read.
     3. Pages breathe wider; the door is a whole sky, not a box.
   Square corners, hairlines, no glass, no shadows, one pearl action.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. display type that holds at size ───────────────────────────────── */
html[data-theme] :is(h1, .page-title, .lt-title, .fc-title, .hero-name, .experience-intro h1,
  .connection-heading h1, .q-display) {
  font-weight: 500;
  font-variation-settings: "opsz" 48;
}

/* ── 2. the portrait stage ────────────────────────────────────────────── */
html[data-theme] .portrait-reading { width: min(1380px, calc(100% - 96px)); }

html[data-theme] .portrait-page .hero-name {
  font-family: var(--font-display);
  font-size: clamp(56px, 7.2vw, 112px);
  line-height: .92;
  letter-spacing: -.028em;
  margin: 8px 0 22px;
  text-wrap: balance;
}
html[data-theme] .portrait-page .hero-big-three {
  font: italic 400 clamp(20px, 1.7vw, 26px)/1.3 var(--font-display);
  color: var(--text-primary);
  letter-spacing: 0;
}
html[data-theme] .portrait-page .hero-birth-details {
  font: 500 11px/1.6 var(--font-reading); letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-muted); margin: 14px 0 28px;
}
html[data-theme] .portrait-page .hero-triad .triad-value {
  font: 400 clamp(26px, 2.2vw, 34px)/1.05 var(--font-display);
  letter-spacing: -.01em;
}
html[data-theme] .portrait-page .hero-triad .triad-label {
  font: 500 10px/1 var(--font-reading); letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
}

@media (min-width: 1100px) {
  html[data-theme] .portrait-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    column-gap: clamp(40px, 4vw, 80px);
    align-items: start;
    margin-bottom: 56px;
  }
  html[data-theme] .portrait-stage > .hero {
    grid-column: 1; grid-row: 1;
    display: block;
    padding-top: 12px;
  }
  html[data-theme] .portrait-stage > .qsky {
    grid-column: 2; grid-row: 1;
    position: sticky; top: 84px;
    margin: 0; padding: 0;
  }
  html[data-theme] .portrait-stage .qsky-stage { max-width: none; margin-top: 8px; }
  /* the triad becomes a ruled line of three under the name */
  html[data-theme] .portrait-stage .hero-triad {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0; margin: 0 0 36px; padding: 0;
    border-left: 0; border-block: 1px solid var(--hair);
  }
  html[data-theme] .portrait-stage .triad-item {
    display: flex; flex-direction: column; gap: 8px;
    padding: 18px 18px 18px 0;
  }
  html[data-theme] .portrait-stage .triad-item + .triad-item { border-left: 1px solid var(--hair); padding-left: 20px; }
  html[data-theme] .portrait-stage .hero-essence { max-width: 60ch; }
  /* the chart's head reads as the instrument's label, not a toolbar */
  html[data-theme] .portrait-stage .qsky-head { justify-content: flex-end; }
  html[data-theme] .portrait-stage .qsky-head .section-label { margin-right: auto; }
}

/* the wheel glows from its own ground, so the stage feels deep, not boxed */
html[data-theme] .portrait-page .qsky-stage::before {
  content: ""; position: absolute; inset: 6% 6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 14%, transparent), transparent 72%);
  opacity: .55;
}

@media (max-width: 1099px) {
  html[data-theme] .portrait-page .qsky { padding: 0; }
  html[data-theme] .portrait-page .qsky-stage { max-width: 680px; }
}
@media (max-width: 760px) {
  html[data-theme] .portrait-reading { width: calc(100% - 40px); }
  html[data-theme] .portrait-page .hero { display: block; }
  html[data-theme] .portrait-page .hero-name { font-size: clamp(46px, 13.5vw, 72px); }
  html[data-theme] .portrait-page .hero-triad {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0; margin: 4px 0 32px; padding: 0; border-left: 0; border-block: 1px solid var(--hair);
  }
  html[data-theme] .portrait-page .triad-item { display: flex; flex-direction: column; gap: 6px; padding: 14px 8px 14px 0; min-width: 0; }
  html[data-theme] .portrait-page .triad-item + .triad-item { border-left: 1px solid var(--hair); padding-left: 12px; }
  html[data-theme] .portrait-page .hero-triad .triad-value { font-size: 24px; }
  html[data-theme] .portrait-page .qsky-stage { width: calc(100% + 28px); margin-inline: -14px; }
}

/* ── 3. the forecast speaks at the size of its sky ────────────────────── */
html[data-theme] .forecast-wrap { max-width: 820px; }
html[data-theme] :is(.fc-title, .fc-title-for, .fc-person-select, .fc-person-measure) {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 500;
  font-variation-settings: "opsz" 48;
  line-height: 1.02;
  letter-spacing: -.022em;
}
html[data-theme] :is(.fc-title-for) { font-style: italic; font-weight: 400; margin: 0 .22em; }
html[data-theme] .fc-header-top { row-gap: 4px; margin-bottom: 14px; }
html[data-theme] .fc-header .fc-person-select {
  font: 500 clamp(34px, 4.6vw, 56px)/1.02 var(--font-display) !important;
  font-variation-settings: "opsz" 48 !important;
  letter-spacing: -.022em;
}
