@font-face {
  font-family: "Playfair Display";
  src: url("assets/playfairdisplay.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Baskervville";
  src: url("assets/baskervville.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  color: #fffaf0;
  background: #171a11;
  font-family: "Baskervville", Georgia, serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 5rem 12vw;
}

.landscape {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.landscape img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
  transform: translateY(-7%);
  filter: brightness(.835) saturate(.79);
}

/* Broad photographic shading, independent of the text shadows. */
.landscape::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 47% at 50% 57%, rgb(16 19 12 / .1665), transparent 100%),
    radial-gradient(ellipse at center, transparent 32%, rgb(8 12 7 / .1935) 100%);
}

.message {
  position: relative;
  width: min(100%, 80rem);
  text-align: center;
  margin-top: 14vh;
}

/* A light, feathered scrim with real breathing room on all four sides.
   Keep this independent from glyph shadows and the overall photo exposure. */
.message::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -4.5rem -4rem;
  background: radial-gradient(ellipse 76% 92% at 50% 55%,
    rgb(18 19 11 / .36), rgb(18 19 11 / .33) 55%,
    rgb(18 19 11 / .19) 80%, transparent);
  -webkit-backdrop-filter: blur(.75px);
  backdrop-filter: blur(.75px);
  mask-image:
    linear-gradient(to right, transparent, black 88px, black calc(100% - 88px), transparent),
    linear-gradient(to bottom, transparent, black 56px, black calc(100% - 56px), transparent);
  mask-composite: intersect;
  pointer-events: none;
}

h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: calc(clamp(3rem, 5.74vw, 6.5rem) + 6pt);
  /* Preserve the original headline leading; requested leading changes apply to the paragraph. */
  line-height: 1.08;
  font-weight: 450;
  text-transform: uppercase;
  letter-spacing: .2em;
  -webkit-text-stroke: 2px rgb(0 0 0 / .25);
  paint-order: stroke fill;
  text-shadow:
    0 2px 4px rgb(0 0 0 / .65),
    0 0 12px rgb(0 0 0 / .65),
    0 0 24px rgb(0 0 0 / .4);
}

.divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 71%;
  margin: 1rem auto .7rem;
}

.divider span {
  height: 2px;
  flex: 1;
  background: rgb(197 172 112 / .85);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .33);
}
.divider img { width: clamp(4.655rem, 6.384vw, 6.65rem); height: auto; }

.kindness-copy {
  margin: 0 auto;
  font-size: clamp(1.5rem, calc(1.65vw + 1pt), 1.875rem);
  font-weight: 500;
  line-height: 2;
  letter-spacing: .1em;
  /* A centered 2px stroke painted behind the fill leaves a visible 1px
     outer outline without darkening or thinning the ivory letterforms. */
  -webkit-text-stroke: 2px rgb(0 0 0 / .45);
  paint-order: stroke fill;
  text-wrap: wrap;
  text-shadow:
    0 2px 4px rgb(0 0 0 / .65),
    0 0 12px rgb(0 0 0 / .65),
    0 0 24px rgb(0 0 0 / .4);
}

::selection { background: #c5ac70; color: #171a11; }

/* Near-square windows need a soft photo-to-page transition too. */
@media (min-aspect-ratio: 4/5) and (max-aspect-ratio: 6/5) {
  .landscape img { transform: none; }
  .landscape {
    mask-image: linear-gradient(to bottom, black calc(90.16vw - 100px), transparent 90.16vw);
  }
}

@media (max-width: 760px) {
  .hero { padding: 3rem 12vw; }
  .message { margin-top: 0; }
  h1 { font-size: calc(clamp(2.15rem, 7.3vw, 3.5rem) + 6pt); }
  .divider { width: 92%; margin-block: .9rem; gap: .8rem; }
  .kindness-copy { font-size: calc(1.25rem + 1pt); }
}

/* Portrait view: retain every pixel of the photo's width, and let its lower
   edge dissolve into the page so the message has room to stay readable. */
@media (max-aspect-ratio: 4/5) {
  .hero { align-items: start; padding-top: max(62vw, 13rem); padding-bottom: 3.5rem; }
  .landscape img { top: 0; transform: none; }
  .landscape::after {
    background:
      linear-gradient(to bottom, transparent 0, rgb(23 26 17 / .036) 38vw, rgb(23 26 17 / .3285) 70vw, #171a11 90vw),
      linear-gradient(rgb(13 18 10 / .036), rgb(13 18 10 / .036));
  }
  .message { margin-top: 0; }
}

@media (max-height: 480px) and (min-aspect-ratio: 4/5) {
  .hero { padding-block: 2rem; }
  .message { margin-top: 0; }
}

