/* Estate Triage — estate-triage.com
   One stylesheet. No frameworks, no build step, no web fonts.
   Palette and type are taken from the app. */

/* ---------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------- */

:root {
  /* Ground */
  --ground:      #17191d;
  --ground-lift: #1e2127;
  --rule-dark:   #34383f;

  /* Paper */
  --paper:       #eae6dc;
  --paper-lift:  #f2efe8;
  --rule:        #d5cec0;

  /* Brass.
     Three weights, because one brass cannot sit on both grounds:
     --brass       the mark, and anything on the near-black ground
     --brass-rule  borders and bullets on cream (3.4:1 — passes 1.4.11)
     --brass-light brass text on the near-black ground (9.7:1)
     --brass-deep  brass text on cream (5.8:1) */
  --brass:       #c29a47;
  --brass-rule:  #9a7526;
  --brass-light: #e0bc6a;
  --brass-deep:  #6f5316;

  /* Ink */
  --ink:         #22201c;
  --ink-muted:   #5a554b;
  --on-ground:        #eae6dc;
  --on-ground-muted:  #a9a293;

  /* Type */
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
             "Hoefler Text", Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Measure and rhythm */
  --measure: 34rem;
  --page:    64rem;
  --gutter:  clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  --section: clamp(3.5rem, 2.6rem + 4vw, 6rem);
}

/* ---------------------------------------------------------------
   2. Reset and base
   --------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  /* Large by default — this audience reads at arm's length. */
  font-size: clamp(1.125rem, 1.06rem + 0.3vw, 1.1875rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* At 200% text zoom a single display-serif word can be wider than a
     narrow phone. Break it rather than scroll the page sideways. */
  overflow-wrap: break-word;
}

/* Grid and flex items default to min-width:auto, which refuses to shrink
   below the longest word and pushes the whole page wide. */
.hero__grid > *,
.split > *,
.steps > li,
.prices > li,
.footer__grid > * { min-width: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.125rem, 1.5rem + 2.8vw, 3.375rem); }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.12rem + 0.6vw, 1.4375rem); }
h4 { font-size: 1.0625rem; }

p, li { text-wrap: pretty; }
p { margin: 0 0 1.15em; max-width: var(--measure); }

a { color: var(--brass-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

img, svg { max-width: 100%; }
strong { font-weight: 650; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ---------------------------------------------------------------
   3. Layout
   --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 44rem; }

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--rule); }

.section__label {
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.3125rem);
  color: var(--ink);
  max-width: 36rem;
}

.muted { color: var(--ink-muted); }

/* Hidden until focused, without pushing the page sideways. */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--brass-light);
  color: var(--ground);
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 20;
}
.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  clip-path: none;
}

/* ---------------------------------------------------------------
   4. Header
   --------------------------------------------------------------- */

.band-dark {
  background: var(--ground);
  color: var(--on-ground);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--on-ground);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.1875rem;
  letter-spacing: 0.005em;
  padding: 0.25rem 0;
}
.brand:hover .brand__name { text-decoration: underline; text-underline-offset: 0.2em; }
.brand__mark { display: block; width: 1.5rem; height: auto; flex: none; }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-block;
  color: var(--on-ground);
  text-decoration: none;
  font-size: 1.0625rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--brass); }
.nav a[aria-current="page"] {
  color: var(--brass-light);
  border-bottom-color: var(--brass);
}

/* ---------------------------------------------------------------
   5. Hero
   --------------------------------------------------------------- */

.hero {
  padding-block: clamp(1.5rem, 0.6rem + 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 48em) {
  .hero__grid { grid-template-columns: 1fr auto; }
}

.hero h1 {
  color: var(--paper);
  margin-bottom: 0.5em;
}

.hero__lede {
  color: var(--on-ground);
  font-size: clamp(1.1875rem, 1.08rem + 0.6vw, 1.375rem);
  line-height: 1.55;
  max-width: 32rem;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin: 0 0 1.1rem;
}

/* On a phone the tag sits above the headline, small, so the mark is part
   of the first screen. At tablet width and up it moves beside the text and
   grows into the display object it is meant to be. */
.hero__mark {
  order: -1;
  width: 4.5rem;
  height: auto;
  justify-self: start;
  margin-bottom: 0.5rem;
}

@media (min-width: 48em) {
  .hero__mark {
    order: 0;
    width: clamp(9rem, 5rem + 14vw, 13rem);
    justify-self: center;
    margin-bottom: 0;
  }
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 1.1rem;
}

.hero__note {
  color: var(--on-ground-muted);
  font-size: 1rem;
  max-width: 30rem;
  margin-bottom: 0;
}

.hero__audience {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--on-ground-muted);
  font-size: 1rem;
  max-width: 34rem;
  margin-bottom: 0;
}

