/* ==========================================================
   Connor Jones Real Estate — shared styles for every page
   ========================================================== */

/* ---------- Fonts (self-hosted, latin subset; rebuilt by tools/fonts.py) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter-latin.dff19d185a.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/spectral-400.4b9f3b0f36.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/spectral-500.4d8217984e.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/spectral-600.4c87225a64.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 500; font-display: swap; src: url(/assets/fonts/spectral-500i.3b0c8ac786.woff2) format("woff2"); }
/* The header name ("CJ", "Connor Jones") is the only Spectral 600 on most pages. This copy holds just
   those letters, and "#inline" tells the build to place it inside the page, so no download is needed. */
@font-face { font-family: "Spectral Brand"; font-style: normal; font-weight: 600; font-display: swap; src: url(data:font/woff2;base64,d09GMgABAAAAAAQsAA4AAAAAB4AAAAPXAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhYbgWIcMAZgAFwRCAqGBIR4ATYCJAMkCxQABCAFgUwHIBvtBQAeg2176QknSYrcVjuF54mg2O+3d18NyNYYEl5dK94sBVK3kmhEQiYS4juoMyc67OZEqGLQ+gmo/wHCpU5c8/wToy22kYwjwSYSVTaNtAzTgf0wiqhoAx7QfGAD4Ok2ZGBEUTSfqHjgv6JAG5BCqguBplnacJuW9u7A/pCTGg/szyHpicAOD3+OnqeI1ESg4/DKGsHABxJ16REer0qBVhVNpGmNJcX3csXfgH7M96Vnfas+aJdrKqq9SlnJjqdKsKTD5bc0nqMICCKCUWtTOT2x3kAg354pcLA+rkE18DANhac9PXcyh2PC0spi/1UAyjOY2wAC4hvbDmASEYkSxuAExuDtAl11qWqSGVsRkqQVYsMSpb7ZHdkxpEtHmJoUUagXbOzgMHcP/yDWgI6VQQUhpM5HGYeHFOfiphVmZuaRRwkMeF8/or+fbwzB25vBN6SWQsGUUKlUtI58VcID8Zy9htSSSFBMJqN1VDkv1H2b5FE7iynhEvKYo2IInhgGuMxikvHxjXCbOKXowU6MueC6HgpfJN9akjBKOUUxXjhHXUI90CO/7YC9AiTsMCWHSO25ONYGUnjaTjIUk0iOdUdUTAnlHlK7X0LgLgBX9Oy27AwUs/N7rstjPcAjWNDFoCYnviNUZq/pXruXqsEGkPnZ3dmxDcUHNhNXTxLLa72vfH/a0aElz9jUoc05m5TUkRv3lDfeEzTSR3e7u7cG2OgUhYUUa1mpWRLDD+g2WJ3r77OKmERZ6ZV4+OmUhFoYKBhzDTvkshDHO2P5QOedo4yJoDjrzSzFZKou4yrNLM6MF4pOVBy8dCkCcI2ItIxQe8O0GBNjZ58ECFsUlheytVTQ5/8ogmNMDjGxmJdWNY47pjN/AZJ9YyHFJ8iALkJnQzAzl5DXt9fXlzIWYv7IvPRX8qU4lxGDwhIzMDUsogx14kxNdWKjjCwsxHbsd1+cfUuj6BKbg7wmV5C9rOgR+/pL3MF+INM3FpK9gwzo0tP740W2BXkucdAYHoZwFJyz2Asxw72GigWLcBojB6e5VLMAd4FUsKevkoysibWUnMXzNKaP/Dm8wkH8AiuR1+PNlBSVje1EACCQYc2Z64APYtL/RseEewnA78SWNgB/85QRIBbLQux7ADUJgq8mlj8eqIYjcpzaG/EVtPz2+iI6MQTEeANy6QeSKQwyMQAysQY6MGiYQwABxyrW4USZHsI0uKtS17SqZJXyatnPV8XPLJqbZBHCpEsVIp4wNxESxDCVJF44VxGiZIgXIpUqRcqUadDjzJUTc3qZ1CvM6ZXEIWtFdaoAAAAA) format("woff2"); }

/* Stand-in fonts for the moment before the real ones arrive. Each is a font already on the
   visitor's device, resized to take up the same room as Inter or Spectral, so the text does not
   jump when the real font swaps in. (Widths measured from the font files with capsize.) */
