/* ==========================================================================
   The Sandcastle Practice — stylesheet
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable weight) ---------- */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../assets/fonts/DMSans.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../assets/fonts/NunitoSans.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/Inter.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --cream: #fffdf5;
  --cream-2: #fffaf2;
  --pink: #fad8fd;
  --pink-deep: #f3c1f7;
  --lime: #e3ec8c;
  --blue: #c2e1ff;
  --ink: #231f20;
  --navy: #081c4e;
  --navy-2: #22419f;
  --green: #4f8a60;
  --green-text: #3a6e4a;
  --error: #b3261e;
  --shadow-grey: #9a8f8f;
  --field-grey: #e4e2db;

  --font-display: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-ui: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;

  --header-h: 64px;
  --container: 1180px;
  --radius-lg: 28px;
  --radius-md: 20px;

  --ease-pop: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  /* Keeps anchor targets and keyboard-focused controls clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
p,
ul,
figure,
fieldset {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
@media (min-width: 768px) {
  .container {
    width: min(100% - 4rem, var(--container));
  }
}
.container--narrow {
  max-width: 940px;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section--cream {
  background: var(--cream);
}
.section--pink {
  background: var(--pink);
}
.section--lime {
  background: var(--lime);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-align: center;
  text-wrap: balance;
  margin-bottom: clamp(2rem, 5vw, 3.75rem);
}

.prose p + p {
  margin-top: 1.35em;
}
.prose strong {
  font-weight: 700;
}
.prose--justify {
  font-size: clamp(1.0625rem, 1.9vw, 1.35rem);
  line-height: 1.6;
}
@media (min-width: 640px) {
  .prose--justify {
    text-align: justify;
  }
}

/* ---------- Rich prose (blog posts and standalone pages) ----------
   The base reset zeroes heading/list margins and strips list markers, which is
   right for the one-pager where every block is hand-placed. Markdown written in
   the CMS needs them back, so restore them here only — the one-pager is
   untouched because it never carries .prose--rich. */
.prose--rich > * + * {
  margin-top: 1.35em;
}
.prose--rich h2,
.prose--rich h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 2em;
}
.prose--rich h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.prose--rich h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}
.prose--rich ul,
.prose--rich ol {
  padding-inline-start: 1.5rem;
  list-style: disc;
}
.prose--rich ol {
  list-style: decimal;
}
.prose--rich li + li {
  margin-top: 0.5rem;
}
.prose--rich a {
  color: var(--navy-2);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.prose--rich img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.prose--rich blockquote {
  margin-inline: 0;
  padding-inline-start: 1.25rem;
  border-inline-start: 3px solid var(--pink-deep);
  font-style: italic;
}
.prose--rich hr {
  border: 0;
  border-top: 2px solid var(--field-grey);
}

/* ---------- Blog index and post chrome ---------- */
.post-meta {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  color: var(--shadow-grey);
  margin-top: 0.5rem;
}
.post-list {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}
.post-list__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.2;
}
.post-list__title a {
  text-decoration: none;
}
.post-list__title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.post-list__item p:last-child {
  margin-top: 0.75rem;
}
/* Breathing room between the date line and the article body or cover photo. */
.post-meta + .prose--rich,
.post-meta + .about-figure {
  margin-top: 1.75rem;
}
.post-back,
.pagination {
  margin-top: clamp(2rem, 5vw, 3rem);
  font-family: var(--font-ui);
  font-weight: 600;
}
.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream-2);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 0 rgba(147, 148, 152, 0.35), 0 8px 24px -12px rgba(35, 31, 32, 0.25);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(0.75rem, 2vw, 1.5rem);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.menu-toggle {
  --bar: 3px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--pink);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.menu-toggle:hover {
  background: var(--pink-deep);
}
.menu-toggle:active {
  transform: scale(0.96);
}
.menu-toggle__bar {
  display: block;
  width: 26px;
  height: var(--bar);
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-pop), opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.site-nav {
  border-top: 1px solid rgba(35, 31, 32, 0.08);
  background: var(--cream-2);
  box-shadow: 0 16px 32px -16px rgba(35, 31, 32, 0.25);
}
.site-nav[hidden] {
  display: none;
}
/* Without JavaScript the toggle can't work: show the links, hide the button */
html:not(.js) .site-nav[hidden] {
  display: block;
}
html:not(.js) .menu-toggle {
  display: none;
}
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  padding: 0.75rem clamp(0.75rem, 2vw, 1.5rem) 1rem;
  animation: nav-in 0.3s var(--ease-pop);
}
.site-nav__list a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.site-nav__list a:hover {
  background: var(--pink);
}
.site-nav__cta {
  background: var(--lime);
}
@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 640px) {
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .site-nav__list a {
    display: block;
    padding: 0.8rem 1rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(calc(100vh - var(--header-h)), 900px);
  min-height: min(calc(100svh - var(--header-h)), 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: -1;
  /* The image itself is set inline from the CMS field; the crop stays here.
     Longhand, so the min-aspect-ratio override below can retarget position
     without also having to restate the URL. */
  background-position: center 45%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero__media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
}
/* On wide, short viewports the cover-crop drops; keep the child's face above the headline */
@media (min-aspect-ratio: 16/10) {
  .hero__media {
    background-position: center 68%;
  }
}
.hero__content {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  padding-block: clamp(2.5rem, 8vw, 5rem);
}
.hero__title {
  max-width: 21ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  animation: hero-in 0.9s var(--ease-pop) both;
}
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 768px) {
  .hero__content {
    width: min(100% - 4rem, var(--container));
  }
}

/* ---------- Understanding every child ---------- */
.about-figure {
  width: min(100%, 460px);
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 40px -20px rgba(35, 31, 32, 0.35);
}
.about-figure img {
  width: 100%;
}
.about-text {
  text-align: center;
  font-size: clamp(1.0625rem, 1.9vw, 1.35rem);
  line-height: 1.55;
}
.about-text p + p {
  margin-top: 1.4em;
}

/* ---------- How We Can Support You (cards) ---------- */
.support-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  /* top/left: room for the hover lift; right/bottom: room for the offset shadow */
  padding: 0.5rem 1.25rem 1.25rem 0.5rem;
}
@media (min-width: 900px) {
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.support-card {
  --lift: 0px;
  --offset: 9px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 1.25rem;
  align-items: start;
  align-content: start;
  padding: clamp(1.25rem, 2.6vw, 2rem) clamp(1.25rem, 2.6vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  background: var(--cream-2);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  /* Offset "paper stack" shadow: grey block with a navy edge behind the card */
  box-shadow:
    var(--offset) var(--offset) 0 0 var(--shadow-grey),
    var(--offset) var(--offset) 0 2px var(--navy),
    0 0 0 0 rgba(8, 28, 78, 0);
  transform: translate(var(--lift), var(--lift)) scale(1);
  transition:
    transform 0.4s var(--ease-pop),
    box-shadow 0.4s var(--ease-pop);
}
/* Invisible hit-area extension so the pointer can't "fall off" the bottom/right
   edge as the card lifts away from it (prevents hover flicker). */
.support-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  bottom: -8px;
  left: 0;
  z-index: -1;
}

/* Pop-out on hover: card lifts toward the viewer, the stacked shadow spreads
   further away and a soft ambient shadow appears beneath. */
@media (hover: hover) and (pointer: fine) {
  .support-card:hover {
    --lift: -6px;
    --offset: 16px;
    box-shadow:
      var(--offset) var(--offset) 0 0 var(--shadow-grey),
      var(--offset) var(--offset) 0 2px var(--navy),
      0 26px 42px -18px rgba(8, 28, 78, 0.35);
    transform: translate(var(--lift), var(--lift)) scale(1.02);
    z-index: 2;
  }
}

.support-card__icon {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  /* Base height for any icon; the two below are per-icon optical corrections
     for the original pair, and win by source order. */
  height: 48px;
  margin-top: 0.15rem;
}
.support-card__icon--kids {
  height: 44px;
}
.support-card__icon--teacher {
  height: 60px;
}
.support-card__heading {
  grid-column: 2;
  grid-row: 1;
}
.support-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.2;
}
.support-card__sub {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.4;
}

