/* ============================================================
   evankundrat.com — shared styles
   Mid-Atlantic editorial · Fraunces + Switzer
   ============================================================ */

:root {
  --paper: #F4EEE3;
  --paper-deep: #ECE3D1;
  --paper-soft: #FAF5EB;
  --ink: #0E1F30;
  --ink-soft: #2A3A4D;
  --ink-mute: #5A6877;
  --brass: #B08440;
  --brass-deep: #8E6730;
  --brass-light: #E6CFA6;
  --rust: #B6573A;
  --green: #4F6B58;
  --line: rgba(14,31,48,.14);
  --line-strong: rgba(14,31,48,.28);
  --max: 1280px;
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Switzer', system-ui, -apple-system, sans-serif;
}

* , *::before , *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper-grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.12 0 0 0 0 0.18 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: .35;
  z-index: 1;
}

img { max-width: 100%; display: block; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .2s, opacity .2s;
}
a:hover { color: var(--brass-deep); }

/* ============================================================
   COMPLIANCE BAND (top of every page · MD COMAR 09.11.02)
   ============================================================ */
.compliance-band {
  position: relative;
  z-index: 5;
  background: var(--ink);
  color: var(--paper);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 11px 24px;
  text-align: center;
  font-weight: 400;
}
.compliance-band strong { font-weight: 600; color: var(--brass-light); }
.compliance-band a { color: var(--paper); border-bottom: 1px dotted rgba(255,255,255,.35); }
.compliance-band .sep { opacity: .4; padding: 0 6px; }

/* ============================================================
   NAV
   ============================================================ */
nav.top {
  position: relative;
  z-index: 5;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
}
nav.top .mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -.01em;
}
nav.top .mark sup {
  font-family: var(--sans);
  font-style: normal;
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--brass);
  padding-left: 6px;
  text-transform: uppercase;
  vertical-align: super;
}
nav.top ul {
  display: flex; gap: 30px; list-style: none; padding: 0; margin: 0;
}
nav.top ul a {
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}
nav.top ul a:hover { color: var(--ink); }
nav.top ul a.active { color: var(--ink); }
nav.top ul a.active::after {
  content: '';
  display: block; width: 100%; height: 1px;
  background: var(--brass); margin-top: 4px;
}
nav.top .cta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  transition: background .25s;
}
nav.top .cta:hover { background: var(--brass-deep); color: #fff; }

/* ============================================================
   PAGE SCAFFOLDING
   ============================================================ */
main { position: relative; z-index: 2; }
section { position: relative; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* Section padding scale — generous to give each block room */
.sec { padding: 140px 0; }
.sec-sm { padding: 100px 0; }
.sec-lg { padding: 180px 0; }
.sec-edge { padding: 100px 40px; }

/* Section label (eyebrow with brass line + roman numeral) */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.section-label::before {
  content: '';
  width: 44px; height: 1px; background: var(--brass);
}
.section-label .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass-deep);
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 400;
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.022em;
  margin: 0 0 36px;
  max-width: 18ch;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--brass-deep); }
.section-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 80px;
}

/* divider rule between sections */
.divider {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}
.divider::after {
  content: ''; display: block; height: 1px; background: var(--line);
}

/* Section background variants */
.sec--paper-deep { background: var(--paper-deep); }
.sec--ink { background: var(--ink); color: var(--paper); }
.sec--ink .section-label { color: rgba(244,238,227,.7); }
.sec--ink .section-title { color: var(--paper); }
.sec--ink .section-title em { color: var(--brass-light); }
.sec--ink .section-lead { color: rgba(244,238,227,.8); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all .25s;
  font-family: var(--sans);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brass-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(14,31,48,.04); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--brass-light); }

/* ============================================================
   FOOTER (compliance)
   ============================================================ */
footer.site {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  padding: 100px 40px 40px;
  margin-top: 0;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
footer.site h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass-light);
  margin: 0 0 20px;
}
footer.site .mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  color: var(--paper);
  margin-bottom: 20px;
  font-weight: 300;
}
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14px; }
footer.site ul a { color: rgba(244,238,227,.75); }
footer.site ul a:hover { color: var(--paper); }
footer.site p { color: rgba(244,238,227,.7); font-size: 13.5px; line-height: 1.7; margin: 0; }

.brokerage-block {
  background: rgba(255,255,255,.04);
  padding: 22px 26px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  line-height: 1.75;
  color: rgba(244,238,227,.85);
  margin-top: 24px;
}
.brokerage-block strong { color: var(--paper); }

.legal-band {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: start;
  font-size: 12px;
  letter-spacing: .02em;
  line-height: 1.75;
  color: rgba(244,238,227,.65);
}
.legal-band p { margin: 0 0 16px; font-size: 12px; color: rgba(244,238,227,.65); }
.legal-band p:last-child { margin: 0; }
.legal-band strong { color: var(--paper); }

.eho-logo {
  width: 64px; height: 64px;
  border: 2px solid var(--brass-light);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--brass-light);
  font-size: 7.5px;
  letter-spacing: .14em;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}
.eho-logo span {
  font-size: 18px;
  letter-spacing: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  margin: 2px 0;
}

/* ============================================================
   COOKIE BANNER (MODPA)
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 24px; left: 24px; right: 24px;
  max-width: 780px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: 22px 26px;
  z-index: 50;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  font-size: 13.5px;
  line-height: 1.55;
}
.cookie-banner a { color: var(--brass-light); border-bottom: 1px solid rgba(230,207,166,.4); }
.cookie-banner .b-small {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
.cookie-banner .b-small.primary {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
  font-weight: 600;
}
.cookie-banner.hidden { display: none; }

/* ============================================================
   LISTING CARDS
   ============================================================ */
