/* Kind Death Doula — built on the Nocturne tokens (dark ground, Inter, one blurple accent used as line and glow). */
:root {
  --color-bg: #161826;
  --color-page: #0f111c;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-accent: #9184d9;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);

  --color-neutral-100: #f3f5fe; --color-neutral-200: #e4e7f5; --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca; --color-neutral-500: #9397ab; --color-neutral-600: #75798c;
  --color-neutral-700: #595d6c; --color-neutral-800: #3f424d; --color-neutral-900: #292b31;

  --color-accent-100: #f5f4ff; --color-accent-200: #e7e5fe; --color-accent-300: #d2cefd;
  --color-accent-400: #b5abfc; --color-accent-500: #968ae0; --color-accent-600: #796cbf;
  --color-accent-700: #5d5294; --color-accent-800: #423a6a; --color-accent-900: #2b2741;

  --color-section: #262a60; --color-section-glow: #353b80;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px;
  --shadow-md: 0 0 0 1px #595d6c, 0 6px 18px rgba(0,0,0,0.55);
  --shadow-lg: 0 0 0 1px #9397ab, 0 16px 40px rgba(0,0,0,0.65);

  --pad-x: 48px;
}
@media (max-width: 760px) { :root { --pad-x: 22px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--color-page); color: var(--color-text); }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; font-weight: 400; }
h1, h2, h3, h4, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent-300); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
strong { font-weight: 500; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--color-surface); padding: 8px 12px; border-radius: var(--radius-md); z-index: 50; }
.skip:focus { left: 8px; }

/* type helpers */
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent-300); }
.kicker.muted { color: var(--color-neutral-400); }
.label { font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-neutral-300); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--color-neutral-300); }
.dim { color: var(--color-neutral-400); }
.pretty { text-wrap: pretty; }
.arrow { font-size: 15px; color: var(--color-accent-300); }
.arrow:hover { color: var(--color-accent-200); }

/* buttons — outlined, never filled */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  font-family: var(--font-body); font-weight: 500; font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent; padding: 11px 16px; border-radius: var(--radius-md);
  transition: background .15s, color .15s;
}
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); color: var(--color-accent-300); }
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: 4px; }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }

/* page shell — the design frames a 1080px page */
.page { max-width: 1080px; margin: 0 auto; background: var(--color-bg); }
@media (min-width: 1120px) { .page { box-shadow: var(--shadow-lg); border-radius: var(--radius-md); overflow: hidden; margin: 24px auto 48px; } }
section, .band { padding: 68px var(--pad-x); }
.hairline { border-top: 1px solid var(--color-neutral-800); }
.surface { background: var(--color-surface); }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--pad-x); border-bottom: 1px solid var(--color-neutral-800); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; white-space: nowrap; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-accent); flex: none; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--color-neutral-300); flex-wrap: wrap; }
.nav-links a[aria-current="page"] { color: var(--color-accent-300); }
.nav .btn { font-size: 13px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 1px solid var(--color-neutral-800); color: var(--color-text); border-radius: var(--radius-md); padding: 8px 10px; font: inherit; font-size: 13px; cursor: pointer; }
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav .btn { order: 3; }
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 4px; padding: 10px 0 4px; order: 4; }
  .nav-links a { padding: 10px 0; border-top: 1px solid var(--color-neutral-900); }
  .nav.open .nav-links { display: flex; }
}

/* hero */
.hero { padding: 84px var(--pad-x) 56px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 300; line-height: 1.08; letter-spacing: -0.03em; }
.hero .lede { font-size: 18px; line-height: 1.7; color: var(--color-neutral-200); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 15px; color: var(--color-neutral-300); }
.hero-photo { display: flex; flex-direction: column; gap: 10px; }
.hero-photo img { width: 100%; height: 420px; object-fit: cover; object-position: 60% 30%; border-radius: var(--radius-md); filter: saturate(0.9); }
.hero-photo figcaption { font-size: 13px; color: var(--color-neutral-400); }
.tel { font-family: var(--font-mono); color: var(--color-accent-300); white-space: nowrap; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 36px; } .hero-photo img { height: 360px; } }