.check-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.75rem;
}
/* On wider cards the list text lines up with the title column, as in the design,
   with the check marks hanging into the gutter. */
@media (min-width: 640px) {
  .check-list {
    grid-column: 2;
    margin-left: -2rem;
  }
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 1rem;
  line-height: 1.45;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.35rem;
  height: 1.35rem;
  background: url("../assets/icons/check.svg") center / contain no-repeat;
}

/* ---------- OTs focus on (tiles) ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 0.5rem 0.25rem 1rem;
}
/* 3 columns on tablets: centre the orphan 10th tile and re-map the colours so the
   pattern stays diagonal instead of turning into vertical stripes. */
@media (min-width: 640px) {
  .focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .focus-tile:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}
/* At 3 columns the base index%3 cycle would line up into vertical stripes, so
   the template emits a second colour computed from (row + column). This is the
   generalised form of the original per-position rules — identical output for
   ten tiles, and still diagonal at any other count. */
@media (min-width: 640px) and (max-width: 929.98px) {
  .focus-grid .focus-tile--c3-pink {
    background: var(--pink);
  }
  .focus-grid .focus-tile--c3-lime {
    background: var(--lime);
  }
  .focus-grid .focus-tile--c3-blue {
    background: var(--blue);
  }
}
@media (min-width: 930px) {
  .focus-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .focus-tile:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }
  /* Same courtesy as the 3-column rule: centre a single orphan on the last row. */
  .focus-tile:last-child:nth-child(5n + 1) {
    grid-column: 3;
  }
  .focus-tile {
    padding-inline: 0.75rem;
  }
  .focus-tile__label {
    font-size: 1rem;
  }
}
@media (min-width: 1024px) {
  .focus-grid {
    gap: clamp(1.5rem, 3vw, 2.75rem);
  }
  .focus-tile {
    min-height: 250px;
    padding-inline: 1rem;
  }
  .focus-tile__label {
    font-size: 1.0625rem;
  }
}

