:root {
    --linen:#fbf8f1; --card:#fffdf6; --hairline:#e6dfd0; --rule:#efe8d8;
    --ink:#37342c; --ink-2:#7a7466; --oxblood:#6b3a2e;
    --chip-bg:#efe9db; --chip-ink:#79603a;
    --sky-top:#3d7dae; --sky-mid:#6aa5c8; --sky-bot:#a8cbd8;
    --panel:#161b21; --panel-ink:#d7dde2; --phosphor:#6fe3a1; --amber:#ffb454;
    --serif:ui-serif,Georgia,"Iowan Old Style","Times New Roman",serif;
    --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
    --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
    /* ONE reading measure for every prose block (s122). There were six different
       caps — h1 26ch, lede 56ch, .sub 62ch, p 66ch, .panel p 64ch, .note 72ch —
       so at 1280px the right edges landed at 970/784/1108/777/807: an h2 running
       331px past its own paragraph. That ragged edge is what read as "the text
       layout is not consistent, heavily weighted to one side". */
    --measure:41rem;
    /* Headings get a WIDER measure than prose (s124c, founder: subheadings were
       "scrunched and bunched" — text-wrap:balance splits a 2-line heading into two
       equal SHORT lines, so a 41rem cap broke headlines that fit comfortably in one
       line at 54rem. Prose stays at the readable 41rem measure). */
    --measure-head:54rem;
  }
  @media (prefers-color-scheme: dark){:root{
    --linen:#1c1a16;--card:#262219;--hairline:#3b352a;--rule:#332e24;
    --ink:#e8e4da;--ink-2:#a59d8d;--oxblood:#d29a89;
    --chip-bg:#332d21;--chip-ink:#c9b283;
    --sky-top:#274f6f;--sky-mid:#3d6584;--sky-bot:#54748c;}}
  :root[data-theme="dark"]{
    --linen:#1c1a16;--card:#262219;--hairline:#3b352a;--rule:#332e24;
    --ink:#e8e4da;--ink-2:#a59d8d;--oxblood:#d29a89;
    --chip-bg:#332d21;--chip-ink:#c9b283;
    --sky-top:#274f6f;--sky-mid:#3d6584;--sky-bot:#54748c;}
  :root[data-theme="light"]{
    --linen:#fbf8f1;--card:#fffdf6;--hairline:#e6dfd0;--rule:#efe8d8;
    --ink:#37342c;--ink-2:#7a7466;--oxblood:#6b3a2e;
    --chip-bg:#efe9db;--chip-ink:#79603a;
    --sky-top:#3d7dae;--sky-mid:#6aa5c8;--sky-bot:#a8cbd8;}

  *{box-sizing:border-box}
  body{margin:0;background:var(--linen);color:var(--ink);font:16px/1.62 var(--sans);-webkit-font-smoothing:antialiased}
  .wrap{max-width:980px;margin:0 auto;padding:0 22px 84px}

  .sky{background:linear-gradient(168deg,var(--sky-top) 0%,var(--sky-mid) 55%,var(--sky-bot) 100%);color:#fff;padding:26px 0 46px}
  .sky-inner{max-width:980px;margin:0 auto;padding:0 22px}
  .brand{font-family:var(--mono);font-size:11.5px;letter-spacing:.22em;text-transform:uppercase;opacity:.92;margin:0}

  /* Masthead: brand left, menu button right (s122). Six pills wrapped to three
     rows on a phone and pushed the h1 below the fold — the nav was outranking the
     value proposition on exactly the surface where it must not. */
  /* The bottom margin is load-bearing on phones: the gap under the lockup used to
     come from nav's own margin, and hiding nav collapsed it away — the h1 ran
     straight into the brand descriptor. Desktop zeroes it because nav supplies the
     gap there. */
  .masthead{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:26px}
  @media(min-width:900px){.masthead{margin-bottom:0}}

  /* CSS-only disclosure. Hidden but FOCUSABLE (never display:none) so the control
     is reachable by keyboard and Space toggles it. See the note in build_site.py
     for why this is a checkbox and not <details>. */
  .navtoggle{position:absolute;width:1px;height:1px;opacity:0;margin:0;pointer-events:none}
  .navbtn{
    display:inline-flex;align-items:center;gap:9px;cursor:pointer;flex:none;margin-top:3px;
    font:600 12.5px/1 var(--serif);letter-spacing:.02em;color:#fff;
    background:transparent;border:1.5px solid rgba(255,255,255,.5);border-radius:4px;padding:9px 13px}
  /* Three EVENLY spaced rules (founder, s122: the first cut read as an unfamiliar
     glyph rather than a menu). Top and bottom are the pseudo-elements, the middle
     is a centred background stripe: lines at 0 / 5 / 10 in a 12px box, so both
     gaps are exactly 3px. */
  .navbtn .bars{
    display:block;width:16px;height:12px;position:relative;
    background:linear-gradient(currentColor,currentColor) center/100% 2px no-repeat}
  .navbtn .bars::before,.navbtn .bars::after{
    content:"";position:absolute;left:0;right:0;height:2px;background:currentColor}
  .navbtn .bars::before{top:0}
  .navbtn .bars::after{bottom:0}
  .navtoggle:focus-visible + .masthead .navbtn{outline:2px solid #fff;outline-offset:3px}
  /* Below 480px the word costs ~50px the brand needs: with it, "Twin Cities
     property record" cannot fit beside the button and wraps onto two lines. The
     icon alone is the affordance, and aria-label on the control keeps the
     accessible name — the descriptor is brand copy and stays intact rather than
     being shortened. */
  @media(max-width:479px){
    .navlabel{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
    .navbtn{padding:10px 11px;gap:0}
  }
  /* nowrap keeps "Twin Cities property record" on one line beside the button at
     normal phone widths. Below 360px it cannot fit and nowrap forced the PAGE into
     horizontal scroll (measured: 344px of content in a 320px viewport), so the
     smallest screens wrap it instead. Wrapping is the right trade over hiding it —
     the descriptor is brand copy, and the masthead's own bottom margin already
     stops a second line from colliding with the h1. */
  .brandmark small{white-space:nowrap}
  @media(max-width:359px){.brandmark small{white-space:normal}}

  /* Collapsed by default at phone widths; the desktop rule below restores the
     inline pills. Failure direction is deliberate — see build_site.py.

     Opening it must not simply re-show the same wrapped pill rows (founder, s122:
     "it would be better as a dropdown"). Below 720px the nav becomes an anchored
     PANEL: absolutely positioned with top:auto, so it keeps its static position
     directly beneath the masthead while right:0 pulls it under the button, and it
     overlays the page instead of shoving the h1 down. Stacked rows, ink on card —
     it reads as a menu, not as the nav that was already there. */
  nav a{
    text-decoration:none;display:inline-block;
    /* FLUID pills (s124c, founder: the nav must move with the window without
       compromising order) — font and padding compress smoothly with viewport width,
       so nine items hold one tidy line from ~900px up; below 900px the disclosure
       menu takes over rather than allowing a ragged two-line wrap. */
    font:600 clamp(10px,1.05vw,10.7px)/1 var(--serif);letter-spacing:.012em;color:#fff;cursor:pointer;
    background:transparent;border:1.5px solid rgba(255,255,255,.5);border-radius:4px;
    padding:7px clamp(5px,0.8vw,8px);white-space:nowrap;
  }
  nav a[aria-current="page"]{background:#fff;color:var(--sky-top);border-color:#fff}
  nav a:focus-visible{outline:2px solid #fff;outline-offset:3px}

  nav{display:none;flex-wrap:wrap;gap:clamp(3px,0.4vw,5px);row-gap:6px;margin:15px 0 30px}
  .navtoggle:checked ~ nav{display:flex}
  .navscrim{display:none}

  @media(max-width:899px){
    .sky-inner{position:relative}
    nav{
      position:absolute;right:0;top:auto;z-index:20;
      flex-direction:column;flex-wrap:nowrap;gap:0;margin:0;min-width:15rem;max-width:min(19rem,calc(100vw - 44px));
      background:var(--card);border:1px solid var(--hairline);border-radius:8px;padding:5px;
      box-shadow:0 14px 34px rgba(0,0,0,.30)}
    nav a{
      color:var(--ink);background:transparent;border:0;border-radius:5px;
      font:600 14px/1.3 var(--serif);padding:11px 12px;width:100%}
    nav a + a{border-top:1px solid var(--rule);border-radius:0}
    nav a[aria-current="page"]{background:var(--chip-bg);color:var(--chip-ink);border-color:transparent}
    nav a:focus-visible{outline:2px solid var(--oxblood);outline-offset:-2px}
    /* Tap anywhere to dismiss — what makes it behave like a dropdown rather than a
       panel you can only close from the one button that opened it. */
    .navtoggle:checked ~ .navscrim{display:block;position:fixed;inset:0;z-index:15}
  }

  @media(min-width:900px){
    .navbtn{display:none}
    nav{display:flex;margin:18px 0 30px}
  }
  /* s122: max-width was 19ch against h1s of 40-72 characters, so every headline
     was forced into a narrow left column with dead space beside it (on a 390px
     phone it used ~266px of ~346px available — the "crowded to the left" read).
     It also left text-wrap:balance nothing to balance. 26ch sets the 58-char
     statement as two lines and the 72-char one as three. */
  h1{font-family:var(--serif);font-weight:600;letter-spacing:-.015em;font-size:clamp(28px,4.4vw,45px);line-height:1.1;margin:0 0 14px;text-wrap:balance;max-width:var(--measure-head)}
  .lede{font-size:clamp(15.5px,1.8vw,18px);line-height:1.55;max-width:var(--measure);margin:0;opacity:.96}
  .who{display:inline-block;font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;background:rgba(255,255,255,.18);border-radius:4px;padding:4px 10px;margin-bottom:14px}

  section{margin-top:40px}
  h2{max-width:var(--measure-head)}
  h2{font-family:var(--serif);font-weight:600;font-size:clamp(21px,2.5vw,27px);line-height:1.2;margin:0 0 6px;text-wrap:balance;letter-spacing:-.01em}
  .sub{color:var(--ink-2);margin:0 0 18px;max-width:var(--measure);font-size:15.5px}
  p{max-width:var(--measure)}

  .card{background:var(--card);border:1px solid var(--hairline);border-radius:6px;padding:19px 21px}
  .grid{display:grid;gap:13px}
  @media(min-width:720px){.grid.two{grid-template-columns:1fr 1fr}}
  @media(min-width:900px){.grid.three{grid-template-columns:repeat(3,1fr)}}
  .card h3{font-family:var(--serif);font-size:17px;font-weight:600;margin:0 0 7px;letter-spacing:-.005em}
  .card p{font-size:14.5px;line-height:1.57;color:var(--ink-2);margin:0}

  .row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:8px 0;border-bottom:1px solid var(--rule);font-size:14.4px}
  .row:last-of-type{border-bottom:0}
  .val{font-family:var(--mono);font-size:12.2px;color:var(--oxblood);letter-spacing:.03em;text-align:right;font-variant-numeric:tabular-nums}
  .prov{font-size:12.9px;font-style:italic;color:var(--ink-2);margin:10px 0 0;padding-top:10px;border-top:1px solid var(--rule)}

  .chip{display:inline-block;background:var(--chip-bg);color:var(--chip-ink);border-radius:4px;padding:3px 9px;font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase}
  .chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}

  .panel{background:var(--panel);color:var(--panel-ink);border-radius:6px;padding:19px 21px;border:1px solid #222a33}
  .panel h3{color:#f2f5f7;font-family:var(--serif);font-size:16.5px;margin:0 0 8px}
  .panel p{color:#8b98a3;font-size:14.2px;margin:0;max-width:var(--measure)}
  .reading{font-family:var(--mono);font-size:12.5px;color:var(--phosphor);letter-spacing:.04em}

  .note{background:var(--chip-bg);border-radius:6px;padding:15px 17px;font-size:14px;color:var(--chip-ink);max-width:var(--measure)}
  .note strong{color:var(--ink)}
  .divider{border:0;border-top:1px solid var(--hairline);margin:40px 0 0}
  footer{margin-top:42px;color:var(--ink-2);font-size:13.6px}
  a{color:var(--oxblood);font-weight:600}
  a:focus-visible{outline:2px solid var(--oxblood);outline-offset:3px}

  form.contact{display:grid;gap:12px;max-width:640px}
  .field{display:grid;gap:5px}
  .field label{font-family:var(--serif);font-size:14px;font-weight:600}
  .field .hint{font-size:12.5px;color:var(--ink-2)}
  .field input,.field select,.field textarea{
    font:15px/1.5 var(--sans);color:var(--ink);background:var(--card);
    border:1px solid var(--hairline);border-radius:4px;padding:9px 11px;width:100%;
  }
  .field textarea{min-height:118px;resize:vertical}
  .field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{
    outline:2px solid var(--oxblood);outline-offset:1px;border-color:var(--oxblood)}
  .two-up{display:grid;gap:12px}
  @media(min-width:620px){.two-up{grid-template-columns:1fr 1fr}}
  button.send{
    justify-self:start;font:600 14px/1 var(--serif);color:var(--oxblood);cursor:pointer;
    background:transparent;border:1.5px solid var(--oxblood);border-radius:4px;padding:10px 20px}
  button.send:focus-visible{outline:2px solid var(--oxblood);outline-offset:3px}
  .sent{
    border-left:3px solid var(--oxblood);padding:11px 14px;font-size:14px;
    background:var(--chip-bg);color:var(--chip-ink);border-radius:0 4px 4px 0}
  .sent b{color:var(--ink)}

  .routes{display:grid;gap:13px}
  @media(min-width:720px){.routes{grid-template-columns:1fr 1fr}}
  .route{display:block;text-decoration:none;background:var(--card);border:1px solid var(--hairline);border-radius:6px;padding:19px 21px;cursor:pointer;text-align:left;font:inherit;color:inherit;width:100%}
  .route:hover{border-color:var(--oxblood)}
  .route:focus-visible{outline:2px solid var(--oxblood);outline-offset:3px}
  .route h3{font-family:var(--serif);font-size:17.5px;margin:0 0 6px}
  .route p{font-size:14.4px;color:var(--ink-2);margin:0}
  .route .go{font-family:var(--mono);font-size:10.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--oxblood);display:block;margin-top:11px}

  /* --- brand lockup in the header -------------------------------------- */
  /* s122: the mark was 31px — roughly favicon scale, and smaller than the h1's
     first line on the one surface where the brand appears above the fold.
     align-items was CENTER against a TWO-LINE stack (name over descriptor), which
     floated the mark between the lines instead of setting it with the wordmark;
     growing the mark made that misalignment proportionally worse, so both are
     fixed together. clamp() scales it fluidly rather than jumping at a breakpoint.
     Safe to grow: the smudge that forced the separate mark-small.svg cut only
     appears below ~20px. */
  .brandmark{display:inline-flex;align-items:flex-start;gap:12px;color:#fff;text-decoration:none;margin-bottom:4px}
  .brandmark svg{width:clamp(38px,10vw,44px);height:clamp(38px,10vw,44px);flex:none;margin-top:1px}
  .brandmark span{font:400 clamp(21px,5.2vw,25px)/1.06 var(--serif);letter-spacing:.2px}
  .brandmark small{display:block;font:10.5px/1 var(--mono);letter-spacing:.17em;text-transform:uppercase;opacity:.8;margin-top:6px}
  .brandmark:focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:3px}

  /* --- measured figures -------------------------------------------------- */
  .stat{background:var(--card);border:1px solid var(--hairline);border-radius:6px;padding:15px 17px}
  .stat .k{display:block;font:10.5px/1 var(--mono);letter-spacing:.13em;text-transform:uppercase;color:var(--ink-2)}
  .stat .v{display:block;font:400 25px/1.15 var(--serif);margin-top:9px;font-variant-numeric:tabular-nums}

  /* --- record tables: wide content scrolls in its own box, never the page -- */
  .tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--hairline);border-radius:6px;background:var(--card)}
  table.rec{border-collapse:collapse;width:100%;font-size:14px;min-width:460px}
  table.rec caption{text-align:left;padding:13px 16px 0;font:10.5px/1.4 var(--mono);letter-spacing:.13em;text-transform:uppercase;color:var(--ink-2)}
  table.rec th,table.rec td{padding:9px 16px;border-bottom:1px solid var(--rule);text-align:left}
  table.rec thead th{font:600 11px/1.3 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
  table.rec td.num,table.rec th.num{text-align:right;font-variant-numeric:tabular-nums}
  table.rec tbody tr:last-child td{border-bottom:0}
  table.rec a{color:var(--oxblood)}

  /* --- footer ------------------------------------------------------------ */
  .foot{border-top:1px solid var(--hairline);background:var(--card);padding:30px 22px 46px;margin-top:16px}
  .foot-in{max-width:980px;margin:0 auto}
  .foot .fl{font:10.5px/1 var(--mono);letter-spacing:.15em;text-transform:uppercase;color:var(--ink-2);margin:19px 0 7px}
  .foot .fx{margin:0;font-size:13.5px;line-height:1.85}
  .foot a{color:var(--oxblood)}
  .foot .fine{margin:26px 0 0;font-size:12.2px;line-height:1.7;color:var(--ink-2)}

  /* --- measured visuals (s124c): the roof render figure + inline-SVG charts.
     Charts are inline SVG painted with the CSS variables above, so they follow
     light/dark natively; --chart-bar is their one dedicated color. ------------ */
  :root{--chart-bar:#5b8a6b;--chart-snow:#5f87a8}
  @media (prefers-color-scheme: dark){:root{--chart-bar:#6aa87f;--chart-snow:#7aa3c4}}
  :root[data-theme="dark"]{--chart-bar:#6aa87f;--chart-snow:#7aa3c4}
  .viz{margin:26px 0 8px;border:1px solid var(--hairline);border-radius:8px;overflow:hidden;background:var(--card)}
  .viz img{display:block;width:100%;height:auto}
  .viz figcaption{padding:12px 16px;font-size:13.5px;color:var(--ink-2);border-top:1px solid var(--rule)}
  .qty-strip{display:flex;flex-wrap:wrap;gap:0;border:1px solid var(--hairline);border-top:none;border-radius:0 0 8px 8px;background:var(--card);margin:0 0 10px}
  .viz + .qty-strip{margin-top:-9px}
  .qty-strip .q{flex:1 1 110px;padding:12px 14px;border-right:1px solid var(--rule)}
  .qty-strip .q:last-child{border-right:none}
  .qty-strip .k{display:block;font:10px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-2)}
  .qty-strip .v{display:block;margin-top:7px;font:400 19px/1.1 var(--serif);font-variant-numeric:tabular-nums}
  .viz-chart{margin:22px 0 6px;padding:16px 16px 10px;border:1px solid var(--hairline);border-radius:8px;background:var(--card)}
  .viz-chart .t{font:10.5px/1.4 var(--mono);letter-spacing:.13em;text-transform:uppercase;color:var(--ink-2);margin:0 0 12px}
  .edge-key{display:flex;gap:18px;flex-wrap:wrap;padding:10px 16px;font-size:12.5px;color:var(--ink-2);border-top:1px solid var(--rule)}
  .edge-key i{display:inline-block;width:14px;height:3px;border-radius:2px;margin-right:6px;vertical-align:middle}
