/* ============================================================
   Five Questions You Better Be Able To Answer — Article
   New design system (matches /team3-read/ patterns)
   ============================================================ */

:root {
  --teal:      #006778;
  --ink:       #0a0a0a;
  --bg:        #f9f8f7;
  --bg-alt:    #f4f2f0;
  --muted:     #807771;
  --muted-2:   #a8a09b;
  --hairline:  #e4dfdb;
  --body:      #2a2522;

  --maxw:      1160px;
  --gutter:    clamp(24px, 4vw, 56px);
  --article:   720px;

  --line:      var(--hairline);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-top: 62px;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--bg); }

img, svg { display: block; max-width: 100%; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .15s ease, opacity .15s ease;
}
a:hover { opacity: .65; }

.t3-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   ARTICLE HERO
   ============================================================ */

.article-hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--hairline);
}

.article-eyebrow {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.005em;
  margin-bottom: 1.75rem;
}

.article-title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 1.5rem 0;
  text-wrap: balance;
  max-width: 16ch;
}

.article-deck {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--muted);
  margin: 0 0 2.5rem 0;
  max-width: 28ch;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.005em;
}
.article-meta__author { color: var(--ink); }
.article-meta__rule {
  flex: 0 0 32px;
  height: 1px;
  background: var(--hairline);
}

/* ============================================================
   ARTICLE BODY
   ============================================================ */

.article {
  max-width: var(--article);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(24px, 4vw, 56px) clamp(5rem, 10vw, 8rem);
}

.article p {
  font-size: 1.075rem;
  font-weight: 400;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 1.4rem;
  letter-spacing: -0.005em;
}

.article p strong { color: var(--ink); font-weight: 700; }

.article p.lead {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
  text-wrap: pretty;
}

.article h2 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 3.25rem 0 1.5rem;
  text-wrap: balance;
}

/* Pull quote */
.article p.pull {
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin: 2.25rem 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--teal);
  max-width: 30ch;
  text-wrap: balance;
}

/* Chain text — "more X › more Y › ..." */
.article p.chain {
  background: var(--bg-alt);
  border-left: 1px solid var(--teal);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-size: 1.075rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.55;
}
.article p.chain .chain__arrow {
  color: var(--teal);
  margin: 0 0.35em;
}

/* Lists */
.article ul {
  list-style: none;
  margin: 0 0 1.6rem 0;
  padding: 0;
}
.article ul li {
  font-size: 1.075rem;
  color: var(--body);
  line-height: 1.7;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}
.article ul li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* Numbered question list */
.q-list {
  list-style: none;
  margin: 1.25rem 0 2rem;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.q-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left .2s ease;
}
.q-item:hover { padding-left: 0.5rem; }
.q-num {
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 0.005em;
  padding-top: 4px;
}
.q-text {
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.45;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ============================================================
   INLINE CTA — "Take the test" callout
   ============================================================ */

.inline-cta {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  border: 1px solid var(--ink);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
  transition: background .2s ease, border-color .2s ease;
}
.inline-cta:hover {
  background: var(--bg);
  border-color: var(--teal);
}

.inline-cta--closing {
  margin-top: 4rem;
}

.inline-cta__text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 280px;
}
.inline-cta__sub {
  font-size: 12.5px;
  letter-spacing: 0.005em;
  color: var(--teal);
}
.inline-cta__headline {
  font-size: 1.075rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.35;
  text-wrap: balance;
}

.inline-cta__link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: 0.9rem 1.4rem;
  background: var(--teal);
  border: 1px solid var(--teal);
  color: var(--bg);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: -0.005em;
  border-radius: 0;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.inline-cta__link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  opacity: 1;
}
.inline-cta__link .arrow { transition: transform .2s ease; }
.inline-cta__link:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 640px) {
  .inline-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem;
    gap: 1.25rem;
  }
  .inline-cta__text { flex: 0 0 auto; width: 100%; }
  .inline-cta__headline { font-size: 1.15rem; line-height: 1.3; }
  .inline-cta__link {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.2rem;
    font-size: 14.5px;
  }
  .q-item { grid-template-columns: 36px 1fr; gap: 0.85rem; }
}