@font-face { font-family: "Inter Fallback"; font-weight: 400 500; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; font-weight: 600 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"); size-adjust: 101.52%; ascent-override: 95.42%; descent-override: 23.76%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback Android"; font-weight: 400 500; src: local("Roboto"), local("Roboto-Regular"); size-adjust: 107.35%; ascent-override: 90.24%; descent-override: 22.47%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback Android"; font-weight: 600 700; src: local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 107.78%; ascent-override: 89.88%; descent-override: 22.38%; line-gap-override: 0%; }
@font-face { font-family: "Spectral Fallback"; font-style: normal; font-weight: 400 600; src: local("Georgia"); size-adjust: 100.94%; ascent-override: 104.91%; descent-override: 45.87%; line-gap-override: 0%; }
@font-face { font-family: "Spectral Fallback"; font-style: italic; font-weight: 400 600; src: local("Georgia Italic"), local("Georgia-Italic"); size-adjust: 91.51%; ascent-override: 115.73%; descent-override: 50.6%; line-gap-override: 0%; }
@font-face { font-family: "Spectral Fallback Android"; font-style: normal; font-weight: 400 600; src: local("Noto Serif"), local("NotoSerif-Regular"); size-adjust: 93.56%; ascent-override: 113.2%; descent-override: 49.49%; line-gap-override: 0%; }
@font-face { font-family: "Spectral Fallback Android"; font-style: italic; font-weight: 400 600; src: local("Noto Serif Italic"), local("NotoSerif-Italic"); size-adjust: 88.7%; ascent-override: 119.39%; descent-override: 52.2%; line-gap-override: 0%; }

:root {
  --stone:      #F3EFE7;
  --stone-2:    #EAE4D8;
  --stone-3:    #DFD7C6;
  --paper:      #FBF9F5;
  --ink:        #18211B;
  --ink-soft:   #4A5449;
  --pine:       #223D2D;
  --pine-deep:  #142219;
  --sage:       #5E7A63;
  --brass:      #96752B;
  --brass-text: #7E6224; /* darker brass for small text and buttons: passes WCAG AA on stone/paper */
  --brass-lite: #CBA85C;
  --line:       rgba(24, 33, 27, 0.14);
  --line-soft:  rgba(24, 33, 27, 0.08);
  --on-dark:    rgba(243, 239, 231, 0.8);

  --display: "Spectral", "Spectral Fallback", "Spectral Fallback Android", Georgia, serif;
  --body:    "Inter", "Inter Fallback", "Inter Fallback Android", system-ui, -apple-system, sans-serif;

  --maxw: 1160px;
  --pad:  clamp(1rem, 5vw, 2.5rem);
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--stone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--pine); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
h3 { font-size: 1.3rem; }
em.accent, .accent { color: var(--pine); font-style: italic; }

.eyebrow {
  display: block;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass-text); margin-bottom: 1rem;
}
.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-soft); max-width: 50ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 .95rem/1.2 var(--body);
  padding: .9em 1.4em; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn-primary { background: var(--pine); color: var(--stone); }
