/* Qbituary — brand tokens & shared styles
   Loaded by every page. The Inscribed Q is the mark; Cormorant Italic + Geist are the type.
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Surfaces */
  --bone: #f4ede0;
  --bone-deep: #e9dfca;
  --bone-faint: #faf6ee;
  --ivory: #fbf8f1;

  /* Ink */
  --ink: #1c1a17;
  --ink-soft: #3a342c;
  --ink-mute: #6a6052;

  /* Patina / verdigris */
  --patina: #4a7a72;
  --patina-deep: #2e524d;
  --patina-mute: #7ea49d;

  /* Brass / gold leaf */
  --brass: #b08a5b;
  --brass-deep: #8a6a3f;

  /* Lines */
  --mist: #d6cdb8;
  --mist-soft: #e6ddc7;

  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans: 'Geist', 'Helvetica Neue', system-ui, sans-serif;
  --mono: 'Geist Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
}

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

img, svg { display: block; max-width: 100%; }

/* Typography helpers */
.q-serif { font-family: var(--serif); }
.q-sans { font-family: var(--sans); }
.q-mono { font-family: var(--mono); letter-spacing: 0.04em; }
.q-italic { font-style: italic; font-feature-settings: "liga","dlig","onum"; }
.q-patina { color: var(--patina-deep); }

.q-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.q-rule { height: 1px; background: var(--mist); border: 0; }

/* The Inscribed Q — SVG mark used inline */
.q-mark {
  display: inline-block;
  overflow: visible;
  vertical-align: middle;
}
.q-mark text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

/* Wordmark span — leading Q heavier italic */
.q-wordmark {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}
.q-wordmark .q { font-style: italic; font-weight: 600; }

/* ── Nav ─────────────────────────────────────────────── */
.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 64px;
  border-bottom: 1px solid var(--mist-soft);
  color: var(--ink);
  background: transparent;
}
.q-nav.dark { background: var(--ink); color: var(--bone); border-bottom-color: rgba(244,237,224,0.12); }
.q-nav .brand { display: flex; align-items: center; gap: 10px; }
.q-nav .links { display: flex; gap: 32px; font-size: 13px; }
.q-nav .links a {
  color: var(--ink-mute);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.q-nav.dark .links a { color: rgba(244,237,224,0.65); }
.q-nav .links a.active { color: var(--ink); border-bottom-color: var(--ink); }
.q-nav.dark .links a.active { color: var(--bone); border-bottom-color: var(--bone); }
.q-nav .actions { display: flex; align-items: center; gap: 16px; }
.q-nav .actions .signin { font-size: 13px; color: var(--ink-mute); }
.q-nav.dark .actions .signin { color: rgba(244,237,224,0.65); }

/* Buttons */
.q-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.q-btn:hover { opacity: 0.86; }
.q-btn.lg { padding: 18px 28px; font-size: 14px; }
.q-btn.xl { padding: 20px 36px; font-size: 14px; }
.q-btn.ghost { background: transparent; color: var(--ink); }
.q-btn.invert { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.q-btn .arrow { opacity: 0.5; }

.q-link {
  color: var(--ink-soft);
  font-size: 14px;
  border-bottom: 1px solid var(--ink-mute);
  padding-bottom: 4px;
}
.q-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
.q-link.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; }

/* Headings */
.q-h1 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.94;
}
.q-h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}
.q-h3 {
  font-family: var(--serif);
  font-weight: 500;
}

/* Section padding helpers */
.q-section { padding: 120px 64px; border-top: 1px solid var(--mist); }
.q-section.first { border-top: 0; }
.q-section.dark { background: var(--ink); color: var(--bone); }
.q-section.deep { background: var(--bone-deep); }
.q-section.faint { background: var(--bone-faint); }

/* ── Footer ─────────────────────────────────────────── */
.q-footer {
  background: var(--ink);
  color: var(--bone);
  padding: 56px 64px 28px;
}
.q-footer .row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(244,237,224,0.12);
}
.q-footer .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--mist);
  margin-top: 22px;
  max-width: 340px;
}
.q-footer h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 400;
  opacity: 0.7;
  margin-bottom: 18px;
}
.q-footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.q-footer li a { font-size: 13px; color: var(--mist); }
.q-footer li a:hover { color: var(--bone); }
.q-footer .colophon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  color: rgba(244,237,224,0.5);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.15em;
}
.q-footer .colophon .quote {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0;
  font-size: 14px;
}

/* ── Hairline grid (used by step + memorial cards) ──── */
.q-hairline-grid {
  display: grid;
  gap: 1px;
  background: var(--mist);
  border: 1px solid var(--mist);
}
.q-hairline-grid > * { background: var(--bone-faint); }

/* Stat block (under hero) */
.q-stat .n { font-family: var(--serif); font-size: 26px; color: var(--ink); line-height: 1; }
.q-stat .l { font-family: var(--mono); font-size: 10px; margin-top: 6px; letter-spacing: 0.2em; color: var(--ink-mute); }

/* Mobile breakpoints — out of scope of the design, but the
   site shouldn't be completely broken on phones. */
@media (max-width: 960px) {
  .q-nav { padding: 16px 24px; }
  .q-nav .links { display: none; }
  .q-section { padding: 72px 24px; }
  .q-footer { padding: 40px 24px 20px; }
  .q-footer .row { grid-template-columns: 1fr; gap: 28px; }
}
