/* ============================================================
   Trinity One — Legacy page stylesheet
   Mirrors the React design system (src/styles/theme.css + layout.css)
   so all legacy marketing pages + 23 blog post HTMLs in public/ render
   on the same emerald + Hanken Grotesk + Fraunces italic system as the
   React pages (/, /fractional-coo, /dream-manager-program,
   /dream-manager-coaching). Theme-toggle compatible via [data-theme].
   ============================================================ */

:root {
  --brand: #057857;
  --brand-600: #0a6e50;
  --brand-700: #055c41;
  --mint: #23c79a;
  --mint-soft: #d7f3e8;
  --gold: #d99a4e;

  --ink: #0c1a14;
  --ink-2: #243831;
  --muted: #5d6f67;
  --line: #e4ece7;
  --line-2: #d6e2dc;
  --bg: #ffffff;
  --bg-soft: #f3f8f5;
  --bg-sage: #eef5f0;

  --band-bg: #022f24;
  --band-ink: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.72);
  --band-accent: #23c79a;

  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Fraunces', Georgia, serif;

  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 2px rgba(2, 47, 36, 0.05), 0 4px 14px rgba(2, 47, 36, 0.06);
  --container: 1180px;
}

[data-theme="dark"] {
  --brand: #2fd6a3;
  --brand-600: #3fe0b4;
  --brand-700: #25b385;
  --mint: #3fe0b4;
  --mint-soft: rgba(63, 224, 180, 0.16);
  --gold: #e0a85e;

  --ink: #e9f3ee;
  --ink-2: #c4d6cd;
  --muted: #8aa399;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.14);
  --bg: #041f18;
  --bg-soft: #08291f;
  --bg-sage: #0b3327;

  --band-bg: #010c08;
  --band-ink: #f1faf6;
  --band-muted: rgba(241, 250, 246, 0.72);
  --band-accent: #3fe0b4;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--brand); color: #fff; }
:where(a, button):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.serif-em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; }

/* ---------- nav (shared with React site) ---------- */
nav.t1-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
nav.t1-nav .t1-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 128px;
  gap: 28px;
}
nav.t1-nav .t1-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
nav.t1-nav .t1-brand img { height: 108px; width: auto; flex-shrink: 0; }
nav.t1-nav .t1-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.t1-nav .t1-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
nav.t1-nav .t1-links a:hover { opacity: 1; color: var(--brand); }
nav.t1-nav .t1-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
}
nav.t1-nav .t1-cta:hover { background: var(--brand-600); }

/* theme toggle */
.t1-toggle {
  width: 36px;
  height: 36px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.t1-toggle:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.t1-toggle svg { width: 15px; height: 15px; }
.t1-toggle .t-sun { display: none; }
.t1-toggle .t-moon { display: block; }
[data-theme="dark"] .t1-toggle { border-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.7); }
[data-theme="dark"] .t1-toggle:hover { color: #fff; border-color: #fff; }
[data-theme="dark"] .t1-toggle .t-sun { display: block; }
[data-theme="dark"] .t1-toggle .t-moon { display: none; }

/* ---------- page wrappers ---------- */
.t1-container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.t1-section { padding-block: clamp(56px, 8vw, 96px); }
.t1-section--soft { background: var(--bg-soft); }
.t1-section--sage { background: var(--bg-sage); }
.t1-section--band { background: var(--band-bg); color: var(--band-ink); }

/* ---------- typography ---------- */
.t1-eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.t1-h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 22px;
}
.t1-h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 18px;
}
.t1-h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.t1-lead {
  font-size: 18.5px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 640px;
}
.t1-prose p { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin-bottom: 1.2rem; }
.t1-prose strong { color: var(--ink); font-weight: 700; }
.t1-prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(5, 120, 87, 0.3);
}
.t1-prose a:hover { color: var(--brand-700); }
.t1-prose h2 {
  font-family: var(--sans);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
}
.t1-prose h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 1.75rem 0 0.75rem;
}
.t1-prose ul, .t1-prose ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--ink-2); }
.t1-prose li { margin-bottom: 0.5rem; line-height: 1.7; }
.t1-prose blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  border-left: 3px solid var(--brand);
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  color: var(--ink);
}

/* ---------- buttons ---------- */
.t1-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.t1-btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(5, 120, 87, 0.28); }
.t1-btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.t1-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.t1-btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.t1-btn-lg { padding: 14px 28px; font-size: 16px; }

/* ---------- post hero (used by blog posts) ---------- */
.t1-post-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 24px;
  text-align: center;
}
.t1-post-hero .t1-post-tag {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 22px;
}
.t1-post-hero h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 22px;
}
.t1-post-hero .t1-post-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.t1-post-hero .t1-post-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
}

/* ---------- article body (blog posts) ---------- */
article.t1-post-body { max-width: 720px; margin: 0 auto; padding: 24px 32px 64px; }
article.t1-post-body.t1-prose p { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin-bottom: 1.25rem; }

/* ---------- CTA box (post and page) ---------- */
.t1-cta-box {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 32px;
}
.t1-cta-box .t1-cta-inner {
  background: var(--band-bg);
  color: var(--band-ink);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.t1-cta-box .t1-cta-inner::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(35, 199, 154, 0.30), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.t1-cta-box h3 {
  position: relative;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.75rem;
}
.t1-cta-box .t1-cta-inner > p {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.t1-cta-box .t1-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(5, 120, 87, 0.40);
  transition: background 0.2s, transform 0.2s;
}
.t1-cta-box .t1-cta-btn:hover { background: var(--brand-600); transform: translateY(-1px); }

/* ---------- author bio ---------- */
.t1-author {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 64px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.t1-author .avatar {
  width: 54px;
  height: 54px;
  border-radius: 100px;
  background: linear-gradient(140deg, var(--mint), var(--brand));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  flex-shrink: 0;
}
.t1-author h4 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.t1-author p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- footer ---------- */
footer.t1-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 48px 32px;
  text-align: center;
}
footer.t1-footer .t1-footer-cols {
  max-width: var(--container);
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  text-align: left;
}
footer.t1-footer .t1-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
footer.t1-footer .t1-footer-brand img { height: 96px; width: auto; }
footer.t1-footer nav.t1-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}
footer.t1-footer nav.t1-footer-nav a { color: var(--muted); }
footer.t1-footer nav.t1-footer-nav a:hover { color: var(--brand); }
footer.t1-footer .t1-footer-meta {
  max-width: var(--container);
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- responsive ---------- */
@media (max-width: 680px) {
  nav.t1-nav .t1-nav-inner { height: 84px; padding: 0 20px; gap: 16px; }
  nav.t1-nav .t1-brand img { height: 56px; }
  nav.t1-nav .t1-brand { font-size: 16px; }
  nav.t1-nav .t1-links { gap: 14px; }
  nav.t1-nav .t1-links a:not(.t1-cta) { display: none; }
  .t1-post-hero { padding: 48px 24px 16px; }
  .t1-post-hero h1 { font-size: 2rem; }
  article.t1-post-body { padding: 16px 24px 48px; }
  .t1-cta-box .t1-cta-inner { padding: 36px 24px; }
  .t1-author { padding: 0 24px 48px; }
  footer.t1-footer .t1-footer-cols { flex-direction: column; align-items: flex-start; gap: 16px; }
}