.btn-primary:hover { background: var(--pine-deep); }
.btn-brass { background: var(--brass-text); color: #fff; }
.btn-brass:hover { background: #66501C; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--stone); color: var(--pine-deep); }
.btn-light:hover { background: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.text-link { color: var(--pine); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35em; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 239, 231, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65em; text-decoration: none; }
.brand .mark {
  width: 36px; height: 36px; border: 1.5px solid var(--pine); border-radius: 50%;
  display: grid; place-items: center; font: 600 .82rem "Spectral Brand", var(--display); color: var(--pine); flex: none;
}
.brand-text { font: 600 1.15rem/1.1 "Spectral Brand", var(--display); display: flex; flex-direction: column; }
.brand-text small { font: 500 .66rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: .2rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-link { font-size: .9rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brass-lite); }
.nav-call { padding: .7em 1.1em; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-right: -10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--stone); border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.25rem; display: none;
    max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav-link[aria-current="page"] { box-shadow: none; color: var(--pine); font-weight: 600; }
  .nav-call { margin-top: 1rem; }
}

/* ---------- Sections ---------- */
section.block { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-paper { background: var(--paper); }
.bg-stone2 { background: var(--stone-2); }
.bg-pine { background: var(--pine); color: var(--stone); }
.bg-deep { background: var(--pine-deep); color: var(--stone); }
.bg-pine h2, .bg-deep h2, .bg-pine h3, .bg-deep h3 { color: var(--stone); }
.bg-pine .eyebrow, .bg-deep .eyebrow { color: var(--brass-lite); }
.bg-pine .lede, .bg-deep .lede, .bg-pine .muted, .bg-deep .muted { color: var(--on-dark); }
.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head p { margin-top: 1rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.grid-2.top { align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(4.5rem, 9vw, 7rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lede { margin-bottom: 2rem; }
.hero-note { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.6rem; font-size: .88rem; color: var(--ink-soft); }
.hero-note span { display: inline-flex; align-items: center; gap: .4em; }
.hero-note svg { color: var(--brass); }
.hero-photo { position: relative; justify-self: end; width: 100%; max-width: 410px; }
.hero-photo img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 22%; border-radius: var(--radius); box-shadow: 0 30px 60px -28px rgba(20,34,25,.55); }
.hero-photo::before { content: ""; position: absolute; top: -14px; right: -14px; width: 62%; height: 68%; border: 1px solid var(--brass-lite); border-radius: var(--radius); }
.hero-photo::after { content: ""; position: absolute; bottom: -16px; left: -16px; width: 44%; height: 40%; background: var(--stone-3); border-radius: var(--radius); }
.photo-badge {
  position: absolute; z-index: 2; left: -12px; bottom: 22px;
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--pine); color: var(--stone); font-size: .74rem; font-weight: 600;
  padding: .55rem .9rem; border-radius: 40px; box-shadow: 0 10px 24px -12px rgba(20,34,25,.6);
}
.photo-badge svg { color: var(--brass-lite); }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; pointer-events: none; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: min(300px, 44vh); justify-self: center; margin-top: 1rem; }
  .photo-badge { left: 10px; }
}

/* Page hero (inner pages) */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: .45em; max-width: 20ch; }
.crumbs { font-size: .82rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Proof strip ---------- */
.stats { background: var(--pine); color: var(--stone); }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.2rem 1.2rem; text-align: center; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: 0; }
.stat .num { font: 500 clamp(1.8rem, 3.5vw, 2.5rem)/1.1 var(--display); color: var(--brass-lite); }
.stat .lbl { font-size: .82rem; color: var(--on-dark); margin-top: .45em; }
@media (max-width: 760px) {
  .stats .grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); padding: 1.6rem .8rem; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.1); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-soft); }
.card .ic {
  width: 44px; height: 44px; border-radius: 50%; background: var(--pine); color: var(--stone);
  display: grid; place-items: center; margin-bottom: 1.2rem;
}
a.card { text-decoration: none; display: block; transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(24,33,27,.35); }
a.card .more { margin-top: 1rem; color: var(--pine); font-weight: 600; font-size: .9rem; display: inline-flex; gap: .35em; align-items: center; }

/* Win stories */
.win { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.8rem; }
.win .big { font: 500 clamp(2rem, 4vw, 2.6rem)/1 var(--display); color: var(--brass-lite); }
.win .what { font-weight: 600; margin: .6rem 0 .8rem; color: var(--stone); }
.win blockquote { font: 400 1.02rem/1.55 var(--display); color: var(--on-dark); }
.win cite { display: block; margin-top: .8rem; font-style: normal; font-size: .82rem; color: rgba(243,239,231,.6); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font: 500 1.9rem/1 var(--display); color: var(--brass);
}
.step h3 { margin-bottom: .45rem; }
.step p { color: var(--ink-soft); max-width: 62ch; }

/* ---------- Checklist ---------- */
.checks { list-style: none; display: grid; gap: .7rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; align-items: start; }
.checks li::before {
  content: ""; width: 20px; height: 20px; margin-top: .15rem; border-radius: 50%;
  background: var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3EFE7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.bg-pine .checks li::before, .bg-deep .checks li::before { background-color: var(--brass); }

/* ---------- Prose ---------- */
.prose p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 66ch; }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 .6rem; }
.prose ul { margin: 0 0 1.2rem 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--pine); font-weight: 600; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { border: 1px solid var(--line); border-radius: 40px; padding: .45em 1em; font-size: .88rem; background: var(--paper); text-decoration: none; }
a.chip:hover { border-color: var(--pine); color: var(--pine); }
.award {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem;
  border: 1px solid var(--brass-lite); border-radius: 40px; font-size: .8rem; font-weight: 600;
  color: var(--brass-text); background: rgba(150,117,43,.07);
}

