/* ==========================================================================
   Lumenæ — guides
   Loaded on the homepage (for the three entry points) and on /guides/.
   This file is LUMENÆ's brand: cream ground, Fraunces + Instrument Sans,
   terracotta accent. It inherits every token from style.css and defines no
   palette of its own — with one deliberate exception, --guide-disc below.
   Saor's own page does NOT load this file; see css/saor.css.
   ========================================================================== */

:root {
  /* The ONE Saor value permitted on a Lumenæ surface, and it is a technical
     requirement rather than a style choice: the mask vector is #E7E8E8/#C9CBCD
     and literally disappears on cream (brands/saor.md states this as a hard
     constraint). The disc is the container that makes the logo legible. It is
     Saor's --sa-night. Nothing else from his palette may cross. */
  --guide-disc: #1A1A1B;
}

/* ---------- Entry point 1: the phone panel ----------
   Deliberately NOT a fifth <li> in .nav__index. That list indexes sections of
   the current page and is numbered 01-04; its entrance stagger is hardcoded as
   nth-child(1..4) in style.css, so a fifth item would arrive with no delay.
   A cross-page destination is a different kind of thing, so it gets a different
   shape: a hairline-separated row, set in the body face rather than the display
   face, sitting between the index and the CTA. */
.nav__panel-link {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  min-height: 48px;                       /* touch target */
  margin-bottom: var(--s-6);
  padding-block: var(--s-3);
  border-top: 1px solid var(--cream-edge);
  color: var(--ink); text-decoration: none;
  font-size: 1.05rem;
}
.nav__panel-link span {
  font-style: normal;
  color: var(--terracotta);
  transition: transform var(--t-mid) var(--ease-out);
}
.nav__panel-link:hover { color: var(--terracotta); }
.nav__panel-link:hover span { transform: translateX(4px); }
@media (hover: none) {
  .nav__panel-link:active { color: var(--terracotta); }
}
/* The panel pages its items in on open; this row follows the last of them. */
.nav__panel .nav__panel-link {
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--t-slow) var(--ease-reveal),
              transform var(--t-slow) var(--ease-reveal),
              color var(--t-fast) var(--ease-soft);
}
.nav__panel.is-open .nav__panel-link {
  opacity: 1; transform: none; transition-delay: 300ms;
}

/* ---------- Entry point 2: inside card 4 ----------
   "Real guides" on the homepage means qualified people booked for sessions —
   a different sense of the word than Saor, who is a creator. So the link names
   its destination instead of saying "see our guides", which would quietly merge
   two things the ecosystem keeps separate. */
.card__link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px;
  margin-top: var(--s-3);
  color: var(--terracotta); text-decoration: none;
  font-size: .9rem; font-weight: 500;
}
.card__link span { font-style: normal; transition: transform var(--t-mid) var(--ease-out); }
.card__link:hover { text-decoration: underline; text-underline-offset: .25em; }
.card__link:hover span { transform: translateX(4px); }
@media (hover: none) {
  .card__link:active span { transform: translateX(4px); }
}

/* ---------- Entry point 3: the name in the ecosystem aside ---------- */
.ecosystem__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color var(--t-fast) var(--ease-soft);
}
.ecosystem__link:hover { color: var(--terracotta); }

/* ==========================================================================
   The /guides/ index page
   ========================================================================== */

.guides { background: var(--cream-lift); }

.guide-list { display: grid; gap: var(--s-5); margin-top: var(--s-7); }

/* One guide exists. A row rather than a grid cell, so the page does not read as
   a 4-up card grid with three tiles missing — and so it still reads correctly
   once there is more than one. */
.guide-card {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: var(--s-5);
  padding: var(--s-6);
  background: var(--cream);
  border: 1px solid var(--cream-edge);
  border-radius: var(--radius);
  color: inherit; text-decoration: none;
  /* Same shape as .card's transition list, and for the same reason: a plain
     shorthand here would replace the reveal's own opacity/transform transition
     and the entrance would snap instead of fading. */
  transition:
    opacity var(--t-reveal) var(--ease-reveal),
    transform var(--t-reveal) var(--ease-reveal),
    translate var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-soft),
    box-shadow var(--t-mid) var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s, 0s, 0s;
}
/* `translate`, never `transform` — .js .reveal.is-in (0,3,0) outranks
   .guide-card:hover (0,2,0) and would cancel a transform-based lift outright.
   Same trap .card documents in style.css. */
