/* Concept: the guest book by the chapel door. A navy, lamp-lit walk through the funeral home (door, hands, family wall, chapel, family center) that ends at ivory guest-book pages where families' own words are the entries; navy, burgundy and gold come from their wordmark. */
:root {
  --navy-deep: #0c172b;
  --navy: #14233f;
  --mist: #e8ecf3;
  --paper: #f6f0e1;
  --gold: #b8924a;
  --burgundy: #6d1f2e;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; overflow-x: clip;
  background: var(--navy-deep); color: var(--mist);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.375rem, 1.4rem + 4.6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.005em; }
h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 2.75rem); line-height: 1.1; }
h3 { font-size: 1.625rem; line-height: 1.15; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.light :focus-visible, .page :focus-visible { outline-color: var(--burgundy); }
.skip-link {
  position: absolute; left: 8px; top: -80px; z-index: 100;
  background: var(--paper); color: var(--navy); padding: 12px 16px; font-weight: 600;
}
.skip-link:focus { top: 8px; }
.wrap { max-width: 1232px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- header: stays put ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-deep); border-bottom: 1px solid var(--gold);
}
.bar {
  display: flex; align-items: center; gap: 8px;
  height: 60px; max-width: 1232px; margin-inline: auto; padding-inline: var(--gutter);
}
.brand {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 44px; margin-right: auto; text-decoration: none; color: var(--mist); line-height: 1.05;
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.125rem; white-space: nowrap; }
.brand-sub { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 3px; white-space: nowrap; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 10px;
  background: transparent; color: var(--mist); border: 1px solid var(--mist); border-radius: 4px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
}
.menu-btn[hidden] { display: none; }
.menu-btn .label { display: none; }
.menu-icon { width: 18px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.menu-icon::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.call-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  background: var(--gold); color: var(--navy-deep); border-radius: 4px;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
}
.call-btn svg { width: 18px; height: 18px; flex: none; }
.call-btn .num { display: none; }
.call-btn:hover { background: var(--paper); }
.site-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--navy-deep); border-bottom: 2px solid var(--gold);
  padding: 4px var(--gutter) 20px; max-height: calc(100vh - 60px); overflow-y: auto;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: flex; align-items: center; min-height: 52px;
  color: var(--mist); text-decoration: none; font-size: 1.125rem;
  border-bottom: 1px solid rgba(232, 236, 243, 0.2);
}
.site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a:hover { color: var(--gold); }
.site-nav .nav-phone a { font-weight: 600; color: var(--gold); border-bottom: 0; }
@media (min-width: 380px) {
  .brand-name { font-size: 1.25rem; }
  .menu-btn .label { display: inline; }
}
@media (min-width: 520px) { .call-btn .num { display: inline; } }
@media (min-width: 1180px) {
  .bar { gap: 20px; }
  .menu-btn { display: none !important; }
  .site-nav { display: block; position: static; padding: 0; border: 0; max-height: none; overflow: visible; background: none; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav a { min-height: 44px; padding: 0 11px; font-size: 1rem; border-bottom: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
  .site-nav .nav-phone { display: none; }
}

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px; border-radius: 4px;
  background: var(--gold); color: var(--navy-deep);
  font: 600 1.1875rem/1 var(--sans); text-decoration: none; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { background: var(--paper); }
.light .btn { background: var(--navy); color: var(--mist); }
.light .btn:hover { background: var(--burgundy); }
.more {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1px; color: var(--gold);
}
.light .more { color: var(--burgundy); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 24px; }
.actions p { margin: 0; }

/* ---------- pictures ---------- */
figure { margin: 0; position: relative; }
figure img { width: 100%; object-fit: cover; }
.standin {
  position: absolute; right: 8px; bottom: 8px;
  background: var(--navy-deep); color: var(--mist);
  font-size: 0.8125rem; line-height: 1; padding: 6px 8px; border-radius: 2px;
}

/* ---------- the door: hero ---------- */
.hero { background: var(--navy-deep); position: relative; }
.hero-figure img { height: clamp(230px, 42vh, 420px); }
.hero-panel { padding: 24px var(--gutter) 44px; background: var(--navy); border-top: 3px solid var(--gold); }
.hero-panel .lede { font-size: 1.1875rem; margin: 16px 0 0; max-width: 34em; }
@media (max-width: 899px) and (max-height: 700px) {
  .hero-figure img { height: clamp(170px, 30vh, 240px); }
  .hero-panel { padding-top: 20px; }
}
@media (min-width: 900px) {
  .hero { padding-bottom: 72px; }
  .hero-figure img { height: clamp(480px, 70vh, 720px); }
  .hero-panel {
    position: relative; z-index: 1;
    width: min(700px, 62%); margin: -340px 0 0 max(var(--gutter), calc((100% - 1200px) / 2));
    padding: 40px 44px 44px;
  }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.light { background: var(--mist); color: var(--navy); }
.navy { background: var(--navy); }
.rule { display: block; width: 96px; height: 2px; background: var(--gold); margin: 20px 0 22px; border: 0; }
.words > :last-child { margin-bottom: 0; }
.split { display: grid; gap: 28px; }
.words ul { margin: 0 0 1em; padding-left: 1.2em; }
.words li { margin-bottom: 0.35em; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, 1fr); gap: 0 48px; align-items: center; }
  .split > .pic { grid-column: 1 / 8; }
  .split > .words { grid-column: 8 / 13; }
  .split.flip > .pic { grid-column: 6 / 13; order: 2; }
  .split.flip > .words { grid-column: 1 / 6; }
  .pic.tall img { aspect-ratio: 5 / 4; }
}

/* the family wall: four entries on one line */
.ledger { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 0; }
.ledger li { padding: 18px 0 18px 20px; border-left: 2px solid var(--gold); }
.ledger .yr { display: block; font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--gold); margin-bottom: 8px; }
.ledger p { margin: 0; }
.their-words { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.5rem; line-height: 1.3; margin: 40px 0 0; max-width: 30em; }
.their-words span { display: block; font-family: var(--sans); font-style: normal; font-size: 1rem; margin-top: 10px; color: var(--gold); }
@media (min-width: 900px) {
  .ledger { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 64px; }
  .ledger li { border-left: 0; border-top: 2px solid var(--gold); padding: 22px 0 0; }
}

