/* =========================================================
   /sierra — the first marker
   The one page allowed to be quiet.
   ========================================================= */

.sp {
  position: relative;
  background: var(--ink-000);
}

/* A warm pool of light behind the name, so this page feels lit from
   somewhere other than the rest of the site. */
.sp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(120vw, 1400px);
  aspect-ratio: 2 / 1;
  background: radial-gradient(
    ellipse at center,
    rgba(201, 162, 39, 0.09) 0%,
    rgba(142, 44, 36, 0.05) 34%,
    transparent 68%
  );
  pointer-events: none;
}

.sp__head {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding-block: clamp(6.5rem, 15vh, 10rem) clamp(1.5rem, 3vw, 2.5rem);
}

.sp__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.sp__name {
  font-size: var(--step-6);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--bone-100);
  padding-bottom: 0.08em;
}

.sp__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 200;
  font-size: var(--step-2);
  color: var(--gold-200);
}

.sp__dates {
  color: var(--bone-500);
}

/* ---------------- hero plate ---------------- */

.sp__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  will-change: clip-path;
}

@media (max-width: 700px) {
  .sp__hero {
    aspect-ratio: 4 / 3;
  }
}

.sp__hero picture,
.sp__hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 34%;
}

.sp__hero figcaption {
  position: absolute;
  left: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  color: var(--bone-300);
  background: rgba(6, 5, 4, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.5em 0.85em;
  border-radius: 2px;
}

/* ---------------- chapters ---------------- */

.sp__chapters {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  max-width: 76ch;
  margin-inline: auto;
}

.sp__chapter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}

@media (max-width: 620px) {
  .sp__chapter {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.sp__chapter-n {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  color: var(--gold-300);
  padding-top: 0.6em;
}

.sp__chapter-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.05;
  color: var(--bone-100);
  margin-bottom: 0.5rem;
}

.sp__chapter-body {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.78;
  color: var(--bone-200);
}

/* ---------------- mosaic ---------------- */

.sp__mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.8vw, 1.5rem);
  align-items: start;
}

.sp__plate {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  will-change: transform;
}

.sp__plate-img {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  will-change: clip-path, transform;
}

.sp__plate-img picture {
  display: block;
  width: 100%;
  height: 100%;
}

.sp__plate figcaption {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-500);
}

.sp__plate--tall {
  grid-column: span 3;
  aspect-ratio: 3 / 4;
}

.sp__plate--wide {
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}

.sp__plate--square {
  grid-column: span 3;
  aspect-ratio: 1 / 1;
}

/* Staggered rest positions, so the mosaic has a diagonal drift built in
   rather than only appearing in the motion. */
.sp__plate:nth-child(1) { margin-top: clamp(0.75rem, 3vw, 2.5rem); }
.sp__plate:nth-child(3) { margin-top: clamp(1.5rem, 5vw, 4rem); }
.sp__plate:nth-child(5) { margin-top: clamp(0.5rem, 1.5vw, 1.5rem); }
.sp__plate:nth-child(6) { margin-top: clamp(2rem, 6vw, 5rem); }

@media (max-width: 900px) {
  .sp__mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .sp__plate--tall,
  .sp__plate--wide,
  .sp__plate--square {
    grid-column: span 3;
  }
  .sp__plate {
    margin-top: 0 !important;
  }
}

/* ---------------- quote ---------------- */

.sp__quote {
  max-width: 34ch;
  margin-inline: auto;
  text-align: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.sp__quote p {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--bone-100);
  text-wrap: balance;
}

.sp__quote cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: var(--step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300);
}
