/* ===========================
   BODY BY A — Style System v3
   Human. Grounded. Warm. Real.
   =========================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #FAF9F6;
  --bg-warm: #F3F0EA;
  --bg-sage: #EDF1E9;
  --bg-dark: #2C3E2D;
  --text-primary: #2C3530;
  --text-secondary: #5C6860;
  --text-muted: #8A9189;
  --accent: #7B8F6B;
  --accent-dark: #5E7350;
  --accent-light: #B8C9AA;
  --warm: #C4A97D;
  --warm-light: #E8DCC8;
  --border: #DDD9D1;
  --border-light: #EEEBE6;
  --white: #FFFFFF;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --section-pad: clamp(72px, 10vw, 120px);
  --container: 1100px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-title.centered,
.section-subtitle.centered { text-align: center; }

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-weight: 300;
  line-height: 1.7;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-eyebrow.warm { color: var(--warm); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--bg-dark);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.link-arrow {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-dark);
  transition: color 0.3s var(--ease);
}
.link-arrow:hover { color: var(--text-primary); }

/* ===========================
   NAVIGATION
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  font-weight: 400;
}
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  background: var(--bg-dark) !important;
  color: var(--bg) !important;
  padding: 9px 20px !important;
  border-radius: 5px;
  font-weight: 500 !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease);
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-image-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(250, 249, 246, 0.93) 0%,
    rgba(250, 249, 246, 0.82) 40%,
    rgba(250, 249, 246, 0.45) 70%,
    rgba(250, 249, 246, 0.2) 100%
  );
}

.hero-grid { position: relative; z-index: 2; }

.hero-content {
  max-width: 600px;
  padding: 60px 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.hero-title em {
  font-style: italic;
  color: var(--accent-dark);
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===========================
   THE LINE — Manifesto
   =========================== */
.the-line {
  padding: 56px 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.manifesto {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-primary);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  font-style: italic;
}

.manifesto-mark {
  font-size: 56px;
  color: var(--accent-light);
  font-style: normal;
  line-height: 0;
  position: relative;
  top: 18px;
  margin-right: 4px;
}

/* ===========================
   ORIGIN — Tessa's story
   =========================== */
.origin {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.origin-image img {
  border-radius: 12px;
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.origin-content .section-title { margin-bottom: 24px; }

.origin-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  font-weight: 300;
}
.origin-content p em {
  font-style: italic;
  color: var(--text-primary);
}
.origin-content .link-arrow {
  display: inline-block;
  margin-top: 8px;
}

/* ===========================
   WHAT WE DO — 3 cards
   =========================== */
.what-we-do {
  padding: var(--section-pad) 0;
  background: var(--bg-sage);
}

.do-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.do-card {
  padding: 34px 26px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease);
}
.do-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(44, 62, 45, 0.06);
}

.do-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-dark);
}

.do-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.do-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}

/* ===========================
   WORKOUTS — Major content pillar
   =========================== */
.workouts-preview {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.workouts-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.workouts-content .section-title { margin-bottom: 20px; }

.workouts-content > p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  font-weight: 300;
}

.workout-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 400;
  background: var(--bg-sage);
  color: var(--accent-dark);
  border: 1px solid var(--accent-light);
}

.workouts-content .link-arrow {
  display: inline-block;
}

.workouts-image img {
  border-radius: 12px;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ===========================
   SUBSTACK — Editorial
   =========================== */
.substack-teaser {
  padding: var(--section-pad) 0;
  background: var(--bg-warm);
}

.substack-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.substack-image img {
  border-radius: 12px;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.substack-content .section-title { margin-bottom: 20px; }

.substack-content > p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-weight: 300;
}

.substack-recent-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.substack-posts {
  list-style: none;
  margin-bottom: 28px;
}
.substack-posts li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
}
.substack-posts li:first-child { border-top: 1px solid var(--border-light); }

.substack-posts a {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  transition: color 0.3s var(--ease);
}
.substack-posts a:hover { color: var(--accent-dark); }

/* ===========================
   SUPPLEMENTS — Quiet, not the star
   =========================== */
