/* Inverth: deep harbor navy with a brass accent, serif headings over a system sans. Light and dark,
   visible focus, reduced motion. Brand changes start with the tokens in :root. No inline styles anywhere
   (the CSP has no 'unsafe-inline'), so every visual choice lives here. */
:root {
  --bg: #ffffff; --fg: #142230; --muted: #4f5d6b; --line: #e3e7ec; --field: #7a8694; --band: #f5f3ee;
  --ink: #0f2a3d; --ink-fg: #f4f1ea; --ink-muted: #b9c5cf;
  --accent: #1f5b85; --accent-fg: #ffffff; --brass: #a67c2e; --brass-soft: #f1e6cf; --error: #b42318;
  --card: #ffffff; --shadow: 0 1px 2px rgb(15 42 61 / .06), 0 8px 24px rgb(15 42 61 / .06);
  --radius: 12px; --wrap: 74rem; --narrow: 36rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
  /* The skyline illustration */
  --sk-sky: #e8eef3; --sk-sun: #f1e6cf; --sk-far: #b8c7d4; --sk-near: #1f5b85; --sk-win: #f4f1ea; --sk-ground: #d9d4c7;
  --sk-wh: #0f2a3d; --sk-door: #8a99a7; --sk-shop: #a67c2e; --sk-glass: #f4f1ea; --sk-truck: #142230;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b141c; --fg: #e6ebef; --muted: #9eabb7; --line: #1f2c38; --field: #7c8a97; --band: #101c27;
    --ink: #07111a; --ink-fg: #f1ede4; --ink-muted: #9eabb7;
    --accent: #7db7e0; --accent-fg: #07111a; --brass: #d8b46c; --brass-soft: #2c2415; --error: #f97066;
    --card: #12202c; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
    --sk-sky: #13222f; --sk-sun: #3a3020; --sk-far: #23384a; --sk-near: #2f6f9c; --sk-win: #e9d9b4; --sk-ground: #1b2631;
    --sk-wh: #36526a; --sk-door: #1b2631; --sk-shop: #b58d44; --sk-glass: #0b141c; --sk-truck: #cfd8df;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font); text-rendering: optimizeLegibility; }
h1, h2, h3, .brand-line { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; }
h3, .h3 { font-size: 1.15rem; margin: 0 0 6px; }
p { margin: 0 0 14px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: var(--narrow); }
.narrow-wide { max-width: 52rem; }
.plain { padding-top: 56px; padding-bottom: 32px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px; z-index: 10; }
.icon { width: 40px; height: 40px; color: var(--brass); flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em; }
.mark rect { fill: var(--ink); } .mark path { fill: var(--brass); }
@media (prefers-color-scheme: dark) { .mark rect { fill: #1f5b85; } }
.nav-desktop { display: none; align-items: center; gap: 4px; }
.nav-desktop a:not(.button) { color: var(--fg); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.nav-desktop a:not(.button):hover { background: var(--band); }
.nav-desktop a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.nav-desktop .button { margin-left: 8px; }
.nav-mobile summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.nav-mobile nav { position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.nav-mobile nav a:not(.button) { color: var(--fg); text-decoration: none; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.nav-mobile nav .button { margin-top: 12px; text-align: center; }
@media (min-width: 1000px) { .nav-desktop { display: flex; } .nav-mobile { display: none; } }

/* Buttons */
.button, button { display: inline-block; background: var(--ink); color: var(--ink-fg); border: 1px solid var(--ink); border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
@media (prefers-color-scheme: dark) { .button, button { background: var(--brass); border-color: var(--brass); color: #1a1408; } }
.button:hover, button:hover { transform: translateY(-1px); }
.button.small { padding: 8px 16px; font-size: .92rem; }
.button.secondary { background: transparent; color: var(--fg); border-color: var(--field); }
.button.light { background: var(--brass); border-color: var(--brass); color: #1a1408; }
.button.ghost { background: transparent; color: var(--ink-fg); border-color: rgb(255 255 255 / .35); }
.button.block { display: block; text-align: center; margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero and page heads */
.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--band), var(--bg)); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } .hero { padding: 88px 0 96px; } }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.08; margin: 0 0 18px; max-width: 18ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brass); margin: 0 0 12px; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.skyline { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.sk-sky { fill: var(--sk-sky); } .sk-sun { fill: var(--sk-sun); } .sk-far { fill: var(--sk-far); } .sk-near { fill: var(--sk-near); }
.sk-win { fill: var(--sk-win); opacity: .85; } .sk-ground { fill: var(--sk-ground); } .sk-wh { fill: var(--sk-wh); } .sk-door { fill: var(--sk-door); }
.sk-shop { fill: var(--sk-shop); } .sk-shop .sk-glass { fill: var(--sk-glass); } .sk-truck { fill: var(--sk-truck); }
.page-head { padding: 40px 0 44px; background: var(--ink); color: var(--ink-fg); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0 0 12px; max-width: 24ch; }
.page-head .lede { color: var(--ink-muted); }
.page-head a { color: var(--ink-fg); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: .88rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); text-decoration: none; } .crumbs a:hover { color: var(--ink-fg); }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.letters a { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgb(255 255 255 / .25); border-radius: 8px; text-decoration: none; font-weight: 600; }

/* Sections */
.band { padding: 64px 0; }
.band.alt { background: var(--band); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.section-head a { font-weight: 600; text-decoration: none; }
.section-lede { color: var(--muted); max-width: 60ch; margin-bottom: 28px; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); padding: 0; margin: 24px 0 0; list-style: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--brass); }
.card h3 { margin-top: 14px; }
.card h3 a { color: var(--fg); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.cards.compact .card { padding: 18px; }
.features { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; margin: 0; list-style: none; }
.features h3 { margin-top: 12px; }
.features p { color: var(--muted); margin: 0; }
.regions { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); padding: 0; margin: 0; list-style: none; }
.regions li { border-top: 2px solid var(--brass); padding-top: 14px; }
.regions h3 { display: flex; align-items: center; gap: 8px; } .regions .icon, .region-card h2 .icon { width: 22px; height: 22px; }
.regions p { color: var(--muted); font-size: .95rem; margin: 0; }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); padding: 0; margin: 24px 0 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--brass); margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .92rem; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { width: 22px; height: 22px; margin-top: 2px; }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } .split.contact { grid-template-columns: 1.4fr 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.notice { border-left: 4px solid var(--error); background: var(--band); padding: 14px 18px; border-radius: 0 8px 8px 0; margin-bottom: 36px; }

/* Property types */
.type-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.type-row { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.type-row h2 a { color: var(--fg); text-decoration: none; } .type-row h2 a:hover { color: var(--accent); }
.type-row .icon { width: 48px; height: 48px; }
.detail { display: grid; gap: 40px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.6fr 1fr; } .side { position: sticky; top: 92px; align-self: start; } }
.intro { font-size: 1.15rem; }
.prose-col h2 { margin-top: 32px; }
.specs { display: grid; gap: 4px 24px; margin: 0; }
@media (min-width: 640px) { .specs { grid-template-columns: 12rem 1fr; } }
.specs dt { font-weight: 700; padding-top: 10px; }
.specs dd { margin: 0; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .specs dt { border-bottom: 1px solid var(--line); padding-bottom: 10px; } }
.qa { border-bottom: 1px solid var(--line); padding: 4px 0; }
.qa summary { cursor: pointer; font-weight: 600; padding: 14px 32px 14px 0; position: relative; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--brass); }
.qa[open] summary::after { content: "–"; }
.qa p { color: var(--muted); }

/* Markets */
.region-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }
.region-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; scroll-margin-top: 90px; }
.region-card h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 8px; }
.region-card p { color: var(--muted); }
.region-card .tags li { background: var(--band); }

