/* ==========================================================================
   about.css — About Page template styles
   Part of The Edited Wild theme. Loaded only on template-about.php.
   Mobile-first; all colours and type via design tokens only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Intro — eyebrow + headline
   -------------------------------------------------------------------------- */
.about__intro {
  text-align: center;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem);
}

.about__eyebrow {
  display: inline-block;
  font-family: var(--tew-sans);
  font-size: var(--tew-eyebrow);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tew-accent-ink);
  margin-bottom: 1.25rem;
}

.about__headline {
  font-family: var(--tew-serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--tew-ink);
  text-align: center;
  text-wrap: balance;
  max-width: 48rem;
  margin-inline: auto;
}

.about__headline em {
  font-style: italic;
}

/* --------------------------------------------------------------------------
   2. Hero image
   -------------------------------------------------------------------------- */
.about__hero {
  width: 100%;
  max-width: var(--tew-maxw);
  margin-inline: auto;
  margin-block: clamp(2rem, 4vw, 3rem);
  border-radius: 2px;
  display: block;
  /* Mobile: constrain portrait images to a controlled banner height */
  aspect-ratio: 4 / 3;
  max-height: 60dvh;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 48rem) {
  .about__hero {
    /* Tablet+: wider cinematic aspect ratio, natural desktop height */
    aspect-ratio: 16 / 7;
    max-height: none;
  }
}

@media (min-width: 64rem) {
  .about__hero {
    aspect-ratio: 21 / 8;
  }
}

/* --------------------------------------------------------------------------
   3. The Premise
   -------------------------------------------------------------------------- */
.about__premise-section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.about__premise-label {
  font-family: var(--tew-sans);
  font-size: var(--tew-eyebrow);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tew-sage);
  text-align: center;
  margin-bottom: 1.5rem;
}

.about__premise {
  max-width: var(--tew-read);
  margin-inline: auto;
  text-align: left;
}

.about__premise p {
  max-width: none;
  font-size: 18px;
  line-height: 1.7;
  color: var(--tew-muted);
  margin-bottom: 1.5em;
}

.about__premise p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   4. The Method + principles
   -------------------------------------------------------------------------- */
.about__method {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.about__method-label {
  font-family: var(--tew-sans);
  font-size: var(--tew-eyebrow);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tew-sage);
  text-align: center;
  margin-bottom: 1.5rem;
}

.about__principles-heading {
  font-family: var(--tew-serif);
  font-size: var(--tew-h2);
  font-weight: 400;
  line-height: 1.2;
  color: var(--tew-ink);
  text-align: center;
  text-wrap: balance;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.about__principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--tew-maxw);
  margin-inline: auto;
}

.about__principle {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.about__p-number {
  font-family: var(--tew-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--tew-accent-ink);
}

.about__p-title {
  font-family: var(--tew-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--tew-ink);
}

.about__p-text {
  font-family: var(--tew-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tew-muted);
  max-width: none;
}

/* --------------------------------------------------------------------------
   5. Closing (The Studio)
   -------------------------------------------------------------------------- */
.about__closing {
  padding-block: clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 48rem) {
  .about__closing {
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(3rem, 6vw, 5rem);
  }
}

.about__closing-media {
  margin: 0;
}

.about__closing-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}

.about__closing-caption {
  font-family: var(--tew-sans);
  font-size: var(--tew-eyebrow);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tew-muted);
  margin-top: .9rem;
}

.about__closing-label {
  font-family: var(--tew-sans);
  font-size: var(--tew-eyebrow);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tew-sage);
  margin-bottom: 1.25rem;
}

.about__closing-heading {
  font-family: var(--tew-serif);
  font-size: var(--tew-h2);
  font-weight: 400;
  line-height: 1.18;
  color: var(--tew-ink);
  text-wrap: balance;
  margin-bottom: 1.5rem;
}

.about__closing-body p {
  max-width: none;
  font-family: var(--tew-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--tew-muted);
  margin-bottom: 1em;
}

.about__closing-body p:last-child {
  margin-bottom: 0;
}

.about__closing-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
}

.about__closing-cta {
  font-family: var(--tew-sans);
  font-size: var(--tew-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tew-ink);
  text-decoration: none;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--tew-ink);
  transition: color .18s, border-color .18s;
}

.about__closing-cta:hover {
  color: var(--tew-accent-ink);
  border-color: var(--tew-accent);
}

/* --------------------------------------------------------------------------
   6. Responsive overrides
   -------------------------------------------------------------------------- */

/* < 48 rem (mobile) -------------------------------------------------------- */
@media (max-width: 47.9375rem) {
  /* Tighten section vertical padding on phones */
  .about__premise-section,
  .about__method {
    padding-block: clamp(2rem, 6vw, 3rem);
  }

  /* Premise text: slightly smaller to avoid orphans on 375px */
  .about__premise p {
    font-size: 1rem;
    line-height: 1.65;
  }

  /* Headline size: ensure it doesn't overflow at 360px */
  .about__headline {
    font-size: clamp(1.75rem, 8vw, 3.6rem);
    word-break: break-word;
  }

  /* Principles: single-col, tighter gap */
  .about__principles {
    gap: 2rem;
  }

  /* Closing section: ensure image + text stack correctly */
  .about__closing {
    padding-block: clamp(2rem, 6vw, 3rem);
    gap: 1.5rem;
  }

  /* Closing image: reasonable portrait height on phone */
  .about__closing-img {
    aspect-ratio: 3 / 2;
    max-height: 50dvh;
  }

  /* CTAs: tighter gap on narrow screen */
  .about__closing-ctas {
    gap: 1rem 2rem;
  }
}

/* ≥ 48 rem (768 px) -------------------------------------------------------- */
@media (min-width: 48rem) {
  .about__principles {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
  }
}