/* ---------------------------------------------------------------
   6. Buttons
   --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border-radius: 3px;
  border: 2px solid transparent;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.btn--primary {
  background: var(--brass);
  border-color: var(--brass);
  color: #14161a;
}
.btn--primary:hover { background: var(--brass-light); border-color: var(--brass-light); }

.btn--quiet {
  background: transparent;
  border-color: var(--rule-dark);
  color: var(--on-ground);
}
.btn--quiet:hover { border-color: var(--brass); color: var(--brass-light); }

/* On paper */
.btn--onpaper {
  background: var(--ground);
  border-color: var(--ground);
  color: var(--paper);
}
.btn--onpaper:hover { background: #24272d; border-color: #24272d; }

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--paper); }

/* Full-width targets on phones — easier to hit, easier to read. */
@media (max-width: 30em) {
  .btn { width: 100%; }
}

/* ---------------------------------------------------------------
   7. Steps
   --------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

@media (min-width: 46em) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.steps > li {
  counter-increment: step;
  border-top: 2px solid var(--brass-rule);
  padding-top: 1.1rem;
  max-width: var(--measure);
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: 1.0625rem;
  color: var(--brass-deep);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.steps h3 { margin-bottom: 0.35em; }
.steps p { margin-bottom: 0; }

/* ---------------------------------------------------------------
   8. Cards, stamps, illustrations
   --------------------------------------------------------------- */

.card {
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.stamp {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1.5px solid var(--ink-muted);
  color: var(--ink-muted);
  border-radius: 2px;
  white-space: nowrap;
}

.stamp--appraise {
  border-color: var(--brass-deep);
  color: var(--brass-deep);
  border-width: 2px;
}

.stamp-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

/* Example item read */
.read {
  max-width: 30rem;
}
.read__lot {
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.35rem;
}
.read__name {
  font-family: var(--display);
  font-size: 1.3125rem;
  line-height: 1.25;
  margin: 0 0 0.85rem;
}
.read__value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.85rem;
}
.read__range {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.read__confidence { font-size: 0.9375rem; color: var(--ink-muted); }
.read__check {
  font-size: 1rem;
  margin: 0.85rem 0 0;
}
.read__check strong { display: block; }

/* The report illustration */
.report {
  margin: 0;
  max-width: 36rem;
}

.report__sheet {
  background: #fbfaf6;
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--rule), 0 14px 28px -22px rgba(23, 25, 29, 0.55);
  padding: clamp(1.1rem, 0.85rem + 1.2vw, 1.75rem);
  font-size: 0.9375rem;
}

.report__head {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.7rem;
  margin-bottom: 1rem;
}
.report__title {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}
.report__meta { font-size: 0.8125rem; color: var(--ink-muted); margin: 0; }

.report__flag {
  border: 1.5px solid var(--brass-deep);
  border-radius: 2px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1.1rem;
  font-size: 0.875rem;
}
.report__flag b {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.15rem;
}

.report__room {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 1.1rem 0 0.4rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--rule);
}
.report__room:first-of-type { margin-top: 0; }

.report__rows { list-style: none; margin: 0; padding: 0; }
.report__rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px dotted var(--rule);
}
.report__rows li > span:first-child { flex: 1 1 12rem; min-width: 0; }
.report__lotno {
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  margin-right: 0.5rem;
}
.report__amt { font-variant-numeric: tabular-nums; white-space: nowrap; }

.report__total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 0.7rem;
  border-top: 2px solid var(--ink);
  font-weight: 700;
}

.report figcaption,
.figure-note {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin-top: 0.9rem;
  max-width: var(--measure);
}

/* Two-column prose/figure block */
.split {
  display: grid;
  gap: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  align-items: start;
}
@media (min-width: 52em) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-first { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------------------------------------------------------------
   9. Disclaimer
   --------------------------------------------------------------- */

.disclaimer {
  border-left: 3px solid var(--brass-rule);
  padding: 0.15rem 0 0.15rem 1.1rem;
  margin: 2rem 0 0;
  max-width: 36rem;
  font-size: 1rem;
  color: var(--ink);
}
.disclaimer p { margin: 0; max-width: none; }

.band-dark .disclaimer { color: var(--on-ground); }

/* ---------------------------------------------------------------
   10. Pricing
   --------------------------------------------------------------- */

.prices {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 46em) {
  .prices { grid-template-columns: repeat(3, 1fr); }
}

.price {
  display: flex;
  flex-direction: column;
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.4rem;
}
.price--feature { border: 2px solid var(--brass-rule); }

.price__name {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 0.5rem;
}
.price__amount {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 0.15rem;
}
.price__unit { font-size: 0.9375rem; color: var(--ink-muted); margin: 0 0 0.9rem; }
.price ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 1rem;
}
.price li { margin-bottom: 0.35rem; }

