:root {
  --ink: #1B2A33;
  --ink-soft: #445563;
  --ink-faint: #7C8E98;
  --paper: #FBF9F5;
  --paper-deep: #F1EAD9;
  --paper-card: #FFFFFF;
  --brass: #A47F4E;
  --brass-deep: #8A6A3F;
  --sage: #5F8567;
  --sage-deep: #4C6C53;
  --sage-soft: #E7F0E6;
  --sage-line: #D7E6D6;
  --rule: #E3DACB;
  --shadow: rgba(27, 42, 51, 0.10);
  --shadow-soft: rgba(27, 42, 51, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 46rem;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  background-image: linear-gradient(180deg, var(--paper) 0%, var(--paper) 55%, var(--paper-deep) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sage-soft); color: var(--ink); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- top accent bar ---------- */
body::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brass) 0%, var(--sage) 100%);
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 249, 245, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule);
  padding: 1.3rem 0;
  box-shadow: 0 1px 0 var(--shadow-soft);
}
.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--brass); }

.masthead nav {
  display: flex;
  gap: 1.6rem;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.masthead nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.24;
  color: var(--ink);
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
  padding-top: 1.15rem;
  position: relative;
}
h1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brass), var(--sage));
}
h2 {
  font-size: 1.5rem;
  margin: 3.2rem 0 0.9rem;
}
h3 {
  font-size: 1.1rem;
  font-family: "Public Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 1.9rem 0 0.6rem;
  color: var(--ink);
}
p { margin: 0 0 1.15rem; }
a {
  color: var(--ink);
  text-underline-offset: 3px;
  text-decoration-color: var(--brass);
  transition: color 0.15s ease;
}
a:hover { color: var(--brass-deep); }

.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 34rem;
}
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass);
  margin: 0 0 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
  flex: none;
}

main { padding: 3rem 0 1rem; }
section { margin-bottom: 1rem; }

/* ---------- feature groups: "For funeral homes / drivers / families" ---------- */
h3 + ul {
  list-style: none;
  margin: 0.3rem 0 2.2rem;
  padding: 1.15rem 1.4rem 1.3rem;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px var(--shadow-soft);
}
h3 + ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
}
h3 + ul li:last-child { margin-bottom: 0; }
h3 + ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

ul { padding-left: 1.2rem; margin: 0 0 1.15rem; }
li { margin-bottom: 0.5rem; }

.small { font-size: 0.92rem; color: var(--ink-soft); }

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule) 20%, var(--rule) 80%, transparent);
  margin: 3.4rem 0;
}

/* ---------- signature: the status sequence ---------- */
.sequence {
  margin: 2.4rem 0 2.8rem;
  padding: 1.9rem 1.9rem 1.6rem;
  background: var(--paper-card);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 24px var(--shadow);
}
.sequence-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass);
  font-weight: 700;
  margin-bottom: 1.6rem;
}
.step { position: relative; padding-left: 1.9rem; padding-bottom: 1.4rem; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-soft);
}
.step::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.3rem;
  bottom: 0.1rem;
  width: 1px;
  background: var(--rule);
}
.step:last-child::after { display: none; }
.step .what {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.12rem;
}
.step .when {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--paper-deep);
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
}

/* ---------- message samples ---------- */
.msg {
  background: var(--sage-soft);
  border: 1px solid var(--sage-line);
  border-radius: 4px 18px 18px 18px;
  padding: 0.95rem 1.2rem;
  margin: 0 0 1rem;
  font-size: 0.96rem;
  color: var(--ink);
  max-width: 32rem;
  box-shadow: 0 2px 8px var(--shadow-soft);
}

/* ---------- contact affordances ---------- */
a[href^="mailto:"]::before { content: "\2709 "; }
a[href^="tel:"]::before { content: "\260E "; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--rule);
  margin-top: 4.5rem;
  padding: 2.2rem 0 3rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--brass-deep); }
footer .row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ---------- focus states ---------- */
a:focus-visible, .wordmark:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 2rem; }
  .lede { font-size: 1.08rem; }
  .masthead nav { gap: 1rem; }
  .sequence { padding: 1.4rem 1.3rem 1.2rem; }
  h3 + ul { padding: 1rem 1.1rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, .masthead nav a { transition: none; }
}
