@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --bg:          #F5F1EA;
  --surface:     #FBF8F3;
  --surface-alt: #EFEAE1;
  --ink:         #1C1A17;
  --ink-muted:   #4A4640;
  --ink-soft:    #857F75;
  --accent:      #6B2B2B;
  --accent-hover:#4E1E1E;
  --accent-soft: rgba(107, 43, 43, 0.08);
  --border:      #DED7CA;
  --border-strong:#B8AE9D;
  --shadow:      0 1px 0 rgba(28, 26, 23, 0.04);
  --shadow-none: none;

  /* Legacy aliases — kept so existing templates keep rendering in the new palette.
     Do not introduce new hex values; every alias resolves to one of the nine vars above. */
  --teal:          var(--accent);
  --teal-dark:     var(--accent-hover);
  --navy:          var(--ink);
  --text:          var(--ink);
  --text-secondary:var(--ink-muted);
  --gold:          var(--ink-soft);
  --coral:         var(--accent);
  --lavender:      var(--ink-soft);
  --sage:          var(--ink-soft);
  --cream:         var(--surface);
  --white:         var(--surface);
  --shadow-sm:     var(--shadow);
  --shadow-md:     var(--shadow);
  --shadow-lg:     var(--shadow);
  --radius:        4px;
  --radius-lg:     4px;
}

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

body, html {
  background: var(--bg);
  color: var(--ink-muted);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app {
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 150ms ease;
  letter-spacing: -0.005em;
}
.logo:hover { color: var(--accent); }
.logo-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.logo-icon svg { display: block; width: 22px; height: 22px; }
.logo-leaf { color: var(--accent); font-size: 18px; line-height: 1; }
.logo-accent { color: var(--ink-soft); font-style: italic; font-weight: 400; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink-muted);
  transition: color 150ms ease;
  display: inline-block;
  border-radius: 4px;
}
.nav-link:hover { color: var(--ink); background: transparent; }
.nav-link.active { color: var(--ink); background: transparent; font-weight: 500; }
.nav-cta {
  padding: 10px 20px;
  background: var(--accent);
  color: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 150ms ease, border-color 150ms ease;
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
}
.nav-cta:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--surface); }

