/* =========================================================
   In Loving Memory — styles
   Navy + gold, matching the memorial-cover hero, on warm ivory paper.
   (--sage* names kept so existing rules still work: sage = gold, sage-dark = navy)
   ========================================================= */

:root {
  --paper: #f7f3ea;
  --paper-2: #efe8da;
  --card: #fdfbf6;
  --ink: #0f1a33;
  --ink-2: #3b4256;
  --ink-3: #6e7284;
  --line: #ddd3c0;
  --sage: #a8803a;        /* gold (text-safe on ivory) */
  --sage-dark: #0a1a3a;   /* navy */
  --sage-soft: #eee3c8;   /* pale gold */
  --gold: #d4b06a;
  --gold-2: #f1dca4;
  --navy: #0a1a3a;
  --navy-deep: #050e24;

  /* Type: Gloock = display headings & engraved labels,
     Urbanist = reading text & interface (nav, forms, buttons),
     Pinyon Script = hero "Legacy" and the name */
  --display: 'Gloock', Georgia, serif;
  --serif: 'Gloock', Georgia, 'Times New Roman', serif;
  --text: 'Urbanist', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --sans: 'Urbanist', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --radius: 14px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-synthesis: none; /* Gloock has one weight, no italic: never fake bold/italic */
  font-feature-settings: "kern", "liga";
}

h1, h2, h3, .hero-sub, .hero-forever { text-wrap: balance; }
p, dd, blockquote { text-wrap: pretty; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h2 { font-size: clamp(2.4rem, 4.8vw, 3.6rem); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 120px 0; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--sage); color: #fff; }

.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }

.btn-light {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--navy-deep);
  font-weight: 600;
  padding: 16px 34px;
  box-shadow: 0 8px 24px rgba(212, 176, 106, 0.35);
}
.btn-light:hover { background: var(--gold-2); box-shadow: 0 12px 30px rgba(212, 176, 106, 0.45); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 14, 36, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(212, 176, 106, 0.35);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gold-2);
  text-decoration: none;
  white-space: nowrap;
}
.nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-list a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 234, 0.82);
  text-decoration: none;
  padding: 6px 0;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-list a:hover { color: var(--gold-2); border-color: var(--gold); }

/* ---------- Hero (navy + gold memorial cover) ---------- */
.hero {
  --h-navy: #0a1a3a;
  --h-navy-deep: #050e24;
  --h-blue: #1d3a7a;
  --h-gold: #d4b06a;
  --h-gold-2: #f1dca4;
  --h-gold-3: #a8803a;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;

  position: relative;
  overflow: hidden;
  text-align: center;
  color: #f4efe3;
  padding: 72px 20px 80px;
  background:
    radial-gradient(ellipse 45% 38% at 50% 52%, rgba(255, 226, 160, 0.55), transparent 70%),
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(90, 130, 210, 0.45), transparent 75%),
    linear-gradient(180deg, var(--h-navy-deep) 0%, var(--h-navy) 40%, #0c214a 70%, var(--h-navy-deep) 100%);
}

/* sky: light rays, arched windows, steps */
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.hero-rays {
  position: absolute;
  left: 50%; top: 52%;
  width: 1400px; height: 1400px;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 228, 170, 0.10) 0deg 3deg,
    transparent 3deg 11deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 55%);
          mask-image: radial-gradient(circle, #000 0%, transparent 55%);
}
.hero-arch {
  position: absolute;
  top: 22%;
  width: min(18vw, 230px);
  height: 46%;
  border-radius: 999px 999px 0 0;
  border: 1px solid rgba(160, 190, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(120, 160, 235, 0.28), rgba(20, 40, 90, 0.05)),
    linear-gradient(90deg, transparent 49.6%, rgba(160, 190, 255, 0.25) 49.6% 50.4%, transparent 50.4%);
}
.hero-arch-left { left: calc(50% - min(30vw, 400px)); }
.hero-arch-right { right: calc(50% - min(30vw, 400px)); }
.hero-steps {
  position: absolute;
  left: 50%; bottom: 22%;
  width: min(60vw, 640px); height: 120px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(255, 230, 180, 0.10) 0 2px, transparent 2px 16px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
}

.hero-inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; }

/* gold gradient text helper */
.hero-kicker,
.hero-title-script,
.hero-name {
  background: linear-gradient(180deg, var(--h-gold-2) 0%, var(--h-gold) 45%, var(--h-gold-3) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.8vw, 2.9rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}
.orn {
  display: inline-block;
  width: clamp(28px, 5vw, 60px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--h-gold));
  position: relative;
}
.orn:last-child { transform: scaleX(-1); }
.orn::after {
  content: '';
  position: absolute;
  right: -3px; top: -3px;
  width: 8px; height: 8px;
  background: var(--h-gold);
  transform: rotate(45deg);
}

