:root {
  --ink: #24171b;
  --muted: #675b55;
  --paper: #f8f5ef;
  --white: #ffffff;
  --clay: #d84300;
  --clay-dark: #c2410c;
  --orange-on-dark: #ff8a2a;
  --teal: #386f73;
  --teal-dark: #21474b;
  --gold: #c6a05d;
  --line: rgba(36, 23, 27, 0.16);
  --shadow: 0 18px 60px rgba(36, 23, 27, 0.18);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body.video-page {
  background: #130d10;
  color: var(--white);
}

body.parent-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(36, 23, 27, 0.96), rgba(33, 71, 75, 0.92)),
    var(--ink);
  color: var(--white);
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(36, 23, 27, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-header--solid {
  background: #24171b;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

nav a {
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
}

nav a:hover,
nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.parent-shell {
  width: min(1040px, calc(100% - 36px));
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 42px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0;
}

.parent-intro {
  max-width: 780px;
}

.parent-intro h1 {
  max-width: 11ch;
  margin-bottom: 22px;
}

.parent-intro p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.20rem;
}

.parent-list {
  display: grid;
  grid-template-columns: minmax(0, 620px);
}

.parent-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.parent-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: 12px;
  background: var(--white);
  object-fit: contain;
  object-position: center;
}

.parent-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px 24px 24px 0;
}

.parent-card__kicker {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.parent-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.08;
  font-weight: 500;
}

.parent-card__body > span:last-child {
  color: var(--muted);
}

.parent-card:hover,
.parent-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  outline: none;
}

.hero {
  min-height: min(720px, calc(100vh - 70px));
  display: grid;
  align-items: center;
  padding: 0;
  color: var(--white);
  background: #24171b;
  overflow: hidden;
}

.hero__inner {
  width: 100%;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  gap: 0;
  align-items: stretch;
}

.hero__content {
  width: 100%;
  max-width: 680px;
  align-self: center;
  margin-left: clamp(18px, 6vw, 80px);
  padding: 64px clamp(24px, 5vw, 72px) 56px 0;
}

.hero__portrait {
  width: 100%;
  height: 100%;
  margin: 0;
  justify-self: stretch;
  overflow: hidden;
  border-radius: 0;
  background: var(--white);
  box-shadow: none;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero .eyebrow,
.section__intro--dark .eyebrow,
.section--video .eyebrow,
.standalone-video .eyebrow {
  color: var(--orange-on-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  margin-bottom: 22px;
  max-width: 13ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4.2vw, 4.2rem);
  font-weight: 500;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  font-weight: 500;
}

h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.hero__dates {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.hero__copy {
  max-width: 570px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.button--primary {
  color: var(--white);
  background: var(--clay);
}

.button--secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.button--outline {
  color: var(--teal-dark);
  border-color: rgba(56, 111, 115, 0.42);
  background: rgba(56, 111, 115, 0.08);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(36, 23, 27, 0.18);
  outline: none;
}

.section {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 64px);
}

.section__intro {
  width: min(var(--max), 100%);
  margin: 0 auto 36px;
}

.section__intro p {
  max-width: 820px;
  color: var(--muted);
}

.section__intro--dark p {
  color: rgba(255, 255, 255, 0.78);
}

.section--legacy {
  background: var(--white);
}

.legacy-grid,
.link-grid,
.tribute-layout {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.legacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 22px;
}

.panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.panel--feature {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(33, 71, 75, 0.95), rgba(36, 23, 27, 0.92)),
    radial-gradient(circle at 20% 10%, rgba(198, 160, 93, 0.34), transparent 34%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.stat-label {
  margin-bottom: 6px;
  color: var(--orange-on-dark);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-value {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 1;
}

.legacy-points {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
}

.legacy-points li::marker {
  color: var(--gold);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: #ffd4ae;
  font-weight: 800;
}

.bank-details {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}

.bank-details div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.bank-details dt {
  color: var(--muted);
  font-weight: 700;
}

.bank-details dd {
  margin: 0;
  font-weight: 800;
}

.note {
  color: var(--muted);
}

.security-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--clay);
  background: rgba(191, 104, 69, 0.1);
  color: var(--muted);
  font-size: 0.95rem;
}

.security-note strong {
  color: var(--ink);
}

.section--video {
  color: var(--white);
  background:
    linear-gradient(135deg, #24171b, #21474b 72%, #24171b);
}

.tribute-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 330px);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  margin-bottom: 30px;
}

.tribute-copy {
  max-width: 780px;
}

.tribute-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.tribute-invite {
  margin: 0;
}

.tribute-invite img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tribute-invite figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.video-frame {
  width: min(var(--max), 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

video::cue {
  color: white;
  background: rgba(0, 0, 0, 0.34);
}

.section--life {
  background: var(--paper);
}

.section--links {
  background: var(--white);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.link-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
}

.link-card span {
  color: var(--clay);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.link-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.12;
  font-weight: 500;
}

.link-card small {
  color: var(--muted);
  font-size: 0.92rem;
}

.link-card--obituary {
  min-height: 150px;
  grid-column: 1 / -1;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(129, 68, 39, 0.96), rgba(36, 23, 27, 0.94)),
    radial-gradient(circle at 88% 10%, rgba(198, 160, 93, 0.4), transparent 30%);
}

.link-card--obituary span {
  color: var(--orange-on-dark);
}

.link-card--obituary small {
  color: rgba(255, 255, 255, 0.78);
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(56, 111, 115, 0.42);
  box-shadow: 0 12px 32px rgba(36, 23, 27, 0.1);
  outline: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.78);
  background: #24171b;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.standalone-video {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 92px) 0;
}

.standalone-video__intro {
  max-width: 820px;
  margin-bottom: 28px;
}

.standalone-video h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}

.standalone-video p {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1020px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    color: var(--white);
    background: #24171b;
  }

  .brand {
    white-space: normal;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 0;
    margin-top: 0;
    background: #24171b;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero__portrait {
    width: 100%;
    height: auto;
    justify-self: center;
    grid-row: 1;
  }

  .hero__portrait img {
    height: auto;
    object-fit: contain;
  }

  .hero__content {
    grid-row: 2;
    max-width: none;
    margin-left: 0;
    padding: clamp(28px, 8vw, 48px) clamp(18px, 6vw, 48px) clamp(48px, 9vw, 72px);
  }

  h1 {
    max-width: 12ch;
  }

  .legacy-grid,
  .tribute-layout,
  .link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .parent-shell {
    min-height: 0;
    align-content: start;
    padding-top: 36px;
  }

  .parent-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .parent-card img {
    height: 250px;
    min-height: 0;
  }

  .parent-card__body {
    padding: 22px;
  }

  .hero {
    padding-left: 0;
    padding-right: 0;
  }

  h1 {
    font-size: 2.18rem;
  }

  .hero__copy {
    font-size: 1rem;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .bank-details div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