.supplements-preview {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.supp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.supp-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  transition: all 0.3s var(--ease);
}
.supp-card:hover {
  border-color: var(--accent);
  background: var(--bg-sage);
  transform: translateY(-2px);
}

.supp-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.supp-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
  flex: 1;
  margin-bottom: 14px;
}

.supp-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-dark);
  transition: color 0.3s var(--ease);
}
.supp-card:hover .supp-link { color: var(--text-primary); }

.supp-cta { text-align: center; }

/* ===========================
   GUIDES — Digital products
   =========================== */
.guides {
  padding: var(--section-pad) 0;
  background: var(--bg-warm);
}

.guides-intro {
  max-width: 520px;
  margin-bottom: 40px;
}

.guides-intro p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-card {
  padding: 32px 26px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease);
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(44, 62, 45, 0.06);
}
.guide-card.featured {
  border-color: var(--accent);
  background: var(--bg-sage);
}

.guide-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--border-light);
  color: var(--text-muted);
  margin-bottom: 14px;
}
.guide-badge.free {
  background: var(--warm-light);
  color: var(--warm);
}
.guide-card.featured .guide-badge {
  background: var(--accent);
  color: var(--white);
}

.guide-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.guide-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 22px;
}

.guide-card .btn { width: 100%; }

/* ===========================
   FOUNDERS — Brief, warm
   =========================== */
.founders {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.founders-image img {
  border-radius: 12px;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.founders-content .section-title { margin-bottom: 20px; }

.founders-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 16px;
}

.founders-content .link-arrow {
  display: inline-block;
  margin-top: 4px;
}

/* ===========================
   SUBSCRIBE
   =========================== */
.subscribe {
  padding: var(--section-pad) 0;
  background: var(--bg-dark);
  color: var(--bg);
}

.subscribe-content {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.subscribe-content h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--bg);
}

.subscribe-content > p {
  font-size: 16px;
  color: var(--accent-light);
  margin-bottom: 28px;
  font-weight: 300;
  line-height: 1.7;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.subscribe-form input {
  flex: 1;
  padding: 13px 18px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.08);
  color: var(--bg);
  transition: border-color 0.3s var(--ease);
  outline: none;
}
.subscribe-form input:focus { border-color: var(--accent); }
.subscribe-form input::placeholder { color: rgba(255,255,255,0.4); }

.subscribe-form .btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}
.subscribe-form .btn-primary:hover { background: var(--accent-light); }

.subscribe-note {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  padding: 56px 0 36px;
  background: #243026;
  color: rgba(250, 249, 246, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--bg);
  display: block;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.85);
  margin-bottom: 14px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 9px; }

.footer-links a {
  font-size: 14px;
  font-weight: 300;
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(250, 249, 246, 0.08);
}
.footer-bottom p {
  font-size: 13px;
  font-weight: 300;
  opacity: 0.4;
}

/* ===========================
   ANIMATIONS
   =========================== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .origin-grid,
  .workouts-grid,
  .substack-grid,
  .founders-grid { grid-template-columns: 1fr; gap: 40px; }

  .origin-image,
  .workouts-image,
  .substack-image,
  .founders-image { order: -1; }

  .origin-image img,
  .founders-image img { height: 320px; }

  .workouts-image img,
  .substack-image img { height: 280px; }

  .do-grid { grid-template-columns: 1fr; gap: 16px; }
  .supp-grid { grid-template-columns: repeat(2, 1fr); }
  .guides-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: flex; }

  .hero { min-height: 80vh; }
  .hero-title { font-size: 30px; }
  .hero-image-overlay {
    background: linear-gradient(
      180deg,
      rgba(250, 249, 246, 0.95) 0%,
      rgba(250, 249, 246, 0.88) 50%,
      rgba(250, 249, 246, 0.6) 100%
    );
  }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; text-align: center; }

  .supp-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .subscribe-form { flex-direction: column; }
  .subscribe-form .btn { width: 100%; }

  :root { --section-pad: 56px; }
}
