/* Danté Andres Carrasco memorial site: the shared "Among the Stars" theme.
   Every page carries the sky, header, typography and footer defined here.
   Homepage sections live in home.css. */

:root {
  --night: #080d19;
  --deep: #040811;
  --ivory: #f8f0e5;
  --cream: #f4e7d4;
  --gold: #e6bb83;
  --gold-soft: #e6bb8377;
  --muted: #b7bdce;
  --body: #d3d5de;
  --line: #c0b29a26;
  --glass: #0a1121c2;

  /* Older names, kept so content markup and any stray rule still resolve. */
  --star: var(--ivory);
  --dim: var(--muted);
  --ember: var(--gold);
  --glow: var(--gold);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --text: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: var(--serif);

  --step--1: 0.9rem;
  --step-0: 1.1875rem;
  --step-1: 1.6rem;
  --step-2: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  --step-3: clamp(3rem, 2rem + 4vw, 5.2rem);
}

*, *::before, *::after { box-sizing: border-box; }

/* scrollbar-gutter keeps the page from shifting when a dialog locks scrolling. */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: var(--nav-offset, 7rem); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--body);
  font-family: var(--text);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; padding: 0 1rem 5rem; }

img, video, iframe { max-width: 100%; }
img { height: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; color: var(--ivory); margin: 0 0 0.6em; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--step-3); letter-spacing: -0.03em; }
h2 { font-size: var(--step-2); margin-top: 1.6em; }
h3 { font-size: var(--step-1); margin-top: 1.4em; }
p, ul { margin: 0 0 1.1em; }
strong, b { font-weight: 600; color: var(--ivory); }