.focus-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 230px;
  padding: 1.5rem 1rem 1.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 0 0 rgba(8, 28, 78, 0);
  transform: translateY(0) scale(1);
  transition:
    transform 0.4s var(--ease-pop),
    box-shadow 0.4s var(--ease-pop);
}
.focus-tile::after {
  content: "";
  position: absolute;
  top: 0;
  right: -6px;
  bottom: -10px;
  left: 0;
  z-index: -1;
}
.focus-tile--pink {
  background: var(--pink);
}
.focus-tile--lime {
  background: var(--lime);
}
.focus-tile--blue {
  background: var(--blue);
}

.focus-tile__label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--navy-2);
  text-wrap: balance;
}
.focus-tile__icon {
  height: 68px;
  width: auto;
  margin-top: auto;
  margin-bottom: 0.25rem;
  transition: transform 0.4s var(--ease-pop);
}

/* Pop-out on hover: tile lifts and grows, casting a soft shadow;
   the icon nudges up a touch more for a sense of depth. */
@media (hover: hover) and (pointer: fine) {
  .focus-tile:hover {
    transform: translateY(-8px) scale(1.07);
    box-shadow:
      0 30px 40px -22px rgba(8, 28, 78, 0.35),
      0 12px 18px -12px rgba(8, 28, 78, 0.2);
    z-index: 2;
  }
  .focus-tile:hover .focus-tile__icon {
    transform: translateY(-4px) scale(1.06);
  }
}

/* ---------- About Rosemarie ---------- */
.bio {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 860px) {
  .bio {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}
.bio__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}
.bio__photo {
  width: min(100%, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 40px -22px rgba(35, 31, 32, 0.4);
}
.bio__caption {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.35;
}
.bio__text {
  font-size: clamp(1.0625rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  max-width: 62ch;
  margin-inline: auto;
}
@media (min-width: 860px) {
  .bio__text {
    margin-inline: 0;
  }
}
.bio__text p + p {
  margin-top: 1.25em;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 940px) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    gap: clamp(2rem, 6vw, 6rem);
  }
  .contact__intro {
    align-self: stretch;
  }
  .contact__title {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.contact-form {
  background: var(--cream);
  border-radius: 24px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: 0 24px 50px -30px rgba(35, 31, 32, 0.35);
  font-family: var(--font-ui);
}
.field + .field {
  margin-top: 1.5rem;
}
.field__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 400;
}
.field__input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--cream);
  border: 1px solid rgba(35, 31, 32, 0.6);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field__input:focus {
  border-color: var(--navy-2);
  box-shadow: 0 0 0 1px var(--navy-2);
}
.field__input:focus-visible {
  box-shadow: 0 0 0 1px var(--navy-2), 0 0 0 4px var(--cream), 0 0 0 6px var(--navy-2);
}
.field__input--area {
  min-height: 120px;
  resize: vertical;
}
.field.is-invalid .field__input {
  border-color: var(--error);
}
/* Error containers stay in the DOM (and accessibility tree) even when empty */
.field__error {
  margin: 0;
  font-size: 0.85rem;
  color: var(--error);
}
.field__error:not(:empty) {
  margin-top: 0.35rem;
}

.field--group .field__label {
  margin-bottom: 0.6rem;
}
.choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 0.9rem;
  background: var(--field-grey);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 300;
  transition: background 0.2s ease;
}
.choice + .choice {
  margin-top: 0.6rem;
}
.choice:hover {
  background: #dcd9d0;
}
.choice__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.choice__box {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--cream);
  display: grid;
  place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.choice__box::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 0.15s var(--ease-pop);
}
.choice__input:checked + .choice__box {
  background: var(--navy-2);
  border-color: var(--navy-2);
}
.choice__input:checked + .choice__box::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}
.choice__input:focus-visible + .choice__box {
  outline: 3px solid var(--navy-2);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn--submit {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  background: var(--pink);
  border-radius: 999px;
  font-size: 1.05rem;
}
.btn--submit:hover {
  background: var(--pink-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -12px rgba(35, 31, 32, 0.4);
}
.btn--submit:active {
  transform: translateY(0);
}
.btn--submit[aria-disabled="true"] {
  opacity: 0.7;
  cursor: progress;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
  outline: none;
}
.form-status:not(:empty) {
  margin-top: 0.85rem;
}
.form-status.is-success {
  color: var(--green-text);
}
.form-status.is-error {
  color: var(--error);
}
.form-status a {
  color: inherit;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream-2);
  border-top: 1px solid rgba(35, 31, 32, 0.08);
  font-size: 0.9rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}
.site-footer__top {
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
}
.site-footer__top:hover {
  text-decoration: underline;
}

/* ---------- Scroll reveal (only when JS is running) ----------
   Implemented as a keyframe animation (not a transition) so it never
   overrides the hover transitions on cards / tiles. */
.js .reveal {
  opacity: 0;
}
.js .reveal.is-visible {
  animation: reveal-in 0.7s var(--ease-pop) both;
  animation-delay: var(--reveal-delay, 0s);
}
@keyframes reveal-in {
  from {
    opacity: 0;
    translate: 0 22px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    translate: none;
    animation: none;
  }
}
