/* ============================================================
   Memorial site stylesheet.
   Colors and type live in the variables below — adjust there.
   ============================================================ */

:root {
  --bg: #faf8f4;          /* warm off-white */
  --ink: #2b2a27;         /* near-black text */
  --soft: #6e6a61;        /* secondary text */
  --hairline: #e2ddd3;    /* dividers, borders */
  --accent: #3d4a43;      /* muted evergreen — button, focus */
  --accent-hover: #2e3833;
  --measure: 42rem;       /* column width */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  padding: clamp(2.5rem, 7vw, 5rem) 1.25rem 3rem;
}

.masthead,
main,
.site-footer {
  max-width: var(--measure);
  margin-inline: auto;
}

/* ---------- Masthead ---------- */

.masthead { text-align: center; }

.portrait {
  width: clamp(9rem, 30vw, 12rem);
  height: clamp(9rem, 30vw, 12rem);
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 8px rgba(43, 42, 39, 0.10);
}

h1 {
  font-size: clamp(2rem, 6vw, 2.875rem);
  font-weight: normal;
  line-height: 1.2;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.01em;
}

.dates {
  margin: 0;
  color: var(--soft);
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Body copy ---------- */

.message {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.message p { margin: 0 0 1.25em; }
.message p:last-child { margin-bottom: 0; }

.rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  width: 6rem;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto;
}

h2 {
  font-size: 1.375rem;
  font-weight: normal;
  text-align: center;
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
}

/* ---------- Video ---------- */

.video-note {
  text-align: center;
  color: var(--soft);
  font-size: 0.9375rem;
  margin: 0 0 1.5rem;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #14130f;
  box-shadow: 0 2px 14px rgba(43, 42, 39, 0.14);
}

.player iframe,
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  display: block;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 248, 244, 0.92);
  color: var(--accent);
  padding-left: 4px; /* optically center the triangle */
}

.video-facade:hover .play-badge,
.video-facade:focus-visible .play-badge {
  background: #ffffff;
  color: var(--accent-hover);
}

.video-facade:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Download ---------- */

.download {
  text-align: center;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.download-button {
  display: inline-block;
  background: var(--accent);
  color: #faf8f4;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 0.875rem 1.75rem;
  border-radius: 4px;
}

.download-button:hover { background: var(--accent-hover); }

.download-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.download-note {
  color: var(--soft);
  font-size: 0.875rem;
  margin: 0.75rem 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  text-align: center;
  color: var(--soft);
  font-size: 0.875rem;
}

.site-footer p { margin: 0; }

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
