/* Jarrell James Real Estate. One stylesheet for every page. */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f3f6f2;
  --white: #ffffff;
  --ink: #0f231a;
  --ink-soft: #40564a;
  --green: #15a850;
  --green-deep: #0b7a38;
  --mint: #dcefe2;
  --gold: #f0b429;
  --line: #d3dcd5;
  --sans: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { --wrap: 720px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--ink-soft); max-width: 34em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-solid { background: var(--green); color: var(--ink); }
.btn-solid:hover { background: var(--ink); color: var(--white); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 246, 242, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name, .brand-broker { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-broker { font-weight: 500; color: var(--ink-soft); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: var(--green); }
.nav-call { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.nav-toggle { display: none; font: inherit; font-weight: 600; background: none; border: 2px solid var(--ink); color: var(--ink); border-radius: 999px; min-height: 42px; padding: 0 18px; cursor: pointer; }

/* Hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-copy { padding-bottom: clamp(40px, 7vw, 96px); }
.hero-copy h1 { max-width: 11em; margin-bottom: 0.45em; }
.hero-copy .lede { margin-bottom: 1.6em; }
.hero-broker { margin: 1.6em 0 0; font-size: 1rem; font-weight: 600; color: var(--ink); }
.hero-photo { position: relative; align-self: end; }
.hero-photo::before { content: ""; position: absolute; inset: 12% -40% 0 18%; background: var(--green); border-radius: var(--radius) 0 0 0; }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius) var(--radius) 0 0; }

/* This week's episode */
.episode { background: var(--ink); color: var(--white); padding: clamp(44px, 6vw, 80px) 0; }
.episode-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.episode-kicker { font-weight: 600; color: var(--green); margin-bottom: 1.2em; font-size: 1.05rem; }
.episode-latest { display: grid; gap: 0; }
.episode-ep { font-size: clamp(5rem, 13vw, 10.5rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.06em; color: var(--green); margin: 0 0 0.16em -0.04em; font-variant-numeric: tabular-nums; }
.episode-ep small { display: block; font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.2; color: rgba(255, 255, 255, 0.65); margin: 0 0 0.9em 0.3em; }
.episode-title { font-size: clamp(1.8rem, 3.4vw, 2.75rem); margin-bottom: 0.4em; }
.episode-title a { color: inherit; text-decoration: none; }
.episode-title a:hover { text-decoration: underline; text-decoration-color: var(--green); }
.episode-sub { color: rgba(255, 255, 255, 0.78); font-size: 1.12rem; max-width: 36em; margin-bottom: 1.4em; }
.episode-date { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; margin: 0 0 1.2em; }
.episode-latest .btn-row { margin-top: 20px; }
.episode-more { border-left: 1px solid rgba(255, 255, 255, 0.16); padding-left: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; }
.episode-more h3 { font-size: 1.05rem; letter-spacing: 0; font-weight: 600; color: rgba(255, 255, 255, 0.65); margin-bottom: 8px; }
.episode-recent { list-style: none; margin: 0 0 28px; padding: 0; }
.episode-recent li { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.episode-recent a { display: grid; grid-template-columns: 2.6em 1fr; gap: 6px 14px; padding: 18px 0; color: var(--white); text-decoration: none; }
.episode-recent a:hover .er-title { text-decoration: underline; text-decoration-color: var(--green); }
.er-num { font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: var(--green); font-variant-numeric: tabular-nums; }
.er-title { font-weight: 600; font-size: 1.12rem; line-height: 1.25; }
.er-date { grid-column: 2; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }
.episode-more .btn-row { margin-top: auto; }

/* Audio player */
.player { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 14px 18px; }
.player audio { width: 100%; display: block; }
.player.is-ready { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 16px; align-items: center; }
.player.is-ready audio { display: none; }
.player-toggle { grid-row: span 2; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--green); cursor: pointer; display: grid; place-items: center; transition: background-color 0.15s; }
.player-toggle:hover { background: var(--ink); }
.player-toggle::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ink); margin-left: 5px; }
.player-toggle:hover::before { border-left-color: var(--white); }
.player.is-playing .player-toggle::before { width: 6px; height: 20px; border-width: 0 6px; border-style: solid; border-color: var(--ink); margin-left: 0; }
.player.is-playing .player-toggle:hover::before { border-color: var(--white); }
.player-label { font-weight: 600; font-size: 0.98rem; line-height: 1.2; }
.player-speed { font: inherit; font-size: 0.88rem; font-weight: 600; min-width: 52px; min-height: 32px; border-radius: 999px; border: 1.5px solid var(--line); background: none; color: var(--ink); cursor: pointer; }
.player-speed:hover { border-color: var(--ink); }
.player-seek { grid-column: 2; width: 100%; accent-color: var(--green-deep); height: 24px; margin: 0; }
.player-time { font-size: 0.86rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Sections */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-tint { background: var(--mint); }
.section-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head h2 { margin-bottom: 0.4em; }
.section-head p { color: var(--ink-soft); font-size: 1.12rem; margin: 0; }

/* Listings */
.listing { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.listing + .listing { margin-top: clamp(48px, 7vw, 96px); }
.listing-flip .listing-photo { order: 2; }
.listing-photo { position: relative; }
.listing-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.tag { position: absolute; top: 16px; left: 16px; background: var(--ink); color: var(--white); font-weight: 600; font-size: 0.92rem; padding: 7px 14px; border-radius: 999px; }
.tag-sold { background: var(--gold); color: var(--ink); }
.listing-area { color: var(--green-deep); font-weight: 600; margin-bottom: 0.3em; }
.listing-body h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.listing-price { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; margin: 0.2em 0 0.7em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 1.3em 0 1em; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.listing-note { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 1.4em; }
.listing video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--ink); }

/* Who I work with */
.who-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.who-grid .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.who { margin: 0; }
.who div { padding: 22px 0; border-top: 2px solid var(--ink); }
.who div:last-child { border-bottom: 2px solid var(--ink); }
.who dt { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.25em; }
.who dd { margin: 0; color: var(--ink-soft); font-size: 1.1rem; max-width: 34em; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-photos img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.about-copy h2 { margin-bottom: 0.55em; }
.about-copy p { font-size: 1.12rem; max-width: 34em; }
.values { list-style: none; padding: 0; margin: 1.6em 0 0; max-width: 36em; }
.values li { padding: 14px 0 14px 22px; border-left: 4px solid var(--green); margin-bottom: 12px; color: var(--ink-soft); }
.values strong { color: var(--ink); }

/* Contact */
.contact { background: var(--green); padding: clamp(56px, 8vw, 104px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-copy h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.035em; margin-bottom: 0.3em; }
.contact .lede { color: var(--ink); }
.contact-list { list-style: none; margin: 2em 0 0; padding: 0; }
.contact-list li { display: grid; gap: 2px; padding: 14px 0; border-top: 2px solid var(--ink); }
.contact-list span { font-size: 0.95rem; font-weight: 500; }
.contact-list a { color: var(--ink); font-size: clamp(1.25rem, 2.3vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.contact-form { background: var(--white); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; }
.contact-form input, .contact-form textarea { font: inherit; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); outline: none; }
.contact-form .btn { width: 100%; }
.contact-form .btn-solid { background: var(--ink); color: var(--white); }
.contact-form .btn-solid:hover { background: var(--green-deep); }
.form-note { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.8); padding: 56px 0 32px; font-size: 1rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.footer-grid img { margin-bottom: 14px; }
.footer-broker img { border-radius: 6px; }
.footer-name { font-weight: 700; color: var(--white); margin-bottom: 0.3em; }
.footer-id p, .footer-broker p { font-size: 1rem; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-legal p { margin: 0; }

/* Episodes hub */
.hub-head { padding: clamp(44px, 7vw, 92px) 0 clamp(24px, 3vw, 40px); }
.hub-head h1 { margin-bottom: 0.35em; }
.hub-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hub-search { flex: 1 1 260px; max-width: 460px; }
.hub-search input { font: inherit; width: 100%; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); }
.hub-list { padding-bottom: clamp(56px, 8vw, 104px); }
.ep-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ep-row { border-bottom: 1px solid var(--line); }
.ep-row a { display: grid; grid-template-columns: clamp(64px, 9vw, 120px) 1fr auto; gap: 8px 20px; align-items: center; padding: 22px 0; color: var(--ink); text-decoration: none; }
.ep-num { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.ep-main { display: grid; gap: 4px; }
.ep-title { font-size: clamp(1.2rem, 2.1vw, 1.55rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.ep-sub { color: var(--ink-soft); max-width: 46em; }
.ep-meta { font-size: 0.92rem; color: var(--ink-soft); }
.ep-go { font-weight: 600; white-space: nowrap; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-size: 0.95rem; }
.ep-row a:hover .ep-title { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; }
.ep-row a:hover .ep-go { background: var(--ink); color: var(--white); }
.ep-row:first-child .ep-num { color: var(--green); -webkit-text-stroke: 0; }
.ep-empty { padding: 32px 0; font-size: 1.12rem; }

/* Article */
.article-head { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 0.4em; }
.article-head .lede { margin-bottom: 0.8em; }
.crumb { margin-bottom: 1.2em; font-weight: 600; }
.article-meta { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.6em; }
.article-head .player { border: 2px solid var(--ink); position: relative; }
.prose { font-family: var(--serif); font-size: 1.28rem; line-height: 1.62; padding-bottom: 24px; overflow-wrap: break-word; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose pre { margin: 0 0 1.15em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--sans); margin: 1.7em 0 0.5em; line-height: 1.12; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.4rem; }
.prose h4 { font-size: 1.15rem; letter-spacing: -0.01em; }
.prose img { border-radius: 10px; margin-inline: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.prose blockquote { border-left: 4px solid var(--green); padding-left: 20px; margin-inline: 0; font-style: italic; color: var(--ink-soft); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose pre { font-family: var(--sans); font-size: 1rem; white-space: pre-wrap; background: var(--mint); padding: 16px 18px; border-radius: 10px; }
.prose code { font-family: inherit; }
.prose li { margin-bottom: 0.4em; }
.prose a { text-decoration-thickness: 1px; }
.article-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 24px 0 36px; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.article-cta > div { padding: 26px; background: var(--white); }
.article-cta > div + div { background: var(--mint); border-left: 2px solid var(--ink); }
.article-cta h2 { font-size: 1.4rem; margin-bottom: 0.4em; }
.article-cta p { color: var(--ink-soft); }
.neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.neighbor { display: grid; gap: 4px; padding: 18px 0; border-top: 2px solid var(--ink); text-decoration: none; color: var(--ink); }
.neighbor + .neighbor, .neighbors span + .neighbor { text-align: right; }
.neighbor-label { font-size: 0.92rem; color: var(--ink-soft); }
.neighbor-title { font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
.neighbor:hover .neighbor-title { text-decoration: underline; text-decoration-color: var(--green); }
.article-source { font-size: 0.94rem; color: var(--ink-soft); padding-bottom: 56px; margin: 0; }

/* Smaller screens */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 16px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .hero-grid, .episode-grid, .listing, .who-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 8px; }
  .hero-photo { max-width: 460px; }
  .hero-photo::before { inset: 14% -30% 0 30%; }
  .episode-more { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 28px; }
  .episode-more .btn-row { margin-top: 0; }
  .listing-flip .listing-photo { order: 0; }
  .who-grid .section-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .brand-broker { font-size: 0.9rem; }
  .brand-name { font-size: 1rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; }
  .ep-row a { grid-template-columns: 56px 1fr; }
  .ep-go { display: none; }
  .article-cta, .neighbors, .footer-grid { grid-template-columns: 1fr; }
  .article-cta > div + div { border-left: 0; border-top: 2px solid var(--ink); }
  .neighbor + .neighbor, .neighbors span + .neighbor { text-align: left; }
  .player.is-ready { grid-template-columns: auto 1fr; }
  .player-toggle { width: 52px; height: 52px; }
  .player-speed { grid-column: 2; justify-self: start; }
  .player-time { grid-column: 2; }
  .prose { font-size: 1.18rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Article landing page extras */
.crumb a { font-weight: 600; }
.byline { font-size: 0.98rem; color: var(--ink-soft); margin: -0.9em 0 1.6em; }
.toc { background: var(--mint); border-radius: var(--radius); padding: 22px 26px; margin: 8px 0 32px; }
.toc h2 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 0.6em; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.toc a { color: var(--ink); font-weight: 600; }
.prose h2, .prose h3 { scroll-margin-top: 96px; }

/* Blog hub: cards with a hero photo and a hook */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.post-card[hidden] { display: none; }
.post-card a { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.post-photo { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--ink); overflow: hidden; }
.post-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.post-card a:hover .post-photo img { transform: scale(1.04); }
.post-ep { position: absolute; left: 14px; top: 14px; background: var(--green); color: var(--ink); font-weight: 700; font-size: 0.9rem; padding: 6px 13px; border-radius: 999px; }
.post-text { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.post-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
.post-hook { color: var(--ink-soft); font-size: 1.04rem; line-height: 1.4; }
.post-meta { font-size: 0.9rem; color: var(--ink-soft); }
.post-go { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--green-deep); }
.post-card a:hover .post-go { color: var(--ink); text-decoration: underline; }
.post-card-lead { grid-column: 1 / -1; }
.post-card-lead a { flex-direction: row; background: var(--ink); color: var(--white); border-color: var(--ink); }
.post-card-lead .post-photo { flex: 1.25; aspect-ratio: auto; min-height: 400px; }
.post-card-lead .post-text { flex: 1; justify-content: center; gap: 14px; padding: clamp(24px, 4vw, 52px); }
.post-card-lead .post-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.02; }
.post-card-lead .post-hook { color: rgba(255, 255, 255, 0.85); font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.post-card-lead .post-meta { color: rgba(255, 255, 255, 0.6); }
.post-card-lead .post-go { margin-top: 6px; padding: 0 22px; align-self: flex-start; display: inline-flex; align-items: center; min-height: 48px; border-radius: 999px; background: var(--green); color: var(--ink); }
.post-card-lead a:hover .post-go { background: var(--white); color: var(--ink); text-decoration: none; }

/* Blog post hero */
.post-hero { position: relative; background: var(--ink); color: var(--white); min-height: clamp(360px, 52vw, 560px); display: flex; align-items: flex-end; overflow: hidden; }
.post-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 35, 26, 0.94) 0%, rgba(15, 35, 26, 0.7) 42%, rgba(15, 35, 26, 0.2) 100%); }
.post-hero-text { position: relative; z-index: 1; padding-block: clamp(28px, 5vw, 56px); }
.post-hero-text h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); max-width: 15em; margin-bottom: 0.3em; }
.post-hero-text .lede { color: rgba(255, 255, 255, 0.92); max-width: 36em; margin: 0; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.post-hero-text .crumb { margin-bottom: 1em; }
.post-hero-text .crumb, .post-hero-text .crumb a { color: rgba(255, 255, 255, 0.85); }
.post-hero + .article-head { padding-top: 28px; }
.post-hero + .article-head .byline { margin-top: -0.9em; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card-lead a { flex-direction: column; }
  .post-card-lead .post-photo { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Key takeaways and FAQ on a post */
.takeaways { border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px 28px; margin: 8px 0 24px; background: var(--white); }
.takeaways h2, .faq h2 { font-size: 1.5rem; margin-bottom: 0.6em; }
.takeaways ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.takeaways li::marker { color: var(--green-deep); }
.places { margin: 1.1em 0 0; padding-top: 1em; border-top: 1px solid var(--line); font-size: 0.98rem; color: var(--ink-soft); }
.faq { margin: 8px 0 36px; padding-top: 28px; border-top: 2px solid var(--ink); }
.faq h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.25; margin: 1.3em 0 0.35em; }
.faq p { margin: 0; color: var(--ink-soft); }

/* Photo credits */
.photo-credit { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 6px; }
.photo-credit a { color: inherit; }
.credits { margin-top: 40px; font-size: 0.9rem; color: var(--ink-soft); }
.credits summary { cursor: pointer; font-weight: 600; }
.credits ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.credits a { color: inherit; }

/* Just sold */
.section-ink { background: var(--ink); color: var(--white); }
.sold-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.sold-video video { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius); background: #000; display: block; }
.sold-copy h2 { margin: 0.5em 0 0.4em; }
.sold-copy .lede { color: rgba(255, 255, 255, 0.82); margin-bottom: 1.4em; }
.tag-inline { position: static; display: inline-block; }
.sold-photo img { width: 100%; max-width: 620px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.6em; }
@media (max-width: 900px) {
  .sold-grid { grid-template-columns: minmax(0, 1fr); }
  .sold-video { max-width: 340px; }
}

/* Listing photo captions and second photo */
.listing-photo figure { margin: 0; }
.listing-photo figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 8px; }
.listing-second { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: center; margin-top: 16px !important; }
.listing-second img { aspect-ratio: 3 / 2; }
.listing-second figcaption { margin: 0; }
.brand img { border-radius: 50%; }
