/* ============================================================
   stella.css — the Stella Maris layer, added on top of style.css.
   Litany panel, favourable / hold-off, born-on-this-day, the
   caution calendar, the photographic plates. Midnight navy and
   parchment stay; the photographs bring rose and amber; Marian
   blue is the restrained secondary.
   ============================================================ */

/* ---------- brand ---------- */
.brand-name em { font-style: italic; color: var(--gold); }
.brand .mark { color: var(--gold); }

/* ---------- shared section furniture ---------- */
.section-h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.06;
  color: var(--parchment); margin-bottom: var(--sp-4);
}
.section-lede {
  max-width: 68ch; font-size: var(--text-sm); line-height: 1.72; font-weight: 300;
  color: rgba(243, 233, 214, .7);
}
.section-lede em { color: var(--amber); font-style: italic; }

/* photo credit on the hero plate */
.photo-credit {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: .7rem .9rem; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(243, 233, 214, .72); text-align: right;
}

/* ============================================================
   THE LITANY PANEL — above the astrological data
   ============================================================ */
.litany {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(212, 175, 90, .34);
  border-bottom: 0;
  background: var(--ink-2);
}
.litany-art { position: absolute; inset: 0; z-index: -2; }
.litany-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 58%;
  filter: saturate(.86) contrast(.96);
}
.litany::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(8, 11, 20, .93) 0%, rgba(8, 11, 20, .86) 46%, rgba(13, 19, 34, .58) 100%),
    linear-gradient(to top, rgba(46, 68, 104, .34), transparent 70%);
}
.litany-inner {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3.4rem) clamp(1.25rem, 3.4vw, 3.4rem);
  max-width: 74ch;
}
.litany-eyebrow {
  font-size: var(--text-xs); letter-spacing: .24em; text-transform: uppercase;
  color: var(--amber); margin-bottom: var(--sp-4);
}
.litany-eyebrow::before {
  content: ""; display: inline-block; width: 24px; height: 1px;
  background: rgba(227, 164, 92, .6); vertical-align: middle; margin-right: .65rem;
}
.litany-invocation {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(.95rem, 1.5vw, 1.08rem); line-height: 1.6;
  color: rgba(243, 233, 214, .74); max-width: 48ch;
  padding-left: .9rem; border-left: 1px solid var(--marian-soft);
}
.litany-under {
  margin-top: var(--sp-6); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(243, 233, 214, .5);
}
.litany-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.02; letter-spacing: -.012em;
  color: var(--parchment); margin-top: .35rem;
}
.litany-emblem {
  margin-top: .55rem; font-family: var(--font-display); font-style: italic;
  font-size: var(--text-base); color: var(--amber);
}
.litany-body { margin-top: var(--sp-6); display: grid; gap: var(--sp-4); max-width: 62ch; }
.litany-body p {
  font-size: 1.02rem; line-height: 1.76; color: rgba(243, 233, 214, .86); font-weight: 300;
}
.litany-body p:first-child::first-letter {
  font-family: var(--font-display); float: left; font-size: 3.1rem; line-height: .84;
  padding: .1em .14em 0 0; color: var(--gold);
}
.litany-close {
  font-family: var(--font-display); font-style: italic;
  color: #9DB6DC !important; font-size: 1.05rem !important;
}
.litany-word {
  margin-top: var(--sp-6); padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid rgba(212, 175, 90, .3);
  border-bottom: 1px solid rgba(212, 175, 90, .3);
  background: rgba(94, 127, 176, .1);
  display: grid; gap: .45rem; max-width: 56ch;
}
.litany-word-label {
  font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.litany-word span:last-child {
  font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.4; color: var(--parchment);
}
.litany-note {
  margin-top: var(--sp-4); font-size: .7rem; line-height: 1.6;
  color: rgba(243, 233, 214, .58); max-width: 62ch;
}
.litany-note em { color: rgba(243, 233, 214, .62); }

/* ============================================================
   FAVOURABLE / HOLD OFF
   ============================================================ */
.guidance {
  margin-top: var(--sp-8); padding-top: var(--sp-6);
  border-top: 1px solid var(--parchment-rule);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6);
}
.guide h3 {
  font-size: .62rem; letter-spacing: .24em; text-transform: uppercase;
  font-weight: 500; margin-bottom: .7rem;
}
.guide-good h3 { color: var(--gold-deep); }
.guide-hold h3 { color: var(--rose); }
.guide ul { display: grid; gap: .45rem; }
.guide li {
  font-family: var(--font-display); font-size: .96rem; line-height: 1.42;
  padding-left: 1.15rem; position: relative; color: rgba(34, 28, 19, .9);
}
.guide-good li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border: 1px solid var(--gold-deep); transform: rotate(45deg);
}
.guide-hold li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 8px; height: 1px; background: var(--rose);
}
.guide-framing {
  grid-column: 1 / -1; font-size: .7rem; line-height: 1.62;
  color: var(--parchment-muted); border-top: 1px solid var(--parchment-rule);
  padding-top: .7rem;
}