.promise {
  font-family: var(--display);
  font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
  line-height: 1.3;
  max-width: 26rem;
  margin: 0 0 0.9rem;
}

/* ---------------------------------------------------------------
   11. FAQ and prose lists
   --------------------------------------------------------------- */

.faq { max-width: 40rem; }
.faq h3 { margin-top: 2.25rem; margin-bottom: 0.4em; }
.faq h3:first-of-type { margin-top: 0; }

.checklist {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  max-width: var(--measure);
}
.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 0.6rem;
  border: 2px solid var(--brass-rule);
  border-radius: 50%;
}

.plainlist { padding-left: 1.2rem; max-width: var(--measure); }
.plainlist li { margin-bottom: 0.6rem; }

/* ---------------------------------------------------------------
   12. Notices (draft banners, callouts)
   --------------------------------------------------------------- */

.notice {
  border: 2px solid var(--brass-deep);
  border-radius: 4px;
  background: var(--paper-lift);
  padding: 1.1rem 1.25rem;
  margin: 0 0 2.25rem;
  max-width: 42rem;
}
.notice__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.35rem;
}
.notice p { margin: 0; max-width: none; font-size: 1rem; }
.notice p + p { margin-top: 0.6rem; }

.callout {
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass-rule);
  border-radius: 0 4px 4px 0;
  padding: 1.1rem 1.25rem;
  margin: 2rem 0;
  max-width: 42rem;
}
.callout p { margin: 0; max-width: none; }
.callout p + p { margin-top: 0.6rem; }

.email {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem);
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------
   13. Legal documents
   --------------------------------------------------------------- */

.legal { max-width: 42rem; }
.legal h2 {
  font-size: clamp(1.3125rem, 1.2rem + 0.6vw, 1.5rem);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.legal h2:first-of-type { margin-top: 2rem; }
.legal h3 { margin-top: 1.75rem; font-size: 1.125rem; }
.legal ul { padding-left: 1.2rem; max-width: var(--measure); }
.legal li { margin-bottom: 0.55rem; }
.legal p, .legal li { font-size: 1.0625rem; }

.legal .caps {
  /* Statutory all-caps blocks: keep them readable rather than shouty. */
  font-variant: normal;
  letter-spacing: 0.005em;
}

.doc-meta {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.doc-meta > span { display: block; }   /* direct children only — the inline .placeholder must stay inline */

.placeholder {
  font-family: var(--body);
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #e2d7b8;
  color: #4a3a10;
  padding: 0.05em 0.35em;
  border-radius: 2px;
}

/* ---------------------------------------------------------------
   14. Page header (interior pages)
   --------------------------------------------------------------- */

.page-head {
  padding-block: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  border-bottom: 1px solid var(--rule);
}
.page-head h1 { margin-bottom: 0.35em; }
.page-head .lede { margin-bottom: 0; }

/* ---------------------------------------------------------------
   15. Footer
   --------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(2.75rem, 2rem + 3vw, 4rem);
  font-size: 1rem;
}

.site-footer h2 {
  font-size: 0.75rem;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ground-muted);
  margin: 0 0 0.9rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 40em) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.15rem; }
.site-footer a {
  display: inline-block;
  color: var(--paper);
  padding: 0.45rem 0;
  text-underline-offset: 0.2em;
}
.site-footer a:hover { color: var(--brass-light); }

.footer__fine {
  border-top: 1px solid var(--rule-dark);
  padding-top: 1.75rem;
  color: var(--on-ground-muted);
  font-size: 0.9375rem;
}
.footer__fine p { max-width: 42rem; margin-bottom: 0.9rem; }
.footer__fine p:last-child { margin-bottom: 0; }
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-family: var(--display);
  font-size: 1.125rem;
  color: var(--paper);
}
.footer__brand svg { width: 1.25rem; height: auto; }

/* ---------------------------------------------------------------
   16. Print
   --------------------------------------------------------------- */

@media print {
  .band-dark, .site-header, .nav, .hero__mark, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  .section + .section { border-top: 1px solid #999; }
}
