:root {
  --blue: #3f6684;
  --blue-deep: #294d69;
  --blue-soft: #8ba6b8;
  --ivory: #f7f2e8;
  --paper: #fffdf8;
  --text: #29485d;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ivory); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--text);
  background: radial-gradient(circle at 50% 12%, rgba(255,255,255,.92), transparent 36rem), var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

.announcement {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
}

.card {
  position: relative;
  width: min(100%, 470px);
  overflow: hidden;
  padding: 30px 24px 34px;
  text-align: center;
  background: rgba(255,253,248,.72);
  border: 1px solid rgba(63,102,132,.18);
  box-shadow: 0 18px 55px rgba(41,77,105,.10);
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(63,102,132,.13);
  border-radius: 50%;
}

.card::before { top: -105px; left: -75px; }
.card::after { right: -85px; bottom: -115px; }

.eyebrow {
  margin: 7px 0 18px;
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-soft);
}

h1 {
  margin: 0 0 25px;
  color: var(--blue-deep);
  font-size: clamp(3.15rem, 16vw, 4.8rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.045em;
  font-style: italic;
}

.portrait {
  position: relative;
  width: min(72vw, 300px);
  aspect-ratio: 1;
  margin: 0 auto 28px;
  padding: 7px;
  border: 1px solid rgba(63,102,132,.42);
  border-radius: 50%;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(63,102,132,.12);
  border-radius: 50%;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 50%;
  background: #d9e1e5;
}

.message p { margin: 0; }

.message > p:first-child {
  font-size: 1.25rem;
  line-height: 1.5;
  font-style: italic;
}

.message .intro {
  margin-top: 18px;
  font-size: .88rem;
  line-height: 1.5;
  color: #60798a;
}

.name-small {
  margin-top: 3px !important;
  color: var(--blue-deep);
  font-size: 1.7rem;
  font-style: italic;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 68%;
  margin: 20px auto 17px;
  color: var(--blue-soft);
  font-size: .65rem;
}

.divider span {
  height: 1px;
  flex: 1;
  background: rgba(63,102,132,.24);
}

.birth-date {
  display: block;
  margin: 0;
  color: var(--blue-deep);
  font-size: .9rem;
  line-height: 1.4;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.ornament {
  color: var(--blue-soft);
  font-size: 1.25rem;
  line-height: 1;
  opacity: .75;
}

.ornament-bottom { margin-top: 19px; transform: rotate(180deg); }

@media (min-width: 700px) {
  .announcement { padding: 48px 24px; }
  .card { width: min(92vw, 610px); padding: 45px 62px 48px; }
  .portrait { width: 315px; }
  .message > p:first-child { font-size: 1.38rem; }
}

@media (max-height: 700px) and (max-width: 699px) {
  .announcement { place-items: start center; }
}

@media (prefers-reduced-motion: no-preference) {
  .card { animation: reveal .7s ease-out both; }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
