/* ==========================================================================
   Atlas Instinct LLC — styles.css
   Strategic advisory for credit unions, fintechs, and law firms.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --navy-deep: #0A1F3D;
  --navy: #14315C;
  --navy-mid: #2C4A73;
  --navy-soft: rgba(20, 49, 92, 0.08);
  --cream: #FAF7F0;
  --cream-alt: #F2EEE4;
  --ink: #0D1B2E;
  --muted: #5F6B7E;
  --rule: #D9D4C7;
  --rule-dark: rgba(250, 247, 240, 0.15);
  --brass: #B08D57;
  --brass-dark: #8F7043;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
  --section-y: clamp(4rem, 8vw, 7rem);

  /* Radius + shadow */
  --radius-sm: 4px;
  --radius: 8px;
  --shadow: 0 10px 40px rgba(10, 31, 61, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 31, 61, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur: 240ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brass-dark); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.6em;
  font-variation-settings: "SOFT" 25, "WONK" 0;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 450; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); }
h4 { font-size: 1.125rem; font-weight: 500; }
p  { margin: 0 0 1.2em; }
.lead { font-size: 1.15rem; color: var(--muted); line-height: 1.55; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass-dark);
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: inline-block;
}
.hero .eyebrow { color: var(--brass); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin-block: 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--navy-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
}
.brand:hover { color: var(--navy-deep); }
.brand-mark { color: var(--brass); font-weight: 500; }
.brand-llc { font-size: 0.72rem; font-family: var(--font-body); color: var(--muted); margin-left: 0.45rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta {
  background: var(--navy-deep);
  color: var(--cream) !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--navy); color: var(--cream) !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 9vw, 9rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(176, 141, 87, 0.18), transparent 60%),
    radial-gradient(ellipse 700px 400px at 10% 110%, rgba(44, 74, 115, 0.55), transparent 55%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
  color: var(--cream);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass);
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.hero .lead { color: rgba(250, 247, 240, 0.82); max-width: 54ch; font-size: 1.2rem; }
.hero-actions { margin-top: 2.25rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-meta {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 640px;
}
.hero-meta-item .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass);
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.hero-meta-item .value { color: var(--cream); font-size: 0.98rem; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--brass);
  color: var(--navy-deep);
}
.btn-primary:hover { background: #c9a26b; color: var(--navy-deep); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(176, 141, 87, 0.35); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 247, 240, 0.3);
}
.btn-ghost:hover { background: rgba(250, 247, 240, 0.08); color: var(--cream); border-color: rgba(250, 247, 240, 0.5); }
.btn-dark {
  background: var(--navy-deep);
  color: var(--cream);
}
.btn-dark:hover { background: var(--navy); color: var(--cream); transform: translateY(-1px); }

/* ---------- Services preview ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2rem);
  margin-top: 3rem;
}
.service-card {
  padding: 2.25rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(176, 141, 87, 0.3);
}
.service-card .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--brass-dark);
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
  letter-spacing: 0.1em;
}
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.98rem; }
.service-card .learn-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.service-card .learn-more::after { content: "→"; transition: transform var(--dur) var(--ease); }
.service-card:hover .learn-more::after { transform: translateX(3px); }

/* ---------- Industries bar ---------- */
.industries {
  background: var(--cream-alt);
  padding-block: 3rem;
}
.industries-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}
.industries-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass-dark);
  font-weight: 600;
}
.industries-list {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.industries-list li {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy-deep);
  font-weight: 450;
}

/* ---------- Two-column ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split-sticky { position: sticky; top: 110px; }

/* ---------- Approach / principles ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  margin-top: 3rem;
}
.principle h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-weight: 500;
}
.principle p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- Full services list (services.html) ---------- */
.service-detail {
  padding-block: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.service-detail:first-of-type { border-top: 0; }
.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.service-detail .eyebrow { margin-bottom: 0.75rem; }
.service-detail h2 { margin-bottom: 0; }
.service-detail .who {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 1.25rem;
  font-style: italic;
}
.service-detail ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.service-detail ul li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink);
  line-height: 1.55;
}
.service-detail ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.7rem;
  height: 1px;
  background: var(--brass);
}
.outcomes {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--cream-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--brass);
}
.outcomes .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.outcomes p { margin: 0; font-size: 0.98rem; color: var(--ink); }

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  background: var(--navy-deep);
  color: var(--cream);
  padding-block: clamp(4rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 400px at 85% 120%, rgba(176, 141, 87, 0.15), transparent 60%);
  pointer-events: none;
}
.page-header > .container { position: relative; z-index: 1; }
.page-header h1 { color: var(--cream); margin-bottom: 0.8rem; max-width: 20ch; }
.page-header .lead { color: rgba(250, 247, 240, 0.82); max-width: 56ch; }
.page-header .eyebrow { color: var(--brass); }