/* the chapel and the family center */
.chapel { display: grid; gap: 28px; }
.family-center { display: grid; gap: 20px; margin-top: 12px; }
.family-center h3 { margin-bottom: 8px; }
@media (min-width: 900px) {
  .chapel { grid-template-columns: repeat(12, 1fr); gap: 0 48px; }
  .chapel > .pic { grid-column: 1 / 13; }
  .chapel > .pic img { aspect-ratio: 21 / 9; }
  .chapel > .pic .standin { right: auto; left: 8px; }
  .chapel > .words { grid-column: 7 / 13; grid-row: 2; margin-top: -110px; position: relative; background: var(--mist); padding: 44px 0 0 48px; }
  .family-center { grid-column: 1 / 7; grid-row: 2; margin-top: 48px; align-self: start; }
}

/* the guest book */
.book { background: var(--navy-deep); }
.book .split + .split { margin-top: 28px; }
.page {
  background: var(--paper); color: var(--navy);
  padding: 8px 20px 8px 40px; position: relative; border-radius: 2px;
  margin-top: 28px;
}
.page::before { content: ""; position: absolute; top: 0; bottom: 0; left: 22px; border-left: 1px solid var(--burgundy); }
.entry { margin: 0; padding: 20px 0; border-bottom: 1px solid rgba(20, 35, 63, 0.3); }
.entry:last-child { border-bottom: 0; }
.entry p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.4375rem; line-height: 1.32; margin: 0 0 10px; }
.entry footer { font-size: 1rem; font-weight: 600; color: var(--burgundy); }
@media (min-width: 900px) {
  .book .split { align-items: start; }
  .book .split + .split { margin-top: 56px; }
  .book .split > .pic { grid-column: 1 / 7; position: sticky; top: 92px; }
  .book .split > .words { grid-column: 7 / 13; }
  .book .split.flip > .pic { grid-column: 8 / 13; }
  .book .split > .pic img { aspect-ratio: 4 / 3; object-position: 70% 50%; }
  .book .split.flip > .pic img { aspect-ratio: 1 / 1; object-position: 50% 50%; }
  .book .split.flip > .words { grid-column: 1 / 8; }
  .book .split.flip .page { margin-top: 0; }
  .page { padding: 16px 36px 16px 64px; }
  .page::before { left: 40px; }
}

/* contact */
.contact-grid { display: grid; gap: 36px; }
.big-phone { font-family: var(--serif); font-weight: 600; font-size: clamp(2.5rem, 1.6rem + 4vw, 4rem); line-height: 1; color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; min-height: 56px; margin-top: 8px; }
.big-phone:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.details { margin: 0; display: grid; gap: 18px; }
.details dt { font-size: 0.9375rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.details dd { margin: 2px 0 0; }
.details a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
}

/* stub pages */
.stub { padding-block: clamp(56px, 9vw, 120px); min-height: 60vh; }
.stub .lede { font-size: 1.25rem; max-width: 36em; margin-top: 20px; }
.placeholder-list { list-style: none; padding: 0; margin: 28px 0 0; max-width: 40em; border-top: 1px solid var(--gold); }
.placeholder-list li { padding: 16px 0; border-bottom: 1px solid var(--gold); }

/* footer */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--gold); padding: 48px 0 40px; font-size: 1rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-name { font-family: var(--serif); font-weight: 600; font-size: 1.625rem; line-height: 1.1; margin: 0 0 6px; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--gold); margin: 0 0 14px; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.site-footer li a, .site-footer address a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.small { font-size: 0.9375rem; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid rgba(232, 236, 243, 0.2); }
.small span { display: block; margin-bottom: 6px; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 7fr 5fr; gap: 64px; }
}

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