:root {
  color-scheme: light;
  --ink: #986b45;
  --paper: #fff;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
::selection { color: var(--paper); background: var(--ink); }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; z-index: 2; top: 1rem; left: 1rem; padding: 1rem; background: white; }
.announcement {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 30px;
  align-items: start;
  width: min(100% - 30px, 930px);
  margin: 80px auto;
}
.birth { grid-column: 7 / span 6; grid-row: 1; }
.birth-inner { position: relative; }
.birth-card { width: 100%; height: auto; }
h1 {
  margin: -.075em 0 0;
  font-family: Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: clamp(3.5rem, 5.65vw, 5.25rem);
  font-weight: 400; line-height: 1.04; letter-spacing: -.055em;
}
h1 span { display: block; margin-top: .35em; }
.details {
  display: flex; flex-wrap: wrap; gap: .75rem 0;
  margin: clamp(3rem, 5vw, 5rem) 0 0;
  font-size: clamp(.65rem, 1vw, .875rem);
  line-height: 1.7; letter-spacing: .2em; text-transform: uppercase;
}
.details div { display: flex; align-items: center; }
.details div + div::before { content: "·"; margin: 0 clamp(.75rem, 1.9vw, 1.75rem); }
dd { margin: 0; white-space: nowrap; }
.family { margin-top: auto; padding-top: 5rem; padding-bottom: .4rem; font-size: clamp(.875rem, 1.15vw, 1.1rem); line-height: 1.7; }
.family p { margin: 0; }
.family p + p { margin-top: .8rem; }
.photographs { grid-column: 1 / span 5; grid-row: 1; display: grid; gap: 50px; }
figure { margin: 0; overflow: hidden; }
picture { display: block; }
figure img { aspect-ratio: 20 / 13; object-fit: cover; }
@media (min-width: 1200px) {
  .announcement { width: 1110px; }
}
@media (min-width: 1350px) {
  .announcement { width: 1260px; }
}
@media (prefers-reduced-motion: no-preference) {
  .birth-inner { animation: arrive 1s ease-in 1.6s backwards; }
  figure { animation: arrive 1s ease-in .2s backwards; }
  figure:nth-child(2) { animation-delay: .5s; }
  figure:nth-child(3) { animation-delay: .8s; }
  @keyframes arrive {
    from { opacity: 0; transform: translateY(-35px); }
    to { opacity: 1; transform: none; }
  }
}
@media (max-width: 991px) {
  .announcement { display: flex; flex-direction: column; width: min(100% - 2.5rem, 38rem); margin-block: 3rem 1.25rem; gap: 3rem; }
  .birth { position: static; width: 100%; }
  .birth-inner { min-height: auto; animation-delay: .2s; }
  h1 { font-size: clamp(3.3rem, 10.5vw, 5rem); }
  h1 span { margin-top: .18em; }
  .details { margin-top: 2rem; font-size: clamp(.625rem, 2.1vw, .8rem); letter-spacing: .15em; }
  .details div + div::before { margin-inline: clamp(.6rem, 2.8vw, 1.25rem); }
  .family { padding: 0; margin-top: 2.5rem; font-size: clamp(.875rem, 2.7vw, 1rem); }
  .photographs { gap: 1.25rem; width: 100%; }
}
.not-found { width: min(100% - 3rem, 40rem); margin: 15vh auto; }
.not-found h1 { font-size: clamp(3rem, 8vw, 5rem); }
.not-found p { line-height: 1.7; margin-block: 2rem; }
@media print {
  .announcement { display: block; width: 100%; margin: 0; }
  .birth { position: static; margin-bottom: 2rem; }
  .birth-inner { min-height: auto; }
  .family { margin-top: 2rem; padding: 0; }
  .photographs { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  figure, .birth-inner { animation: none; }
}
