/* Do It For Dom — simple, peaceful memorial site */

:root {
  --cream: #f7f5ef;
  --paper: #fffdf9;
  --sage: #7d927f;
  --sage-dark: #4e6555;
  --blue: #8299a3;
  --ink: #28332d;
  --muted: #68726c;
  --line: #dfe4dc;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(40, 51, 45, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.8;
}

h1, h2, h3, .script, .big-quote, .footer-title {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(25, 42, 33, .10), rgba(25, 42, 33, .58)),
    url("assets/dom.jpg") center 42% / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(24, 40, 32, .05) 10%,
    rgba(24, 40, 32, .18) 48%,
    rgba(24, 40, 32, .72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 32px 22px;
  margin-top: 26vh;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 500;
  line-height: .9;
}

.name {
  margin: 22px 0 4px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: .08em;
}

.dates {
  margin: 0 0 32px;
  font-size: .9rem;
  letter-spacing: .12em;
}

.dates span {
  margin: 0 9px;
}

.button {
  display: inline-block;
  padding: 12px 25px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: .25s ease;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(5px);
}

.button:hover {
  background: white;
  color: var(--sage-dark);
}

.intro {
  padding: 105px 22px 92px;
  text-align: center;
  background: var(--paper);
}

.intro-inner {
  max-width: 790px;
  margin: auto;
}

.script {
  color: var(--sage-dark);
  font-size: 1.55rem;
  font-style: italic;
  margin: 0 0 4px;
}

h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 500;
}

.divider {
  margin: 27px auto;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 180px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

.lead {
  max-width: 700px;
  margin: auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.section {
  padding: 105px max(22px, 7vw);
}

.story {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(300px, 1.1fr);
  gap: clamp(45px, 8vw, 110px);
  max-width: 1250px;
  margin: auto;
  align-items: start;
}

.story-photo {
  position: sticky;
  top: 30px;
}

.story-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.story-copy {
  max-width: 680px;
}

.story-copy h2 {
  margin-bottom: 28px;
}

.story-copy p {
  color: #4f5a53;
  font-size: .97rem;
  margin: 0 0 22px;
}

blockquote {
  margin: 34px 0;
  padding: 25px 28px;
  border-left: 3px solid var(--sage);
  background: rgba(255,255,255,.62);
  color: var(--sage-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.55;
}

.signature {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem !important;
  color: var(--sage-dark) !important;
  margin-top: 35px !important;
}

.signature span {
  font-size: 1.05rem;
}

.quote-section {
  padding: 115px 22px;
  text-align: center;
  background: #e8eee8;
}

.quote-inner {
  max-width: 800px;
  margin: auto;
}

.quote-section .eyebrow {
  color: var(--sage-dark);
}

.big-quote {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: .98;
  font-weight: 500;
  color: var(--sage-dark);
  margin: 22px 0;
}

.quote-note {
  color: var(--muted);
  font-size: .9rem;
}

.gallery {
  background: #e8eee8;
  text-align: center;
}

.gallery-inner {
  max-width: 1150px;
  margin: auto;
}

.gallery h2 {
  margin-bottom: 0;
}

.gallery-grid {
  margin-top: 55px;
  column-count: 3;
  column-gap: 22px;
}

.gallery-grid figure {
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
  break-inside: avoid;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 780px) {
  .gallery-grid {
    margin-top: 40px;
    column-gap: 14px;
  }

  .gallery-grid figure {
    margin-bottom: 14px;
  }
}

.video-section {
  background: var(--cream);
  text-align: center;
}

.video-inner {
  max-width: 820px;
  margin: auto;
}

.video-inner h2 {
  margin-bottom: 0;
}

.video-inner video {
  margin-top: 45px;
  width: 100%;
  display: block;
  border-radius: 4px;
  box-shadow: var(--shadow);
  background: #000;
}

@media (max-width: 780px) {
  .video-inner video {
    margin-top: 32px;
  }
}

.legacy {
  background: var(--paper);
  text-align: center;
}

.legacy-inner {
  max-width: 1000px;
  margin: auto;
}

.legacy h2 {
  margin-bottom: 55px;
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.legacy-grid > div {
  padding: 15px 15px 5px;
}

.number {
  color: var(--sage);
  font-size: .75rem;
  letter-spacing: .2em;
}

.legacy h3 {
  font-size: 1.8rem;
  margin: 8px 0 4px;
  font-weight: 500;
}

.legacy p {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 0;
}

footer {
  padding: 65px 20px 75px;
  text-align: center;
  background: var(--sage-dark);
  color: rgba(255,255,255,.82);
}

.footer-title {
  color: white;
  font-size: 2.5rem;
  margin: 0;
}

footer p {
  margin: 5px 0;
  font-size: .85rem;
}

.footer-dates {
  margin-top: 18px;
  opacity: .65;
  letter-spacing: .15em;
  font-size: .7rem;
}

@media (max-width: 780px) {
  .hero {
    min-height: 82vh;
    background-position: 53% center;
  }

  .hero-content {
    margin-top: 30vh;
  }

  .intro {
    padding: 78px 22px 70px;
  }

  .section {
    padding: 75px 22px;
  }

  .story {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }

  .story-photo {
    position: static;
    width: 100%;
  }

  .story-photo img {
    aspect-ratio: 4 / 4.5;
  }

  .story-copy {
    max-width: none;
  }

  .legacy-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .quote-section {
    padding: 80px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
