/* ==========================================================================
   LE BENIC — simple text pages (placeholder typesetting)
   Used by our-story.html until it is art-directed.
   ========================================================================== */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-block: calc(var(--header-h) + var(--header-edge) + clamp(72px, 14vh, 160px)) clamp(96px, 16vh, 180px);
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Background photograph: fixed behind the page, graded into the palette in
   the file itself (assets/media/story-page-bg.webp; tern recomposed to the left,
   clear of the centred text). An edgeless gradient gives reading contrast.
   The slow push is set by assets/js/page-bg.js (transform only).
   -------------------------------------------------------------------------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--page-black, #070707);
  pointer-events: none;
}
.page-bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;   /* keep the foreground grass and lupins in frame */
  transform-origin: 30% 42%;  /* the push stays calm around the tern, drifting it away from the text */
  will-change: transform;
}
/* Reading atmosphere: a wide, edgeless settle of the site's green-black, deepest where the
   centred text runs and easing out long before the tern; a touch more under the brighter sky. */
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(8 10 8 / 0.22) 0%, rgb(8 10 8 / 0.08) 32%, rgb(8 10 8 / 0) 55%),
    radial-gradient(ellipse 62% 115% at 50% 50%,
      rgb(8 10 8 / 0.5) 0%,
      rgb(8 10 8 / 0.42) 30%,
      rgb(8 10 8 / 0.2) 62%,
      rgb(8 10 8 / 0.06) 100%);
}
@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 4/3) and (min-width: 761px) {
  /* squarer screens crop the sides: keep the tern (left) in frame */
  .page-bg__img { object-position: 32% 70%; }
}
@media (max-width: 760px) {
  /* the text spans the screen: an even, slightly deeper settle */
  .page-bg::after { background: rgb(8 10 8 / 0.56); }
}

.page__article {
  max-width: 36rem;
  margin: 0 auto;
}

.page__eyebrow {
  margin-bottom: 1.6rem;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--bone-72);
}

.page__title {
  margin: 0 0 3.2rem;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.4vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.page__lede {
  margin-bottom: 2.4rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.25;
}

.page__article p:not([class]) {
  margin-bottom: 1.5em;
  font-size: clamp(16px, 1.1vw, 18px);
  font-weight: 300;
  line-height: 1.8;
  color: rgb(233 225 213 / 0.86);
}

.page__coda {
  margin: 3.6rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.2;
}
.page__coda em { display: block; margin-top: 0.4rem; }

.page__sign {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 3rem;
}
.page__sign span:first-child { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1; }
.page__sign span:last-child { font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--bone-72); }

.page__back {
  display: inline-block;
  margin-top: 4.5rem;
  padding-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--bone-48);
}