.listing-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 30px -20px rgba(14,31,48,.25), 0 0 0 1px var(--line);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
  display: flex;
  flex-direction: column;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(14,31,48,.45); }
.listing-card .ph {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}
.listing-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.listing-card .ph::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55));
  pointer-events: none;
}
.listing-card .status {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--paper); color: var(--ink);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; font-weight: 600;
}
.listing-card .status.pending { background: var(--rust); color: var(--paper); }
.listing-card .status.sold { background: var(--green); color: var(--paper); }
.listing-card .price {
  position: absolute; bottom: 16px; left: 18px; z-index: 2;
  color: #fff;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -.01em;
}
.listing-card .body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.listing-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
.listing-card .addr { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 20px; }
.listing-card .meta {
  display: flex; gap: 22px;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.listing-card .meta strong { color: var(--ink); font-weight: 600; }
.listing-card .courtesy {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 16px;
}
.listing-card .body p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 18px;
}

/* MLS attribution band */
.mls-attribution {
  margin-top: 60px;
  padding: 28px 32px;
  background: var(--paper-deep);
  border-radius: 4px;
  border-left: 3px solid var(--brass);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.mls-attribution .updated {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   FORMS
   ============================================================ */
form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
input, select, textarea {
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  transition: border .2s, background .2s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }

.consent {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.consent input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: var(--ink);
  margin-top: 2px;
  flex-shrink: 0;
}
.consent strong { color: var(--ink); }
.consent a { color: var(--ink); border-bottom: 1px solid var(--line); }
.consent a:hover { color: var(--brass-deep); }

.submit-row {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
button[type=submit] {
  background: var(--ink); color: var(--paper);
  padding: 16px 36px; border: none; border-radius: 999px;
  font-family: var(--sans); font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: background .25s; font-weight: 500;
}
button[type=submit]:hover { background: var(--brass-deep); }
.privacy-note { font-size: 11.5px; color: var(--ink-soft); letter-spacing: .04em; }

/* ============================================================
   GUIDE PAGES (field-notes individual posts)
   ============================================================ */
main.guide { max-width: 760px; margin: 0 auto; padding: 60px 32px 100px; }
.guide-meta { display: flex; gap: 16px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 40px; flex-wrap: wrap; }
.guide-meta .tag { color: var(--brass-deep); }
.guide-meta .sep { color: var(--line-strong); }
main.guide h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.5vw, 72px); line-height: 1.02; letter-spacing: -.022em; margin: 0 0 24px; }
main.guide h1 em { font-style: italic; color: var(--brass-deep); }
main.guide .lead { font-size: 21px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 56px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
main.guide h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.012em; margin: 56px 0 18px; }
main.guide h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 36px 0 12px; }
main.guide p, main.guide ul, main.guide ol { color: var(--ink-soft); line-height: 1.75; font-size: 17px; }
main.guide ul, main.guide ol { padding-left: 22px; }
main.guide ul li, main.guide ol li { margin-bottom: 10px; }
main.guide a { color: var(--ink); border-bottom: 1px solid var(--line); }
main.guide a:hover { color: var(--brass-deep); }
main.guide .toc { background: rgba(14,31,48,.04); border-left: 3px solid var(--brass); padding: 22px 26px; border-radius: 4px; margin-bottom: 56px; }
main.guide .toc h4 { margin: 0 0 14px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
main.guide .toc ol { margin: 0; padding-left: 22px; color: var(--ink); }
main.guide .toc ol li { margin-bottom: 6px; font-size: 15px; }
main.guide .callout { background: var(--paper-soft); border: 1px solid var(--line); border-radius: 6px; padding: 22px 26px; margin: 26px 0; font-size: 15px; }
main.guide .callout strong { color: var(--ink); }
main.guide table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
main.guide th, main.guide td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
main.guide th { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); font-weight: 600; background: var(--paper-soft); }
main.guide .sources { background: var(--paper-deep); padding: 28px 32px; border-radius: 6px; margin-top: 60px; font-size: 13px; }
main.guide .sources h3 { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; font-family: var(--sans); font-weight: 600; }
main.guide .sources ol { padding-left: 22px; margin: 0; font-size: 13px; line-height: 1.65; color: var(--ink-soft); }
main.guide .sources ol li { margin-bottom: 8px; }
main.guide .disclaimer { font-size: 12px; color: var(--ink-mute); margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); line-height: 1.7; }
main.guide .cta-inline { background: var(--ink); color: var(--paper); padding: 32px 36px; border-radius: 8px; margin: 60px 0 30px; text-align: center; }
main.guide .cta-inline h3 { font-family: var(--serif); color: var(--paper); margin: 0 0 12px; font-size: 26px; font-weight: 400; }
main.guide .cta-inline p { color: rgba(244,238,227,.8); margin: 0 0 20px; font-size: 16px; }
main.guide .back { margin-top: 40px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
main.guide .data-as-of { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--rust); margin-bottom: 32px; padding: 10px 16px; background: rgba(182,87,58,.08); border-radius: 4px; display: inline-block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .sec, .sec-lg { padding: 100px 0; }
  .sec-sm { padding: 70px 0; }
  .wrap { padding: 0 24px; }
  nav.top { padding: 22px 24px; }
  nav.top ul { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cookie-banner { grid-template-columns: 1fr; }
}