/* ---------- Reviews ---------- */
.rating-pill {
  display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,.16); border-radius: 40px; padding: .5rem 1.1rem; margin-bottom: 2rem;
}
.stars { color: var(--brass-lite); letter-spacing: .12em; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.rev { display: flex; flex-direction: column; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.8rem; }
.rev p { font: 400 1.06rem/1.55 var(--display); color: var(--stone); margin: .8rem 0 1.2rem; }
.rev .who { margin-top: auto; font-size: .85rem; color: rgba(243,239,231,.68); }
.rev-light .rev { background: var(--paper); border-color: var(--line-soft); }
.rev-light .rev p { color: var(--ink); }
.rev-light .rev .who { color: var(--ink-soft); }
.rev-light .stars { color: var(--brass); }
@media (max-width: 960px) { .rev-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .rev-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font: 500 1.18rem/1.35 var(--display); color: var(--pine);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .25rem; top: 1.1rem; font: 400 1.6rem var(--body); color: var(--brass); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { color: var(--ink-soft); padding: 0 0 1.4rem; max-width: 68ch; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px;
  padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 24px 50px -30px rgba(20,34,25,.4); color: var(--ink);
}
.form-card h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.form-card .sub { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.3rem; }
.field { margin-bottom: 1rem; }
.field label, .field .label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; font: 400 1rem var(--body); color: var(--ink);
  padding: .85em .95em; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.field.invalid input { border-color: #B3412F; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-row label {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: 40px; padding: .5em 1em; font-size: .9rem; font-weight: 500; background: #fff;
}
.choice-row input { accent-color: var(--pine); width: auto; padding: 0; margin: 0; }
.choice-row label:has(input:checked) { border-color: var(--pine); background: rgba(34,61,45,.06); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .78rem; color: var(--ink-soft); margin-top: .85rem; }
.form-error { display: none; background: #FBEAE6; color: #7A2A1E; border-radius: var(--radius); padding: .75rem 1rem; font-size: .9rem; margin-bottom: 1rem; }
.form-error.show { display: block; }
.form-done { display: none; text-align: center; padding: 1rem 0; }
.form-done .ok { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: var(--pine); color: var(--stone); display: grid; place-items: center; }
.form-done h3 { margin-bottom: .5rem; }
.form-done p { color: var(--ink-soft); margin-bottom: 1.2rem; }
form.sent > *:not(.form-done) { display: none; }
form.sent .form-done { display: block; }

/* ---------- Contact methods ---------- */
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.method {
  display: flex; flex-direction: column; gap: .3rem; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.4rem;
  transition: border-color .2s ease, transform .2s ease;
}
.method:hover { border-color: var(--pine); transform: translateY(-2px); }
.method svg { color: var(--brass); margin-bottom: .4rem; }
.method strong { font: 500 1.2rem var(--display); }
.method span { font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 760px) { .methods { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--pine-deep); color: var(--stone); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: var(--stone); font-size: clamp(1.6rem, 3.6vw, 2.3rem); max-width: 24ch; }
.cta-band p { color: var(--on-dark); margin-top: .5rem; }

/* ---------- About photo ---------- */
.portrait { border-radius: var(--radius); aspect-ratio: 4/5; height: auto; object-fit: cover; object-position: 50% 25%; width: 100%; max-width: 420px; }

/* ---------- Footer ---------- */
footer.site { background: var(--pine-deep); color: var(--on-dark); padding: 3.5rem 0 2.5rem; font-size: .9rem; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--stone); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.foot-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: .5rem; }
.brand-f { font: 500 1.4rem var(--display); color: var(--stone); }
.foot-tag { margin: .4rem 0 1rem; max-width: 34ch; }
.foot-contact { line-height: 1.9; }
.foot-h { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-lite); margin-bottom: .3rem; }
.social { display: flex; gap: .7rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; line-height: 1.8; font-size: .82rem; }
.foot-legal p + p { margin-top: .6rem; }
.eho { color: var(--brass-lite); font-weight: 600; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Mobile quick-contact bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0,0,0,.3);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .95rem .5rem; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--pine); }
  .action-bar a + a { border-left: 1px solid var(--line-soft); }
  .action-bar a.hl { background: var(--pine); color: var(--stone); }
  body { padding-bottom: 60px; }
}

