/* Afterwards — estateadmin.app
   Quiet, document-like. Someone reading these pages has had a death in the family,
   so nothing here shouts: no gradients, no animation, one accent used sparingly. */

:root {
  --paper:   #fbfaf8;
  --surface: #f3f1ec;
  --ink:     #1c1e22;
  --muted:   #5f6670;
  --line:    #e3dfd7;
  --accent:  #35688a;
  --warm:    #a8683f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #14171b;
    --surface: #1c2026;
    --ink:     #e7e9ec;
    --muted:   #9aa3ae;
    --line:    #2a2f36;
    --accent:  #8ab6d2;
    --warm:    #d09a6e;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 22px; }

header.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--paper); z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; gap: 13px; flex-wrap: wrap;
  padding-top: 13px; padding-bottom: 13px;
}
header.site img { width: 32px; height: 32px; border-radius: 7px; }
header.site .name {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 600; font-size: 19px; letter-spacing: -0.01em;
}
header.site nav { margin-left: auto; display: flex; gap: 20px; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--ink); }

/* Below this the links no longer fit beside the wordmark, so give them their own
   row rather than letting them wrap one at a time. */
@media (max-width: 540px) {
  header.site nav { margin-left: 0; width: 100%; gap: 18px; padding-top: 2px; }
  .hero { padding-top: 34px; }
}

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 600; letter-spacing: -0.01em; text-wrap: balance;
}
h1 { font-size: clamp(31px, 6vw, 42px); line-height: 1.2; margin: 0 0 18px; }
h2 { font-size: 24px; margin: 44px 0 12px; }
h3 { font-size: 18px; margin: 28px 0 6px; }
p { margin: 0 0 16px; }
a { color: var(--accent); }
strong { font-weight: 650; }

.hero { padding: 56px 0 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0 0 22px; }
.lede { font-size: 19px; color: var(--muted); margin-bottom: 34px; }
.dateline { font-size: 15px; color: var(--muted); margin-bottom: 34px; }

/* Used for the one-paragraph summary at the top of a long page. */
.note {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 6px;
  padding: 16px 18px; margin: 26px 0; font-size: 16px; color: var(--muted);
}
.note strong { color: var(--ink); }
.note p:last-child { margin-bottom: 0; }
.note--warm { border-left-color: var(--warm); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 10px 0 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 4px; }
.card h3 { margin-top: 0; }
.card p { font-size: 15px; color: var(--muted); }

ul { padding-left: 20px; }
li { margin-bottom: 9px; }
dl dt { font-weight: 650; margin-top: 22px; }
dl dd { margin: 6px 0 0; color: var(--muted); }

code {
  background: var(--surface); padding: 2px 6px; border-radius: 4px;
  font-size: 0.88em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px;
}

footer.site {
  border-top: 1px solid var(--line); margin-top: 64px;
  padding: 26px 0 56px; color: var(--muted); font-size: 15px;
}
footer.site a { color: var(--muted); margin-right: 18px; }
footer.site .disclaimer { margin-top: 16px; }