/* caution gauge in the left rail */
.caution-gauge { margin-top: var(--sp-8); }
.caution-gauge h3 {
  font-size: .62rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--oxblood); font-weight: 500; margin-bottom: .45rem;
}
.gauge-value { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--parchment-ink); }
.gauge-of { font-size: .8rem; color: var(--parchment-muted); }
.gauge-track {
  margin-top: .5rem; height: 4px; background: rgba(34, 28, 19, .14); overflow: hidden;
}
.gauge-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--rose));
  transition: width .7s cubic-bezier(.2, .7, .2, 1);
}
.gauge-label {
  margin-top: .5rem; font-family: var(--font-display); font-size: .98rem; color: var(--oxblood);
}
.gauge-note { font-size: .74rem !important; line-height: 1.5; color: var(--parchment-muted); margin-top: .2rem; }

/* ============================================================
   BORN ON THIS DAY
   ============================================================ */
.births {
  background: var(--ink-2);
  border: 1px solid rgba(212, 175, 90, .3); border-top: 0;
  padding: clamp(1.5rem, 3.4vw, 2.8rem) clamp(1.25rem, 3.4vw, 3.4rem);
}
.births-head {
  display: flex; flex-wrap: wrap; gap: .5rem var(--sp-6); align-items: baseline;
  padding-bottom: var(--sp-4); border-bottom: 1px solid var(--ink-line);
}
.births-head h2 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--parchment);
}
.births-sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.births-list {
  margin-top: var(--sp-6);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: var(--sp-2) var(--sp-8);
}
.births-list li {
  display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .8rem;
  padding: .55rem 0; border-bottom: 1px solid rgba(212, 175, 90, .12);
}
.birth-year {
  font-family: var(--font-display); font-size: .95rem; color: var(--gold);
  font-variant-numeric: tabular-nums; text-align: right;
}
.birth-name {
  font-family: var(--font-display); font-size: 1rem; line-height: 1.3; color: var(--parchment);
}
.birth-what {
  display: block; font-family: var(--font-body); font-size: .74rem; line-height: 1.45;
  color: rgba(243, 233, 214, .55); margin-top: .1rem;
}
.births-empty { font-size: var(--text-sm); color: rgba(243, 233, 214, .55); }
.births-attrib {
  margin-top: var(--sp-6); padding-top: var(--sp-3); border-top: 1px solid var(--ink-line);
  font-size: .68rem; line-height: 1.62; color: rgba(243, 233, 214, .42); max-width: 84ch;
}
.births-attrib a { color: var(--marian); text-decoration: none; border-bottom: 1px solid var(--marian-soft); }
.births-attrib a:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* ============================================================
   THE CAUTION CALENDAR
   ============================================================ */