/* ---------- Reveal ---------- */
/* What is on screen when the page opens is shown at once. Anything further down gets "wait"
   (hidden) from src/inline/reveal.js, and "in" (fade up) when it scrolls into view. */
.js .reveal.wait { opacity: 0; transform: translateY(16px); }
.js .reveal.in { transition: opacity .7s ease, transform .7s ease; }
@media (prefers-reduced-motion: reduce) { .js .reveal.wait { opacity: 1; transform: none; } .js .reveal.in { transition: none; } }

/* Big number on stat cards */
.stat-big { font: 500 clamp(2rem, 4vw, 2.6rem)/1 var(--display); color: var(--brass); margin-bottom: .8rem; }

/* ---------- Neighborhood pages ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kpi { background: var(--paper); padding: 1.3rem 1.2rem; }
.kpi .v { font: 500 clamp(1.4rem, 3vw, 1.9rem)/1.15 var(--display); color: var(--pine); }
.kpi .l { font-size: .8rem; color: var(--ink-soft); margin-top: .35rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.facts div { background: #fff; padding: 1rem 1.2rem; }
.facts dt { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.facts dd { margin-top: .25rem; font-weight: 500; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--paper); }
.hood-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.hood-table th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: var(--stone-2); position: sticky; top: 0; }
.hood-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.hood-table td:first-child { white-space: normal; font-weight: 500; }
.hood-table a { color: var(--pine); font-weight: 600; }
.hood-table tr[hidden] { display: none; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.2rem 0 1.1rem; }
.hood-note { font: 400 1.15rem/1.5 var(--display); font-style: italic; color: var(--pine); border-left: 2px solid var(--brass-lite); padding-left: 1rem; margin-bottom: 1.1rem; max-width: 60ch; }
.hood-note p { font: inherit; color: inherit; margin: 0; max-width: none; }
.hood-note p + p { margin-top: .9rem; }
.lux-line { margin-top: 1.2rem; padding: .9rem 1.1rem; background: rgba(150,117,43,.08); border-left: 3px solid var(--brass); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Neighborhood guide hub ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.page-hero { background: url(/assets/art/contours.619e4e0dda.svg) center / cover no-repeat, var(--stone); }
/* A dark page hero (reviews) must keep its dark background; the contour art above would otherwise hide stone-colored text on a stone background */
.page-hero.bg-deep { background: var(--pine-deep); }
.page-hero.bg-deep h1 { color: var(--stone); }
.hub-hero { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 85% 0%, #2c4d39 0%, var(--pine-deep) 60%); color: var(--stone); padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hub-hero .wrap { position: relative; z-index: 1; }
.hub-hero h1 { color: var(--stone); font-size: clamp(2.3rem, 6vw, 4rem); max-width: 16ch; margin-bottom: .4em; }
.hub-hero .lede { color: var(--on-dark); }
.hub-hero .eyebrow { color: var(--brass-lite); }
.hub-hero .crumbs { color: var(--on-dark); }
.hub-hero-art { position: absolute; right: -40px; bottom: 0; width: min(760px, 70%); opacity: .5; pointer-events: none; }
@media (max-width: 760px) { .hub-hero-art { width: 130%; right: -15%; opacity: .22; } }
.hood-search { position: relative; max-width: 560px; margin-top: 2rem; }
.hood-search input { width: 100%; font: 400 1.05rem var(--body); padding: 1rem 1.1rem 1rem 2.9rem; border-radius: 40px; border: 1px solid rgba(255,255,255,.25); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2396752B' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 1.1rem center / 18px no-repeat; color: var(--ink); box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); }
.hood-search input:focus { outline: 3px solid var(--brass-lite); outline-offset: 2px; }
#hood-results { list-style: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 12px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.5); overflow: hidden; z-index: 20; }
#hood-results:empty { display: none; }
#hood-results a { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1.1rem; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line-soft); }
#hood-results li:first-child a { border-top: 0; }
#hood-results a:hover, #hood-results a:focus { background: var(--stone); outline: none; }
#hood-results small { color: var(--ink-soft); white-space: nowrap; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.jump a { font-size: .85rem; font-weight: 600; color: var(--stone); text-decoration: none; border: 1px solid rgba(255,255,255,.25); border-radius: 40px; padding: .5em 1em; background: rgba(255,255,255,.05); }
.jump a:hover { background: rgba(255,255,255,.14); border-color: var(--brass-lite); }
.hub-sec { scroll-margin-top: 72px; }
#areas { scroll-margin-top: 72px; }
.hub-sec-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.hub-sec-head .lede { margin-top: .9rem; }
.hub-art { background: var(--pine); border-radius: 10px; padding: 1.2rem 1.2rem .4rem; }
.hub-art img { width: 100%; height: auto; }
@media (max-width: 860px) { .hub-sec-head { grid-template-columns: 1fr; } .hub-art { order: -1; max-height: 150px; overflow: hidden; } }
.hood-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.hood-card { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem 1.4rem 1.2rem; background: #fff; border: 1px solid var(--line-soft); border-top: 3px solid var(--brass-lite); border-radius: var(--radius); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.hood-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(24,33,27,.45); }
.hood-card h3 { font-size: 1.35rem; }
.hc-badge { align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pine); background: rgba(34,61,45,.08); padding: .3em .7em; border-radius: 40px; }
.hc-where { font-size: .82rem; color: var(--ink-soft); }
.hc-stats { margin-top: .5rem; font-size: .85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.hc-stats b { color: var(--pine); font-weight: 600; }
.hc-stats i { width: 4px; height: 4px; border-radius: 50%; background: var(--brass-lite); margin: 0 .35rem; }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.area-tile { display: block; padding: 1.4rem; border-radius: var(--radius); background: var(--pine); color: var(--stone); text-decoration: none; transition: background .2s ease; }
.area-tile:hover { background: var(--pine-deep); }
.area-tile .eyebrow { color: var(--brass-lite); margin-bottom: .5rem; }
.area-tile h3 { color: var(--stone); }
.area-tile .hc-stats, .area-tile .hc-stats b { color: var(--on-dark); }
.area-tile .hc-stats b { color: var(--brass-lite); }
.hc-stats > span { white-space: nowrap; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; gap: .6rem; text-decoration: none; }
.post-card .eyebrow { margin-bottom: .2rem; }
.post-card p { color: var(--ink-soft); flex: 1; }
.post-card .more { color: var(--pine); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; }
.prose ol { margin: 0 0 1.2rem 1.3rem; color: var(--ink-soft); }
.prose ol li { margin-bottom: .6rem; }
.prose strong { color: var(--ink); }

/* Tables inside a post: wrap each in .table-wrap so it scrolls sideways on a phone instead of squeezing */
.prose .table-wrap { margin: 1.2rem 0 1.6rem; }
.post-table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: .92rem; }
.post-table th, .post-table td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-bottom: 1px solid var(--line-soft); }
.post-table thead th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); background: var(--stone-2); border-bottom: 1px solid var(--line); }
.post-table tbody th { width: 32%; font-weight: 600; color: var(--ink); }
.post-table td { color: var(--ink-soft); }
.post-table tbody tr:last-child > * { border-bottom: 0; }

