/* Pine and Brass: surveyor's instrument sheet (redesign Oct 16, 2026)
   Locked palette: pine #1E3A2F, brass bright #C6A15B, aged brass #8C6D1F,
   cream/parchment #F4EDDE, ink #101D16, survey-grid tint #DCE5D8.
   Type: Fraunces (display, optical sizes), Inter (body/UI),
   IBM Plex Mono (the instrument layer: APNs, bearings, deadlines, figures).
   Corners tight (2-3px), shadows near zero. One line weight: 1.5px. */

:root {
  --pine: #1E3A2F;
  --pine-dark: #122A20;
  --brass: #C6A15B;
  --brass-aged: #8C6D1F;
  --brass-soft: #DCC084;
  --sand: #E9DFC6;
  --sand-line: #D9CCA6;
  --cream: #F4EDDE;
  --paper: #FBF7EB;
  --grid-tint: #DCE5D8;
  --ink: #101D16;
  --muted: #5A665C;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  color: var(--pine);
  line-height: 1.14;
  margin: 0 0 0.5em 0;
}
h1 { font-size: 2.55rem; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; font-weight: 600; margin-top: 1.6em; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em 0; }
a { color: var(--pine); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass-aged); }

.mono { font-family: var(--mono); }

/* Kicker: mono instrument label with a brass lead rule */
.kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--brass-aged);
  margin: 0 0 0.9em 0;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--brass);
  vertical-align: middle;
  margin-right: 10px;
  position: relative;
  top: -2px;
}

/* Header: pine band, instrument nav */
header.site {
  background: var(--pine);
  color: var(--cream);
  border-bottom: 3px solid var(--brass);
}
header.site .wrap { padding-top: 22px; padding-bottom: 18px; }
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-top: 3px;
}
nav.main { margin-top: 15px; }
nav.main a {
  font-family: var(--mono);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 22px;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
nav.main a:hover { border-bottom-color: var(--brass); color: #fff; }

/* Layout blocks */
main .wrap { padding-top: 38px; padding-bottom: 30px; }
section { margin-bottom: 34px; }

.card {
  background: var(--paper);
  border: 1px solid var(--sand-line);
  border-radius: 3px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 0.3em; }
.card p:last-child { margin-bottom: 0; }

.grid { display: block; }
@media (min-width: 760px) {
  .grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
  .grid .card { margin-bottom: 0; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.price {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-size: 1.4rem;
  color: var(--pine);
  font-weight: 600;
}
.price .price-sub { font-size: 1.05rem; color: var(--brass-aged); }
.spec-line {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: -0.4em 0 1em 0;
}
.small { font-size: 0.9rem; color: var(--muted); }

.stamp {
  display: inline-block;
  border: 2px solid var(--brass-aged);
  color: var(--pine);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 2px;
  transform: rotate(-1.2deg);
  background: rgba(198, 161, 91, 0.08);
  margin-bottom: 14px;
}

.btn {
  display: inline-block;
  background: var(--pine);
  color: var(--cream);
  text-decoration: none;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--pine);
  border-radius: 2px;
  margin: 4px 8px 4px 0;
}
.btn:hover { background: var(--pine-dark); color: #fff; }
.btn.alt {
  background: transparent;
  color: var(--pine);
  border: 1px solid var(--brass-aged);
}
.btn.alt:hover { background: rgba(198, 161, 91, 0.14); color: var(--pine); }

/* Ledger lists: ruled rows, hairlines */
ul.ledger { list-style: none; padding: 0; margin: 0 0 1em 0; }
ul.ledger li {
  padding: 10px 2px;
  border-bottom: 1px solid var(--sand-line);
}
ul.ledger li:last-child { border-bottom: none; }

table { border-collapse: collapse; width: 100%; margin: 0 0 1em 0; background: var(--paper); }
th, td { text-align: left; padding: 10px 12px; border: 1px solid var(--sand-line); vertical-align: top; }
th {
  background: var(--sand);
  color: var(--pine);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.example {
  background: var(--paper);
  border: 1px solid var(--sand-line);
  border-left: 5px solid var(--brass);
  border-radius: 3px;
  padding: 20px 24px;
  margin: 0 0 18px 0;
}
.example p:last-child { margin-bottom: 0; }

.fineprint { font-size: 0.88rem; color: var(--muted); }

/* ---- Survey Rule divider: dashed survey line with a bearing label ---- */
.survey-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 34px 0;
}
.survey-rule::before,
.survey-rule::after {
  content: "";
  flex: 1 1 auto;
  border-top: 1.5px dashed var(--brass-aged);
  opacity: 0.65;
}
.survey-rule span {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--brass-aged);
  white-space: nowrap;
}

/* ---- Chips: small caps status labels (LandWatch pattern) ---- */
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid var(--brass-aged);
  color: var(--brass-aged);
  background: transparent;
  white-space: nowrap;
}
.chip.pine { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.chip.line { border-color: var(--sand-line); color: var(--muted); }

/* ---- Parcel Card: fixed-position data triplet ---- */
.parcel-card {
  background: var(--paper);
  border: 1px solid var(--sand-line);
  border-top: 3px solid var(--brass);
  border-radius: 3px;
  padding: 20px 22px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 760px) { .grid .parcel-card { margin-bottom: 0; } }
.parcel-card .parcel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.parcel-card .plat-thumb { flex: 0 0 auto; }
.parcel-card h3 { margin-bottom: 0.35em; }
.parcel-card .parcel-desc { flex: 1 1 auto; }
.triplet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  border-top: 1px solid var(--sand-line);
  padding-top: 12px;
  margin-top: 4px;
}
.triplet .t-fig {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--pine);
  text-transform: uppercase;
}
.triplet .t-price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pine);
}
.triplet .t-status { margin-left: auto; }

