/* Hallmark · shape: Stage · genre: editorial · theme: brand · redesign: full
 * paper: oklch(98.5% 0.008 85) · accent: oklch(74% 0.15 85) · display: Lora · body: Plus Jakarta Sans · hero: Stage · nav: edge-aligned · footer: ledger · signature: daily-manna
 * axes: light/roman-serif/chromatic-gold · posture: Stage · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P9 H8 E9 S9 R9 V9 · weakest: H, tightened hero headline to 6 words */

.writing-thumbnail {
  display: block;
  margin-bottom: var(--space-md);
  overflow: hidden;
  background: var(--color-paper-2);
  border-radius: var(--radius-sm);
  position: relative;
  border: var(--rule-hair) solid var(--color-rule);
}

.writing-thumbnail img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center 25%;
}

.writing-thumbnail:hover {
  border-color: var(--color-accent);
}

.writing:first-child .writing-thumbnail img {
  object-fit: cover;
  background: var(--color-paper-2);
}

.page-intro.has-photo {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.has-photo > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--gap-columns);
  align-items: center;
}

.has-photo h1 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}

.intro-photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  border: var(--rule-hair) solid var(--color-rule);
}

.intro-photo img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center 35%;
}

.intro-photo img[src$="field-3.jpeg"] {
  object-position: 82% center;
}

.intro-photo img[src*="hero-enhanced"] {
  object-position: center top;
}

.intro-photo figcaption {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  background: var(--color-paper);
  color: var(--color-ink);
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
  border: var(--rule-hair) solid var(--color-rule);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.intro-photo figcaption::before {
  content: "✦";
  color: var(--color-accent);
}

@media (min-width: 651px) and (max-width: 950px) {
  .has-photo > .wrap {
    gap: var(--gap-columns);
  }
  .has-photo h1 {
    font-size: 3rem;
  }
  .intro-photo img {
    height: 400px;
  }
  .writing-thumbnail img {
    height: 190px;
  }
}

@media (max-width: 650px) {
  .has-photo > .wrap {
    grid-template-columns: 1fr;
    gap: var(--gap-columns);
  }
  .page-intro.has-photo {
    padding: var(--space-xl) 0;
  }
  .has-photo h1 {
    font-size: clamp(2.1rem, 7.5vw, 2.9rem);
  }
  .intro-photo img {
    height: 300px;
  }
  .writing-thumbnail img {
    height: 220px;
  }
}
