/*
 * Editorial home direction
 *
 * This final layer quiets the earlier cinematic treatment and centers the
 * experience on rooms, cooking, materials, and motherhood. It deliberately
 * leaves the progressive-enhancement contracts in the underlying styles intact.
 */

:root {
  --paper: #f3eee5;
  --paper-bright: #fbf8f2;
  --paper-deep: #e8ded0;
  --paper-shadow: #d6c6b3;
  --sage: #7d8973;
  --sage-soft: #aab29f;
  --sage-pale: #dfe2d7;
  --sage-dark: #4c5b4d;
  --forest: #25382d;
  --forest-2: #34483a;
  --coral: #b85f4c;
  --coral-bright: #ca6a54;
  --coral-deep: #8e4639;
  --gold: #b18b50;
  --ink: #273129;
  --ink-soft: #62665f;
  --white: #fffdf8;
  --black: #172019;
  --max: 92rem;
}

html { background: var(--paper-bright); }
body { background: var(--paper-bright); }

.site-header {
  min-height: 5.25rem;
  color: var(--forest);
  border-bottom: 1px solid color-mix(in srgb, var(--sage-dark) 13%, transparent);
  background: color-mix(in srgb, var(--paper-bright) 91%, transparent);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}
.site-header::before { display: none; }
.site-header.is-scrolled,
.site-header.is-light { min-height: 4.6rem; color: var(--forest); }
.site-nav a { letter-spacing: .12em; }