.hero {
  position: relative;
  padding: 80px 24px 64px;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-content { position: relative; max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.hero h1 em { font-style: italic; color: var(--ink); font-weight: 400; }
.hero p {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 32px;
}

.search-box {
  display: flex;
  max-width: 580px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 4px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 150ms ease;
}
.search-box:focus-within { border-color: var(--accent); }
.search-box input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  outline: none;
}
.search-box input::placeholder { color: var(--ink-soft); }
.search-box select {
  border: none;
  border-left: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
  outline: none;
}
.search-btn {
  padding: 12px 22px;
  background: var(--accent);
  color: var(--surface);
  border: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 150ms ease;
  font-family: 'DM Sans', sans-serif;
}
.search-btn:hover { background: var(--accent-hover); }

.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-family: 'Lora', Georgia, serif; font-size: 2rem; font-weight: 500; color: var(--ink); }
.stat-label {
  font-size: 0.6875rem;
  color: var(--ink-soft);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.section { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.section.tight { padding-top: 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.625rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.section-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--accent);
  transition: color 150ms ease;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.section-link:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

.obit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.obit-card {
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: none;
  transition: border-color 150ms ease;
  display: block;
  color: inherit;
}
.obit-card:hover {
  border-color: var(--border-strong);
}
.obit-card-body { padding: 20px; }
.obit-card-top { display: flex; gap: 16px; align-items: flex-start; }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.obit-card-info { flex: 1; }
.obit-card-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.35;
}
.obit-card-meta { font-size: 0.8125rem; color: var(--ink-soft); }
.obit-card-snippet {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-top: 14px;
}
.obit-card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.obit-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.obit-card-stat svg { display: block; width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.obit-card-fh {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.fh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}
.fh-card {
  background: var(--surface);
  border-radius: 4px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: none;
  transition: border-color 150ms ease;
  display: block;
  color: inherit;
}
.fh-card:hover {
  border-color: var(--border-strong);
}
.fh-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 12px; }
.fh-card-name { font-family: 'Lora', Georgia, serif; font-size: 1.125rem; font-weight: 500; color: var(--ink); line-height: 1.35; }
.fh-card-loc { font-size: 0.8125rem; color: var(--ink-soft); margin-top: 2px; }
.fh-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.fh-rating-muted { color: var(--ink-soft); font-weight: 400; }
.fh-card-desc { font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.6; margin-bottom: 16px; }
.fh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fh-tag {
  padding: 3px 10px;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.fh-card-phone {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 48px 32px;
  text-align: center;
  position: relative;
}
.cta-banner h2 { font-family: 'Lora', Georgia, serif; font-size: 1.625rem; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.cta-banner p {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btn {
  padding: 10px 20px;
  background: var(--accent);
  color: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
  font-family: 'DM Sans', sans-serif;
  display: inline-block;
}
.cta-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--surface); }

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 400;
  margin-bottom: 24px;
  transition: color 150ms ease;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.detail-back:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

.detail-hero {
  background: var(--surface);
  border-radius: 4px;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px;
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
}
.detail-hero-fh {
  background: var(--surface);
  color: var(--ink);
}
.detail-hero-fh h1 { color: var(--ink); }
.detail-hero-fh .detail-dates { color: var(--ink-muted); }
.detail-hero-fh .fh-rating { background: transparent; color: var(--ink-muted); }
.detail-hero-fh .fh-rating-muted { color: var(--ink-soft); }
.detail-hero-fh .detail-meta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 400;
}
.detail-avatar {
  width: 128px; height: 128px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: none;
}
.detail-avatar-fh {
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: none;
}
.detail-info h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.detail-dates {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.detail-fh-link {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.detail-fh-link:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
.detail-col-main { display: flex; flex-direction: column; gap: 24px; }

.detail-content {
  background: var(--surface);
  border-radius: 4px;
  padding: 32px;
  box-shadow: none;
  border: 1px solid var(--border);
}
.detail-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.detail-tab {
  padding: 10px 16px;
  border-radius: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  background: none;
  transition: color 150ms ease, border-color 150ms ease;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.detail-tab:hover { color: var(--ink); }
.detail-tab.active { color: var(--ink); border-bottom-color: var(--accent); }

.life-story {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink);
  white-space: pre-line;
}

.content-heading {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.35;
}
.content-body { font-size: 0.9375rem; line-height: 1.7; color: var(--ink-muted); }

.condolences { display: flex; flex-direction: column; gap: 16px; }
.condolence-card {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.condolence-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.condolence-name { font-weight: 500; font-size: 0.875rem; color: var(--ink); }
.condolence-date {
  font-size: 0.6875rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.condolence-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.condolence-form {
  margin-top: 20px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.condolence-form input, .condolence-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 12px;
  background: var(--surface);
  outline: none;
  transition: border-color 150ms ease;
}
.condolence-form input::placeholder, .condolence-form textarea::placeholder { color: var(--ink-soft); }
.condolence-form input:focus, .condolence-form textarea:focus { border-color: var(--accent); }
.condolence-form textarea { min-height: 100px; resize: vertical; font-family: 'Lora', Georgia, serif; }
.condolence-submit {
  padding: 10px 20px;
  background: var(--accent);
  color: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
  font-family: 'DM Sans', sans-serif;
}
.condolence-submit:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--surface);
  border-radius: 4px;
  padding: 20px;
  box-shadow: none;
  border: 1px solid var(--border);
}
.sidebar-card h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  line-height: 1.35;
}
.sidebar-card p.muted {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.action-btn {
  width: 100%;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}
.action-btn:last-child { margin-bottom: 0; }
.action-btn.primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}
.action-btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--surface);
}
.action-btn.primary.lit {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--surface);
}
.action-btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.action-btn.secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.candle-counter {
  text-align: center;
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.candle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  transition: color 150ms ease;
}
.candle-icon svg { display: block; width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.candle-icon.dim { color: var(--ink-soft); }
.candle-num {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
}
.candle-label {
  font-size: 0.6875rem;
  color: var(--ink-soft);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.service-item { margin-bottom: 16px; }
.service-item:last-child { margin-bottom: 0; }
.service-type {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 6px;
}
.service-datetime {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.service-location { font-size: 0.8125rem; color: var(--ink-muted); line-height: 1.5; }

.fh-recent-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
}
.fh-recent-item:last-child { border-bottom: none; }
.fh-recent-item .avatar { width: 44px; height: 44px; font-size: 0.8125rem; }
.fh-recent-name { font-family: 'Lora', Georgia, serif; font-weight: 500; color: var(--ink); }
.fh-recent-dates { font-size: 0.8125rem; color: var(--ink-soft); }

.site-footer {
  background: var(--surface-alt);
  color: var(--ink-muted);
  margin-top: 60px;
  border-top: 1px solid var(--border);
}
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px 24px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand .logo { color: var(--ink); margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; max-width: 300px; color: var(--ink-muted); }
.footer-col h4 {
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 500;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: 'DM Sans', sans-serif;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 10px;
  transition: color 150ms ease;
  color: var(--ink-muted);
}
.footer-col a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 12px;
}

.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 36px;
  text-align: center;
  transition: border-color 150ms ease, color 150ms ease;
}
.pagination a:hover { color: var(--ink); border-color: var(--border-strong); }
.pagination .current { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.pagination .disabled { opacity: 0.4; cursor: not-allowed; }

.empty-state { text-align: center; padding: 48px 24px; color: var(--ink-muted); }
.empty-state p { font-size: 0.9375rem; }

.share-row { display: flex; flex-wrap: wrap; gap: 8px; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  color: var(--ink);
}

p { color: inherit; }

strong, b { font-weight: 500; color: var(--ink); }

em, i { font-style: italic; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

a.section-link, .content-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.content-body a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

@media (max-width: 900px) {
  .hero { padding: 56px 24px 40px; }
  .hero h1 { font-size: 1.75rem; }
  .section { padding: 32px 24px; }
  .section-title { font-size: 1.375rem; }
  .search-box { flex-direction: column; }
  .search-box select { border-left: none; border-top: 1px solid var(--border); }
  .obit-grid { grid-template-columns: 1fr; }
  .fh-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-hero { flex-direction: column; text-align: center; padding: 32px 24px; gap: 24px; }
  .detail-hero h1 { font-size: 1.75rem; }
  .detail-info h1 { font-size: 1.75rem; }
  .content-heading { font-size: 1.125rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { gap: 24px; }
  .nav { display: none; }
}

/* fadeUp/fade-in animations intentionally removed — grief does not stagger-animate.
   Class kept as a no-op so existing templates referencing it continue to render. */
.fade-in { animation: none; opacity: 1; transform: none; }
