/* Settling Affairs — "a well-kept folder of papers"
   Palette (contrast on Paper): Ink 13.7:1 · Dusk 9.7:1 · Sage 8.3:1 · Brass 8.8:1.
   Envelope panels keep every text color at 7:1 or better. */
:root {
  --paper: #FAF7F0;     /* page background: warm writing paper */
  --ink: #1E2A32;       /* body text */
  --dusk: #24435C;      /* links, headings, buttons */
  --sage: #33503D;      /* the date rail and "checked" dates */
  --envelope: #F0E8D6;  /* panels, the letter desk */
  --brass: #633E09;     /* focus ring and the death-certificate marks */
  --line: #CFC3A8;      /* borders only, never text */
  --white: #FFFFFF;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 20px; } /* 1rem = 20px: the body-text floor */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--ink); }
h1 { font-size: 1.9rem; margin: .4em 0 .4em; }
h2 { font-size: 1.4rem; margin: 1.8em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.5em 0 .4em; }
p, ul, ol, dl { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .45em; }
a { color: var(--dusk); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
strong { font-weight: 700; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }
.narrow-left { max-width: 720px; }
.prose { max-width: 34em; }
.lede { font-size: 1.12rem; line-height: 1.55; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: .6em 1em; z-index: 10; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header and footer ---------- */
.site-header { background: var(--white); border-bottom: 2px solid var(--line); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3em 1.5em; padding-top: .6em; padding-bottom: .6em; }
.brand { display: inline-flex; align-items: center; gap: .45em; min-height: 48px; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand .mark, .foot-brand .mark { width: 34px; height: 34px; color: var(--dusk); flex: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.1em; }
.nav li { margin: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; font-size: 1rem; }
.nav a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 3px; }
.site-footer { margin-top: 4rem; background: var(--envelope); border-top: 2px solid var(--line); padding: 2rem 0 2.5rem; }
.foot-brand { display: flex; align-items: center; gap: .45em; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.site-footer p { max-width: 40em; }
.foot-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.4em; }
.foot-links a { display: inline-flex; min-height: 48px; align-items: center; }
.print-url { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: .55em 1.25em; border: 2px solid var(--dusk); border-radius: 8px;
  background: var(--dusk); color: var(--white); font: 700 1rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer; margin: 0 .5em .6em 0;
}
.btn:hover { background: #1A3348; border-color: #1A3348; }
.btn-quiet { background: var(--white); color: var(--dusk); }
.btn-quiet:hover { background: var(--envelope); color: var(--dusk); }
.btn-big { font-size: 1.15rem; min-height: 60px; padding: .6em 1.6em; }

/* ---------- home ---------- */
.hero-grid { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; } }
.rail-preview { background: var(--white); border: 2px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem .6rem; }
.rail-preview .rp-title { font-family: var(--serif); font-weight: 600; margin-bottom: .6em; }
.rail-preview ol { list-style: none; margin: 0 0 .6em .4em; padding: 0 0 0 1.2em; border-left: 4px solid var(--line); }
.rail-preview li { position: relative; margin-bottom: .75em; }
.rail-preview li::before { content: ""; position: absolute; left: -1.2em; margin-left: -12px; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 4px solid var(--sage); }
.rail-preview .when { display: block; font-family: var(--serif); font-weight: 600; color: var(--sage); }
.hero { padding: 2.2rem 0 1rem; }
.hero h1 { font-size: 2.2rem; max-width: 16em; margin-top: .2em; }
.hero .lede { max-width: 36em; }
.cta { margin-top: 1.4em; }
.two-col { display: grid; gap: 1rem 3rem; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.panel { background: var(--envelope); border-radius: 12px; padding: 1.3rem 1.5rem 1rem; margin-top: 1.8rem; }
.panel h2 { margin-top: 0; }
.letter-list { list-style: none; padding: 0; }
.letter-list li { margin: 0; border-top: 1px solid var(--line); }
.letter-list a { display: flex; align-items: center; min-height: 48px; padding: .25em 0; }
.guide-list, .card-list { list-style: none; padding: 0; display: grid; gap: .2rem 2.5rem; }
@media (min-width: 860px) { .guide-list { grid-template-columns: 1fr 1fr; } }
.guide-list li, .card-list li { border-top: 1px solid var(--line); padding: .7em 0 .6em; margin: 0; }
.guide-list a, .card-list a { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; }
.guide-list span, .card-list span { display: block; margin-top: .2em; }

.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 2em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.05em; height: 1.05em; border: 2px solid var(--sage); border-radius: 3px; background: var(--white); }

/* ---------- article furniture ---------- */
.crumb { margin: 1.4rem 0 0; font-size: 1rem; }
.crumb a { display: inline-block; min-height: 32px; }
.checked { color: var(--sage); font-size: 1rem; margin-top: -.3em; }
.note, .notice { background: var(--envelope); border-left: 5px solid var(--sage); padding: .8em 1.1em; border-radius: 4px; }
.notice p:last-child, .note:last-child { margin-bottom: 0; }
.not-advice { background: var(--envelope); border-radius: 8px; padding: .9em 1.2em; margin: 2em 0; max-width: 34em; }
.sources { border-top: 2px solid var(--line); margin-top: 2.5em; padding-top: .4em; max-width: 34em; }
.sources h2 { font-size: 1.2rem; }
.sources li { margin-bottom: .6em; }
.hand-checked { display: block; color: var(--sage); }
.related { margin-top: 2.5em; }
.affiliate { border: 2px solid var(--line); border-radius: 8px; padding: .8em 1.2em; margin: 2em 0; }
.aff-label { font-weight: 700; color: var(--sage); margin-bottom: .3em; }
.shop-block { background: var(--envelope); border-radius: 12px; padding: .3rem 1.5rem 1.1rem; margin: 2rem 0; max-width: 46rem; }
.shop-block h2 { margin-top: 1rem; }
.shop-block .small, .shop-block .fine { font-size: .9rem; color: var(--sage); }
.shop-block .fine { margin-bottom: 0; }
.ad-slot { margin: 2rem 0; padding: 2rem; text-align: center; border: 2px dashed var(--line); color: var(--sage); }
a.tel { white-space: nowrap; font-weight: 700; }

/* ---------- planner: questions ---------- */
.js-only { display: none; }
.js .js-only { display: block; }
.questions { background: var(--white); border: 2px solid var(--line); border-radius: 12px; padding: .4rem 1.3rem 1rem; margin: 1.5rem 0 2rem; }
.questions h2 { margin-top: .8em; }
.q { border: 0; border-top: 1px solid var(--line); margin: 0; padding: .9em 0 .5em; min-width: 0; } /* fieldsets otherwise grow to the longest <option> */
.q legend { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; padding: 0; margin-bottom: .3em; float: left; width: 100%; }
.q legend + * { clear: both; }
.q-hint { margin: 0 0 .5em; clear: both; }
.choice { display: flex; align-items: center; gap: .65em; min-height: 48px; cursor: pointer; clear: both; }
.choice input { width: 1.4em; height: 1.4em; accent-color: var(--dusk); flex: none; margin: 0; }
.date-row { display: flex; flex-wrap: wrap; gap: .6em 1.2em; clear: both; }
.date-row label, .select-label { display: flex; flex-direction: column; font-weight: 700; clear: both; }
select, input[type="text"], textarea {
  font: 1rem/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 2px solid #6B7780; border-radius: 6px; min-height: 48px; padding: .35em .5em; max-width: 100%;
}
select { padding-right: 1.6em; }
textarea { min-height: 5.2em; width: 100%; }
.q-error { color: #7A1F1F; font-weight: 700; min-height: 1em; }

/* ---------- planner: the plan ---------- */
.plan { margin: 1rem 0 2.5rem; }
.plan:focus { outline: none; }
.plan-head { border-bottom: 3px double var(--line); padding-bottom: .6em; margin-bottom: 1.2em; }
.plan-head h2 { margin-top: .4em; font-size: 1.6rem; }
.tally { background: var(--envelope); border-radius: 12px; padding: 1em 1.3em .4em; margin: 1.2em 0 1.8em; }
.tally h3 { margin-top: 0; }
.tally ul { list-style: none; padding: 0; }
.tally .n { display: inline-block; min-width: 1.5em; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--brass); }
.past-note, .skip-note { background: var(--envelope); border-left: 5px solid var(--sage); padding: .7em 1.1em; }
/* The date rail: a line down the left with each section's date on it. */
.phase { position: relative; border-left: 4px solid var(--line); margin: 0 0 1.5em .5em; padding: 0 0 .5em 1.4em; }
.phase::before { content: ""; position: absolute; left: -13px; top: .35em; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 4px solid var(--sage); }
.phase-date { font-family: var(--serif); font-weight: 600; color: var(--sage); font-size: 1.05rem; margin: 0; }
.phase-date .passed { font-family: var(--sans); font-weight: 400; display: block; font-size: 1rem; }
.phase h3 { margin: .1em 0 .3em; font-size: 1.35rem; }
.phase-intro { max-width: 34em; }
.steps { list-style: none; padding: 0; margin: 0; }
.step { display: flex; gap: .8em; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: .9em 1.1em .5em; margin-bottom: .8em; }
.tick { flex: none; padding-top: .15em; }
.tick input { width: 1.6em; height: 1.6em; accent-color: var(--sage); margin: 0; cursor: pointer; }
.step-body { min-width: 0; }
.step-title { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin: 0 0 .25em; }
.step-due { font-weight: 700; color: var(--sage); margin: 0 0 .35em; }
/* "Someone else is handling the estate": the step belongs to the executor (R3-07). */
.step-who { border-left: 4px solid var(--sage); padding-left: .8em; font-style: italic; }
.step-body p { margin-bottom: .6em; }
.step-links { padding-left: 1.1em; margin-bottom: .5em; }
.step-links li { margin-bottom: .2em; }
.cert { display: inline-block; border: 2px solid var(--brass); color: var(--brass); border-radius: 999px; padding: .05em .7em; font-weight: 700; font-size: 1rem; }
.done-line { display: none; }
.plan-foot { margin-top: 1.5em; max-width: 34em; }

/* ---------- letters ---------- */
.desk { display: grid; gap: 1.5rem; margin: 1.5rem 0 2rem; }
@media (min-width: 1000px) { .js .desk { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); align-items: start; } }
.fields { background: var(--envelope); border-radius: 12px; padding: .3rem 1.3rem 1rem; }
.fields h2 { margin-top: .8em; }
.f-note { font-size: 1rem; }
.field { margin-bottom: .9em; }
.field label { display: block; font-weight: 700; }
.field input[type="text"] { width: 100%; }
.f-hint { display: block; font-size: 1rem; }
.picks { border: 0; border-top: 1px solid var(--line); margin: 1em 0 0; padding: .8em 0 0; }
.picks legend { font-weight: 700; float: left; width: 100%; padding: 0; }
.picks .choice { align-items: flex-start; padding: .35em 0; line-height: 1.4; }
.picks .choice input { margin-top: .1em; }
.actions { margin-top: 1.2em; }
.f-status { min-height: 1.2em; font-weight: 700; color: var(--sage); }
.sheet-wrap { min-width: 0; }
.sheet {
  background: var(--white); color: #111; border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 2px 0 var(--line), 0 10px 26px rgba(30, 42, 50, .12);
  padding: 2.2rem 2rem; font-family: var(--serif); font-size: 1rem; line-height: 1.6;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) { .sheet { padding: 1.2rem .9rem; } }
.sheet p { margin-bottom: .9em; }
.sheet .ln { display: block; }
.sheet .ln.hide { display: none; }
.sheet .date { margin-top: 1.4em; }
.sheet .to { margin-top: 1.4em; }
.sheet .re { margin-top: 1.4em; }
.sheet .asks, .sheet .encl { padding-left: 1.4em; }
.sheet .pick { list-style: none; margin-left: -1.4em; padding-left: 1.4em; text-indent: -1.4em; }
.js .sheet .pick { list-style: disc; margin-left: 0; padding-left: 0; text-indent: 0; }
.js .sheet .box { display: none; }
.sheet .pick.off, .sheet .off { color: #4A545B; text-decoration: line-through; }
.fill { letter-spacing: .02em; }
.fill.filled { letter-spacing: normal; background: #FBF3DC; border-radius: 2px; }
.fill.hand { letter-spacing: .02em; }
.sign { margin-top: 1.6em; }
.sheet-title { font-weight: 600; font-size: 1.25rem; margin-bottom: .2em; }
.sheet-sub { font-family: var(--sans); font-size: 1rem; }
.summary { display: grid; grid-template-columns: 1fr; gap: 0; }
.summary dt { font-family: var(--sans); font-weight: 700; font-size: 1rem; margin-top: .7em; }
.summary dd { margin: 0; }
.sheet-label { font-family: var(--sans); font-weight: 700; margin-top: 1.4em; }
.comment { border-left: 4px solid var(--line); padding-left: .9em; }

.print-ref, .print-links { display: none; }

/* ---------- print ----------
   A printed page keeps this site's look: the envelope mark and name at the top in dusk blue with
   a rule, Literata headings, Atkinson text in large type, sage on the small things (checkbox
   outlines, the date rail), no filled panels. Outside web addresses are listed at the end
   (print-links.js). A mailed letter is the exception: it carries nothing of this site. */
@page { size: letter portrait; margin: .6in .65in .7in;
  @bottom-left { content: "settlingaffairs.com"; font: 9pt "Atkinson Hyperlegible", Verdana, sans-serif; color: #555; }
  @bottom-right { content: "Page " counter(page) " of " counter(pages); font: 9pt "Atkinson Hyperlegible", Verdana, sans-serif; color: #555; } }
@page letter { size: letter portrait; margin: .7in 1in .65in; @bottom-left { content: none; } @bottom-right { content: none; } }
@media print {
  html { font-size: 15pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; color: #000; font-size: 15pt; line-height: 1.5; }
  a { color: var(--ink); text-decoration-color: #888; }
  .nav, .site-footer, .skip, .crumb, .ad-slot, ins.adsbygoogle, .js-only, .no-print, noscript, .print-url,
  .related, button, .btn, .affiliate, .lede + .cta { display: none !important; }
  .site-header { background: none; border-bottom: 2.5pt solid var(--dusk); margin-bottom: 14pt; }
  .head-row { padding: 0 0 5pt; }
  .brand { min-height: 0; color: var(--dusk); font-size: 16pt; }
  .brand .mark { width: 26pt; height: 26pt; }
  .wrap { max-width: none; padding: 0; margin: 0; }
  .narrow, .narrow-left, .prose, .sources, .not-advice, .plan-foot, .phase-intro { max-width: 6.4in; }
  h1 { font-size: 27pt; margin: 0 0 8pt; color: var(--ink); }
  h2 { font-size: 19pt; margin: 18pt 0 6pt; color: var(--dusk); }
  h3 { font-size: 16pt; margin: 14pt 0 4pt; }
  h1, h2, h3 { break-after: avoid; }
  .lede { font-size: 16pt; }
  .checked, .hand-checked { font-size: 11.5pt; color: var(--sage); }
  p, li { orphans: 3; widows: 3; }
  li, .note, .notice, .not-advice, .panel, .tally, .past-note, .skip-note { break-inside: avoid; }
  .note, .notice, .not-advice, .panel, .tally, .past-note, .skip-note { background: none; border: 0; border-left: 4pt solid var(--sage); border-radius: 0; padding: 2pt 0 2pt 12pt; }
  .not-advice { margin: 14pt 0; }
  .checklist li::before { border-color: var(--sage); border-width: 2pt; }
  .sources { border-top: 1pt solid var(--line); margin-top: 18pt; }
  .sources h2 { font-size: 15pt; }
  .sources li { font-size: 12pt; }
  .print-ref { display: inline; font: 700 8.5pt/1 var(--sans); color: var(--dusk); margin-left: 1pt; }
  .print-links { display: block; margin-top: 20pt; padding-top: 6pt; border-top: 1pt solid var(--line); font-size: 11pt; line-height: 1.35; max-width: 6.4in; break-inside: avoid; }
  .print-links h2 { font-size: 12.5pt; margin: 0 0 4pt; color: var(--ink); }
  .print-links ol { margin: 0; padding-left: 2.2em; }
  .print-links li { margin: 0 0 2pt; overflow-wrap: anywhere; }
  a.tel { text-decoration: none; }

  /* planner: print the plan, not the questions or the explanation */
  .is-plan .explain, .is-plan main h1, .is-plan main > .wrap > .lede, .is-plan .plan-actions, .is-plan .plan-print-note { display: none !important; }
  .plan { display: block !important; margin: 0; }
  .plan-head { border-bottom: 1pt solid var(--line); margin-bottom: 10pt; padding-bottom: 4pt; }
  .plan-head h2 { margin-top: 0; font-size: 21pt; color: var(--ink); }
  .tally { margin: 8pt 0 12pt; }
  .tally h3 { font-size: 14pt; }
  .tally .n { font-size: 16pt; }
  .phase { border-left: 3pt solid var(--sage); margin: 0 0 10pt 5pt; padding: 0 0 2pt 12pt; }
  .phase::before { border-color: var(--sage); background: #fff; }
  .phase-date { font-size: 13pt; color: var(--sage); }
  .phase h3 { font-size: 17pt; margin: 0 0 4pt; }
  .plan { font-size: 13.5pt; line-height: 1.38; }
  .plan .step-links, .plan .step-who { font-size: 13pt; }
  .step { border: 1pt solid var(--line); border-radius: 0; padding: 6pt 10pt 2pt; margin-bottom: 6pt; gap: 9pt; }
  .step-title { break-after: avoid; }
  .plan li { break-inside: auto; }
  .step-title { font-size: 14pt; margin-bottom: 2pt; }
  .step-due, .cert, .step-who { color: var(--sage); }
  .cert { border-color: var(--brass); color: var(--brass); font-size: 12pt; padding: 0 8pt; }
  .step-body p { margin-bottom: 3pt; }
  .step-body .done-line { margin: 2pt 0 4pt; }
  .tick input { display: none; }
  .tick::before { content: ""; display: block; width: 17pt; height: 17pt; border: 2pt solid var(--sage); border-radius: 2pt; }
  .done-line { display: block; margin-top: 2pt; }
  .step-links li { margin-bottom: 2pt; }
  .plan a[data-u^="settlingaffairs.com"]::after { content: "  " attr(data-u); font-size: 11pt; color: #444; }

  /* letters: by default print only the letter itself, on a page of its own, as a plain personal
     letter. It carries no logo, no site name and no web address: it goes to a bank or a company. */
  .is-letter:not(.print-all) .site-header, .is-letter:not(.print-all) .print-links, .is-letter:not(.print-all) .print-ref,
  .is-letter:not(.print-all) main > .wrap > :not(.desk) { display: none !important; }
  .is-letter .desk { display: block; margin: 0; }
  .sheet { border: 0; box-shadow: none; padding: 0; border-radius: 0; font-size: 12.5pt; line-height: 1.3; color: #000; background: none; }
  .sheet p { margin-bottom: 6pt; }
  .sheet .date, .sheet .to, .sheet .re { margin-top: 9pt; }
  .sheet .sign { margin-top: 9pt; break-inside: avoid; }
  .sheet .sig-line { display: inline-block; margin-top: 10pt; }
  .sheet .asks, .sheet .encl { margin: 0 0 9pt; padding-left: 1.4em; }
  .sheet li { margin-bottom: 2pt; }
  .form-sheet { font-size: 12pt; line-height: 1.3; }
  .form-sheet .sheet-title { font-size: 16pt; margin-bottom: 2pt; }
  .form-sheet .sheet-sub, .form-sheet .summary dt, .form-sheet .sheet-label { font-size: 11.5pt; }
  .form-sheet .summary dt { margin-top: 6pt; }
  .form-sheet .sheet-label { margin-top: 10pt; }
  .fill.filled { background: none; }
  .sheet .off, .sheet .pick.off { display: none !important; }
  .sheet .ln.hide { display: none !important; }
  .is-letter:not(.print-all) .sheet { page: letter; }
  .print-all .sheet { border-top: 1pt solid var(--line); padding-top: 12pt; margin-bottom: 18pt; break-inside: avoid; }
  .print-all .sheet-title { font-size: 16pt; }
}