.guide-card:hover {
  translate: 0 -4px;
  border-color: color-mix(in srgb, var(--terracotta) 42%, var(--cream-edge));
  box-shadow: 0 18px 34px -24px rgba(34,29,26,.5);
}
@media (hover: none) {
  .guide-card:active {
    translate: 0 -2px;
    border-color: color-mix(in srgb, var(--terracotta) 42%, var(--cream-edge));
  }
}

/* The dark disc. Not decoration: it is the only surface on a cream page that
   can carry a near-white logo. Sized in vw so it holds its presence on a phone,
   where it is the first thing on the page. */
.guide-card__disc {
  position: relative;
  width: min(58vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--guide-disc);
  display: grid; place-items: center;
  overflow: hidden;
  /* A hairline of the mask's own bone, so the disc reads as a lit object rather
     than a hole punched through the page. */
  box-shadow: inset 0 0 0 1px rgba(231,232,232,.12),
              0 14px 30px -20px rgba(34,29,26,.55);
}
/* Moonlight: one directional source, upper left, the way Saor's own page is
   lit. Static — this is Lumenæ's page and it stays quiet. */
.guide-card__disc::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(72% 62% at 30% 24%,
              rgba(231,232,232,.10), transparent 68%);
  pointer-events: none;
}
.guide-card__disc img {
  position: relative;
  width: 62%; height: auto;
}

.guide-card__body { display: grid; gap: var(--s-2); justify-items: center; }
.guide-card__name {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 400; font-variation-settings: "opsz" 48;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.12; letter-spacing: -.015em;
}
.guide-card__sub {
  font-size: .74rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--terracotta);
}
.guide-card__desc {
  font-size: .98rem; color: var(--ink-soft);
  max-width: 46ch; text-wrap: pretty;
}
.guide-card__go {
  display: inline-flex; align-items: center; gap: var(--s-2);
  margin-top: var(--s-2);
  font-size: .9rem; font-weight: 500; color: var(--terracotta);
}
.guide-card__go span { font-style: normal; transition: transform var(--t-mid) var(--ease-out); }
.guide-card:hover .guide-card__go span { transform: translateX(4px); }

/* From tablet up the card becomes a row: portrait left, name right. Reads as a
   directory entry rather than a poster, which is what it will need to be once
   there is more than one. */
@media (min-width: 620px) {
  .guide-card {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    align-items: center;
    gap: var(--s-7);
    padding: var(--s-7);
  }
  .guide-card__disc { width: 168px; }
  .guide-card__body { justify-items: start; }
}

/* Names what is not built. One guide exists; the page says so rather than
   implying a roster. */
.guides__note {
  margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: 1px solid var(--cream-edge);
  font-size: .93rem; color: var(--ink-faint);
  max-width: 60ch; text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  .nav__panel .nav__panel-link { opacity: 1; transform: none; }
  .nav__panel-link span,
  .card__link span,
  .guide-card__go span { transform: none !important; }
}

/* Own bloom placement. Every .atmos section on the site hazes differently on
   purpose — two sections sharing a placement is what makes the light read as a
   texture applied to the page rather than as depth in it. */
.guides::before { background:
  radial-gradient(56% 44% at 88% 10%, rgba(168, 71, 31, .050), transparent 68%),
  radial-gradient(60% 42% at 8% 86%,  rgba(34, 29, 26, .042), transparent 72%); }

/* No hero on this page, so the first heading sits directly under the bar and
   needs the breathing room the hero would otherwise have given it. */
.guides { padding-block: clamp(5rem, 13vw, 9rem) clamp(4.5rem, 11vw, 9rem); }
@media (max-width: 699px) {
  .guides { padding-block: clamp(3.5rem, 13vw, 5rem) clamp(3rem, 11vw, 4rem); }
}
