:root {
  --ink: #20201d;
  --muted: #69645c;
  --paper: #fbfaf7;
  --warm: #f0ebe2;
  --line: rgba(32, 32, 29, 0.13);
  --olive: #59614a;
  --olive-dark: #30372a;
  --clay: #b76f53;
  --gold: #c39a50;
  --shadow: 0 24px 70px rgba(42, 36, 26, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(251, 250, 247, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--olive-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 82px);
  padding: 120px clamp(20px, 5vw, 72px) 70px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.8) 48%, rgba(251, 250, 247, 0.15) 100%),
    url("assets/photos/13.jpg") center right / cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(251, 250, 247, 0), var(--paper));
  z-index: -1;
}

.hero-content {
  grid-column: 1;
  grid-row: 1;
  max-width: 650px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 {
  max-width: 10ch;
  font-size: clamp(52px, 8vw, 112px);
}

h2 {
  font-size: clamp(32px, 4vw, 58px);
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: #3f3c36;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

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

.button.primary {
  background: var(--olive-dark);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--olive-dark);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-media {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-height: min(62vw, 650px);
}

.hero-photo {
  position: absolute;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
}

.hero-photo-main {
  right: 8%;
  top: 8%;
  width: min(36vw, 480px);
  aspect-ratio: 4 / 5;
}

.hero-photo-side {
  width: min(24vw, 310px);
  aspect-ratio: 4 / 3;
  border: 10px solid rgba(255, 255, 255, 0.8);
}

.hero-photo-one {
  left: 2%;
  top: 18%;
}

.hero-photo-two {
  right: 0;
  bottom: 6%;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  padding: clamp(70px, 10vw, 128px) clamp(20px, 5vw, 72px);
}

.intro-band {
  border-top: 1px solid var(--line);
}

.tribute-text {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
}

.tribute-text p {
  margin: 0;
}

.tribute-text p + p {
  margin-top: 20px;
}

.memory-strip {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr 1.25fr;
  gap: 10px;
  padding: 0 clamp(20px, 5vw, 72px) clamp(78px, 10vw, 120px);
}

.memory-strip figure {
  min-height: 260px;
  margin: 0;
  overflow: hidden;
}

.memory-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-section {
  background: #f3f0ea;
  padding: clamp(72px, 10vw, 126px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.gallery {
  columns: 4 230px;
  column-gap: 14px;
}

.gallery-button {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  break-inside: avoid;
}

.gallery-button img {
  width: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 280ms ease, filter 280ms ease;
}

.gallery-button:hover img,
.gallery-button:focus-visible img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.03);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 70px clamp(16px, 4vw, 60px);
  background: rgba(16, 16, 14, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1080px, 100%);
  max-height: 82vh;
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 32px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 50px;
  height: 62px;
  transform: translateY(-50%);
  font-size: 44px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

@media (max-width: 980px) {
  .hero,
  .intro-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-media {
    grid-column: auto;
    grid-row: auto;
    order: -1;
    min-height: 440px;
  }

  .hero-content {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-photo-main {
    width: min(72vw, 460px);
  }

  .hero-photo-side {
    width: min(42vw, 280px);
  }

  .memory-strip {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 16px 18px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
    padding: 92px 18px 58px;
  }

  .hero-media {
    min-height: 330px;
  }

  .hero-photo-side {
    border-width: 6px;
  }

  .intro-band,
  .gallery-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .memory-strip {
    grid-template-columns: 1fr;
    padding-left: 18px;
    padding-right: 18px;
  }

  .memory-strip figure {
    min-height: 220px;
  }

  .gallery {
    columns: 1;
  }

  .site-footer {
    flex-direction: column;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }
}
