/* realtorjay.co. Layout: black masthead and hero, then fog-grey page with white and ink tiles. */
:root {
  --black: #000000;
  --ink: #16202B;      /* text, dark tiles */
  --ink-2: #1E2A36;    /* audience tiles */
  --fog: #F1F2F4;      /* page ground */
  --paper: #FFFFFF;    /* light tiles, form fields */
  --slate: #46525E;    /* secondary text on light */
  --mist: #D5DAE0;     /* secondary text on dark */
  --line: #C5CCD3;
  --blue: #2F56A6;     /* links, report tile */
  --brass: #E0BD8A;    /* numbers on dark */
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fog); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(48px, 7vw, 88px); }
.band--white { background: var(--paper); }
.dark { background: var(--black); color: var(--paper); }
.dark a { color: var(--paper); }

/* Masthead */
.masthead { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; justify-content: space-between; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; min-height: 56px; }
.brand img { width: 72px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; font-size: 20px; font-weight: 500; letter-spacing: 0.03em; }
.brand-meta { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 13px; color: #B9C0C8; letter-spacing: 0.02em; font-weight: 400; }
.brand-meta strong { font-weight: 600; letter-spacing: 0.14em; }
.nav { display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; font-size: 17px; }
.nav a { color: var(--paper); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.nav a:hover { text-decoration: underline; }
.nav .cta { background: var(--paper); color: var(--black); padding: 0 20px; font-weight: 500; }
.nav .cta:hover { text-decoration: none; background: var(--mist); }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; font: inherit; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn--light { background: var(--paper); color: var(--black); }
.btn--ghost-light { border-color: var(--paper); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ghost-ink { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: stretch; padding-top: clamp(24px, 4vw, 48px); }
.hero-copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; justify-content: center; padding-bottom: clamp(32px, 5vw, 64px); }
.hero h1 { margin: 0; font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.02em; }
.lede { margin: 0; max-width: 30em; font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--mist); }
.stats { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 8px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 16px; color: var(--mist); }
.stats dd { margin: 0; font-size: 34px; font-weight: 500; color: var(--brass); font-variant-numeric: tabular-nums; }
.hero-photo { flex: 1 1 340px; min-width: 0; }
.hero-photo img { width: 100%; height: 620px; object-fit: cover; object-position: center top; }

/* Section heads */
.section-head { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-head h2, h2.title { margin: 0; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.01em; }
.section-head a { min-height: 44px; display: flex; align-items: center; }
.grid { display: flex; flex-wrap: wrap; gap: 20px; }

/* Audience tiles */
.aud { flex: 1 1 320px; min-width: 0; background: var(--ink-2); color: var(--paper); display: flex; flex-direction: column; }
.aud img { width: 100%; height: 220px; object-fit: cover; }
.aud-body { padding: 26px; display: flex; flex-direction: column; }
.aud h3 { margin: 0 0 6px; font-size: 30px; }
.aud a { color: var(--paper); min-height: 44px; display: flex; align-items: center; border-top: 1px solid #51606E; text-decoration: none; }
.aud a:hover { text-decoration: underline; }

/* First Principles */
.fp-title { margin: 0; font-size: clamp(40px, 5.6vw, 68px); line-height: 1; letter-spacing: -0.02em; }
.fp-sub { margin: 12px 0 0; max-width: 30em; font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--slate); }
.q { flex: 1 1 300px; min-width: 0; background: var(--fog); color: var(--ink); text-decoration: none; padding: 26px; display: flex; flex-direction: column; gap: 14px; min-height: 230px; border-top: 3px solid var(--ink); }
.q .who { font-size: 15px; font-weight: 500; color: var(--blue); }
.q h3 { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.q .more { margin-top: auto; font-size: 16px; color: var(--slate); }
.q:hover h3 { text-decoration: underline; }
.ask { flex: 1 1 100%; background: var(--ink); color: var(--paper); text-decoration: none; padding: 28px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.ask-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.ask-text b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.25; }
.ask-text span { font-size: 17px; color: var(--mist); }
.ask .btn { background: var(--paper); color: var(--ink); }

/* Reports */
.rep { flex: 1 1 240px; min-width: 0; background: var(--paper); color: var(--ink); text-decoration: none; padding: 26px; display: flex; flex-direction: column; gap: 14px; min-height: 200px; }
.rep h3 { margin: auto 0 0; font-size: 24px; }
.rep--main { flex: 2 1 480px; background: var(--blue); color: var(--paper); min-height: 240px; }
.rep--main h3 { margin: 0; font-size: 30px; }
.rep--ink { background: var(--ink); color: var(--paper); }
.soon { font-size: 15px; color: var(--slate); }
.rep--main .soon, .rep--ink .soon { color: var(--mist); }
.kpis { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: auto 0 0; }
.kpis div { display: flex; flex-direction: column-reverse; }
.kpis dt { font-size: 15px; }
.kpis dd { margin: 0; font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Cities */
.city { flex: 1 1 460px; min-width: 0; background: var(--ink); color: var(--paper); text-decoration: none; display: flex; flex-direction: column; }
.city img { width: 100%; height: 300px; object-fit: cover; }
.city-cap { padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: baseline; justify-content: space-between; }
.city-cap b { font-weight: 500; font-size: 28px; }
.city-cap span { font-size: 16px; color: var(--mist); }
.city:hover b { text-decoration: underline; }
.also { margin: 22px 0 0; font-size: 17px; color: var(--slate); display: flex; flex-wrap: wrap; gap: 0 22px; align-items: center; }
.also a { min-height: 44px; display: flex; align-items: center; }

/* Sales */
.sale { flex: 1 1 250px; min-width: 0; background: var(--paper); padding: 22px; border-top: 3px solid var(--brass); }
.sale .price { font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sale .side { font-size: 16px; color: var(--slate); }
.table-box { overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 17px; }
th { text-align: left; font-weight: 500; font-size: 15px; color: var(--slate); padding: 12px 14px 12px 0; }
td { padding: 12px 14px 12px 0; border-top: 1px solid var(--line); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }

/* Reviews */
.review { flex: 1 1 300px; min-width: 0; margin: 0; background: var(--paper); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.review blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.4; }
.review figcaption { margin-top: auto; font-size: 16px; color: var(--slate); }

/* About panel */
.about { background: var(--ink); color: var(--paper); display: flex; flex-wrap: wrap; align-items: stretch; }
.about-photo { flex: 1 1 320px; min-width: 0; }
.about-photo img { width: 100%; height: 100%; min-height: 420px; max-height: 560px; object-fit: cover; object-position: center 20%; }
.about-body { flex: 999 1 440px; min-width: 0; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.about-body p { margin: 0; max-width: 34em; font-family: var(--serif); font-size: 20px; line-height: 1.55; color: #E3E7EB; }
.facts { margin: 4px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; font-size: 17px; max-width: 36em; }
.facts dt { font-size: 15px; color: #B9C0C8; }
.facts dd { margin: 0; }
.about-body a { align-self: flex-start; min-height: 44px; display: flex; align-items: center; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.contact-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-intro p { margin: 0; color: var(--slate); }
.contact-intro .num { color: var(--ink); font-size: 20px; }
form.lead { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 17px; }
.fields { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.field input, .field textarea, .field select { min-height: 48px; border: 1px solid var(--slate); background: var(--paper); padding: 0 14px; font: inherit; color: var(--ink); width: 100%; }
.field textarea { padding: 12px 14px; }
.hp { position: absolute; left: -9999px; }
.form-note { margin: 0; font-size: 16px; color: var(--slate); }
.form-note[data-state="ok"] { color: #1F6B3A; }
.form-note[data-state="err"] { color: #A33A1F; }

/* Article / inner pages */
.page-head { padding-block: clamp(40px, 6vw, 72px); }
.page-head h1 { margin: 0; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
.page-head p { margin: 16px 0 0; max-width: 34em; font-family: var(--serif); font-size: 21px; color: var(--mist); }
.prose { max-width: 40em; font-family: var(--serif); font-size: 20px; line-height: 1.6; }
.prose h2 { font-family: var(--sans); font-size: 28px; margin: 40px 0 12px; }
.placeholder { background: #FFF6E3; border: 1px dashed #B08A4A; padding: 14px 16px; font-family: var(--sans); font-size: 16px; color: #5A4520; }
.city-hero img { width: 100%; height: clamp(260px, 40vw, 480px); object-fit: cover; }

/* Footer */
footer { background: var(--black); color: #B9C0C8; }
footer .wrap { padding-block: 32px 48px; font-size: 15px; line-height: 1.55; display: flex; flex-direction: column; gap: 10px; }
footer p { margin: 0; }
footer a { color: #B9C0C8; }

@media (max-width: 640px) {
  .hero-photo img { height: 440px; }
  .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.dark .btn--light { color: var(--black); }
.dark .btn--light:hover { background: var(--mist); }
.sale--photo { padding: 0; display: flex; flex-direction: column; flex-basis: 320px; }
.sale--photo img { width: 100%; height: 220px; object-fit: cover; }
.sale-body { padding: 20px 22px; }
