/* ============================================================
   Ashley's Mitzvah Project, in memory of Finn
   Palette: orange (the leukemia awareness color) on warm cream.

   Self-contained on purpose. It shares the announcement page's
   structure and type system but not its stylesheet, so editing
   one page can never disturb the other.
   ============================================================ */

:root {
  --burnt:       #5C2408;
  --orange-deep: #A8460F;
  --orange:      #E2701E;
  --orange-soft: #F6B27A;
  --amber:       #DE8A2B;

  --ink:         #2E2118;
  --ink-soft:    #6B5A4C;
  --cream:       #FDFAF6;
  --tint:        #FBF1E7;
  --line:        #F0DFCC;
  --white:       #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(92, 36, 8, .07);
  --shadow-md: 0 10px 30px rgba(92, 36, 8, .14);
  --shadow-lg: 0 24px 60px rgba(46, 18, 4, .32);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

.wrap {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }
.center--gap { margin-top: 34px; }


/* ============================================================
   HERO
   ============================================================ */

.hero {
  background:
    radial-gradient(120% 90% at 15% 0%,  rgba(246,178,122,.42) 0%, rgba(246,178,122,0) 55%),
    radial-gradient(110% 80% at 90% 100%, rgba(222,138, 43,.45) 0%, rgba(222,138,43,0) 55%),
    linear-gradient(155deg, var(--burnt) 0%, var(--orange-deep) 48%, var(--amber) 100%);
  color: var(--white);
  padding: 64px 0 72px;
}

.hero__inner {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.hero__photo {
  flex-shrink: 0;
  background: var(--white);
  padding: 10px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}

.hero__photo img {
  width: 236px;
  height: 300px;
  object-fit: cover;
  object-position: center center;   /* photo is pre-cropped to this frame's ratio */
  border-radius: 12px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--orange-soft);
}

.hero__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(56px, 17vw, 96px);
  line-height: .95;
  letter-spacing: -.01em;
}

/* The heart replaces the dot of the "i" in Finn.

   It is positioned against the dotless i (U+0131) it sits on rather than
   against the whole word, so it cannot drift onto a neighbouring letter.

   The numbers below were measured off Playfair Display rendered to a
   canvas, not guessed from font metrics:
     real dot ink   0.625em to 0.775em above the baseline (centre 0.70em)
     baseline sits  0.085em above this box's bottom (line-height 1)
   So centring the heart on the dot means placing its centre 0.785em above
   the box bottom, hence bottom = 0.785 - (height / 2).

   All values are in em, so this holds at every size in the clamp(). If you
   change the height, recompute bottom with that formula. */
.dot-i {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.dot-i__heart {
  position: absolute;
  left: 50%;
  bottom: .665em;
  width: .24em;
  height: .24em;
  transform: translateX(-50%);
  fill: var(--orange-soft);
}

.hero__sub {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 5vw, 25px);
  color: rgba(255, 255, 255, .88);
}

.hero__lede {
  margin: 22px 0 0;
  max-width: 30em;
  font-size: 16.5px;
  color: rgba(255, 255, 255, .82);
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn--solid {
  background: var(--white);
  color: var(--burnt);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: rgba(255, 255, 255, .10);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .5);
}

.btn--dark {
  background: var(--orange-deep);
  color: var(--white);
}

.btn--big { padding: 18px 40px; font-size: 17px; }

.btn:hover  { transform: translateY(-2px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }


/* ============================================================
   SECTIONS
   ============================================================ */

.section { padding: 68px 0; }

.section--tint {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--donate {
  background:
    radial-gradient(100% 100% at 50% 0%, rgba(222,138,43,.30) 0%, rgba(222,138,43,0) 60%),
    linear-gradient(160deg, var(--orange-deep) 0%, var(--burnt) 100%);
  color: rgba(255, 255, 255, .82);
}

.section__title {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 7.4vw, 42px);
  line-height: 1.15;
  color: var(--burnt);
}

.section__title::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.section__title--light { color: var(--white); }
.section__title--light::after {
  background: linear-gradient(90deg, var(--orange-soft), var(--white));
}

.section__lede {
  max-width: 620px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 17px;
  color: var(--ink-soft);
}

.section__lede--light { color: rgba(255, 255, 255, .82); }


/* ============================================================
   PROSE
   ============================================================ */

.prose {
  max-width: 620px;
  margin: 30px auto 0;
}

.prose p {
  margin: 0 0 18px;
  font-size: 17px;
  color: var(--ink-soft);
}

.prose p:last-child { margin-bottom: 0; }

/* The closing line is the thesis of the whole page, so it gets the serif and a
   little air. Restrained on purpose: this is a long read about a child who
   died, and it should not look like it is being merchandised. */
.prose p.prose__close {
  margin-top: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  color: var(--burnt);
}


/* ============================================================
   MEMORIAL LINE
   Broken heart here. The wordmark heart on the "i" stays whole.
   ============================================================ */

.memorial {
  margin: 44px auto 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--orange-deep);
}

.memorial__heart {
  width: .95em;
  height: .95em;
  vertical-align: -.11em;
  margin-right: .3em;
  fill: currentColor;
}


/* ============================================================
   BRACELET WORDS
   ============================================================ */

.words {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.words li {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--orange-soft);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--orange-deep);
  box-shadow: var(--shadow-sm);
}


/* ============================================================
   CARDS
   ============================================================ */

.cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.card__label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
}

.card__h {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--burnt);
}

.card__body {
  margin: 14px 0 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}


/* ============================================================
   RUNNING TOTAL
   Sits on the dark donate panel, so it is light-on-dark.
   ============================================================ */

.meter {
  max-width: 460px;
  margin: 36px auto 0;
}

.meter__figures {
  margin: 0 0 11px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meter__raised {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--white);
}

.meter__goal { font-size: 14.5px; color: rgba(255, 255, 255, .70); }

.meter__track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  overflow: hidden;
}

.meter__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-soft), var(--white));
  transition: width .8s ease;
}

.meter__note {
  margin: 13px 0 0;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, .68);
}


/* ============================================================
   DONATION STEPS
   ============================================================ */

.steps {
  max-width: 560px;
  margin: 38px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  text-align: left;
  font-size: 16.5px;
}

.steps li:last-child { margin-bottom: 0; }

.steps__n {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 27px;
  text-align: center;
}

.steps__t strong { color: var(--white); font-weight: 600; }


/* ============================================================
   NOTES
   ============================================================ */

.note {
  max-width: 560px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.note--light { color: rgba(255, 255, 255, .68); }


/* ============================================================
   FOOTER
   No link back to the save the date. That page is deliberately
   unlisted, and this one is meant to be shared widely.
   ============================================================ */

.footer {
  padding: 56px 0 64px;
  text-align: center;
  background: var(--burnt);
  color: rgba(255, 255, 255, .75);
}

.footer__q {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--white);
}

.footer__mail { margin: 10px 0 0; }

.footer__mail a {
  font-size: 17px;
  font-weight: 500;
  color: var(--orange-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 178, 122, .4);
  padding-bottom: 2px;
}

.footer__mail a:hover { color: var(--white); }

.footer__meta {
  margin: 30px 0 0;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}


/* ============================================================
   DESKTOP
   ============================================================ */

@media (min-width: 760px) {

  .hero { padding: 88px 0 96px; }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    text-align: left;
  }

  .hero__photo img { width: 290px; height: 372px; }

  .hero__actions { justify-content: flex-start; }

  .section { padding: 88px 0; }

  .cards { grid-template-columns: 1fr 1fr; gap: 24px; }
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
