/*
  kgre.net design: the graceyrealestate.com system (Newsreader + Public Sans,
  navy, gold) with the palette turned around. Burnt orange is the frame
  (header, hero, footer); posts sit on warm cream; navy becomes the accent.

  Contrast (checked): white on --orange 5.7:1, --on-orange on --orange 4.6:1,
  --navy on --cream 14.7:1, --body on --cream 11.3:1, --muted on --cream 5.7:1.
  Gold is too light on orange; use it only on navy or cream.
*/
:root {
  --orange: #a84c17;
  --orange-deep: #8a3c10;
  --orange-line: #c46a35;
  --on-orange: #fde3c8;
  --cream: #fbf4ea;
  --cream-deep: #f3e7d6;
  --line: #e6d8c4;
  --navy: #002244;
  --navy-hover: #0a3a6e;
  --gold: #f4b400;
  --ink: #241d19;
  --body: #3a3330;
  --muted: #6b5f57;
  --accent-text: #a3470f; /* orange that reads on cream (5.5:1) */
  --radius: 14px;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--orange); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.7;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-hover); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.on-orange a:focus-visible { outline-color: #fff; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); letter-spacing: -0.01em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }

/* ---------- Header (on orange) ---------- */
.site-header { color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--on-orange); }
.brand-name { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-orange); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 600; }
.site-nav a { color: #fff; text-decoration: none; padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Hero (on orange) ---------- */
.hero { color: #fff; padding: 56px 0 80px; }
.hero h1 { color: #fff; font-size: clamp(40px, 6vw, 72px); line-height: 1.03; letter-spacing: -0.02em; max-width: 880px; }
.hero .lede { font-size: 21px; line-height: 1.5; color: var(--on-orange); max-width: 640px; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.on-orange .eyebrow { color: var(--on-orange); }

/* ---------- Cream page that sits inside the orange frame ---------- */
.page { background: var(--cream); border-radius: 24px 24px 0 0; padding: 64px 0 80px; }
.page + .page { border-radius: 0; padding-top: 0; }
.section + .section { margin-top: 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(28px, 3vw, 36px); margin: 0; }
.section-head a { font-weight: 700; font-size: 15px; }

/* Post list */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 24px; padding: 22px 0; text-decoration: none; color: inherit; }
.post-list a:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-list time { font-size: 14px; color: var(--muted); padding-top: 6px; }
.post-list h3 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; }
.post-list p { font-size: 16px; line-height: 1.55; color: var(--body); margin: 0; }
.post-list .tag { margin-bottom: 8px; }
.empty { color: var(--muted); font-style: italic; }

.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--navy); padding: 4px 9px; border-radius: 6px; line-height: 1.4; }

/* Cards and buttons */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: 0; margin-bottom: 6px; }
.card p { font-size: 16px; line-height: 1.55; color: var(--body); }
a.card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--navy); color: inherit; }
.card-link { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 700; color: var(--navy); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-size: 16px; font-weight: 700; line-height: 1.3; text-decoration: none; text-align: center; background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn:hover { background: var(--navy-hover); border-color: var(--navy-hover); color: #fff; }
.btn--cream { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.btn--cream:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: #c9b9a3; }
.btn--ghost:hover { background: var(--cream-deep); color: var(--navy); border-color: var(--navy); }
.on-orange .btn--ghost { color: #fff; border-color: var(--on-orange); }
.on-orange .btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--navy); background: #fff; border: 1px solid var(--line); }
.chip:hover { border-color: var(--navy); color: var(--navy); }

/* Navy band: "Work with Kevin" */
.band-navy { background: var(--navy); color: #dbe3ee; border-radius: 20px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.band-navy h2 { color: #fff; font-size: clamp(28px, 3vw, 36px); margin-bottom: 10px; }
.band-navy .eyebrow { color: var(--gold); }
.band-navy p { margin: 0; max-width: 560px; }
.band-navy > div:first-child { flex: 999 1 420px; }
.band-navy .actions { margin-top: 0; flex: 1 1 260px; flex-direction: column; }
.band-navy .btn { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.band-navy .btn:hover { background: #ffc629; border-color: #ffc629; }
.band-navy .btn--ghost { background: transparent; color: #fff; border-color: #5a7394; }
.band-navy .btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; color: #fff; }

/* ---------- Article ---------- */
.post-head { color: #fff; padding: 40px 0 72px; }
.post-head h1 { color: #fff; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.02em; }
.post-head .lede { font-size: 21px; line-height: 1.5; color: var(--on-orange); }
.post-head .tag { background: var(--cream); color: var(--navy); margin-bottom: 18px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 15px; color: var(--on-orange); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--on-orange); }
.byline strong { color: #fff; }
.back { display: inline-block; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; margin-bottom: 28px; }
.back:hover { color: #fff; text-decoration: underline; }

.prose { font-size: 19px; line-height: 1.75; color: var(--body); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 32px; line-height: 1.2; margin: 1.6em 0 0.5em; }
.prose h3 { font-size: 24px; line-height: 1.25; margin: 1.4em 0 0.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--orange); font-family: var(--serif); font-size: 24px; line-height: 1.45; color: var(--navy); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { display: block; border-radius: 12px; margin: 1.6em 0; }
.prose code { font-size: 0.88em; background: var(--cream-deep); padding: 2px 6px; border-radius: 5px; }
.post-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }

/* ---------- Footer (on orange) ---------- */
.site-footer { color: var(--on-orange); font-size: 14px; line-height: 1.7; padding: 48px 0 40px; text-align: center; }
.site-footer a { color: #fff; }
.site-footer .brokerage { display: block; font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 20px; margin: 14px 0; font-weight: 600; }
.footer-links a { text-decoration: none; padding: 6px 0; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { max-width: 620px; margin: 16px auto; font-size: 13px; }
.footer-logos { display: flex; justify-content: center; gap: 28px; align-items: center; margin: 22px 0; }
.footer-logos img { height: 36px; width: auto; }
.footer-fine { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .site-nav { gap: 0 18px; }
  .site-nav a { padding: 6px 0; }
  .hero { padding: 32px 0 56px; }
  .hero .lede, .post-head .lede { font-size: 19px; }
  .page { padding: 40px 0 56px; border-radius: 18px 18px 0 0; }
  .post-list a { grid-template-columns: minmax(0, 1fr); }
  .post-list time { padding-top: 0; }
  .post-list h3 { font-size: 23px; }
  .prose { font-size: 18px; }
  .band-navy { padding: 32px 22px; }
  .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