/* Tables, glossary, facts */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
tbody th { font-family: var(--serif); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
.letter-group { scroll-margin-top: 90px; margin-bottom: 28px; }
.letter-group h2 { color: var(--brass); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.glossary dt { font-weight: 700; margin-top: 14px; }
.glossary dd { margin: 4px 0 0; color: var(--muted); }
.facts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 16px 0 0; }
.facts div { border-top: 2px solid var(--brass); padding-top: 10px; }
.facts dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.facts.stack { grid-template-columns: 1fr; margin-bottom: 28px; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.values li { border-left: 3px solid var(--brass); padding-left: 16px; }
.values p { color: var(--muted); margin: 0; }
.mini-steps { padding-left: 20px; color: var(--muted); }
.mini-steps li { margin-bottom: 6px; }

/* Call to action band */
.cta-band { background: var(--ink); color: var(--ink-fg); padding: 56px 0; }
.cta-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr 1fr; } .cta-actions { justify-self: end; } }
.cta-band p { color: var(--ink-muted); margin: 0; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Forms */
.lead { display: grid; gap: 16px; }
.lead .row { display: grid; gap: 16px; }
@media (min-width: 640px) { .lead .row { grid-template-columns: 1fr 1fr; } }
.lead label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.lead .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.lead .check input { margin-top: 5px; accent-color: var(--accent); }
.lead input[type=email], .lead input[type=text], .lead input[type=tel], .lead textarea, .lead select { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--field); border-radius: 10px; background: var(--bg); color: var(--fg); width: 100%; }
.lead input:focus, .lead textarea:focus, .lead select:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: 0; }
.lead button { justify-self: start; }
.center { text-align: center; margin-top: 12px; }
.opt, .fine { color: var(--muted); font-weight: 400; font-size: .88rem; }
.error { color: var(--error); font-weight: 600; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.35rem; margin-top: 28px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--ink-muted); font-size: .93rem; padding-top: 56px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); padding-bottom: 40px; }
.footer-brand { grid-column: 1 / -1; max-width: 26rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.brand-line { color: var(--ink-fg); font-size: 1.35rem; margin-bottom: 8px; }
.site-footer h2 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--brass); margin: 0 0 12px; }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer a { color: var(--ink-fg); text-decoration: none; } .site-footer a:hover { text-decoration: underline; }
.legal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgb(255 255 255 / .12); }
.legal-bar p { margin: 0; }
.legal-bar nav { display: flex; gap: 20px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .card:hover, .button:hover, button:hover { transform: none; } }
