/* ──────────────────────────────────────────────────────────
   Ella Lee Homes — Article / Story page styles
   Shared by all Stories (blog) post pages.
   Relies on brand tokens defined locally in each page's :root.
   ────────────────────────────────────────────────────────── */
:root {
  --ink: #001526; --paper: #EAE5DC; --nickel: #A5A09D;
  --navy: #001526; --gold: #BFA06A;
  --nickel-ink: #605C58; --gold-deep: #8A6E3C;
  --sans: 'Inter', Helvetica, sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
  --ease: cubic-bezier(0.16,1,0.3,1);
  --nav-h: 88px;
}
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased; padding-top: 0;
}

/* ── ARTICLE HEADER (centered, on paper, under fixed nav) ── */
.article-head {
  padding: calc(var(--nav-h) + 72px) 24px 48px;
  max-width: 880px; margin: 0 auto; text-align: center;
}
.article-crumbs {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--nickel-ink); margin-bottom: 28px;
  display: flex; gap: 10px; justify-content: center; align-items: center;
}
.article-crumbs a { color: var(--nickel-ink); text-decoration: none; transition: color 0.2s; }
.article-crumbs a:hover { color: var(--navy); }
.article-crumbs span { color: rgba(0,21,38,0.66); }
.article-meta {
  display: flex; gap: 16px; justify-content: center; align-items: center;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--nickel-ink); margin-bottom: 24px;
}
.article-meta .tag { color: var(--navy); font-weight: 600; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--nickel); }
@media (max-width: 520px) {
  .article-meta { flex-wrap: wrap; gap: 8px 16px; }
  .article-meta > * { white-space: nowrap; }
  .article-meta .dot { display: none; }
}
.article-head h1 {
  font-family: var(--serif); font-size: clamp(34px, 4.6vw, 60px); font-weight: 400;
  letter-spacing: -0.015em; line-height: 1.06; color: var(--ink);
  text-wrap: balance;
}
/* Titles match the home page: serif, no italic accents; the accent words are gold. */
.article-head h1 em { font-style: normal; color: var(--gold-deep); font-family: var(--serif); font-weight: 400; }
.article-dek {
  margin-top: 26px; font-size: 18px; line-height: 1.6;
  color: rgba(0,21,38,0.66); font-weight: 300; max-width: 60ch; margin-left: auto; margin-right: auto;
  font-family: var(--sans); font-style: normal;
}

/* ── HERO FEATURE IMAGE ── */
.article-hero {
  max-width: 1180px; margin: 24px auto 0; padding: 0 24px;
}
.article-hero img {
  width: 100%; height: clamp(320px, 52vw, 640px); object-fit: cover; display: block;
  filter: saturate(0.96);
}
.article-hero figcaption {
  margin-top: 12px; font-size: 11px; letter-spacing: 0.04em;
  color: var(--nickel-ink); text-align: center; font-style: italic;
}

/* ── ARTICLE BODY ── */
.article-wrap {
  max-width: 720px; margin: 0 auto; padding: 72px 24px 96px;
}
.article-wrap > p {
  font-size: 17px; line-height: 1.85; color: rgba(0,21,38,0.82);
  font-weight: 300; margin-bottom: 1.4em;
}
.article-wrap > p:first-of-type::first-letter {
  /* subtle editorial drop cap */
  font-family: var(--serif); font-size: 3.6em; line-height: 0.8;
  float: left; padding: 6px 8px 0 0; color: var(--navy); font-weight: 300;
}
.article-wrap h2 {
  font-family: var(--serif); font-size: clamp(26px, 2.8vw, 36px); font-weight: 400;
  letter-spacing: -0.015em; line-height: 1.15; color: var(--ink);
  margin: 56px 0 20px;
}
.article-wrap h2 em { font-style: normal; color: var(--gold-deep); font-family: var(--serif); }
.article-wrap h3 {
  font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
  margin: 40px 0 14px;
}
.article-wrap a {
  color: var(--navy); text-decoration: none;
  border-bottom: 1px solid rgba(0,21,38,0.28); transition: border-color 0.2s, color 0.2s;
}
.article-wrap a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.article-wrap ul, .article-wrap ol { margin: 0 0 1.4em 1.1em; }
.article-wrap li {
  font-size: 17px; line-height: 1.8; color: rgba(0,21,38,0.82);
  font-weight: 300; margin-bottom: 0.6em; padding-left: 6px;
}
.article-wrap li::marker { color: var(--gold); }
.article-wrap strong { font-weight: 600; color: var(--ink); }
.article-wrap figure { margin: 44px 0; }
.article-wrap figure img { width: 100%; display: block; filter: saturate(0.96); }
.article-wrap figure figcaption { margin-top: 10px; font-size: 12px; color: var(--nickel-ink); font-style: italic; text-align: center; }
.article-wrap blockquote {
  margin: 44px 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-style: normal; font-size: 24px; line-height: 1.45;
  color: var(--navy); font-weight: 400;
}
/* Pull-aside image that floats within the body */
.article-aside-img { margin: 40px 0; }
.article-aside-img img { width: 100%; display: block; }

/* ── INLINE CTA inside an article ── */
.article-cta-inline {
  margin: 56px 0; padding: 36px 40px; background: var(--navy); color: var(--paper);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.article-cta-inline p { font-size: 17px; font-weight: 300; line-height: 1.5; max-width: 46ch; }
.article-cta-inline p strong { color: var(--gold); font-weight: 500; }
.article-cta-inline a {
  flex-shrink: 0; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  color: var(--navy); background: var(--gold); padding: 15px 28px; text-decoration: none;
  transition: background 0.2s, color 0.2s; border: none;
}
.article-cta-inline a:hover { background: var(--paper); }

/* ── RELATED / RECENT POSTS ── */
.article-related {
  padding: 80px 24px; max-width: 1180px; margin: 0 auto;
}
.article-related .rel-eyebrow {
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--nickel-ink); margin-bottom: 40px; text-align: center;
}
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.rel-card { display: flex; flex-direction: column; }
.rel-card-media { overflow: hidden; aspect-ratio: 3/2; background: rgba(0,21,38,0.08); margin-bottom: 18px; }
.rel-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.rel-card:hover .rel-card-media img { transform: scale(1.05); }
.rel-card .rel-date { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--nickel-ink); margin-bottom: 8px; }
.rel-card h3 { font-size: 18px; font-weight: 400; line-height: 1.25; letter-spacing: -0.015em; }
.rel-card h3 a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
.rel-card h3 a:hover { color: var(--navy); }

/* ── BACK TO STORIES ── */
.article-back { text-align: center; padding: 0 24px 80px; }
.article-back a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  color: var(--ink); text-decoration: none; transition: color 0.2s;
}
.article-back a:hover { color: var(--navy); }

@media (max-width: 900px) {
  .rel-grid { grid-template-columns: 1fr; gap: 32px; }
  .article-wrap { padding: 56px 24px 72px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* light page: a navy focus ring (the site-wide gold ring is too faint on linen) */
body :focus-visible { outline-color: #001526 !important; }
