/* Gulyaka editorial system — grid, spacing, type hierarchy */

:root {
  --ed-max: 1160px;
  --ed-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ed-1: 1rem;
  --ed-2: 1.75rem;
  --ed-3: 2.75rem;
  --ed-4: 4rem;
  --ed-5: 5rem;
}

.ed-wrap {
  width: min(100%, var(--ed-max));
  max-width: var(--ed-max);
  margin-inline: auto;
  padding-inline: var(--ed-gutter);
}

.ed-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 2.5vw, 1.75rem);
  row-gap: var(--ed-2);
  align-items: end;
}

.ed-col-4 { grid-column: span 4; }
.ed-col-5 { grid-column: span 5; }
.ed-col-6 { grid-column: span 6; }
.ed-col-7 { grid-column: span 7; }
.ed-col-8 { grid-column: span 8; }
.ed-col-12 { grid-column: 1 / -1; }

.ed-col-start-6 { grid-column-start: 6; }
.ed-col-start-7 { grid-column-start: 7; }
.ed-col-start-8 { grid-column-start: 8; }
.ed-col-start-9 { grid-column-start: 9; }

@media (max-width: 767px) {
  .ed-col-4,
  .ed-col-5,
  .ed-col-6,
  .ed-col-7,
  .ed-col-8 {
    grid-column: 1 / -1;
  }

  .ed-col-start-6,
  .ed-col-start-7,
  .ed-col-start-8,
  .ed-col-start-9 {
    grid-column-start: 1;
  }
}

/* Sections */
.ed-section {
  padding-block: var(--ed-4);
}

.ed-section--tight {
  padding-block: var(--ed-3);
}

.ed-section--flush {
  padding-block: 0;
}

.ed-section--light {
  background: var(--ivory-warm);
}

.ed-section--stone {
  background: var(--surface-intimate);
}

.ed-section--dark {
  background: var(--warm-dark);
  color: var(--text-on-dark);
}

/* Typography */
.ed-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.ed-section--dark .ed-kicker {
  color: rgba(196, 173, 120, 0.85);
}

.ed-statement {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--charcoal);
}

.ed-statement--light {
  color: rgba(252, 249, 244, 0.96);
}

.ed-lede {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--charcoal-soft);
}

.ed-cap {
  margin: 0.75rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.ed-section--dark .ed-cap {
  color: rgba(237, 232, 223, 0.75);
}

/* Media */
.ed-media {
  margin: 0;
  line-height: 0;
}

.ed-media img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.ed-media--tall img {
  min-height: clamp(420px, 58vh, 620px);
}

.ed-media--wide img {
  min-height: clamp(320px, 42vh, 480px);
}

.ed-media--detail img {
  aspect-ratio: 3 / 4;
  max-height: 360px;
  object-position: center 40%;
}

/* CTA band */
.ed-cta-band {
  padding-block: var(--ed-4);
  border-top: 1px solid rgba(107, 69, 80, 0.12);
}

.ed-section--dark.ed-cta-band {
  border-top-color: rgba(196, 173, 120, 0.22);
}

.ed-cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burgundy);
  border-bottom: 1px solid rgba(107, 69, 80, 0.35);
  padding-bottom: 0.2rem;
}

.ed-section--dark .ed-cta {
  color: rgba(196, 173, 120, 0.95);
  border-bottom-color: rgba(196, 173, 120, 0.45);
}

.ed-cta:hover {
  color: var(--charcoal);
  border-bottom-color: var(--charcoal);
}

.ed-section--dark .ed-cta:hover {
  color: var(--text-on-dark);
  border-bottom-color: rgba(252, 249, 244, 0.65);
}

.ed-cta-band__action {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .ed-cta-band__action {
    justify-content: flex-end;
  }
}