/* ---------- About ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.value {
  padding: 2rem 1.5rem 2rem 0;
  border-top: 2px solid var(--navy-deep);
}
.value .num {
  font-family: var(--font-display);
  color: var(--brass-dark);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: block;
  letter-spacing: 0.1em;
}
.value h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.value p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-info {
  padding: 2.25rem;
  background: var(--cream-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--brass);
}
.contact-info h3 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 1.5rem; letter-spacing: 0.01em; }
.contact-info dl { display: grid; gap: 1.25rem; margin: 0; }
.contact-info dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass-dark);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.contact-info dd { margin: 0; font-size: 1.02rem; color: var(--ink); }
.contact-info dd a { color: var(--navy-deep); font-weight: 500; }
.contact-info dd a:hover { color: var(--brass-dark); }

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-deep);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-soft);
}
.field textarea { min-height: 140px; resize: vertical; font-family: var(--font-body); }
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.form-success,
.form-error {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
}
.form-success { background: rgba(176, 141, 87, 0.12); border-left: 3px solid var(--brass); color: var(--navy-deep); }
.form-error { background: #fdecea; border-left: 3px solid #c0392b; color: #7a1e14; }
.form-success.is-visible,
.form-error.is-visible { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep);
  color: var(--cream);
  padding-block: clamp(4rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 350px at 20% 100%, rgba(176, 141, 87, 0.18), transparent 60%);
}
.cta-band > .container { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { color: var(--cream); max-width: 22ch; margin-inline: auto; }
.cta-band .lead { color: rgba(250, 247, 240, 0.78); max-width: 52ch; margin-inline: auto; margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #061428;
  color: rgba(250, 247, 240, 0.7);
  padding-block: 3.5rem 2rem;
  font-size: 0.92rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250, 247, 240, 0.1);
}
.footer-brand { color: var(--cream); font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.75rem; display: block; }
.footer-brand .brand-mark { color: var(--brass); }
.site-footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.site-footer a { color: rgba(250, 247, 240, 0.75); font-size: 0.95rem; }
.site-footer a:hover { color: var(--brass); }
.site-footer .tagline { max-width: 34ch; line-height: 1.55; color: rgba(250, 247, 240, 0.65); margin: 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: rgba(250, 247, 240, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Utility ---------- */
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; }
  .split,
  .service-detail-inner,
  .contact-grid { grid-template-columns: 1fr; }
  .split-sticky { position: static; }
  .values-grid { grid-template-columns: 1fr; gap: 1rem; }
  .value { padding: 1.5rem 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .industries-inner { grid-template-columns: 1fr; gap: 1rem; }
  .principles { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--rule);
    gap: 1.25rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr; gap: 1.25rem; max-width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   BLOG / INSIGHTS
   ========================================================================== */

/* Blog hub */
.blog-hub .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2rem);
  margin-top: 3rem;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(176, 141, 87, 0.3);
}
.post-card .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
}
.category-chip {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--cream-alt);
  border: 1px solid var(--rule);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-dark);
}
.post-card .category-chip { margin: 0; }
.post-date {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.post-card h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.8rem;
}
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brass-dark); }
.post-card .excerpt {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.post-card .read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.post-card .read-more::after { content: "→"; transition: transform var(--dur) var(--ease); }
.post-card:hover .read-more::after { transform: translateX(3px); }

/* Blog filters */
.blog-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.blog-filters button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.blog-filters button:hover,
.blog-filters button.active {
  background: var(--navy-deep);
  color: var(--cream);
  border-color: var(--navy-deep);
}

/* Individual post */
.post-article {
  max-width: 760px;
  margin-inline: auto;
}
.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.post-header .category-chip { margin-bottom: 1.25rem; }
.post-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 1.25rem;
}
.post-header .byline {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 1.5rem;
}
.post-header .byline .author {
  color: var(--ink);
  font-weight: 600;
}
.post-header .byline .sep {
  display: inline-block;
  width: 1px;
  height: 1rem;
  background: var(--rule);
}

.tldr {
  background: var(--cream-alt);
  border-left: 3px solid var(--brass);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0 2.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.tldr .label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass-dark);
  font-weight: 700;
  display: block;
  margin-bottom: 0.6rem;
}
.tldr p { margin: 0; font-size: 1rem; line-height: 1.6; }

/* Article body */
.post-body {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink);
}
.post-body > p,
.post-body > ul,
.post-body > ol,
.post-body > blockquote { max-width: 70ch; }
.post-body h2 {
  margin-top: 3rem;
  margin-bottom: 1.1rem;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
}
.post-body h3 {
  margin-top: 2.25rem;
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}
.post-body h2 + p,
.post-body h3 + p { margin-top: 0; }
.post-body p { margin-bottom: 1.25rem; }
.post-body strong { color: var(--navy-deep); font-weight: 600; }
.post-body a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(176, 141, 87, 0.5);
  text-underline-offset: 3px;
}
.post-body a:hover { color: var(--brass-dark); text-decoration-color: var(--brass); }
.post-body blockquote {
  border-left: 3px solid var(--brass);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ink);
}
.post-body ul,
.post-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-body ul li,
.post-body ol li { margin-bottom: 0.6rem; }
.post-body ul li::marker { color: var(--brass); }
.post-body ol li::marker { color: var(--brass-dark); font-weight: 600; }
.post-body hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 2.5rem 0;
}

/* Callout box */
.callout {
  background: var(--cream-alt);
  border-left: 3px solid var(--navy);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--navy);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

/* FAQ */
.faq-list {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.faq-list h2 { margin-bottom: 1.5rem; }
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.faq-item p { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--ink); }

/* Author bio */
.author-bio {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--cream-alt);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}
.author-bio .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  flex-shrink: 0;
}
.author-bio h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass-dark);
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.author-bio .author-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.author-bio p { margin: 0; color: var(--ink); font-size: 0.95rem; line-height: 1.6; }

/* Related posts */
.related-posts {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.related-posts h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Site-header logo adjustments for horizontal logo */
.brand-logo {
  height: 72px;
  width: auto;
  color: var(--navy-deep);
  display: block;
}
.site-footer .brand-logo { color: var(--cream); height: 60px; }

/* Responsive for blog */
@media (max-width: 720px) {
  .author-bio { grid-template-columns: 1fr; }
  .post-body > p,
  .post-body > ul,
  .post-body > ol,
  .post-body > blockquote { max-width: 100%; }
  .post-header .byline { flex-wrap: wrap; gap: 0.5rem; }
  .post-header .byline .sep { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band { display: none; }
  body { background: #fff; color: #000; }
}
