:root {
  --ink: #1c1712;
  --ink-soft: #4a4138;
  --paper: #f4efe6;
  --paper-2: #fffaf2;
  --rule: #d8cbb8;
  --copper: #9a4a24;
  --copper-dark: #7a3518;
  --navy: #1b2a3a;
  --navy-2: #24384c;
  --ok: #1e5b3a;
  --ok-bg: #e6f3ea;
  --warn: #8a5a00;
  --warn-bg: #f8eed6;
  --danger: #8b1e1e;
  --danger-bg: #f8e6e4;
  --shadow: 0 10px 30px rgba(28, 23, 18, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--copper-dark); }
a:hover { color: var(--copper); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 12px;
  z-index: 10;
}

header.site {
  background: var(--navy);
  color: #f4efe6;
  padding: 1.1rem 0 1rem;
}
header.site a { color: inherit; text-decoration: none; }
header.site .wrap, footer.site .wrap, main .wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  font-weight: 600;
}
.brand span { color: #e0b48a; font-weight: 500; }
nav.site { display: flex; gap: 1.15rem; font-size: 0.95rem; }
nav.site a { opacity: 0.9; border-bottom: 1px solid transparent; padding-bottom: 2px; }
nav.site a:hover, nav.site a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: #e0b48a;
}

.hero {
  padding: 3.2rem 0 2.4rem;
  background:
    radial-gradient(1200px 280px at 80% 0%, rgba(154, 74, 36, 0.08), transparent 60%),
    var(--paper);
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--copper);
  font-weight: 700;
  margin: 0 0 0.7rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: 1.65rem; margin: 0 0 0.7rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 42rem; margin: 0 0 1.6rem; }

.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--copper);
  color: #fffaf2 !important;
  text-decoration: none;
  padding: 0.75rem 1.15rem;
  border-radius: 4px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn:hover { background: var(--copper-dark); }
.btn.secondary {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--rule);
}
.btn.secondary:hover { background: #efe6d8; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  margin: 0.5rem 0 2.5rem;
}
@media (max-width: 800px) {
  .split, .cards, .form-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}
.card ol, .card ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.card li { margin: 0.35rem 0; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.92rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 2.5rem;
}
.cards article { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 8px; padding: 1.15rem; }
.num {
  font-family: var(--serif);
  color: var(--copper);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.35rem;
}

.notice, .status {
  border-radius: 6px;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
}
.notice.warn, .status.pending { background: var(--warn-bg); color: var(--warn); border: 1px solid #e5d3a4; }
.notice.ok, .status.ready { background: var(--ok-bg); color: var(--ok); border: 1px solid #b9d8c3; }
.notice.danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #e3b8b4; }

table.rates {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-2);
  margin: 0.8rem 0 1.5rem;
  font-size: 0.95rem;
}
table.rates th, table.rates td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}
table.rates th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
blockquote.quote {
  margin: 0.6rem 0 1rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--copper);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

form.check { display: grid; gap: 0.9rem; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }
label .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; margin-top: 0.15rem; }
input, select {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid #c9bba6;
  border-radius: 4px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus { outline: 2px solid #c9845a; border-color: var(--copper); }
.check-row { display: flex; align-items: flex-start; gap: 0.55rem; }
.check-row input { width: auto; margin-top: 0.25rem; }
.check-row label { font-weight: 500; }

.result { margin-top: 0.4rem; }
.result .line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--rule);
}
.result .total {
  font-family: var(--serif);
  font-size: 1.35rem;
  border-bottom: 0;
  padding-top: 0.85rem;
}
.money { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 0.95em; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

footer.site {
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 2.5rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
footer.site p { max-width: 48rem; }
section { margin: 0 0 2.2rem; }
.legal { font-size: 0.92rem; color: var(--ink-soft); }

fieldset.optional-fees {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.75rem 1rem 0.9rem;
  margin: 0.8rem 0 0;
}
fieldset.optional-fees legend { font-weight: 650; padding: 0 0.3rem; }
fieldset.optional-fees .hint { margin: 0.2rem 0 0.5rem; color: var(--ink-soft); font-size: 0.85rem; }
.email-draft {
  white-space: pre-wrap;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 0.9rem 1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-x: auto;
}
.report-doc h1 { font-size: 2rem; }
.guide-body { max-width: 46rem; }
.guide-body p { margin: 0 0 1rem; }
.guide-list { display: grid; gap: 1rem; margin: 0 0 2rem; }
.guide-list a { text-decoration: none; color: inherit; }
@media print {
  header.site, footer.site, .skip, .hero .actions, #report-form, #checkout-panel, nav.site { display: none !important; }
  body { background: #fff; }
  .report-doc { box-shadow: none; }
}