.threshold {
  min-height: max(100svh, 47rem);
  background: var(--forest);
  color: var(--white);
}
.threshold__media {
  z-index: 0;
  inset: 0;
  width: auto;
  overflow: hidden;
}
.threshold__media img {
  object-position: center 52%;
  transform: none;
  filter: saturate(.92) contrast(1.05) brightness(.96);
}
.threshold__veil {
  z-index: 1;
  inset: 0;
  width: auto;
  background:
    linear-gradient(90deg, rgba(18, 13, 9, .58) 0%, rgba(18, 13, 9, .3) 32%, rgba(18, 13, 9, .04) 58%, rgba(18, 13, 9, .2) 100%),
    linear-gradient(180deg, rgba(15, 11, 7, .38), transparent 26%, transparent 58%, rgba(12, 9, 6, .52));
}
.threshold__aurora { display: none; }
.threshold__inner {
  z-index: 3;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: max(100svh, 47rem);
  padding-top: clamp(8rem, 14vh, 11rem);
  padding-bottom: clamp(5rem, 9vh, 7rem);
}
.threshold__copy {
  grid-column: 1;
  max-width: 43rem;
  padding-right: clamp(1.5rem, 4vw, 4rem);
}
.threshold .eyebrow { color: rgba(255, 253, 248, .78); }
.threshold .eyebrow span:last-child { border-left-color: rgba(255, 255, 255, .3); }
.threshold h1 {
  max-width: 12ch;
  color: var(--white);
  font-size: clamp(4.25rem, 8.4vw, 8.7rem);
  line-height: .84;
  text-shadow: 0 2px 40px rgba(12, 8, 5, .45);
}
.threshold h1 em {
  color: var(--gold);
  text-shadow: 0 0 46px rgba(199, 161, 94, .3);
}
.threshold__deck { color: rgba(255, 253, 248, .85); text-shadow: 0 1px 18px rgba(12, 8, 5, .5); }
.threshold__stamp {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 7vh, 5.5rem);
  width: min(16rem, 24vw);
  padding: 1.15rem 1.2rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .75rem 1rem;
  border: 1px solid rgba(255, 253, 248, .72);
  background: rgba(251, 248, 242, .88);
  color: var(--forest);
  box-shadow: 0 18px 45px rgba(21, 32, 25, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.threshold__stamp img { grid-row: 1 / 3; width: 2.3rem; height: 3.9rem; object-fit: contain; }
.threshold__stamp p { display: grid; gap: .15rem; margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1; }
.threshold__stamp small { font-size: .52rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.scroll-cue { color: rgba(255, 253, 248, .8); }
.scroll-cue i { background: rgba(255, 255, 255, .32); }

.portals {
  padding-top: clamp(6rem, 10vw, 9rem);
  padding-bottom: clamp(6rem, 10vw, 9rem);
  background: var(--paper-bright);
}
.section-intro h2 { max-width: 11ch; font-size: clamp(3.8rem, 6.5vw, 6.8rem); }
.portal-fallback,
.portal-stage { border-radius: .55rem; }
.portal-fallback__card { background: var(--paper-bright); }
.portal-fallback__card:nth-child(even) { background: var(--paper-deep); color: var(--forest); }
.portal-fallback__card:nth-child(even) > p:nth-of-type(2) { color: var(--ink-soft); }
.portal-fallback__card:nth-child(even) > p:first-child { color: var(--coral-deep); }
.portal-stage {
  min-height: min(72rem, 78svh);
  box-shadow: 0 28px 70px rgba(30, 43, 34, .12);
}
.portal-stage__images img,
.portal-stage__images img.is-active { filter: saturate(.78) contrast(1.02) brightness(.82); }
.portal-stage__wash {
  background:
    linear-gradient(90deg, rgba(25, 38, 30, .82), rgba(25, 38, 30, .36) 54%, rgba(25, 38, 30, .06)),
    linear-gradient(0deg, rgba(20, 29, 23, .35), transparent 46%);
}
.portal-stage__copy h3 { font-size: clamp(3.8rem, 6.5vw, 7rem); }
.portal-stage__doors {
  background: rgba(248, 244, 236, .94);
  border-top-color: rgba(37, 56, 45, .16);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}
.portal-door {
  min-height: 7.2rem;
  border-right-color: rgba(37, 56, 45, .13);
  color: var(--ink-soft);
}
.portal-door i { background: rgba(37, 56, 45, .16); }
.portal-door i::after { background: var(--coral-deep); }
.portal-door:is(:hover, :focus-visible, .is-active) { color: var(--forest); background: var(--paper-bright); }

.light-passage {
  min-height: max(88svh, 45rem);
  background: var(--paper);
}
.light-passage__media {
  inset: clamp(1rem, 3vw, 2.5rem);
  width: auto;
  height: auto;
  overflow: hidden;
  border-radius: .55rem;
}
.light-passage__still { filter: saturate(.9) contrast(1.04) brightness(.92); }
.light-passage__scrim {
  background:
    linear-gradient(90deg, rgba(24, 37, 29, .76), rgba(24, 37, 29, .25) 58%, rgba(24, 37, 29, .08)),
    linear-gradient(180deg, rgba(18, 29, 22, .1), rgba(18, 29, 22, .42));
}
.light-passage__inner { position: relative; z-index: 2; }
.light-passage__copy h2 { font-size: clamp(3.8rem, 7vw, 7.6rem); }

.flavor-wave {
  min-height: auto;
  padding: clamp(7rem, 11vw, 11rem) 0;
  background: var(--paper-deep);
  color: var(--forest);
  border-top: 1px solid color-mix(in srgb, var(--forest) 10%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--forest) 10%, transparent);
}
.flavor-wave__track {
  inset: 50% -2rem auto auto;
  gap: 1rem;
  color: color-mix(in srgb, var(--coral-deep) 7%, transparent);
  font-size: clamp(10rem, 20vw, 21rem);
  animation: none;
  transform: translateY(-50%);
}
.flavor-wave__copy {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(24rem, 1.25fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 9rem);
  text-align: left;
}
.flavor-wave__heading { position: relative; z-index: 2; }
.flavor-wave .section-number { color: var(--coral-deep); }
.flavor-wave h2 {
  margin: 1rem 0 0;
  max-width: 8ch;
  font-size: clamp(3.8rem, 6.5vw, 6.8rem);
}
.flavor-wave__heading > p:last-child {
  max-width: 29rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.5vw, 1.42rem);
  line-height: 1.5;
}
.flavor-wave__still {
  position: relative;
  margin: clamp(1.8rem, 3vw, 2.6rem) 0 0;
}
.flavor-wave__still img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .4rem;
  box-shadow: 0 1.4rem 3rem color-mix(in srgb, var(--forest) 14%, transparent);
}
.flavor-wave__still figcaption {
  margin-top: .7rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: .95rem;
  font-style: italic;
}
.flavor-wave__steam {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 17%;
  height: 30%;
  pointer-events: none;
}
.flavor-wave__steam i {
  position: absolute;
  bottom: 0;
  left: 8%;
  width: 34%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 253, 248, .75), transparent 72%);
  filter: blur(5px);
  opacity: 0;
  animation: steam-rise 4.8s ease-in-out infinite;
}
.flavor-wave__steam i:nth-child(2) { left: 38%; animation-delay: 1.6s; animation-duration: 5.4s; }
.flavor-wave__steam i:nth-child(3) { left: 62%; animation-delay: 3.1s; animation-duration: 4.2s; }
@keyframes steam-rise {
  0% { opacity: 0; transform: translateY(16%) scaleX(1); }
  28% { opacity: .5; }
  100% { opacity: 0; transform: translateY(-88%) scaleX(1.7); }
}
.kitchen-notes {
  position: relative;
  z-index: 2;
  display: grid;
  border-top: 1px solid color-mix(in srgb, var(--forest) 24%, transparent);
}
.kitchen-notes article {
  display: grid;
  grid-template-columns: 2.4rem minmax(8rem, .45fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.55rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--forest) 18%, transparent);
}
.kitchen-notes span { color: var(--coral-deep); font-size: .58rem; font-weight: 600; letter-spacing: .14em; }
.kitchen-notes h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 2.4vw, 2.35rem); font-weight: 500; line-height: 1; }
.kitchen-notes p { margin: 0; color: var(--ink-soft); line-height: 1.55; }