.calendar-sec { position: relative; border-top: 1px solid var(--ink-line); overflow: hidden; isolation: isolate; }
.calendar-art { position: absolute; inset: 0; z-index: -2; }
.calendar-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.calendar-sec::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 11, 20, .93), rgba(8, 11, 20, .97) 40%, rgba(8, 11, 20, .99));
}
.calendar-inner {
  position: relative; max-width: var(--shell); margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem);
}
.legend {
  margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
}
.legend-item { display: flex; align-items: center; gap: .45rem; }
.legend-swatch { width: 15px; height: 15px; border: 1px solid rgba(212, 175, 90, .3); }
.legend-label { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(243, 233, 214, .6); }

.year-grid {
  margin-top: var(--sp-8);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-6);
}
.cal-month { border-top: 1px solid rgba(212, 175, 90, .26); padding-top: .6rem; }
.cal-month h3 {
  font-family: var(--font-display); font-size: .95rem; letter-spacing: .04em;
  color: var(--parchment); margin-bottom: .55rem;
}
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-variant-numeric: tabular-nums; text-decoration: none;
  border: 1px solid transparent; transition: transform .16s ease, border-color .16s ease;
}
.cal-day:hover, .cal-day:focus-visible { border-color: var(--gold); transform: scale(1.14); z-index: 2; }
.cal-b0 { background: #1B2A42; color: #C7D7F0; }
.cal-b1 { background: #3B3524; color: #EBDCB2; }
.cal-b2 { background: #573B29; color: #F2DCC4; }
.cal-b3 { background: #6D3529; color: #F7D8CB; }
.cal-b4 { background: #7C3B32; color: #FADFD6; }
.cal-day { box-shadow: inset 0 0 0 1px rgba(8, 11, 20, .4); }
.cal-day.is-marked { outline: 1px solid var(--gold); outline-offset: 1px; font-weight: 700; }
.calendar-note {
  margin-top: var(--sp-8); font-size: .7rem; line-height: 1.62;
  color: rgba(243, 233, 214, .42); max-width: 76ch;
}

/* ============================================================
   THE PLATES
   ============================================================ */
.plates { border-top: 1px solid var(--ink-line); background: var(--ink); }
.plates-inner { max-width: var(--shell); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem); }
.plate-grid {
  margin-top: var(--sp-8);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3);
}
.plate {
  position: relative; overflow: hidden; border: 1px solid rgba(212, 175, 90, .2);
  aspect-ratio: 4 / 3;
}
.plate.is-tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.plate img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
  filter: saturate(.9);
}
.plate:hover img { transform: scale(1.05); filter: saturate(1.02); }
.photo-credit-line {
  margin-top: var(--sp-6); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(243, 233, 214, .42);
}

/* about band photo */
.about-art img { object-position: center 60%; }
.about::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 20, .9), rgba(8, 11, 20, .95));
}
.about-art { opacity: 1; }
.about-inner { z-index: 1; }
.about-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* footer */
.site-foot > div { display: grid; gap: .35rem; }
.site-foot a { color: var(--marian); text-decoration: none; border-bottom: 1px solid var(--marian-soft); }
.site-foot a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .year-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .plate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guidance { grid-template-columns: 1fr; gap: var(--sp-6); }
}
@media (max-width: 720px) {
  .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-4); }
  .litany-inner { max-width: none; }
  .litany-word { padding: var(--sp-4); }
  .births-list { grid-template-columns: 1fr; }
  .plate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate.is-tall { grid-row: span 1; aspect-ratio: 3 / 4; }
  .about-grid { grid-template-columns: 1fr; }
  .cal-day { font-size: .62rem; }
}
@media (max-width: 420px) {
  .year-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .calendar-sec, .plates { display: none !important; }
  .litany {
    background: none !important; border: 0; border-bottom: 1px solid #bbb;
    page-break-inside: avoid; margin-bottom: 6mm;
  }
  .litany-art, .litany::after { display: none !important; }
  .litany-inner { padding: 0 0 5mm; }
  .litany-eyebrow, .litany-under, .litany-word-label { color: #555 !important; }
  .litany-title, .litany-body p, .litany-word span:last-child { color: #000 !important; }
  .litany-invocation, .litany-emblem, .litany-close { color: #444 !important; }
  .litany-word { background: none; border-color: #ccc; }
  .births {
    background: none !important; border: 0; border-top: 1px solid #bbb;
    padding: 5mm 0 0; page-break-inside: avoid;
  }
  .births-head h2, .birth-name { color: #000 !important; }
  .birth-year { color: #555 !important; }
  .birth-what, .births-attrib, .births-sub { color: #555 !important; }
  .guide li { color: #000 !important; }
  .gauge-fill { background: #666 !important; }
}

/* ============================================================
   THE COUNSEL BAND — favourable / hold off / caution, on ink.
   Sits directly under the Litany so the newest layers of the book
   read first, before the parchment spread.
   ============================================================ */
.guide-band {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  border: 1px solid rgba(212, 175, 90, .3);
  border-bottom: 0;
  padding: clamp(1.6rem, 3.6vw, 3rem) clamp(1.25rem, 3.4vw, 3.4rem);
}
.guide-band .litany-eyebrow { margin-bottom: var(--sp-6); }
.guide-cols {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(190px, .78fr);
  gap: var(--sp-6) clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
}
.guide-cols > * + * {
  border-left: 1px solid var(--ink-line);
  padding-left: clamp(1.4rem, 3vw, 2.6rem);
}
.guide-band .guide h3 { color: var(--gold); }
.guide-band .guide-hold h3 { color: var(--rose-light); }
.guide-band .guide li { color: rgba(243, 233, 214, .93); font-size: 1.02rem; line-height: 1.46; }
.guide-band .guide-good li::before { border-color: var(--gold); }
.guide-band .guide-hold li::before { background: var(--rose-light); }
.guide-band .caution-gauge { margin-top: 0; }
.guide-band .caution-gauge h3 { color: var(--rose-light); }
.guide-band .gauge-value { color: var(--parchment); }
.guide-band .gauge-of,
.guide-band .gauge-note { color: rgba(243, 233, 214, .6); }
.guide-band .gauge-track { background: rgba(243, 233, 214, .14); }
.guide-band .gauge-label { color: var(--amber); }
.guide-band .guide-framing {
  margin-top: var(--sp-6); padding-top: .9rem;
  border-top: 1px solid var(--ink-line);
  color: rgba(243, 233, 214, .6); font-size: .72rem; line-height: 1.65;
  padding-right: clamp(0rem, 26vw, 26rem);
}
@media (max-width: 860px) {
  .guide-band .guide-framing { padding-right: 0; }
  .guide-cols { grid-template-columns: 1fr; }
  .guide-cols > * + * {
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--ink-line); padding-top: var(--sp-5);
  }
}

/* what each day gives you — advertises the three newest layers from the hero */
.hero-inside {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  padding-top: clamp(1.1rem, 2.4vw, 1.6rem);
  border-top: 1px solid var(--ink-line);
  display: grid; gap: .68rem;
}
.hero-inside li {
  display: grid; grid-template-columns: 1.9rem 1fr; align-items: baseline;
  gap: .3rem;
  font-size: .9rem; line-height: 1.45; color: rgba(243, 233, 214, .8);
}
.hero-inside li em { font-style: italic; color: var(--gold); }
.hero-inside-n {
  font-family: var(--font-display); font-size: .74rem; letter-spacing: .1em;
  color: var(--marian-light, #9DB6DC); text-transform: lowercase;
}

/* On small screens the photograph leads the hero — the moon and Venus are the
   book's emblem, so they should be the first thing seen. */
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-art { order: 0; }
  .hero-art img { aspect-ratio: 4/3; }
  .hero-body { order: 1; }
}

/* At narrow widths the Litany text sits over the whole frame rather than the
   left third, so the scrim needs to be even across the panel. */
@media (max-width: 900px) {
  .litany::after {
    background:
      linear-gradient(180deg, rgba(8, 11, 20, .93) 0%, rgba(8, 11, 20, .88) 55%, rgba(13, 19, 34, .9) 100%),
      linear-gradient(to top, rgba(46, 68, 104, .3), transparent 70%);
  }
}
