/* Temitope Yoga. Vanilla CSS, system fonts, no build step. */

:root {
  --paper: #fbfaf7;
  --paper-2: #f2f0ea;
  --ink: #16160f;
  --ink-2: #4f4f46;
  --ink-3: #8a8a80;
  --line: #e4e1d8;
  --accent: #3f6b4f;          /* sage green, the one color */
  --accent-ink: #ffffff;
  --maxw: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, Charter, "Iowan Old Style", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---- Nav ---- */
.nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.nav__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; min-height: 64px; }
.nav__toggle { margin-left: auto; }
.nav__brand { text-decoration: none; font-weight: 700; letter-spacing: 0.02em; }
.nav__brand span { color: var(--ink-3); font-weight: 400; }
.nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; color: var(--ink); cursor: pointer; }
.nav__links { display: none; flex-basis: 100%; list-style: none; margin: 0; padding: 0.25rem 0 1rem; border-top: 1px solid var(--line); }
.nav__links a { display: block; padding: 0.55rem 0; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__check { position: absolute; opacity: 0; pointer-events: none; }
.nav__check:checked ~ .nav__links { display: block; }

/* ---- Hero ---- */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 6vw, 4rem); }
.hero__inner { display: grid; gap: 2rem; align-items: center; }
.hero__kicker { font-family: var(--serif); font-style: italic; color: var(--ink-3); font-size: 1.05rem; margin: 0 0 0.75rem; }
.hero__title { font-size: clamp(2.3rem, 7vw, 4.2rem); font-weight: 800; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lede { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; margin: 1.25rem 0 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero__photo { order: -1; width: min(100%, 440px); margin: 0 auto; }
.hero__photo img { border-radius: 8px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0.7rem 1.35rem;
  font: inherit; font-weight: 600; text-decoration: none;
  border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: #335740; border-color: #335740; color: #fff; }

/* ---- Sections ---- */
.section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.section--tint { background: var(--paper-2); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section__title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; }
.section__more { color: var(--ink-2); font-weight: 500; text-decoration: none; white-space: nowrap; }
.section__more:hover { color: var(--accent); }

/* ---- Paths (Yoga / Veganism / Tech) ---- */
.paths { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.path { position: relative; padding: 1.4rem 1.4rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.path:hover { border-color: var(--ink-3); }
.path__title { font-size: 1.25rem; font-weight: 700; }
.path__title a { text-decoration: none; }
.path__title a::after { content: ""; position: absolute; inset: 0; }
.path__desc { margin: 0.4rem 0 0; color: var(--ink-2); }
.path__count { display: block; margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink-3); }

/* ---- Posts ---- */
.posts { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.post { display: grid; gap: 0.9rem; }
.post__img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: var(--paper-2); }
.post__meta { font-size: 0.82rem; color: var(--ink-3); letter-spacing: 0.02em; }
.post__title { font-size: 1.15rem; font-weight: 700; margin-top: 0.3rem; }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--accent); }

/* ---- Poses strip ---- */
.poses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.poses img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #fff; }
.poses a { display: block; }
.poses a:hover img { opacity: 0.85; }

/* ---- Book ---- */
.book { display: grid; gap: 1.75rem; align-items: center; }
.book__cover { width: min(100%, 260px); margin: 0 auto; box-shadow: 0 18px 40px rgba(0,0,0,0.14); border-radius: 4px; }
.book__eyebrow { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 0.6rem; }
.book__title { font-size: clamp(1.6rem, 4.5vw, 2.2rem); font-weight: 800; }
.book__desc { color: var(--ink-2); margin: 1rem 0 0; }

/* ---- Signup ---- */
.signup { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.4rem; max-width: 460px; }
.signup__input { min-height: 46px; padding: 0.7rem 1rem; font: inherit; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.signup__input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63,107,79,0.2); }
.signup__note { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--ink-3); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding: 2.25rem 0 2.75rem; color: var(--ink-3); font-size: 0.9rem; }
.footer__inner { display: grid; gap: 1rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.footer__links + .footer__links { margin-top: 0.5rem; }
.footer__links a { text-decoration: none; color: var(--ink-2); }
.footer__links a:hover { color: var(--accent); }
.footer__also { margin: 1rem 0 0; font-family: var(--serif); font-style: italic; }
.footer__also a { color: var(--ink); }
.footer__copy { margin: 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }
.section__head--stack { display: block; }
.section__head--stack .section__lede { margin: 0.6rem 0 0; color: var(--ink-2); font-size: 1.1rem; max-width: 60ch; }

/* ---- Article ---- */
.article { max-width: 720px; padding-top: clamp(2rem, 6vw, 4rem); padding-bottom: clamp(3rem, 8vw, 5rem); }
.article__meta { font-size: 0.85rem; color: var(--ink-3); letter-spacing: 0.02em; margin: 0 0 0.6rem; }
.article__title { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 800; }
.article__hero { margin: 1.75rem 0 0; border-radius: 10px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.article__body, .prose {
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.5vw, 1.18rem);
  line-height: 1.75;
  color: #2a2a22;
}
.article__body p, .prose p { margin: 0 0 1.3em; }
.article__body h2, .article__body h3, .prose h2 { font-family: var(--sans); margin: 2em 0 0.6em; }
.article__body h2, .prose h2 { font-size: 1.5rem; }
.article__body h3 { font-size: 1.2rem; }
.article__body img { margin: 1.5em auto; border-radius: 8px; }
.article__body a, .prose a { color: var(--accent); }
.article__body blockquote { margin: 1.5em 0; padding-left: 1.2rem; border-left: 3px solid var(--accent); color: var(--ink-2); }
.article__body ul, .article__body ol { padding-left: 1.4rem; }
.article__body table { border-collapse: collapse; width: 100%; font-size: 0.95em; }
.article__body td, .article__body th { border: 1px solid var(--line); padding: 0.4rem 0.6rem; text-align: left; }
.article__body pre { overflow-x: auto; padding: 1rem; background: var(--paper-2); border-radius: 8px; font-size: 0.85em; }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 1.5em 0; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--wide { margin: 0 0 0.5rem; }
.embed__caption { margin: 0 0 2rem; font-size: 0.9rem; color: var(--ink-3); }
.pager { display: grid; gap: 0.9rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.pager__link { display: block; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.pager__link:hover { border-color: var(--accent); }
.pager__link--next { text-align: right; }
.pager__label { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.pager__title { display: block; margin-top: 0.3rem; font-weight: 600; }

/* ---- Category callout ---- */
.callout { display: flex; align-items: center; gap: 1.1rem; margin: 0 0 2rem; padding: 0.9rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.callout:hover { border-color: var(--accent); }
.callout img { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; flex: none; }
.callout span { color: var(--ink-2); }
.callout strong { color: var(--ink); font-size: 1.1rem; }

/* ---- Poses gallery ---- */
.pose-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0.9rem; list-style: none; margin: 0; padding: 0; }
.pose a { display: block; }
.pose img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.pose a:hover img { border-color: var(--ink-3); }
.pose figcaption { margin-top: 0.5rem; line-height: 1.3; }
.pose__sanskrit { display: block; font-weight: 600; font-size: 0.95rem; }
.pose__english { display: block; font-size: 0.85rem; color: var(--ink-3); }

/* ---- Gratitude cloud ---- */
.cloud { position: relative; height: 72vh; min-height: 480px; overflow: hidden; margin: 0 0 1rem; }
.cloud span {
  position: absolute; white-space: nowrap; color: var(--ink-2); font-family: var(--serif); font-style: italic;
  animation: drift linear infinite alternate; will-change: transform;
}
.cloud span:nth-child(3n) { color: var(--accent); }
.cloud span:nth-child(5n) { color: var(--ink); }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }
}
.cloud__list { display: none; }
@media (prefers-reduced-motion: reduce) {
  .cloud { display: none; }
  .cloud__list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; list-style: none; margin: 0; padding: 0; font-family: var(--serif); font-style: italic; color: var(--ink-2); }
}

/* ---- Forms ---- */
.form { max-width: 560px; display: grid; gap: 1rem; }
.form__row { display: grid; gap: 0.35rem; }
.form__row label { font-weight: 600; font-size: 0.95rem; }
.form input, .form textarea { font: inherit; padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.form input:focus-visible, .form textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63,107,79,0.2); }
.form .btn { justify-self: start; }
.contact__social { margin-top: 2rem; color: var(--ink-2); }
.contact__social a { color: var(--accent); }
.book__alt { margin: 1rem 0 0; color: var(--ink-2); }
.book__alt a { color: var(--accent); }
.book--text { grid-template-columns: 1fr; }

/* ---- Scale up ---- */
@media (min-width: 720px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; flex-basis: auto; margin-left: auto; gap: 1.6rem; padding: 0; border-top: 0; }
  .nav__links a { padding: 0; }
  .hero__inner { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .hero__photo { order: 0; }
  .paths { grid-template-columns: repeat(3, 1fr); }
  .posts { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .poses { grid-template-columns: repeat(6, 1fr); }
  .book { grid-template-columns: 260px 1fr; gap: 3rem; }
  .book--text { grid-template-columns: minmax(0, 720px); }
  .signup { flex-direction: row; }
  .signup__input { flex: 1; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: end; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager__link--next:only-child { grid-column: 2; }
  .pose-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
