@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f8eacd;
  color: #2b1a12;
  font-family: Cochin, "Cormorant Garamond", Georgia, serif;
  text-align: center;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
}

main {
  max-width: 40rem;
  margin: auto; /* centers vertically in the grid, overflow-safe on short screens */
  padding: clamp(0.75rem, 2.5vh, 1.5rem) 1.25rem 1rem;
}

.masthead h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-indent: 0.3em; /* balances the trailing letter-spacing so the text centers optically */
}

.masthead .sub {
  margin: 0.35em 0 0;
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  opacity: 0.65;
}

.hero {
  display: block;
  height: min(44vh, 24rem);
  width: auto;
  max-width: 100%;
  margin: clamp(0.75rem, 2vh, 1.25rem) auto;
}

p {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.5;
  margin: 0.6rem auto;
  max-width: 32rem;
}

/* The smaller section below the pledge line: text, links, media */
.rest p,
.orgs a {
  font-size: clamp(0.85rem, 1.9vw, 0.95rem);
}

.rest p {
  max-width: 28rem;
  margin: 0.45rem auto;
}

/* Text staging (JS only): the header and pledge line fade in together,
   then after a 3s buffer the rest of the text, links, and footer join below. */
.js .fade {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.js .fade.visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .js .fade {
    transition: none;
  }
}

#media-slot audio {
  display: block;
  width: 100%;
  max-width: 24rem;
  margin: 1rem auto;
}

.orgs {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}

.orgs li {
  margin: 0.25em 0;
}

.orgs a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.source {
  margin-top: 1rem;
  font-size: clamp(0.7rem, 1.7vw, 0.8rem);
  opacity: 0.65;
}

.js .source {
  /* .fade opacity wins while staging; this keeps the muted look after reveal */
  transition: opacity 1.2s ease;
}

.js .source.visible {
  opacity: 0.65;
}

.source a {
  color: inherit;
}