/* ---- Stat band: real numbers, set huge (Acres pattern) ---- */
.stat-band {
  background: var(--pine);
  border-radius: 3px;
  padding: 26px 28px 20px 28px;
  margin-bottom: 18px;
}
.stat-band .stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 28px;
}
@media (min-width: 760px) {
  .stat-band .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat-band .stat-num {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-size: 2.7rem;
  font-weight: 600;
  line-height: 1;
  color: var(--cream);
  display: block;
}
.stat-band .stat-num .plus { color: var(--brass); }
.stat-band .stat-lab {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-soft);
  display: block;
  margin-top: 8px;
}

/* ---- County Ledger table ---- */
.ledger-table { background: var(--paper); border: 1px solid var(--sand-line); }
.ledger-table th {
  background: var(--grid-tint);
  border: none;
  border-bottom: 2.5px solid var(--brass-aged);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--pine);
}
.ledger-table td {
  border: none;
  border-bottom: 1px solid var(--sand-line);
}
.ledger-table tr:last-child td { border-bottom: none; }
.ledger-table .c-name { font-weight: 600; color: var(--pine); }
.ledger-table .c-date {
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.ledger-table .c-date .iso { color: var(--muted); font-size: 0.76rem; display: block; }
.table-scroll { overflow-x: auto; }

/* ---- Stacked cards: wide tables become per-row cards on narrow screens
   (Oct 21, 2026, page-audit D2/D3/D6). One pattern for every .stack-cards
   table: under the site's 760px breakpoint the header row retires, each
   row becomes a card, and each cell prints its column label from
   data-label (the label text is the column header's own text). Rows are
   records (a county sale), so a card keeps each record whole instead of
   asking the reader to pan a 3-5 column table and hold the row in
   memory. Desktop rendering is untouched. */
@media (max-width: 760px) {
  .stack-cards { display: block; width: 100%; border: none; background: transparent; }
  .stack-cards thead { display: none; }
  .stack-cards tbody { display: block; }
  .stack-cards tr {
    display: block;
    background: var(--paper);
    border: 1px solid var(--sand-line);
    margin: 0 0 12px 0;
    padding: 4px 14px 8px;
  }
  .stack-cards tr[hidden] { display: none; }
  .stack-cards td {
    display: block;
    border: none;
    border-bottom: 1px solid var(--sand-line);
    padding: 8px 0;
  }
  .stack-cards tr td:last-child { border-bottom: none; }
  .stack-cards td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brass-aged);
    margin-bottom: 2px;
  }
  /* The first cell is the card's title line: it carries no label. */
  .stack-cards td:first-child { padding-top: 10px; }
  /* Dates may wrap inside a card; nothing is ever cut mid-glyph. */
  .stack-cards .c-date { white-space: normal; }
}

