/*
 * ONEEXISTS v1.9.0 — Homepage §06 Stories + §07 Custom Request partials.
 * Two blocks, opposite temperatures: Stories is dark-graphite editorial gallery,
 * Custom Request is paper-warm pivot per Phase 1 §11 rhythm.
 */

/* ============================================================================
   § 6 — STORIES (dark editorial gallery)
   ============================================================================ */
.oe-stories {
  background: rgb(var(--oe-black));
  color: rgb(var(--oe-white));
  padding-block: clamp(4rem, 10vh, 8rem);
}

.oe-stories__header {
  max-width: 46rem;
  margin: 0 0 clamp(2.5rem, 5vh, 4rem);
}

.oe-stories__header .oe-eyebrow {
  display: block;
  font-family: var(--oe-font-mono, "JetBrains Mono", monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  color: rgb(var(--oe-white) / 0.55);
  margin: 0 0 clamp(1.25rem, 2vh, 2rem);
}

.oe-stories__title {
  font-family: var(--oe-font-head, "Fraunces", serif);
  font-size: clamp(1.75rem, 3.75vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(0.75rem, 1.5vh, 1.25rem);
}

.oe-stories__lead {
  font-family: var(--oe-font-head, "Fraunces", serif);
  font-style: italic;
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
  line-height: 1.5;
  color: rgb(var(--oe-white) / 0.75);
  margin: 0;
  max-width: 46ch;
}

/* Grid — mobile: stacked. Desktop: 3 columns with varied heights. */
.oe-stories__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 48rem) {
  .oe-stories__grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(340px, auto);
    gap: 1.5rem;
  }
  .oe-story-card--tall { grid-column: span 2; grid-row: span 2; }
  .oe-story-card--wide { grid-column: span 2; grid-row: span 1; align-self: end; }
}
@media (min-width: 64rem) {
  .oe-stories__grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(240px, auto);
  }
  .oe-story-card--tall { grid-column: span 2; grid-row: span 3; }
  .oe-story-card--wide { grid-column: span 2; grid-row: span 2; align-self: end; }
}

.oe-story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgb(var(--oe-graphite));
  color: rgb(var(--oe-white));
  min-height: 320px;
  isolation: isolate;
}

.oe-story-card__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  background-size: cover;
  background-position: center 62%;
  background-repeat: no-repeat;
  background-color: #000;
}

.oe-story-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgb(0 0 0 / 0.3) 0%,
    transparent 40%,
    rgb(0 0 0 / 0.35) 80%,
    rgb(0 0 0 / 0.75) 100%);
  pointer-events: none;
}

.oe-story-card__body {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border-top: 1px solid rgb(var(--oe-white) / 0.08);
}

.oe-story-card__eyebrow {
  display: block;
  font-family: var(--oe-font-mono, monospace);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  color: rgb(var(--oe-white) / 0.55);
  margin: 0 0 0.5rem;
}