.hero-title { margin: 6px 0 0; color: #fff; }
.hero-title-top {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 8.2vw, 6.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero-title-script {
  display: block;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(4.6rem, 15vw, 11rem);
  line-height: 0.9;
  margin-top: -0.18em;
  padding: 0 0.2em 0.12em;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
}

/* ornament lines */
.orn-line {
  position: relative;
  width: min(80%, 500px);
  height: 1px;
  margin: 8px auto 18px;
  background: linear-gradient(90deg, transparent, var(--h-gold), transparent);
}
.orn-line span {
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 10px;
  background: var(--h-gold);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 12px rgba(241, 220, 164, 0.7);
}
.orn-line.small { width: 150px; margin: 14px auto 0; }
.orn-line.small span { width: 6px; height: 6px; }
.orn-line.wide { width: min(92%, 640px); margin-top: 6px; }

.hero-sub {
  font-family: var(--display);
  font-size: clamp(0.95rem, 1.9vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

/* portrait + dates row */
.hero-stage {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 420px) 1fr;
  align-items: end;
  gap: 24px;
  margin-top: 28px;
}
.hero-date { padding-bottom: 90px; }
.hero-sun {
  display: block;
  width: 64px; height: 32px;
  margin: 0 auto 14px;
  border-radius: 64px 64px 0 0;
  background: linear-gradient(180deg, var(--h-gold-2), var(--h-gold-3));
  box-shadow: 0 0 30px rgba(241, 220, 164, 0.6);
  border-bottom: 2px solid var(--h-gold);
}
.hero-sun.set { opacity: 0.8; height: 24px; width: 48px; }
.hero-date-label {
  font-family: var(--display);
  font-size: clamp(0.95rem, 1.7vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--h-gold);
}
.hero-date-value {
  font-family: var(--display);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  letter-spacing: 0.08em;
  font-variant-numeric: lining-nums;
  text-transform: uppercase;
  color: #fff;
}

.hero-portrait { position: relative; }
.hero-portrait img {
  border-radius: 999px 999px 0 0;
  object-position: center 20%;
  box-shadow: 0 0 80px rgba(241, 220, 164, 0.25);
}
.hero-portrait img,
.portrait-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.portrait-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(255, 236, 190, 0.18), rgba(10, 26, 58, 0.4));
  border: 1px solid rgba(212, 176, 106, 0.45);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--h-gold-2);
}

.hero-name {
  font-family: var(--script);
  font-size: clamp(3.4rem, 9.5vw, 7rem);
  line-height: 1.1;
  margin-top: -0.55em;
  padding: 0 0.2em 0.1em;
  position: relative;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
}

.hero-forever {
  font-family: var(--display);
  font-size: clamp(1rem, 2.1vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
  color: #fff;
}
.hero-forever span { color: var(--h-gold); }

/* ---------- Story ---------- */
.story {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.story-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.sticky { position: sticky; top: calc(var(--header-h) + 40px); }

.story-body { max-width: 62ch; }
.story-body p {
  font-family: var(--text);
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 1.1em;
  hanging-punctuation: first;
  font-variant-numeric: oldstyle-nums;
}
.story-body p:last-child { margin-bottom: 0; }
.story-body .lead {
  font-family: var(--serif) !important;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem) !important;
  font-weight: 400;
  line-height: 1.32 !important;
  letter-spacing: -0.005em;
  color: var(--ink) !important;
  margin-bottom: 1.2em !important;
}
.story-body .lead::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.4em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--sage);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  grid-auto-flow: dense;
  gap: 20px;
}
.tile {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }

.tile .photo {
  flex: 1;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-3);
  transition: transform .35s ease;
}
.tile:nth-child(3n + 2) .photo { background: var(--sage-soft); }
.tile:hover .photo { transform: scale(0.985); }
.tile .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.tile figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
}
.tile figcaption span {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---------- Services ---------- */
.services { background: var(--paper-2); }

.service-list { list-style: none; border-top: 1px solid var(--ink); }
.service {
  display: grid;
  grid-template-columns: 80px 1fr 1.6fr;
  gap: 32px;
  align-items: baseline;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.service-num {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--sage);
}
.service h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

.service dl {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 24px;
  justify-content: start;
}
.service dt {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.service dd { font-family: var(--text); font-size: 1.15rem; color: var(--ink); }
.service dd a {
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-underline-offset: 4px;
}
.service dd a:hover { color: var(--sage-dark); }

.livestream {
  margin-top: 40px;
  font-family: var(--text);
  font-size: 1.15rem;
  color: var(--ink-2);
}
.livestream a {
  margin-left: 6px;
  font-weight: 600;
  color: var(--ink);
  text-underline-offset: 4px;
}

/* ---------- Give ---------- */
.give {
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(212, 176, 106, 0.14), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: rgba(245, 241, 234, 0.86);
  padding: 110px 0;
}
.give .eyebrow { color: var(--gold); }
.give h2 { color: var(--paper); }
.give-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: end;
}
.give p {
  font-family: var(--text);
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ---------- Guestbook ---------- */
.guestbook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.tribute-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}
.optional { color: var(--ink-3); font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #a59e92; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(95, 111, 85, 0.18);
}
.tribute-form .btn { justify-self: start; }

.tributes {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}
.tributes-title {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.tribute {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.tribute p {
  font-family: var(--serif);
  font-style: normal;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 14px;
}
.tribute cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.tribute cite::before { content: '— '; color: var(--sage); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(212, 176, 106, 0.3);
  color: rgba(245, 241, 234, 0.7);
  padding: 100px 0 70px;
  text-align: center;
}
.footer-inner { max-width: 720px; }
.site-footer h2 { color: var(--paper); margin-bottom: 22px; }
.site-footer p { font-family: var(--text); font-size: 1.2rem; line-height: 1.75; }
.footer-name {
  margin-top: 56px;
  font-family: 'Pinyon Script', cursive !important;
  font-size: 2.6rem !important;
  line-height: 1.2;
  color: var(--gold-2);
}
.footer-dates {
  margin-top: 4px;
  font-family: var(--display) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.5);
}



/* ---------- Hero white-rose corners ---------- */
.hero-flora {
  position: absolute;
  width: clamp(130px, 20vw, 290px);
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}
.hero-flora.tl { top: 0; left: 0; }
.hero-flora.tr { top: 0; right: 0; transform: scaleX(-1); }
.hero-flora.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.hero-flora.br { bottom: 0; right: 0; transform: scale(-1, -1); }

/* ---------- Guestbook form extras ---------- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 0.95rem; min-height: 1.4em; }
.form-status.is-success { color: #2f6b3a; }
.form-status.is-error { color: #a33a2a; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
#tribute-list {
  display: grid;
  gap: 18px;
  align-content: start;
  /* Scroll inside the list: about 2–3 tributes visible, the rest scroll */
  max-height: 640px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 12px 40px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--sage) transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 60px), transparent);
          mask-image: linear-gradient(180deg, #000 calc(100% - 60px), transparent);
}
#tribute-list::-webkit-scrollbar { width: 6px; }
#tribute-list::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 999px; }
#tribute-list::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 720px) {
  #tribute-list { max-height: 520px; }
}
.tributes-empty {
  font-size: 1rem;
  color: var(--ink-3);
  padding: 28px 30px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}


/* ---------- Share buttons (footer) ---------- */
.share { margin-top: 44px; padding-top: 32px; border-top: 1px solid rgba(212, 176, 106, 0.25); }
.share-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share-btn {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold-2);
  background: transparent;
  border: 1px solid rgba(212, 176, 106, 0.5);
  border-radius: 999px;
  padding: 10px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.share-btn:hover { background: var(--gold); color: var(--navy-deep); }
.share-btn[hidden] { display: none; }
.share-status { margin-top: 12px; font-size: 0.9rem !important; min-height: 1.4em; color: var(--gold-2); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 90px 0; }
  .story-grid,
  .give-inner,
  .guestbook-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-arch { display: none; }
  .sticky { position: static; }
  .section-head { margin-bottom: 40px; }
  .service { grid-template-columns: 56px 1fr; }
  .service dl { grid-column: 2; }
}

@media (max-width: 720px) {
  .site-header nav { width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .site-header nav::-webkit-scrollbar { display: none; }
  .nav-list { gap: 20px; width: max-content; padding: 0 28px 0 4px; }
  .header-inner { flex-direction: column; justify-content: center; gap: 4px; }
  :root { --header-h: 92px; }
  .brand { font-size: 1.15rem; }

  .hero { padding: 48px 16px 64px; }
  .hero-stage { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .hero-portrait { grid-column: 1 / -1; grid-row: 1; max-width: 340px; width: 100%; margin: 0 auto; }
  .hero-date { padding-bottom: 0; }
  .hero-flora { width: 110px; opacity: 0.8; }
  .hero-flora.bl, .hero-flora.br { display: none; }
  .hero-name { margin-top: 0.2em; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .tile-tall { grid-row: span 1; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .give { padding: 80px 0; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .tile-wide { grid-column: span 1; }
  .service { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .service dl { grid-column: 1; grid-template-columns: 1fr; gap: 14px; }
  .tribute-form .btn { width: 100%; justify-self: stretch; }

}

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