/* =====================================================
   Rx for Life — Apple-inspired marketing one-pager
   ===================================================== */

:root {
  /* palette — high-contrast monochrome with blush accent */
  --bg:           #ffffff;
  --bg-alt:       #fbf7f5;
  --bg-accent:    #f5d2c8;       /* blush from logo */
  --bg-accent-2:  #f7dcd2;
  --bg-dark:      #0f0f10;
  --ink:          #1d1d1f;       /* Apple text */
  --ink-soft:     #424245;
  --ink-mute:     #6e6e73;
  --ink-quiet:    #86868b;
  --line:         #d2d2d7;
  --accent:       #c98675;       /* deeper blush for emphasis */
  --accent-ink:   #4a2520;

  /* type */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --script: "Allura", "Dancing Script", "Brush Script MT", cursive;

  /* sizing */
  --container: 1120px;
  --radius:    980px;            /* pill */
  --radius-md: 22px;
  --radius-sm: 14px;

  /* motion */
  --ease-out: cubic-bezier(.2,.8,.2,1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "kern";
  letter-spacing: -0.003em;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- layout helpers ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(80px, 10vw, 140px) 0;
}
.section--light { background: var(--bg-alt); }
.section--accent {
  background: linear-gradient(180deg, #fde8e1 0%, #f5d2c8 100%);
}
.section--dark {
  background: var(--bg-dark);
  color: #f5f5f7;
}
.section--cta {
  background: var(--bg);
  text-align: center;
  padding-top: clamp(120px, 14vw, 180px);
  padding-bottom: clamp(120px, 14vw, 180px);
}

.section__head {
  max-width: 780px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section__head--center {
  text-align: center;
  margin-inline: auto;
}
.section__head--center .body { margin-inline: auto; }

/* ---------- typography ---------- */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 16px;
}
.eyebrow--dark { color: var(--accent-ink); }
.eyebrow--invert { color: #f5d2c8; }

.display {
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 28px;
}
.display--accent { color: var(--accent); display: block; }
.display--muted  { color: var(--ink-quiet); display: block; font-weight: 600; }
.display--quiet  { font-weight: 600; }
.display--cta    { font-size: clamp(40px, 6.4vw, 72px); }

.headline {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 22px;
}
.headline em { font-style: italic; color: var(--accent); }
.headline--invert { color: #f5f5f7; }

.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 32px;
}
.lede--dark { color: var(--accent-ink); }

.body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.body--invert { color: #d6d6db; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background .3s var(--ease-out);
}
.nav__inner {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand .brand-script {
  font-family: var(--script);
  font-size: 28px;
  color: var(--ink);
  letter-spacing: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 13px;
  color: var(--ink);
  opacity: .85;
  transition: opacity .2s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__cta {
  background: var(--ink);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 980px;
  opacity: 1 !important;
  font-weight: 500;
}
.nav__cta:hover { background: #2a2a2c; }

@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .2s var(--ease-out), background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { background: #2c2c2e; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: none;
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover { color: var(--accent-ink); }
.section--cta .btn--ghost { color: var(--ink); }
.section--cta .btn--ghost:hover { color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(96px, 14vw, 180px) 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .65;
}
.blob--1 {
  width: 520px; height: 520px;
  background: var(--bg-accent);
  top: -120px; right: -120px;
}
.blob--2 {
  width: 420px; height: 420px;
  background: var(--bg-accent-2);
  bottom: -180px; left: -100px;
}

.hero__inner {
  text-align: center;
  max-width: 980px;
}
.hero__inner .eyebrow { letter-spacing: 0.18em; }

.hero__ctas {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero__tag {
  margin-top: 56px;
  font-family: var(--script);
  font-size: clamp(28px, 3.2vw, 40px);
  color: var(--accent);
  font-weight: 500;
}

/* ---------- about ---------- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.split__media {
  display: flex;
  justify-content: center;
}
.portrait {
  width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5d2c8 0%, #f7dcd2 50%, #fbeae3 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(201,134,117,.45);
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
}
.portrait__inner {
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  display: grid;
  place-items: center;
  backdrop-filter: blur(2px);
}
.portrait__mono {
  font-family: var(--script);
  font-size: 110px;
  color: var(--ink);
  line-height: 1;
}

.creds {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.creds li {
  font-size: 14px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 980px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.creds li span {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-size: 12px;
  text-transform: uppercase;
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 36px 32px 40px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  border: 1px solid rgba(0,0,0,.04);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.18);
}
.card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.card__icon svg { width: 24px; height: 24px; }
.card__title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.card__copy {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.card__copy em { color: var(--accent); font-style: italic; }

/* ---------- posts (Articles section + /blog index) ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; gap: 20px; } }

.post-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 36px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 22px;
  color: var(--ink);
  height: 100%;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s ease;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.18);
  border-color: rgba(201,134,117,0.35);
}
.post-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.post-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 14px;
}
.post-teaser {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin: 0;
}
.post-meta {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.post-date {
  font-size: 12px;
  color: var(--ink-quiet);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s ease, transform .25s var(--ease-out);
}
.post-card:hover .post-more {
  color: var(--accent-ink);
  transform: translateX(2px);
}

.post-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 5vw, 56px);
}

/* ---------- watch (YouTube) ---------- */
.videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .videos { grid-template-columns: 1fr; } }

.video-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  color: var(--ink);
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.22);
}
.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f5d2c8, #c98675);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}
.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform .25s var(--ease-out);
}
.video-card:hover .video-card__play { transform: scale(1.06); }
.video-card__play svg { filter: drop-shadow(0 4px 16px rgba(0,0,0,.3)); }

.video-card__meta {
  padding: 18px 20px 22px;
}
.video-card__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card__channel {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}

.video-card--fallback {
  grid-column: 1 / -1;
  max-width: 720px;
  margin-inline: auto;
  width: 100%;
}

.watch__cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: clamp(36px, 5vw, 56px);
}

/* ---------- philosophy ---------- */
.philosophy {
  text-align: center;
  max-width: 900px;
}
.philosophy .display { color: var(--ink); }
.phil-line {
  display: block;
}
.phil-script {
  font-family: var(--script);
  font-weight: 500;
  color: var(--accent);
  font-size: 1.15em;
  line-height: 1;
  margin: 6px 0 18px;
}
.philosophy .lede { margin-inline: auto; }

/* ---------- social section ---------- */
.social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 900px) { .social { grid-template-columns: 1fr; } }

.social__copy { max-width: 520px; }

.social__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 980px;
  background: rgba(255,255,255,.08);
  color: #f5f5f7;
  border: 1px solid rgba(255,255,255,.18);
  font-size: 15px;
  font-weight: 500;
  transition: background .2s ease, border-color .2s ease, transform .2s var(--ease-out);
}
.chip:hover {
  background: var(--bg-accent);
  color: var(--accent-ink);
  border-color: var(--bg-accent);
  transform: translateY(-1px);
}

.social__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  aspect-ratio: 1;
  max-width: 480px;
  margin-left: auto;
  width: 100%;
}
.tile {
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  padding: 18px;
  transition: transform .35s var(--ease-out);
}
.tile:hover { transform: scale(1.02); }
.tile--1 { background: linear-gradient(135deg, #f5d2c8, #c98675); color: #1d1d1f; }
.tile--2 { background: linear-gradient(135deg, #2c2c2e, #1d1d1f); color: #f5d2c8; }
.tile--3 { background: linear-gradient(135deg, #fbeae3, #f5d2c8); color: #4a2520; }
.tile--4 { background: linear-gradient(135deg, #4a2520, #2c2c2e); color: #f5d2c8; font-family: var(--script); font-size: 26px; font-weight: 500; }
.tile span { display: block; line-height: 1.15; }

/* ---------- cta ---------- */
.cta {
  max-width: 820px;
  margin-inline: auto;
}
.cta .lede { margin-inline: auto; }
.cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- footer ---------- */
.footer {
  background: #fbf7f5;
  padding: 80px 0 40px;
  color: var(--ink-soft);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) { .footer__inner { grid-template-columns: 1fr; gap: 40px; } }

.footer__brand p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-mute);
  font-style: italic;
}
.brand-script--lg {
  font-size: 40px;
  color: var(--ink);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 600px) { .footer__cols { grid-template-columns: 1fr 1fr; } }

.footer__cols h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.footer__cols a,
.footer__cols span {
  display: block;
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 8px;
  transition: color .2s ease;
}
.footer__cols a:hover { color: var(--ink); }

.footer__base {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__base small {
  font-size: 12px;
  color: var(--ink-quiet);
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