/* ============================================================
   ─── Production Site Header (mirrors WordPress nav) ─────────
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 99999;
  background: var(--bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  font-family: var(--font-sans);
  transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(249, 248, 247, 0.98);
}
.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.15rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}
.site-logo {
  font-size: 0.9rem; font-weight: 900;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  border-bottom: 0;
}
.site-nav { display: flex; align-items: center; gap: 3rem; }
.nav-item {
  font-size: 0.7rem; font-weight: 900;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 0;
  position: relative; padding-bottom: 4px;
}
.nav-item::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--teal);
  transition: width 0.25s ease;
}
.nav-item:hover { opacity: 1; }
.nav-item:hover::after { width: 100%; }
.nav-cta { color: var(--teal); }
.nav-toggle {
  display: none; border: 2px solid var(--ink);
  background: transparent; color: var(--ink);
  padding: 0.65rem 0.9rem; cursor: pointer;
  align-items: center; gap: 0.75rem; font-family: inherit;
}
.nav-toggle-text {
  font-size: 0.65rem; font-weight: 900;
  letter-spacing: 0.3em; text-transform: uppercase;
}
.nav-toggle-icon { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: ''; position: absolute; left: 0; width: 100%;
  height: 2px; background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle-icon::before { top: 2px; }
.nav-toggle-icon::after  { top: 8px; }

@media (max-width: 1024px) {
  .site-header-inner { padding: 1.1rem 2rem; }
  .site-nav { gap: 1.5rem; }
}
@media (max-width: 768px) {
  .site-header-inner { padding: 0.9rem 1.25rem; gap: 1rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; top: 100%; width: 100%;
    background: rgba(249, 248, 247, 0.98);
    border-bottom: 1px solid var(--hairline);
    display: grid; gap: 0; padding: 0.75rem 1.25rem 1.25rem;
    transform-origin: top; transform: scaleY(0);
    opacity: 0; pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .site-header.is-open .site-nav {
    transform: scaleY(1); opacity: 1; pointer-events: auto;
  }
  .site-nav .nav-item {
    padding: 1rem 0;
    border-top: 1px solid rgba(228,223,219,0.7);
  }
  .site-nav .nav-item::after { display: none; }
  .site-header.is-open .nav-toggle-icon::before { top: 5px; transform: rotate(45deg); }
  .site-header.is-open .nav-toggle-icon::after  { top: 5px; transform: rotate(-45deg); }
}

/* ============================================================
   ─── Production Site Footer ─────────────────────────────────
   ============================================================ */

.site-footer {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 4rem 0 2.25rem;
  border-top: 1px solid #1f2937;
  font-family: var(--font-sans);
}
.site-footer h1, .site-footer h2, .site-footer h3,
.site-footer h4, .site-footer p { margin-top: 0; }
.site-footer ul { margin: 0; }
.rp-footer-container {
  max-width: 1360px; margin: 0 auto; padding: 0 1rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.25rem; margin-bottom: 2.5rem; align-items: start;
}
.footer-logo { max-width: 420px; height: auto; margin-bottom: 0.75rem; display: block; }
.footer-role {
  display: block; font-size: 11px; letter-spacing: 0.28em;
  color: #9ca3af; margin-bottom: 1.4rem; font-weight: 800;
  text-transform: uppercase;
}
.footer-tagline {
  color: #d1d5db; font-size: 1rem; line-height: 1.6;
  max-width: 520px; margin-bottom: 1.35rem;
}
.footer-badge {
  display: inline-block; font-size: 10px; letter-spacing: 0.32em;
  padding: 0.7rem 0.95rem; border: 1px solid #374151;
  color: #5bbdd4; background: rgba(0,103,120,0.12);
  font-weight: 900; text-transform: uppercase;
}
.footer-label {
  font-size: 10px; color: #5bbdd4; letter-spacing: 0.35em;
  margin-bottom: 1.25rem; display: block; font-weight: 900;
  text-transform: uppercase;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.85rem; }
.footer-links a {
  color: #ffffff; text-decoration: none;
  font-size: 0.98rem; font-weight: 650;
  display: inline-block; opacity: 0.92; border-bottom: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links a:hover { color: #5bbdd4; transform: translateX(6px); opacity: 1; }
.footer-email {
  display: inline-block; color: #ffffff; text-decoration: none;
  font-size: 1.1rem; font-weight: 900; margin-bottom: 1.1rem;
  opacity: 0.95; border-bottom: 0; transition: color 0.2s ease;
}
.footer-email:hover { color: #5bbdd4; opacity: 1; }
.footer-social {
  display: flex; flex-direction: column;
  gap: 0.7rem; margin-bottom: 1.2rem;
}
.footer-social a {
  color: #9ca3af; text-decoration: none;
  font-size: 0.95rem; font-weight: 700; display: inline-block;
  border-bottom: 0; transition: color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { color: #ffffff; transform: translateX(6px); }
.footer-note { color: #6b7280; font-size: 0.9rem; line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid #111827; padding-top: 1.5rem;
  display: flex; justify-content: space-between;
  align-items: center; gap: 2rem; flex-wrap: wrap;
}
.footer-bottom-left, .footer-bottom-right {
  font-size: 10px; letter-spacing: 0.35em;
  color: #6b7280; font-weight: 900; text-transform: uppercase;
}

@media (max-width: 1024px) {
  .rp-footer-container { padding: 0 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-logo { max-width: 380px; }
  .footer-tagline { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