/* Email-updates signup (updates-form partial). .post-form places it between prose blocks;
   .form-inline puts the email box and the button on one row. */
.post-form { margin-top: 2rem; margin-bottom: 2.5rem; }
.form-inline { display: grid; grid-template-columns: 1fr auto; column-gap: .75rem; align-items: end; }
.form-inline > * { grid-column: 1 / -1; }
.form-inline > h3 { margin-bottom: 1rem; }
.form-inline > .field { grid-column: 1; margin-bottom: 0; }
.form-inline > .field + .field { margin-top: .75rem; }
.form-inline > .btn { grid-column: 2; width: auto; }
@media (max-width: 560px) {
  .form-inline { grid-template-columns: 1fr; }
  .form-inline > .btn { grid-column: 1; width: 100%; margin-top: .75rem; }
}

/* ---------- Phone-width refinements ---------- */
@media (max-width: 640px) {
  /* Directory tables: drop the Range and $750K+ columns so the rest fits without side-scrolling */
  .hood-table:not(.all-cols) th:nth-child(3), .hood-table:not(.all-cols) td:nth-child(3),
  .hood-table:not(.all-cols) th:nth-child(6), .hood-table:not(.all-cols) td:nth-child(6),
  .hood-table:not(.all-cols) th:nth-child(7), .hood-table:not(.all-cols) td:nth-child(7) { display: none; }
  .hood-table th { letter-spacing: .04em; }
  .hood-table { min-width: 0; }
  .hood-table th, .hood-table td { padding-left: .6rem; padding-right: .6rem; }
  .rating-pill { flex-wrap: wrap; justify-content: center; text-align: center; }
}
