/* Shared styles for Tye Moody city / area "local expert" pages.
   One file so a design tweak updates every city page at once. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #0d2b45; --red: #e8622a; --blue: #1a4d8c; --gold: #f07830;
  --warm-mid: #5a6f8a; --rule: #d7e0e8; --cream: #f8fafc; --paper: #fff;
}
html { scroll-behavior: smooth; }
body {
  background: var(--cream); color: var(--ink); font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.6;
}
.wrap { max-width: 920px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 2rem); }

/* Top bar */
.topbar { background: var(--paper); box-shadow: 0 1px 0 var(--rule); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: .85rem; padding-bottom: .85rem; }
.back-link { font-size: .78rem; font-weight: 600; color: var(--warm-mid); text-decoration: none; }
.back-link:hover { color: var(--blue); }
.topbar-name { font-family: 'Permanent Marker', cursive; font-size: 1.3rem; color: var(--ink); text-decoration: none; }

/* Hero */
.hero { background: linear-gradient(160deg, #0d2b45 0%, #14365a 100%); color: #fff; padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.hero .kicker { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(240,120,48,.5); border-radius: 30px; padding: .35rem .8rem; }
.hero h1 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.05; margin: 1rem 0 .6rem; }
.hero .lede { font-family: 'Bitter', serif; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #dbe6f0; max-width: 640px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.btn { display: inline-block; font-weight: 700; font-size: .95rem; text-decoration: none; border-radius: 12px; padding: .8rem 1.3rem; transition: transform .12s, background .15s, box-shadow .15s; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(232,98,42,.35); }
.btn-primary:hover { transform: translateY(-2px); background: #f0703a; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }

/* Sections */
section.block { padding: clamp(2rem, 5vw, 3.2rem) 0; }
section.block + section.block { border-top: 1px solid var(--rule); }
h2.sec { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin-bottom: 1rem; }
.block p { margin-bottom: 1rem; max-width: 680px; }
.block p:last-child { margin-bottom: 0; }

/* Market snapshot card */
.snapshot { background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(1.3rem, 3vw, 1.8rem); box-shadow: 0 8px 28px rgba(13,43,69,.06); }
.snapshot .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: .4rem 0 1rem; }
@media (max-width: 560px) { .snapshot .stats { grid-template-columns: 1fr; } }
.snapshot .stat .v { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(1.5rem, 4vw, 2rem); color: var(--blue); line-height: 1; }
.snapshot .stat .l { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--warm-mid); margin-top: .35rem; }
.snapshot .asof { font-size: .8rem; color: var(--warm-mid); }
.snapshot .asof a { color: var(--blue); }

/* Chips (neighborhoods) */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { background: var(--paper); border: 1px solid var(--rule); border-radius: 22px; padding: .5rem .9rem; font-size: .88rem; font-weight: 500; }
.chip b { font-weight: 700; }

/* Two-column facts (schools / commute) */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }
.fact h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.fact p { font-size: .95rem; color: #2c4257; }

/* Tradeoffs callout */
.honest { background: #fdf2ec; border: 1px solid rgba(232,98,42,.3); border-radius: 14px; padding: 1.1rem 1.2rem; margin-top: 1.2rem; }
.honest h3 { font-size: 1rem; color: var(--red); margin-bottom: .4rem; }
.honest p { font-size: .92rem; margin-bottom: 0; }

/* Bottom CTA */
.cta-block { background: var(--ink); color: #fff; border-radius: 20px; padding: clamp(1.6rem, 4vw, 2.4rem); text-align: center; }
.cta-block h2 { font-family: 'Playfair Display', serif; font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: .5rem; }
.cta-block p { color: #cdd9e5; max-width: 520px; margin: 0 auto 1.3rem; }
.cta-block .cta-row { justify-content: center; }

/* Footer */
footer.site { padding: 2rem 0 2.5rem; }
footer.site .wrap { font-size: .78rem; color: var(--warm-mid); line-height: 1.7; }
footer.site .brand { font-family: 'Permanent Marker', cursive; font-size: 1.05rem; color: var(--ink); }
footer.site .disclaimer { margin-top: .5rem; font-size: .72rem; max-width: 720px; }
footer.site a { color: var(--blue); }