.motherhood-story {
  position: relative;
  z-index: 37;
  padding-top: clamp(7rem, 11vw, 11rem);
  padding-bottom: clamp(7rem, 11vw, 11rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, .8fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
  background: var(--paper-bright);
}
.motherhood-story__image {
  position: relative;
  min-height: 38rem;
  margin: 0;
  overflow: hidden;
  border-radius: .55rem;
  background: var(--paper-deep);
}
.motherhood-story__image::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
  pointer-events: none;
}
.motherhood-story__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.03); transform: scale(1.08) translate3d(0, var(--parallax-y, 0), 0); }
.motherhood-story__copy h2 {
  margin: 1.1rem 0 0;
  max-width: 9ch;
  font-family: var(--serif);
  font-size: clamp(4rem, 6.7vw, 7rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .86;
}
.motherhood-story__copy > p:not(.section-number) {
  max-width: 31rem;
  margin: 1.8rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.45vw, 1.42rem);
  line-height: 1.5;
}
.motherhood-story__note {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid color-mix(in srgb, var(--forest) 22%, transparent);
}
.motherhood-story__note h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 2.8vw, 2.7rem); font-weight: 500; line-height: 1.05; }
.motherhood-story__note p { max-width: 31rem; margin: .85rem 0 0; color: var(--ink-soft); }

.journal-scene { min-height: max(82svh, 47rem); background: var(--paper); }
.journal-scene__image { transform: none; }
.journal-scene__image img { filter: saturate(.78) contrast(1.03); transform: scale(1.08) translate3d(0, var(--parallax-y, 0), 0); transition: transform .9s var(--ease-out), filter .5s ease; }
.journal-scene__image:hover img { transform: scale(1.12) translate3d(0, var(--parallax-y, 0), 0); filter: saturate(.86) contrast(1.03); }
.journal-scene__shine { display: none; }

.closing { min-height: max(70svh, 38rem); }
.closing__rings { display: none; }
.closing__mark { width: clamp(5rem, 8vw, 7.5rem); }

@media (max-width: 64rem) {
  .threshold__inner { grid-template-columns: minmax(0, 1fr); }
  .threshold__stamp { width: 14rem; }
  .flavor-wave__copy { grid-template-columns: 1fr; }
  .motherhood-story { grid-template-columns: minmax(0, 1fr) minmax(19rem, .8fr); gap: 3rem; }
}

@media (max-width: 52rem) {
  .site-header { background: color-mix(in srgb, var(--paper-bright) 94%, transparent); }
  .threshold__inner {
    display: block;
    min-height: max(100svh, 52rem);
    padding-top: 8.3rem;
    padding-bottom: 9rem;
  }
  .threshold__copy { max-width: 38rem; padding-right: 0; }
  .threshold h1 { font-size: clamp(4.1rem, 17vw, 7rem); }
  .threshold__stamp {
    right: var(--gutter);
    bottom: 2rem;
    width: min(14rem, calc(100vw - 2 * var(--gutter)));
  }
  .scroll-cue { display: none; }
  .day-phase { display: none; }
  .threshold__frame { inset: .6rem; }
  .portal-stage { min-height: 46rem; }
  .portal-stage__doors { background: rgba(248, 244, 236, .97); }
  .light-passage__media { inset: .75rem; }
  .kitchen-notes article { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .kitchen-notes p { grid-column: 2; }
  .motherhood-story { grid-template-columns: 1fr; }
  .motherhood-story__image { min-height: min(34rem, 72vw); }
}

@media (max-width: 36rem) {
  .threshold__deck { font-size: 1.12rem; }
  .threshold__stamp { padding: .9rem; }
  .portal-stage { border-radius: 0; margin-inline: calc(var(--gutter) * -1); }
  .light-passage__inner { padding-inline: calc(var(--gutter) + .75rem); }
  .flavor-wave h2,
  .motherhood-story__copy h2 { font-size: clamp(3.5rem, 15vw, 5rem); }
}

@media (max-height: 34rem) and (orientation: landscape) {
  .threshold__frame { display: none; }
  .threshold__inner { min-height: 0; padding-top: 6.5rem; padding-bottom: 2rem; }
  .threshold__copy { width: 60%; }
  .threshold h1 { font-size: clamp(3rem, 8vw, 5.25rem); }
  .threshold__deck { margin-top: 1rem; font-size: 1rem; }
  .threshold__actions { margin-top: 1.1rem; }
  .threshold__stamp { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .threshold__media img,
  .portal-stage__images img,
  .journal-scene__image img { transform: none !important; transition: none !important; }
}
