/* Editorial cover test — deliberately scoped to the test page. */
.editorial-cover {
  --editorial-ink: #252525;
  --editorial-muted: #6b6b6b;
  --editorial-rule: #d9d9d9;
  --editorial-point: #e5b93f;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) 2rem clamp(4rem, 8vw, 7rem);
  color: var(--editorial-ink);
  background: #fff;
}

.editorial-cover__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.65fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.editorial-cover__motto,
.editorial-cover__definition,
.editorial-story {
  min-width: 0;
}

.editorial-cover__eyebrow,
.editorial-story__category {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--editorial-muted);
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.editorial-cover__grain-point {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--editorial-point);
}

.editorial-cover__title {
  max-width: 10ch;
  margin: 1.2rem 0 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 7.5vw, 7.5rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.editorial-cover__definition {
  max-width: 24rem;
  margin: 0 0 0.25rem;
  color: var(--editorial-muted);
  font-family: 'Source Sans Pro', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.55;
}

.editorial-cover__stories {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 0.85fr);
  grid-template-rows: minmax(17rem, 1.15fr) minmax(13rem, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--editorial-rule);
}

.editorial-story {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  animation: editorial-cover-reveal 600ms ease both;
}

.editorial-story--main {
  grid-row: 1 / span 2;
  padding-right: clamp(0rem, 2vw, 1.5rem);
  border-right: 1px solid var(--editorial-rule);
}

.editorial-story--secondary-one {
  animation-delay: 100ms;
}

.editorial-story--secondary-two {
  animation-delay: 180ms;
}

.editorial-story__figure {
  width: 100%;
  margin: 0 0 1.35rem;
  overflow: hidden;
  background: #f2f1ed;
}

.editorial-story--main .editorial-story__figure {
  aspect-ratio: 1.25 / 1;
}

.editorial-story--secondary .editorial-story__figure {
  aspect-ratio: 1.75 / 1;
  margin-bottom: 1rem;
}

.editorial-story__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.editorial-story--secondary-two .editorial-story__figure img {
  object-position: center top;
}

.editorial-story:hover .editorial-story__figure img,
.editorial-story:focus-visible .editorial-story__figure img {
  transform: scale(1.025);
}

.editorial-story__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.editorial-story__body h2 {
  max-width: 18ch;
  margin: 0.65rem 0 0.75rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.45rem, 2.7vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.editorial-story--secondary .editorial-story__body h2 {
  max-width: 25ch;
  margin-top: 0.45rem;
  font-size: clamp(1.15rem, 1.6vw, 1.65rem);
  line-height: 1.12;
}

.editorial-story__body time,
.editorial-story__body p {
  margin: 0;
  color: var(--editorial-muted);
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.45;
}

.editorial-story__body p {
  margin-top: 0.2rem;
}

.editorial-story:focus-visible {
  outline: 2px solid var(--editorial-ink);
  outline-offset: 0.4rem;
}

@keyframes editorial-cover-reveal {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .editorial-cover {
    padding: 3.5rem 1.5rem 4rem;
  }

  .editorial-cover__intro {
    display: block;
    padding-bottom: 3rem;
  }

  .editorial-cover__title {
    max-width: 9ch;
    font-size: clamp(3.3rem, 16vw, 6rem);
  }

  .editorial-cover__definition {
    max-width: 30rem;
    margin-top: 2rem;
  }

  .editorial-cover__stories {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .editorial-story--main {
    padding-right: 0;
    padding-bottom: 2.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--editorial-rule);
  }

  .editorial-story--main .editorial-story__figure {
    aspect-ratio: 1.15 / 1;
  }

  .editorial-story--secondary .editorial-story__figure {
    aspect-ratio: 1.5 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-story,
  .editorial-story__figure img {
    animation: none;
    transition: none;
  }
}