/* inner page header */
.head { padding: 72px var(--pad-x) 40px; display: flex; flex-direction: column; gap: 18px; max-width: 800px; }
.head h1 { font-size: clamp(34px, 4.6vw, 50px); font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; }
.head .lede { font-size: 18px; line-height: 1.7; color: var(--color-neutral-200); }
.crumbs { font-size: 13px; color: var(--color-neutral-500); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--color-accent-300); }

/* two doors */
.doors { padding: 0 var(--pad-x) 76px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door { display: flex; flex-direction: column; gap: 18px; padding: 36px 34px; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--color-surface), var(--color-bg)); box-shadow: var(--shadow-md); transition: box-shadow .2s; }
.door:hover { box-shadow: 0 0 0 1px var(--color-accent-600), 0 6px 18px rgba(0,0,0,0.55); color: inherit; }
.door-panel { min-height: 220px; border-radius: var(--radius-md); background: var(--color-neutral-900); border: 1px solid var(--color-neutral-800); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px 24px; }
.door-panel ul { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--color-neutral-300); }
.door h2 { font-size: 32px; font-weight: 400; line-height: 1.15; }
.door p { font-size: 16px; line-height: 1.7; color: var(--color-neutral-300); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .door { padding: 28px 24px; } .door h2 { font-size: 27px; } }

/* three-up */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step .rule { height: 2px; width: 40px; background: var(--color-accent); }
.step h3 { font-size: 26px; font-weight: 400; line-height: 1.2; }
.step p { font-size: 15px; line-height: 1.7; color: var(--color-neutral-300); }
@media (max-width: 760px) { .three { grid-template-columns: 1fr; gap: 32px; } }

/* list section */
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 32px; }
.list-head h2 { font-size: 34px; font-weight: 400; letter-spacing: -0.01em; max-width: 440px; line-height: 1.15; }
.list-head p { font-size: 15px; line-height: 1.65; color: var(--color-neutral-300); max-width: 420px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.cols ul { display: flex; flex-direction: column; }
.cols li { font-size: 15px; padding: 11px 0; border-top: 1px solid var(--color-neutral-800); color: var(--color-neutral-200); }
.cols li.h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-200); padding: 0 0 12px; border-top: 0; }
.cta-row { margin-top: 30px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--color-neutral-300); }
.fineprint { font-size: 14px; line-height: 1.65; color: var(--color-neutral-400); margin-top: 22px; max-width: 720px; padding-top: 18px; border-top: 1px solid var(--color-neutral-800); }
@media (max-width: 820px) { .list-head { flex-direction: column; align-items: flex-start; gap: 14px; } .cols { grid-template-columns: 1fr; } .cols ul + ul { margin-top: 28px; } }

/* split (photo + text) */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.split.rev { grid-template-columns: 1.15fr 0.85fr; }
.split img { width: 100%; height: 360px; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-md); filter: saturate(0.88); }
.split-copy { display: flex; flex-direction: column; gap: 16px; }
.split-copy h2 { font-size: 32px; font-weight: 400; line-height: 1.18; letter-spacing: -0.01em; }
.split-copy p { font-size: 16px; line-height: 1.7; color: var(--color-neutral-300); }
@media (max-width: 820px) { .split, .split.rev { grid-template-columns: 1fr; } .split img { height: 300px; } }

/* quote band */
.quote { background: var(--color-section); background-image: radial-gradient(120% 140% at 12% 0%, var(--color-section-glow), transparent 62%); display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.quote blockquote { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 300; line-height: 1.3; max-width: 760px; letter-spacing: -0.01em; }
.quote cite { font-style: normal; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-200); }

/* about + faq card */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two h2 { font-size: 30px; font-weight: 400; line-height: 1.2; }
.two p { font-size: 16px; line-height: 1.7; color: var(--color-neutral-300); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.card { padding: 32px 30px; border-radius: var(--radius-md); background: var(--color-surface); display: flex; flex-direction: column; gap: 14px; }
.card h2, .card h3 { font-size: 20px; font-weight: 500; }
.qlist { display: flex; flex-direction: column; }
.qlist a, .qlist li { display: block; font-size: 15px; padding: 13px 0; border-top: 1px solid var(--color-neutral-800); color: var(--color-neutral-200); }
.qlist > :last-child { border-bottom: 1px solid var(--color-neutral-800); }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }

/* final cta */
.closing { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.closing h2 { font-size: clamp(28px, 3.4vw, 34px); font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; max-width: 520px; }
.closing p { font-size: 15px; line-height: 1.6; color: var(--color-neutral-300); margin-top: 12px; }
.closing-act { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.closing-act .tel { font-size: 13px; color: var(--color-neutral-300); }
@media (max-width: 760px) { .closing { flex-direction: column; align-items: flex-start; } .closing-act { align-items: flex-start; } }

/* footer */
.foot { padding: 18px var(--pad-x); border-top: 1px solid var(--color-neutral-800); display: flex; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; font-size: 13px; color: var(--color-neutral-400); }
.foot a:hover { color: var(--color-accent-300); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* prose (inner pages) */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 28px; font-weight: 400; line-height: 1.2; margin-top: 22px; letter-spacing: -0.01em; }
.prose h3 { font-size: 20px; font-weight: 500; line-height: 1.3; margin-top: 8px; }
.prose p, .prose li { font-size: 16px; line-height: 1.75; color: var(--color-neutral-300); }
.prose p.answer { color: var(--color-neutral-100); font-size: 17px; }
.prose ul { display: flex; flex-direction: column; gap: 8px; }
.prose ul li { padding-left: 18px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 2px; background: var(--color-accent); }
.prose a { color: var(--color-accent-300); border-bottom: 1px solid var(--color-accent-800); }
.prose a:hover { color: var(--color-accent-200); border-bottom-color: var(--color-accent-500); }
.prose .aside { border-left: 2px solid var(--color-accent-700); padding: 4px 0 4px 18px; color: var(--color-neutral-400); font-size: 15px; }

/* faq */
.faq { max-width: 760px; display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--color-neutral-800); }
.faq details:last-child { border-bottom: 1px solid var(--color-neutral-800); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-size: 18px; font-weight: 400; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--color-accent-300); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--color-accent-300); }
.faq .a { padding: 0 0 20px; max-width: 680px; display: flex; flex-direction: column; gap: 12px; }
.faq .a p, .faq .a li { font-size: 16px; line-height: 1.75; color: var(--color-neutral-300); }
.faq .a ul li { padding-left: 18px; position: relative; }
.faq .a ul li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 2px; background: var(--color-accent); }

/* the index (death admin) */
.index-head { display: flex; align-items: baseline; gap: 16px; margin: 40px 0 22px; }
.index-head .line { flex: 1; height: 1px; background: var(--color-neutral-800); }
.index-head .mono { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-neutral-500); }
.index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; counter-reset: task; }
.index li { display: flex; gap: 12px; font-size: 15px; padding: 9px 0; border-bottom: 1px solid var(--color-neutral-900); color: var(--color-neutral-300); align-items: baseline; }
.index li::before { counter-increment: task; content: counter(task, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; color: var(--color-neutral-600); flex: none; width: 24px; }
.index li small { display: block; font-size: 13px; color: var(--color-neutral-500); margin-top: 2px; }
.index li span { display: flex; flex-direction: column; }
@media (max-width: 760px) { .index { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-card { padding: 30px 28px; border-radius: var(--radius-md); background: var(--color-surface); display: flex; flex-direction: column; gap: 12px; }
.contact-card .big { font-family: var(--font-mono); font-size: 22px; color: var(--color-accent-300); word-break: break-all; }
.contact-card p { font-size: 15px; line-height: 1.65; color: var(--color-neutral-300); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* print — the checklist is meant to be taken away */
@media print {
  html, body, .page { background: #fff !important; color: #111 !important; }
  .nav, .foot, .btn, .no-print, .skip { display: none !important; }
  .page { box-shadow: none; max-width: none; margin: 0; }
  section { padding: 16px 0; }
  .index li { color: #222; border-color: #ddd; }
  .index li::before { color: #888; }
  .index li small { color: #666; }
  .head h1 { font-size: 28pt; color: #111; }
  .prose p, .prose li, .head .lede { color: #222; }
  .kicker { color: #555; }
  a { color: inherit; }
}
