/* =========================================================
   Mira's Mini Muffins — styles (mobile-first)
   ========================================================= */

:root {
  /* Brand colors */
  --wisteria: #C9A0DC;   /* primary */
  --khaki:    #E3D3A8;   /* accent */
  --mint:     #C1E1D2;   /* accent */
  --ink:      #2B1F2E;   /* all text, headings, contrast buttons */
  --cream:    #FFFBF5;   /* page background */
  --paper:    #FFFFFF;

  /* Type */
  --font-display: "Sacramento", "Brush Script MT", cursive;
  --font-body: "Quicksand", "Trebuchet MS", system-ui, sans-serif;

  /* Shape & space */
  --radius: 1.5rem;
  --curve: 2.5rem;
  --gap: 0.5rem;
  --section-pad: clamp(3rem, 8vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

/* ---------- 1. Banner ---------- */
.banner {
  background: var(--wisteria);
  text-align: center;
  padding: 1.5rem 1.25rem 3rem;
  border-radius: 0 0 50% 50% / 0 0 var(--curve) var(--curve);
}

.banner__logo {
  margin: 0 auto;
  width: min(78vw, 24rem);
  font-size: 1rem; /* h1 wraps the logo image; text size only matters if the image fails */
}

.banner__tagline {
  margin: 0.25rem 0 0;
  font-weight: 700;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  line-height: 1.3;
}

.banner__sub {
  margin: 0.25rem 0 1.5rem;
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgb(43 31 46 / 0.25); }
.btn__icon { flex: none; }

/* ---------- 2. Photo row ---------- */
/* Phone: swipeable row, ~80% width so the next photo peeks in */
.photos { padding-block: 2rem; }

.photos__row {
  list-style: none;
  margin: 0;
  padding: 0 1.25rem 0.5rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.25rem;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.photos__row::-webkit-scrollbar { display: none; }

.photos__row li {
  flex: 0 0 80%;
  scroll-snap-align: start;
}

.photos__row img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Shared section styles ---------- */
.section { padding-block: var(--section-pad); }

.section--mint {
  background: var(--mint);
  border-radius: var(--curve) var(--curve) 0 0;
}
.section--khaki { background: var(--khaki); }

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.25rem, 12vw, 4.75rem);
  line-height: 1;
}

/* ---------- 3. Meet Mira ---------- */
.mira {
  display: grid;
  gap: 2rem;
}

.mira__photo {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  border-radius: 45% 45% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius);
  box-shadow: 0 10px 30px rgb(43 31 46 / 0.15);
}

.mira__text p { margin: 0; }

.snapshot {
  margin: 2.5rem auto 0.5rem;
  width: min(85%, 20rem);
  padding: 0.6rem 0.6rem 0.9rem;
  background: var(--paper);
  border-radius: 0.35rem;
  box-shadow: 0 8px 22px rgb(43 31 46 / 0.2);
  transform: rotate(-3deg);
}

.snapshot img { border-radius: 0.15rem; }

.snapshot figcaption {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
}

/* ---------- 5. Footer ---------- */
.footer {
  background: var(--wisteria);
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
}
.footer p { margin: 0.25rem 0 0; }

.footer__ig {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer__email {
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* =========================================================
   Tablet / desktop
   ========================================================= */
@media (min-width: 700px) {
  .banner { padding: 2rem 2rem 3.5rem; }

  /* Three across, equal size, filling the width */
  .photos { padding: var(--gap); padding-block: 2.5rem; }
  .photos__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    padding: 0;
    overflow: visible;
  }
  .photos__row li { flex: none; }
  .photos__row img { border-radius: calc(var(--radius) * 0.75); }

  /* Photo beside bio */
  .mira {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4.5rem);
  }
  .mira__photo { max-width: none; }
  .snapshot { margin-inline: 0; width: min(70%, 20rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
