/* ============================================================
   DOMINICAN REPUBLIC 2027 — the fundraiser page

   Sits on top of /style.css, which supplies the fonts, colours, sunset
   background, top bar, brand and cursor halo. This file only adds what a
   scrolling page needs. No inline styles anywhere: the site's CSP blocks them.
   ============================================================ */

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* The frosted bar fades in once the page has scrolled (see dominican.js). */
body.scrolled .top::before { opacity: 1; }

.give {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;   /* a 44px target for thumbs */
  padding: 0 1.2rem;
  border-radius: 999px;
  background: var(--sunset);
  color: #2B1A12;   /* dark on the bright gradient, as on the send button */
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  transition: transform 120ms var(--ease-out);
}

.give:active { transform: scale(0.96); }

.page {
  flex: 1;
  width: 100%;
  max-width: calc(var(--col) + var(--gut) * 2);
  margin: 0 auto;
  padding: 0 var(--gut) clamp(3rem, 10vh, 6rem);
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.trip-hero {
  padding: clamp(2rem, 8vh, 4.5rem) 0 clamp(2rem, 6vh, 3.25rem);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  padding: 0.4rem 0.95rem 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--mute);
  animation: rise 700ms var(--ease-out) both;
}

.eyebrow i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sunset);
}

.trip-hero__title {
  margin: 0;
  font-family: 'Fascinate', Georgia, serif;
  font-size: clamp(2.9rem, 11.5vw, 5.75rem);
  font-weight: 400;   /* Fascinate has a single weight */
  line-height: 1.08;
  animation: rise 700ms var(--ease-out) 60ms both;
}

/* Each word stays whole, so the title only ever breaks between them. */
.trip-hero__title > span { display: inline-block; }

.dot {
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trip-hero__sub {
  margin: 1.1rem auto 0;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--mute);
  text-wrap: balance;
  animation: rise 700ms var(--ease-out) 140ms both;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: rise 700ms var(--ease-out) 220ms both;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 0.8rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 120ms var(--ease-out),
    border-color 160ms var(--ease-out),
    background-color 160ms var(--ease-out);
}

.btn[hidden] { display: none; }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--sunset);
  /* Start the gradient at the border edge. From the padding edge it tiles back
     into the 1px transparent border and leaves a yellow sliver on the right. */
  background-origin: border-box;
  color: #2B1A12;
  box-shadow: var(--shadow);
}

.btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { border-color: var(--sun-orange); background: var(--field); }
  .btn--primary:hover { transform: translateY(-1px); }
  .btn--primary:active { transform: scale(0.97); }
}

/* ------------------------------------------------------------
   Facts
   ------------------------------------------------------------ */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  margin: 0;
  animation: rise 700ms var(--ease-out) 300ms both;
}

.fact {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--field);
  box-shadow: var(--shadow);
}

.fact dt {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mute);
}

.fact dd {
  margin: 0.3rem 0 0;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.35;
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */

.section {
  margin-top: clamp(3.5rem, 9vh, 5.5rem);
  scroll-margin-top: 4.5rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4.6vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
}

.section__lede {
  margin: 0.6rem auto 0;
  font-size: 1.1rem;
  color: var(--mute);
  text-align: center;
  text-wrap: balance;
}

.prose {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.prose p { margin: 0; }
.prose p + p { margin-top: 1.1rem; }

.pull {
  max-width: 34rem;
  margin: 2.25rem auto 0;
  padding: 0;
  font-size: clamp(1.45rem, 4.2vw, 2rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

.pull::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0 auto 1.1rem;
  border-radius: 2px;
  background: var(--sunset);
}

.pull + .prose { margin-top: 2.25rem; }

/* ------------------------------------------------------------
   Video
   ------------------------------------------------------------ */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: var(--sunset);
  box-shadow: var(--shadow);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;   /* the button alone sits dead centre */
  color: #2B1A12;
  text-decoration: none;
  /* A soft light in the middle, so the button sits on the sunset like the sun. */
  background: radial-gradient(circle at 50% 45%, rgba(255, 252, 247, 0.4), transparent 60%);
}

.video__btn {
  display: grid;
  place-items: center;
  width: clamp(4rem, 12vw, 5.25rem);
  height: clamp(4rem, 12vw, 5.25rem);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 8px 28px rgba(120, 40, 10, 0.25);
  transition: transform 160ms var(--ease-out);
}

.video__btn svg {
  width: 42%;
  height: 42%;
  fill: var(--accent);
  stroke: var(--accent);
  stroke-width: 1.5;
}

/* Out of the flow, so it can't push the button off centre. */
.video__label {
  position: absolute;
  right: 0;
  bottom: 1.1rem;
  left: 0;
  font-size: 0.95rem;
  font-weight: 400;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .video__play:hover .video__btn { transform: scale(1.06); }
}

.video__alt {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--mute);
  text-align: center;
}

.video__alt a,
.foot a {
  /* Padding gives a line of text a thumb-sized target without moving it. */
  display: inline-block;
  padding: 0.7rem 0.15rem;
  margin: -0.7rem 0;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* ------------------------------------------------------------
   The week
   ------------------------------------------------------------ */

.week {
  max-width: 40rem;
  margin: 1.75rem auto 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.week li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}

.week__day {
  padding-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ------------------------------------------------------------
   Ways to help
   ------------------------------------------------------------ */

.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.way {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--field);
  box-shadow: var(--shadow);
}

.way h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.way p {
  margin: 0.5rem 0 1.25rem;
  color: var(--mute);
  line-height: 1.55;
}

.way .btn { margin-top: auto; }

/* The one to act on gets a sunset edge. */
.way--give {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--field), var(--field)) padding-box,
    var(--sunset) border-box;
}

/* ------------------------------------------------------------
   Thanks and footer
   ------------------------------------------------------------ */

.foot {
  padding: 0 var(--gut) max(2rem, env(safe-area-inset-bottom));
  font-size: 0.85rem;
  color: var(--faint);
  text-align: center;
}

/* ------------------------------------------------------------
   Phones: buttons run the width of the column, easier to hit
   ------------------------------------------------------------ */

@media (max-width: 34rem) {
  .actions { flex-direction: column; align-items: center; }
  .actions .btn,
  .way .btn { width: 100%; }
  .actions .btn { max-width: 20rem; }
  .way .btn { padding: 0.9rem 1.5rem; }
  .foot { line-height: 1.4; }
}

/* ------------------------------------------------------------
   Preferences
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .eyebrow, .trip-hero__title, .trip-hero__sub, .actions, .facts { animation: none; }
  .give:active, .btn:active, .btn--primary:hover { transform: none; }
  .video__play:hover .video__btn { transform: none; }
}

@media (prefers-contrast: more) {
  .way p, .video__alt, .section__lede, .fact dt, .week__day { color: var(--ink); }
}