a { color: var(--gold); text-decoration-color: #e6bb8366; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--ivory); text-decoration-color: var(--gold); }
a.break { overflow-wrap: anywhere; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

hr { border: 0; height: 1px; margin: 2.5rem 0; background: linear-gradient(90deg, transparent, #d4b17b44, transparent); }

.center { text-align: center; }
.indent { padding-left: 1rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 40;
  background: var(--gold); color: #141725; padding: 0.5rem 1rem; border-radius: 0 0 3px 3px;
}
.skip-link:focus { top: 0; }

.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .19em; font-size: .78rem; font-weight: 400; margin: 0 0 1.6rem; }

/* ------------------------------------------------------------------ sky */
/* Sized to the large viewport, not inset: 0, so the sky and globe hold still while a phone's
   address bar slides in and out during scrolling. */
.sky { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; overflow: hidden; background: var(--deep); }
/* The old nebula photograph is retired; the layer stays transparent. */
.sky__space { position: absolute; inset: 0; opacity: 0; }
.sky__glows { position: absolute; inset: -15%; pointer-events: none; }
.sky__glow { position: absolute; inset: 0; animation-direction: alternate; animation-iteration-count: infinite; animation-timing-function: ease-in-out; animation-play-state: paused; }
.sky__glow--blue { background: radial-gradient(ellipse at 15% 20%, #15264c, transparent 55%); animation-name: sky-blue-drift; animation-duration: 43s; }
.sky__glow--teal { background: radial-gradient(ellipse at 88% 14%, #103039, transparent 48%); animation-name: sky-teal-drift; animation-duration: 57s; }
.sky__glow--violet { background: radial-gradient(ellipse at 48% 92%, #211a35, transparent 55%); animation-name: sky-violet-drift; animation-duration: 67s; }
.sky[data-motion="playing"] .sky__glow { animation-play-state: running; }
.sky__grain { position: absolute; inset: 0; background: url(../img/sky/grain.svg) repeat; background-size: 192px 192px; opacity: .045; pointer-events: none; }
@keyframes sky-blue-drift { from { transform: translate3d(-4%, -2%, 0) scale(1); } to { transform: translate3d(16%, 12%, 0) scale(1.12); } }
@keyframes sky-teal-drift { from { transform: translate3d(3%, -3%, 0) scale(1.05); } to { transform: translate3d(-17%, 18%, 0) scale(1.12); } }
@keyframes sky-violet-drift { from { transform: translate3d(-3%, 3%, 0) scale(1); } to { transform: translate3d(14%, -18%, 0) scale(1.15); } }
.sky__particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky__globe { position: absolute; width: min(90vw, 1100px); height: min(90vw, 1100px); right: max(-12vw, -160px); bottom: max(-36vw, -520px); opacity: .85; background: transparent; border-radius: 50%; clip-path: circle(50%); }
/* Static Earth photograph: shown until the WebGL globe is ready, and kept if it never is. */
.sky__earth {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 62vh; height: 62lvh; opacity: .8;
  background: url(../img/sky/earth.webp) center bottom / cover no-repeat;
}
.sky--globe-ready .sky__earth { display: none; }

.sky-motion { position: fixed; z-index: 10; bottom: 1rem; right: 1rem; border: 1px solid var(--gold-soft); border-radius: 999px; background: #101a30cc; color: var(--ivory); font: 400 .85rem var(--text); padding: .6rem 1rem; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sky-motion:hover { border-color: var(--gold); background: #182744; }
.sky-motion[hidden] { display: none; }

/* --------------------------------------------------------------- header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 5.5%;
  position: sticky; top: 0; z-index: 30; width: 100%;
  background: transparent; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e6bb8321;
}
.home-mark { display: inline-flex; align-items: flex-start; color: #f5eddf; text-decoration: none; font: 500 2.6rem/1 var(--serif); letter-spacing: -.09em; }
.home-mark:hover { color: #f5eddf; }
.home-mark__star { display: inline-block; color: var(--gold); font: 1.1rem/1 Georgia, serif; margin: .25rem 0 0 .6rem; letter-spacing: 0; }
.home-mark__name { align-self: center; margin-left: 1rem; padding-left: 1rem; border-left: 1px solid #e6bb8340; font: 400 1.3rem/1.2 var(--serif); letter-spacing: .01em; color: #eee4d6; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }
.site-nav a {
  display: block; padding: 0.35rem 0;
  color: #d0d3de; text-decoration: none; font-size: .95rem; font-weight: 400;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--gold); border-bottom-color: #e6bb8344; }
.site-nav a[aria-current='page'] { color: var(--gold); border-bottom-color: var(--gold); }
.site-nav .has-sub { position: relative; }
.site-nav .has-sub ul {
  display: none; position: absolute; top: 100%; left: -1rem; z-index: 5;
  min-width: 11rem; padding: 0.4rem 1rem;
  background: transparent; border: 1px solid var(--line); border-radius: 3px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-nav .has-sub:hover ul, .site-nav .has-sub:focus-within ul { display: block; }

.nav-toggle { display: none; }

@media (max-width: 62rem) {
  .js .nav-toggle {
    display: inline-flex; align-items: center;
    font: inherit; font-weight: 400; font-size: 1rem; color: var(--ivory);
    background: transparent; border: 1px solid var(--gold-soft); border-radius: 999px;
    padding: 0.3rem 1.1rem; cursor: pointer;
  }
  /* The menu stays in normal flow so the header's blur covers it. */
  .site-nav { flex-basis: 100%; position: static; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; max-height: calc(100svh - 6rem); overflow-y: auto; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav > ul {
    padding: 0.5rem 1.25rem; background: transparent;
    border: 1px solid var(--line); border-radius: 3px;
  }
  .site-nav a { padding: 0.65rem 0; border-bottom: 0; font-size: 1rem; }
  .site-nav .has-sub ul {
    display: block; position: static; padding: 0 0 0 1.25rem;
    background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}
@media (max-width: 650px) {
  .site-header { padding: 1.1rem 6%; }
  .home-mark { font-size: 2.2rem; }
  .home-mark__name { font-size: 1.05rem; margin-left: .75rem; padding-left: .75rem; max-width: 9.5rem; }
  /* The brand may shrink so a longer "Close menu" label never wraps below it. */
  .home-mark { flex: 1 1 0; min-width: 0; }
  .js .nav-toggle { flex-shrink: 0; }
  .sky__globe { width: 155vw; height: 155vw; right: -35vw; bottom: -95vw; }
}

/* -------------------------------------------------------------- buttons */
.button {
  display: inline-block; font: inherit; font-size: .95rem; font-weight: 400; line-height: 1.2;
  padding: .9rem 1.65rem; border-radius: 3px; cursor: pointer;
  background: var(--gold); color: #141725; border: 1px solid var(--gold);
  text-decoration: none; text-shadow: none; transition: background-color .2s, border-color .2s, color .2s;
}
.button:hover { background: #f3d4ac; border-color: #f3d4ac; color: #141725; }
.button--quiet { background: transparent; color: var(--cream); border-color: #b8956966; }
.button--quiet:hover { background: #e6bb8318; border-color: var(--gold); color: var(--cream); }
.text-link { color: #eee4d6; font-size: .95rem; text-decoration: none; padding: .45rem 0; border-bottom: 1px solid #c4a27866; transition: color .2s, border-color .2s; }
.text-link:hover { color: var(--gold); border-color: var(--gold); }

/* ----------------------------------------------------------- archive page */
.archive { width: 100%; max-width: 48rem; margin: clamp(2.5rem, 8vh, 5rem) auto 0; }
.archive--wide { max-width: 76rem; }
.page-head { text-align: center; margin-bottom: clamp(2rem, 5vh, 3.25rem); text-shadow: 0 2px 16px var(--night), 0 0 40px #080d19bb; }
.page-head__star { display: block; color: var(--gold); font: 1.6rem/1 Georgia, serif; margin-bottom: 1.1rem; }
.page-head h1 { margin: 0 auto; max-width: 18ch; }
.page-head::after { content: ''; display: block; width: min(16rem, 60%); height: 1px; margin: 1.8rem auto 0; background: linear-gradient(90deg, transparent, #d4b17b77, transparent); }

.panel {
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--glass);
  border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 30px 80px #0006;
}
.archive--wide .panel { background: #0a1121a8; }
.panel > :first-child { margin-top: 0; }
.panel > :last-child, .prose > :last-child { margin-bottom: 0; }
.archive--wide .prose { max-width: 42rem; }
.panel h2 { color: var(--ivory); }

.empty {
  border: 1px dashed #c0b29a40; border-radius: 4px;
  text-align: center; padding: 3rem 1.5rem; color: var(--muted);
}
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 52rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.portrait { margin: 0; }
.portrait img {
  display: block; width: 100%;
  border-radius: 48% 48% 3px 3px;
  box-shadow: 0 0 0 1px var(--line), 0 2rem 5rem rgba(0, 0, 0, 0.6);
}
.portrait--inline { max-width: 22rem; margin: 0 auto; }

/* -------------------------------------------------------------- gallery */
.gallery {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(13rem, 45%), 1fr));
}
.prose + .gallery, h2 + .gallery, h2 + .empty { margin-top: 1.75rem; }
.gallery a { display: block; border-radius: 3px; overflow: hidden; background: #0d1426; box-shadow: 0 0 0 1px #c0b29a1a; }
.gallery img {
  display: block; width: 100%; aspect-ratio: 1; object-fit: cover;
  filter: saturate(.85); transition: transform .4s ease, filter .4s;
}
.gallery--portrait img { aspect-ratio: 3 / 4; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); filter: saturate(1); }
.gallery--video { grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr)); gap: 1.1rem; }
.gallery video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 3px; box-shadow: 0 0 0 1px #c0b29a1a; }

.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #040811f2; color: var(--ivory);
}
.lightbox::backdrop { background: #040811e6; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__img { max-width: 94vw; max-height: 88vh; max-height: 88dvh; object-fit: contain; border-radius: 3px; }
.lightbox button {
  position: absolute; z-index: 1; font: inherit; color: #f8e5c9; cursor: pointer;
  background: #101a30cc; border: 1px solid #e6bb8388; border-radius: 999px;
}
.lightbox__close { top: 1rem; right: 1rem; padding: 0.35rem 1.1rem; font-size: .95rem; }
.lightbox__play { top: 1rem; right: 6.5rem; padding: 0.35rem 1.1rem; font-size: .95rem; }

/* ------------------------------------------------------------ slideshow */
.slideshow-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 0 0 1.5rem; }
.slideshow-bar[hidden] { display: none; }
.prose + .slideshow-bar, h2 + .slideshow-bar { margin-top: 1.75rem; }
.slideshow-bar span { color: var(--muted); font-size: .95rem; }
.slideshow {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden; background: #02040a; color: var(--ivory);
}
.slideshow::backdrop { background: #02040a; }
.slideshow[open] { display: block; }
/* The page behind a slideshow or photo viewer does not scroll. */
html:has(dialog.slideshow[open]), html:has(dialog.lightbox[open]) { overflow: hidden; }
/* The opaque slideshow hides the page, so the scrollbar's reserved strip is released;
   otherwise it shows as a dark band down the right edge. */
html:has(dialog.slideshow[open]) { scrollbar-gutter: auto; }
.slideshow__frame { position: absolute; inset: 0; background: #02040a; }
.slideshow__stage { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.slideshow__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity 1.4s ease; transform-origin: var(--origin, 50% 50%);
  will-change: opacity, transform;
}
.slideshow__img.is-active { opacity: 1; }
/* A tiny pre-darkened canvas stretched to fill the screen: the upscale is the blur, so no
   filter runs during the fade (a live full-screen blur made phones stutter). */
.slideshow__backdrop {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.4s ease; pointer-events: none;
}
.slideshow__backdrop.is-active { opacity: 1; }
/* The zoom stays on the outgoing photo through its fade, so it never snaps back. */
.slideshow__img.is-zooming { animation: slideshow-zoom var(--zoom-ms, 6400ms) linear forwards; }
.slideshow.is-paused .slideshow__img.is-zooming { animation-play-state: paused; }
@keyframes slideshow-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.slideshow__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  padding: 2.5rem max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-right)) max(clamp(1rem, 3vh, 1.75rem), env(safe-area-inset-bottom)) max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-left));
  background: linear-gradient(to top, #02040ae6, #02040a99 60%, transparent);
  transition: opacity .5s ease;
}
.slideshow.is-idle .slideshow__bar, .slideshow.is-idle .slideshow__close { opacity: 0; pointer-events: none; }
/* Close is an X in the top-right corner; it fades with the rest of the menu. */
.slideshow__close {
  position: absolute; z-index: 2;
  top: max(1rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right));
  transition: opacity .5s ease;
}
.slideshow__notice {
  position: absolute; left: 50%; bottom: calc(100% - 1.5rem); transform: translateX(-50%);
  margin: 0; padding: .4rem .95rem; white-space: nowrap;
  font-size: .85rem; color: var(--cream);
  background: #101a30d9; border: 1px solid #e6bb8355; border-radius: 999px;
  pointer-events: none;
}
.slideshow__notice[hidden] { display: none; }
.slideshow__tv {
  position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(34rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); overflow-y: auto;
  padding: clamp(1.25rem, 4vw, 2rem); background: #0a1121f2; border: 1px solid #e6bb8355; border-radius: 4px;
  box-shadow: 0 30px 80px #000a; font-size: 1rem; line-height: 1.55;
}
.slideshow__tv[hidden] { display: none; }
.slideshow__tv h2 { margin: 0 0 .5rem; font-size: 2rem; }
.slideshow__tv h2:focus { outline: none; }
.slideshow__tv h3 { margin: 1.1rem 0 .3rem; font: 400 .8rem var(--text); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.slideshow__tv .is-mine h3 { color: var(--gold); }
.slideshow__tv p { margin: 0; }
.slideshow__tv > p { color: var(--muted); }
/* Done stays reachable at the bottom while the steps scroll on small screens. */
.slideshow__tv .button { position: sticky; bottom: 0; margin-top: 1.4rem; box-shadow: 0 0 0 .75rem #0a1121f2; }
.slideshow__short { display: none; }
.slideshow__notice span { display: inline-block; min-width: 1ch; color: var(--gold); font-variant-numeric: tabular-nums; }
.slideshow.is-idle { cursor: none; }
.slideshow__controls, .slideshow__settings { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.slideshow__btn {
  min-height: 44px; min-width: 44px; padding: .4rem 1rem; cursor: pointer; white-space: nowrap;
  font: 400 .95rem var(--text); color: #f8e5c9;
  background: #101a30cc; border: 1px solid #e6bb8388; border-radius: 999px;
}
/* Hover only where there is a real pointer: on touch screens a tapped button would stay
   highlighted. A brief pressed state gives taps their feedback instead. */
@media (hover: hover) {
  .slideshow__btn:hover { background: #e6bb8329; border-color: var(--gold); }
}
.slideshow__btn:active { background: #e6bb8340; border-color: var(--gold); }
.slideshow__icon { display: inline-grid; place-items: center; width: 44px; padding: 0; }
.slideshow__icon svg { display: block; }
.slideshow__check input { width: 1.15rem; height: 1.15rem; accent-color: var(--gold); }
.slideshow__btn--play { min-width: 5.5rem; }
.slideshow__btn[hidden] { display: none; }
.slideshow__count { color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.slideshow__settings label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .95rem; color: var(--body); cursor: pointer; }
.slideshow__settings select {
  min-height: 44px; padding: .3rem .6rem; font: 400 .95rem var(--text); color: var(--ivory);
  background: #101a30; border: 1px solid #e6bb8388; border-radius: 3px;
}
@media (max-width: 650px) {
  .slideshow__bar { justify-content: center; gap: .4rem 1rem; padding-top: 1.25rem; }
  .slideshow__controls, .slideshow__settings { justify-content: center; gap: .4rem .6rem; }
  .slideshow__btn { padding: .4rem .8rem; }
  .slideshow__settings select { padding: .3rem .4rem; }
}
/* Phones: short TV label and a visually hidden "Each photo" (still the select's name). */
@media (max-width: 650px), (max-height: 480px) {
  .slideshow__long { display: none; }
  .slideshow__short { display: inline; }
  .slideshow__notice { bottom: calc(100% + .25rem); }
  .slideshow__label-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-height: 480px) {
  .slideshow__bar { justify-content: center; gap: .3rem .6rem; padding-top: .75rem; }
  .slideshow__controls, .slideshow__settings { gap: .3rem .5rem; }
  .slideshow__btn { padding: .3rem .7rem; }
}
@media (max-height: 480px) and (min-width: 820px) {
  .slideshow__bar { flex-wrap: nowrap; }
  .slideshow__controls, .slideshow__settings { flex-wrap: nowrap; }
}
.lightbox__prev, .lightbox__next {
  top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem; font-size: 1.8rem; line-height: 1; padding: 0 0 0.2rem;
}
.lightbox__prev { left: 0.75rem; }
.lightbox__next { right: 0.75rem; }
@media (hover: hover) { .lightbox button:hover { background: #e6bb8329; border-color: var(--gold); } }
.lightbox button:active { background: #e6bb8340; border-color: var(--gold); }

/* ------------------------------------------------------------- memories */
.memories { list-style: none; margin: 0; padding: 0; }
.memory:first-child { padding-top: 0.25rem; }
.memory { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.memory:last-child { border-bottom: 0; padding-bottom: 0; }
.memory--photo { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) {
  .memory--photo { grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; }
}
.memory__photo img { display: block; width: 100%; max-height: 18rem; object-fit: cover; border-radius: 3px; filter: saturate(.85); }
.memory h2 { font-size: var(--step-2); margin: 0 0 0.35em; }
.memory h2 a { color: var(--ivory); text-decoration: none; }
.memory h2 a:hover { color: var(--gold); }
.memory__by, .letter__by { color: var(--muted); line-height: 1.45; font-size: 1rem; }
.memory__by::first-line { color: var(--gold); }
.memory__text > :last-child { margin-bottom: 0; }
.more { font-weight: 400; font-size: 1rem; }

.letter__photo { margin: 0 0 2.25rem; text-align: center; }
.letter__photo img { max-height: 34rem; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
.letter__message { font: 400 clamp(1.35rem, 1.2rem + .5vw, 1.6rem)/1.55 var(--serif); color: #f1e9dd; }
.letter__by { margin-top: 2.25rem; padding-left: 1rem; border-left: 2px solid var(--gold); }
.letter__by::first-line { color: var(--gold); font-weight: 400; }
.letter__nav {
  display: grid; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.35;
}
.letter__nav a { text-decoration: none; }
.letter__nav a span { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: .3rem; }
@media (min-width: 40rem) {
  .letter__nav { grid-template-columns: 1fr auto 1fr; align-items: end; }
  .letter__nav > :last-child { text-align: right; }
}

/* -------------------------------------------------------------- embeds */
.playlist, .map-embed { display: block; width: 100%; border: 0; border-radius: 4px; }
.playlist { max-width: 660px; background: transparent; }
.map-embed { margin-top: 1.5rem; }
.map-drawing { margin: 0; }
.map-drawing img { display: block; border-radius: 3px; }
.directions { padding-left: 1.2rem; }
.directions li { margin-bottom: 0.6rem; }

/* --------------------------------------------------------------- footer */
.site-footer {
  padding: 2rem 5%; text-align: center;
  font-size: .85rem; color: var(--muted);
  background: #080d1980; border-top: 1px solid #c0b29a1a;
}
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 39.99rem) {
  .memory__photo img { max-width: 12rem; max-height: 14rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