/* ---- Contour texture (Land id pattern): subject-drawn, low opacity ---- */
.contours {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560'%3E%3Cg fill='none' stroke='%231E3A2F' stroke-opacity='0.08' stroke-width='1.5'%3E%3Cpath d='M-20 90 C 110 30, 250 140, 400 80 C 480 50, 540 70, 580 55'/%3E%3Cpath d='M-20 140 C 110 80, 250 190, 400 130 C 480 100, 540 120, 580 105'/%3E%3Cpath d='M-20 330 C 90 390, 230 290, 380 350 C 470 385, 530 350, 580 380'/%3E%3Cpath d='M-20 385 C 90 445, 230 345, 380 405 C 470 440, 530 405, 580 435'/%3E%3Cpath d='M120 560 C 150 440, 90 380, 140 300 C 180 235, 130 170, 175 60'/%3E%3Cpath d='M175 560 C 205 440, 145 380, 195 300 C 235 235, 185 170, 230 60'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---- The Seal: engraved-style circular badge (footer + about only) ---- */
.seal { color: var(--brass-soft); flex: 0 0 auto; }
.seal.on-cream { color: var(--pine); }
.seal text {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 1.5px;
  fill: currentColor;
}
.foot-brand { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 6px; }
.foot-brand .foot-lines p { margin-bottom: 0.5em; }

/* ---- Hero: plat map on pine + live calculator docked in the left column ---- */
.hero {
  border-bottom: 1px solid var(--sand-line);
  padding: 46px 0 44px 0;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
  grid-template-areas: "copy" "calc" "map";
}
@media (min-width: 1020px) {
  .hero-inner {
    grid-template-columns: minmax(360px, 5fr) 7fr;
    grid-template-areas: "copy map" "calc map";
  }
}
.hero-copy { grid-area: copy; }
.hero-copy h1 { font-size: 2.9rem; margin-bottom: 0.35em; }
.hero-copy p { max-width: 34em; }
.hero-map { grid-area: map; min-width: 0; }
.hero-map figure { margin: 0; }
.hero-map svg { display: block; width: 100%; height: auto; border-radius: 3px; }
.hero-map figcaption {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 9px;
}

/* Hero calculator: the instrument panel */
.calc {
  grid-area: calc;
  background: var(--paper);
  border: 1px solid var(--sand-line);
  border-top: 3px solid var(--brass);
  border-radius: 3px;
  padding: 18px 20px 16px 20px;
  max-width: 560px;
}
.calc .calc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--sand-line);
  padding-bottom: 9px;
  margin-bottom: 13px;
}
.calc .calc-title {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
}
.calc .calc-unit {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--brass-aged);
  text-transform: uppercase;
  white-space: nowrap;
}
.calc label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 4px 0;
}
.calc input[type="number"], .calc select {
  width: 100%;
  padding: 8px 9px;
  font: inherit;
  font-size: 0.98rem;
  border: 1px solid var(--sand-line);
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
  margin-bottom: 11px;
}
.calc .calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.calc .calc-fields .wide { grid-column: 1 / -1; }
.calc .preset-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: -4px 0 10px 0;
}
.calc .readouts { border-top: 1px solid var(--sand-line); margin-top: 3px; padding-top: 11px; }
.calc .readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 3px 0;
}
.calc .readout .r-lab {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc .readout .r-val {
  font-family: var(--mono);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--pine);
  white-space: nowrap;
}
.calc .readout.verdict-row { border-top: 1px solid var(--sand-line); margin-top: 7px; padding-top: 10px; }
.calc .readout.verdict-row .r-lab { color: var(--brass-aged); font-weight: 600; }
.calc .readout.verdict-row .r-val { font-size: 1.45rem; font-weight: 600; }
.calc .calc-verdict { font-size: 0.92rem; margin: 10px 0 6px 0; }
.calc .calc-more { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
/* Desk label: names which desk a hero artifact belongs to (front-door rule) */
.calc .calc-desk {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-aged);
  margin: 0 0 11px 0;
}
.calc .calc-desk::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--brass);
  margin-right: 9px;
}

/* ---- Two-door router: the front door's self-selection layer ---- */
.router { max-width: 1180px; margin: 30px auto 0 auto; padding: 0 20px; }
.router-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .router-grid { grid-template-columns: 1fr 1fr; } }
.door {
  background: var(--paper);
  border: 1px solid var(--sand-line);
  border-top: 3px solid var(--brass);
  border-radius: 3px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}
.door .door-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.door .door-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-aged);
}
.door h3 { font-size: 1.3rem; margin-bottom: 0.35em; }
.door p { flex: 1 1 auto; }
.door .door-links {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--sand-line);
  padding-top: 12px;
  margin: 4px 0 0 0;
}
.door .door-links .sep { color: var(--brass); margin: 0 8px; }

/* Filed figures row (worked examples) */
.filed-figs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  border-top: 1px solid var(--sand-line);
  border-bottom: 1px solid var(--sand-line);
  padding: 12px 0;
  margin: 0 0 14px 0;
}
.filed-figs .f-lab {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
.filed-figs .f-val {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pine);
}

/* Footer */
footer.site {
  background: var(--pine-dark);
  color: var(--cream);
  border-top: 3px solid var(--brass);
  margin-top: 40px;
}
footer.site .wrap { padding-top: 26px; padding-bottom: 30px; }
footer.site a { color: var(--brass-soft); }
footer.site p { margin-bottom: 0.5em; }
footer.site .small { color: #B9C2B4; }

/* Kit signup forms: plain HTML forms posting to Kit. */
.kit-form .email-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-form input[type="email"] {
  flex: 1 1 240px;
  font-family: inherit;
  font-size: 1rem;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--sand-line);
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
}
.kit-form button { min-height: 44px; cursor: pointer; }

/* Mobile tap targets: taller touch area on small screens. */
@media (max-width: 760px) {
  main a, footer.site a {
    display: inline-block;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .hero-copy h1 { font-size: 2.25rem; }
  .calc .calc-fields { grid-template-columns: 1fr 1fr; }
  .triplet .t-status { margin-left: 0; }
}
