@import url('tokens.css');
@import url('fx.css');

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy);
  background:
    radial-gradient(55% 32% at 92% 2%, #ffe3f1 0, transparent 70%),
    radial-gradient(50% 30% at 0% 38%, #fdd5e9 0, transparent 70%),
    radial-gradient(55% 30% at 100% 78%, #ffe3f1 0, transparent 70%),
    var(--cream);
  overflow-x: hidden;
  padding-bottom: 72px; /* room for the mobile bottom bar */
}

@media (min-width: 1000px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 0.4em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: clamp(48px, 9vw, 96px); position: relative; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section__head p { color: color-mix(in srgb, var(--navy) 70%, transparent); }
.eyebrow { display: inline-block; color: var(--pink-deep); font-weight: 700; letter-spacing: 0.04em; margin-bottom: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

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

/* Decorative round shapes */
.blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; animation: drift 9s ease-in-out infinite alternate; }
.blob--pink { background: var(--pink-soft); }
.blob--mustard { background: var(--mustard-soft); }
.blob--green { background: var(--green-soft); }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(14px, -18px) scale(1.06); }
}

/* Page transitions: native cross-document view transition, plain fade-in as fallback */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 220ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 360ms var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
main { animation: page-in 0.5s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Visitor-chosen "stop motion" switch (footer button); same effect as the OS reduced-motion setting */
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.no-motion .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
