/* The Curve Ahead — exact match to advisoryguy.com */

:root {
  --bg:        #ffffff;
  --bg-card:   #fafafa;
  --bg-alt:    #f5f5f5;
  --text:      #636363;
  --title:     #000000;
  --muted:     #a4a4a4;
  --divider:   #8f8f8f;
  --rule:      #e8e8e8;
  --accent:    #61cace;   /* exact READ MORE / link teal from live site */
  --accent-dk: #4ab0b5;
  --serif:     'Cardo', Georgia, serif;
  --sans:      'Inter', 'Open Sans', -apple-system, sans-serif;
  --max:       720px;
  --max-wide:  960px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-dk); }

.wrap      { max-width: var(--max);      margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 28px; }

/* ── Nav (our design, kept) ─────────────────────── */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.nav .inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
}
.nav.homepage .inner { justify-content: center; }
.nav .brand {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--title);
}
.nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 28px;
}
.nav a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.nav a:hover { color: var(--title); }

/* ── Site Header — exact layout from live site ───── */
.site-header {
  text-align: center;
  padding: 80px 28px 70px;
  background: var(--bg);
}
/* Rule above the title */
.site-header .rule {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 0 auto 14px;
  max-width: 480px;
}
/* The Curve Ahead — black Cardo */
.site-header h1 {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  color: var(--title);
  margin: 0 0 14px;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
/* Subtitle sits below the title — same Cardo gray, 2px smaller than before (26→24) */
.site-header .subtitle {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  font-style: normal;
  color: #a4a4a4;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ── Tag filter (our design, kept) ──────────────── */
.tag-filter-wrap {
  padding: 32px 28px 0;
  display: flex;
  justify-content: center;
}
.tag-filter {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.tag-filter button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 5px 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tag-filter button:hover  { border-color: var(--text); }
.tag-filter button.active { background: var(--title); color: var(--bg); border-color: var(--title); }

/* ── Post feed — exact match to live site cards ──── */
.feed { padding: 28px 0 80px; }

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 40px 44px 36px;
  margin: 24px 0;
}
.post-card h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: #636363;              /* exact post title color from live CSS */
  margin: 0 0 8px;
  line-height: 1.3;
}
.post-card h2 a { color: #636363; }
.post-card h2 a:hover { color: var(--accent); }

.post-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.post-meta .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-pill {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 2px 8px;
  border-radius: 2px;
}

.post-card .excerpt {
  font-family: var(--sans);
  font-size: 16px;
  color: #636363;
  line-height: 1.7;
  margin: 0 0 20px;
}
.read-more {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: #61cace;              /* exact READ MORE color from live CSS */
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.read-more:hover { color: var(--accent-dk); }

/* Divider between cards — matches live site divider style */
.post-card + .post-card { border-top: 1px solid var(--rule); }

/* ── Logo bar — single row, uniform sizes ────────── */
.logo-bar {
  background: var(--bg);
  padding: 52px 28px 56px;
  border-top: 1px solid var(--rule);
}
.logo-bar .row {
  display: flex;
  flex-wrap: nowrap;          /* force single line */
  justify-content: center;
  align-items: center;
  gap: 0 36px;
  max-width: 960px;
  margin: 0 auto;
  overflow-x: auto;           /* safe fallback on very small screens */
}
.logo-wrap {
  display: flex; align-items: center; flex-shrink: 0;
  opacity: 0.82;
  transition: opacity 0.2s ease;
}
.logo-wrap:hover { opacity: 1; }
.logo-bar img {
  height: 34px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}
.logo-bar img[alt="xfl"] {
  height: 24px;   /* 70% of 34px */
  max-width: 70px;
}

/* ── Testimonials ────────────────────────────────── */
.testimonials {
  background: var(--bg-alt);
  padding: 72px 28px 60px;
  border-top: 1px solid var(--rule);
}
.testimonials > .wrap-wide > h2 {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-align: center; color: var(--muted); margin: 0 0 52px;
}
.testimonial {
  max-width: 640px; margin: 0 auto 48px;
  display: grid; grid-template-columns: 3px 1fr; gap: 0 24px;
}
.testimonial::before { content: ''; background: var(--accent); border-radius: 2px; }
.testimonial-inner { padding: 4px 0; }
.testimonial blockquote {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 19px; line-height: 1.6; font-style: italic; color: #333;
}
.testimonial .attrib {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}

/* ── Bio ─────────────────────────────────────────── */
.bio {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 64px 28px;
}
.bio .body { max-width: var(--max); margin: 0 auto; }
.bio .eyebrow {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px;
}
.bio p { margin: 0 0 16px; font-size: 16px; color: var(--text); }
.bio p:last-child { margin-bottom: 0; }

/* ── Subscribe ───────────────────────────────────── */
.subscribe {
  background: var(--bg);      /* white — ML form box blends in, no visible card */
  padding: 72px 28px;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.subscribe h2 {
  font-family: var(--serif);
  font-size: 30px; font-weight: 400; color: var(--title); margin: 0 0 8px;
}
.subscribe .sub-note {
  font-family: var(--sans); font-size: 14px; color: var(--muted); margin: 0 0 28px;
}
.subscribe .form-wrap { max-width: 480px; margin: 0 auto; text-align: left; }
/* Strip MailerLite's white box so it sits flush on the white section */
.ml-embedded .ml-form-embedWrapper {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}
.ml-embedded .ml-form-embedBody {
  background: transparent !important;
  padding: 0 !important;
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 28px; text-align: center;
  color: var(--muted); font-size: 13px;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--title); }
.footer .links {
  display: flex; justify-content: center;
  gap: 20px; align-items: center; margin-bottom: 6px;
}

/* ── Post page ───────────────────────────────────── */
.post { padding: 56px 0 40px; }
.post h1 {
  font-family: var(--serif);
  font-size: 42px; font-weight: 400; color: var(--title);
  margin: 0 0 16px; line-height: 1.2;
}
.post .post-meta { margin-bottom: 32px; }
.post-body { border-top: 1px solid var(--rule); padding-top: 32px; margin-top: 8px; }
.post-body p  { margin: 0 0 20px; line-height: 1.8; color: var(--text); }
.post-body h2 { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--title); margin: 44px 0 14px; }
.post-body h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; color: #333; margin: 32px 0 12px; }
.post-body h4 { font-family: var(--sans); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin: 26px 0 10px; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 22px; }
.post-body li  { margin-bottom: 10px; line-height: 1.7; }
.post-body blockquote { border-left: 3px solid var(--accent); margin: 24px 0; padding: 4px 0 4px 20px; font-style: italic; color: #555; }

/* ── About page ──────────────────────────────────── */
.about-page { padding: 56px 0 48px; }
.about-page h1 { font-family: var(--serif); font-size: 42px; font-weight: 400; color: var(--title); margin: 0 0 32px; }
.about-page h2 { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--title); margin: 44px 0 14px; }
.about-page p  { margin: 0 0 18px; line-height: 1.78; }
.about-page hr { border: none; border-top: 1px solid var(--rule); margin: 44px 0; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
  body { font-size: 15px; }

  .nav .inner { padding: 0 16px; height: 48px; }
  .nav ul { gap: 16px; }
  .nav a { font-size: 10px; letter-spacing: 0.06em; }

  .site-header { padding: 48px 20px 40px; }
  .site-header .subtitle { font-size: 18px; }
  .site-header h1 { font-size: 36px; }
  .site-header .tagline { font-size: 13px; }
  .site-header .rule { max-width: 80%; }

  .tag-filter-wrap { padding: 24px 16px 0; }
  .tag-filter button { font-size: 10px; padding: 4px 10px; }

  .feed { padding: 16px 0 56px; }
  .post-card { padding: 24px 20px; }
  .post-card h2 { font-size: 20px; }
  .post-card .excerpt { font-size: 14px; }

  /* logos: allow wrap on mobile, smaller */
  .logo-bar .row { flex-wrap: wrap; gap: 20px 28px; overflow-x: visible; }
  .logo-bar img { height: 28px; max-width: 80px; }

  .testimonial { grid-template-columns: 2px 1fr; gap: 0 16px; }
  .testimonial blockquote { font-size: 16px; }

  .subscribe { padding: 52px 20px; }
  .subscribe h2 { font-size: 24px; }

  .post h1, .about-page h1 { font-size: 30px; }
  .post-body h2 { font-size: 22px; }
}