.oe-story-card__title {
  font-family: var(--oe-font-head, serif);
  font-size: clamp(1.125rem, 1.75vw, 1.375rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
  color: rgb(var(--oe-white));
}

.oe-story-card__body-copy {
  font-family: var(--oe-font-head, serif);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgb(var(--oe-white) / 0.75);
  margin: 0;
}

.oe-stories__note {
  margin: clamp(2.5rem, 5vh, 4rem) 0 0;
  font-family: var(--oe-font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgb(var(--oe-white) / 0.4);
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

/* ============================================================================
   § 7 — CUSTOM REQUEST (paper-warm pivot)
   ============================================================================ */
.oe-custom-request {
  background: rgb(var(--oe-paper));
  color: rgb(var(--oe-black));
  padding-block: clamp(5rem, 12vh, 10rem);
  text-align: center;
}

.oe-custom-request__inner {
  max-width: 48rem;
}

.oe-custom-request .oe-eyebrow {
  display: block;
  font-family: var(--oe-font-mono, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  color: rgb(var(--oe-black) / 0.55);
  margin: 0 0 clamp(1.5rem, 3vh, 2.5rem);
}

/* body-scoped + !important to defeat v141's `body h1..h5 { color: white !important }`
   and any legacy `.entry-title { color: var(--gttg-text) !important }` rules that
   would otherwise wash the paper-warm section into invisible-on-invisible text. */
body .oe-custom-request .oe-custom-request__title,
body .oe-custom-request h2.oe-custom-request__title {
  font-family: var(--oe-font-head, serif) !important;
  font-size: clamp(2.25rem, 5vw, 4rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.025em !important;
  margin: 0 0 clamp(1.25rem, 2.5vh, 2rem) !important;
  color: rgb(var(--oe-black)) !important;
}

body .oe-custom-request .oe-custom-request__lead {
  font-family: var(--oe-font-head, serif) !important;
  font-style: italic;
  font-size: clamp(1.0625rem, 1.35vw, 1.3125rem);
  line-height: 1.55;
  color: rgb(var(--oe-black) / 0.75) !important;
  margin: 0 auto clamp(2rem, 4vh, 3rem);
  max-width: 42ch;
}

body .oe-custom-request .oe-eyebrow {
  color: rgb(var(--oe-black) / 0.55) !important;
}
body .oe-custom-request .oe-custom-request__meta-num {
  color: rgb(var(--oe-black) / 0.4) !important;
}
body .oe-custom-request .oe-custom-request__meta-label {
  color: rgb(var(--oe-black)) !important;
}

.oe-custom-request__ctas {
  margin: 0 0 clamp(3rem, 6vh, 5rem);
}

.oe-btn--primary-inverse {
  display: inline-block;
  background: rgb(var(--oe-black));
  color: rgb(var(--oe-white));
  border: 1px solid rgb(var(--oe-black));
  padding: 1.125rem 2.25rem;
  font-family: var(--oe-font-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
              color 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.oe-btn--primary-inverse:hover,
.oe-btn--primary-inverse:focus-visible {
  background: transparent;
  color: rgb(var(--oe-black));
}

.oe-custom-request__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: left;
  border-top: 1px solid rgb(var(--oe-black) / 0.12);
  padding-top: clamp(2rem, 4vh, 3rem);
}
@media (min-width: 48rem) {
  .oe-custom-request__meta {
    grid-template-columns: repeat(4, 1fr);
  }
}

.oe-custom-request__meta li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.oe-custom-request__meta-num {
  font-family: var(--oe-font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: rgb(var(--oe-black) / 0.4);
}
.oe-custom-request__meta-label {
  font-family: var(--oe-font-head, serif);
  font-size: 0.9375rem;
  line-height: 1.35;
  color: rgb(var(--oe-black));
}

/* ============================================================================
   FOOTER FIXES v1.9.1
   ============================================================================ */

/* Kill the duplicate wordmark that v120-additions.css injects via
   .oe-footer__logo::before { content: "ONEEXISTS®" }. The real wordmark lives
   inside the anchor as a <span>, so we hide the pseudo entirely. */
.oe-footer__logo::before,
.oe-footer__logo--text::before {
  content: none !important;
  display: none !important;
}

/* Newsletter input — bordered dark chip with no placeholder distraction.
   The label "Email" stays via .oe-sr-only for screen readers only. */
.oe-newsletter { display: flex; gap: 0.5rem; align-items: stretch; }

.oe-newsletter .oe-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  color: rgb(var(--oe-white)) !important;
  border: 1px solid rgb(var(--oe-white) / 0.35) !important;
  padding: 0.75rem 1rem;
  font-family: var(--oe-font-ui, "Inter", sans-serif);
  font-size: 0.875rem;
  line-height: 1.4;
  border-radius: 0;
  outline: none;
  transition: border-color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.oe-newsletter .oe-input:focus,
.oe-newsletter .oe-input:focus-visible {
  border-color: rgb(var(--oe-white)) !important;
}
.oe-newsletter .oe-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
