/* ==========================================================================
   Page & section layout (M4). Depends on tokens.css. Imagery lands in M5.
   ========================================================================== */

.section {
  padding-block: var(--space-2xl);
}

.section > h2 {
  margin-bottom: var(--space-md);
}

.eyebrow {
  display: block;
  margin-bottom: var(--space-2xs);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: var(--space-2xl) var(--space-xl);
}

.hero__headline {
  margin-block: var(--space-xs) var(--space-sm);
}

.hero__subhead {
  font-size: var(--step-1);
  color: var(--color-text);
}

.hero .btn-etsy {
  margin-top: var(--space-md);
}

/* ---------- Steps (how-it-works) ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

.steps--detailed {
  gap: var(--space-md);
}

.step {
  display: flex;
  gap: var(--space-sm);
  align-items: baseline;
}

.steps--detailed .step {
  align-items: flex-start;
}

.step__n {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  line-height: 1;
  color: var(--gold-text);
  min-width: 1.5em;
}

.step__title {
  font-weight: var(--weight-semibold);
}

.steps--detailed .step h3 {
  font-size: var(--step-1);
  margin-bottom: var(--space-3xs);
}

.note {
  margin-top: var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--step--1);
}

.reassurance {
  margin-top: var(--space-2xs);
  font-weight: var(--weight-medium);
}

/* ---------- FAQ ---------- */
.faq {
  margin: 0;
}

.faq dt {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  color: var(--color-heading);
  margin-top: var(--space-md);
}

.faq dd {
  margin: 0;
  margin-top: var(--space-2xs);
  max-width: var(--measure);
}

/* ---------- Occasion page ---------- */
.occasion {
  padding-block: var(--space-xl);
}

.occasion__head {
  margin-bottom: var(--space-lg);
}

.occasion__intro {
  margin-block: var(--space-sm) var(--space-md);
  font-size: var(--step-1);
}

.occasion__cta {
  margin-block: var(--space-lg);
}

.occasion__siblings ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
}

.occasion__siblings a {
  text-decoration: none;
}

/* ---------- Gallery (filled in M5) ---------- */
.gallery {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}

/* ---------- Teasers / arrow links ---------- */
.link-arrow {
  display: inline-block;
  margin-top: var(--space-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  color: var(--gold-text);
}

.link-arrow::after {
  content: " \2192";
}

.social-strip a {
  text-decoration: none;
  font-weight: var(--weight-medium);
}

/* ---------- M5: hero media + gallery images ---------- */
@media (min-width: 48rem) {
  .hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
    align-items: center;
  }
}

/* Mobile: drop the hero image + CTA so it flows straight into the occasions.
   The persistent sticky bottom bar keeps a Shop-on-Etsy CTA a thumb away. */
@media (max-width: 47.99rem) {
  .hero__media,
  .hero .btn-etsy {
    display: none;
  }
}

.hero__media img,
.hero__media picture {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.gallery picture,
.gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery img {
  border-radius: var(--radius-md);
}
