/* =============================================
   FOREST SPACES — style.css
   Warm cream, sage green, woodblock print
   Cormorant Garamond + Outfit
   ============================================= */

.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-to-content:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  overflow: visible;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--moss, #3d4f32);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

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

:root {
  --cream: #f7f2e8;
  --cream-dark: #ede6d6;
  --sage: #6b7f5e;
  --sage-dark: #4a5c3f;
  --sage-light: #a8b89a;
  --moss: #3d4f32;
  --amber: #c4883a;
  --amber-light: #e8b86d;
  --rose: #c47a6b;
  --brown: #3b2c1e;
  --brown-mid: #6b4f38;
  --brown-light: #c4a882;
  --white-warm: rgba(247, 242, 232, 0.95);
  --white-faint: rgba(247, 242, 232, 0.15);
  --text: #2c1f14;
  --text-mid: #6b4f38;
  --text-dim: rgba(44, 31, 20, 0.6);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- UTILS ---- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--moss);
  margin-bottom: 24px;
}

h2 em {
  font-style: italic;
  color: var(--amber);
}

p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

p em { font-style: italic; color: var(--brown-mid); }

.text-link {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--sage-dark);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--moss);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74, 92, 63, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--sage-dark);
  border: 1.5px solid var(--sage-light);
}
.btn-outline:hover {
  background: var(--sage-dark);
  color: var(--cream);
  border-color: var(--sage-dark);
}

.btn-nav {
  background: var(--cream-dark);
  color: var(--sage-dark);
  border: 1px solid var(--sage-light);
  padding: 10px 20px;
  font-size: 0.82rem;
}
.btn-nav:hover {
  background: var(--sage-dark);
  color: var(--cream);
  border-color: var(--sage-dark);
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: background 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(247, 242, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 127, 94, 0.2);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--moss);
  text-decoration: none;
  letter-spacing: 0.02em;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(61, 79, 50, 0.1) 0%,
    rgba(247, 242, 232, 0) 30%,
    rgba(44, 31, 20, 0.3) 60%,
    rgba(44, 31, 20, 0.75) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
  padding-top: 120px;
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--amber-light);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(247, 242, 232, 0.85);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(247, 242, 232, 0.5);
  font-size: 1rem;
  animation: drift 2.5s ease-in-out infinite;
  z-index: 2;
}

@keyframes drift {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ---- SERIES ---- */
.series { background: var(--cream); }

.series-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}

@media (min-width: 768px) {
  .series-inner { grid-template-columns: 1.2fr 1fr; }
}

.series-text h2 { margin-bottom: 20px; }

.series-world {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.world-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--cream-dark);
  border-radius: var(--radius);
  border: 1px solid rgba(107, 127, 94, 0.2);
  transition: border-color 0.2s, transform 0.2s;
}

.world-card:hover {
  border-color: var(--sage-light);
  transform: translateX(4px);
}

.world-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.world-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--moss);
  margin-bottom: 4px;
}

.world-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-dim);
}

/* ---- SCIENCE ---- */
.science { background: var(--moss); }

.science .label { color: var(--sage-light); }
.science h2 { color: var(--cream); }
.science h2 em { color: var(--amber-light); }

.science-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}

@media (min-width: 640px) {
  .science-grid { grid-template-columns: repeat(2, 1fr); }
}

.science-item {
  padding: 32px 28px;
  border: 1px solid rgba(247, 242, 232, 0.1);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.science-item:hover {
  border-color: rgba(247, 242, 232, 0.25);
  background: rgba(247, 242, 232, 0.05);
}

.science-number {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--amber-light);
}

.science-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.science-item p {
  font-size: 0.92rem;
  color: rgba(247, 242, 232, 0.7);
  line-height: 1.7;
  margin: 0;
}

/* ---- CREATOR ---- */
.creator { background: var(--cream-dark); }

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

@media (min-width: 768px) {
  .creator-inner { grid-template-columns: 1fr 1.2fr; }
}

.creator-image-wrap { position: relative; }

.creator-card {
  background: var(--cream);
  border: 1px solid rgba(107, 127, 94, 0.2);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
}

.creator-quote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 400;
  color: var(--moss);
  line-height: 1.6;
  margin-bottom: 20px;
}

.creator-attr {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sage);
  letter-spacing: 0.05em;
}

.creator-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
}

/* ---- EPISODES ---- */
.episodes { background: var(--cream); }

.episodes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 640px) {
  .episodes-grid { grid-template-columns: repeat(2, 1fr); }
}

.ep-card {
  padding: 32px 28px;
  background: var(--cream-dark);
  border: 1px solid rgba(107, 127, 94, 0.15);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ep-card:hover {
  transform: translateY(-4px);
  border-color: var(--sage-light);
  box-shadow: 0 8px 32px rgba(107, 127, 94, 0.12);
}

.ep-more {
  border-style: dashed;
  opacity: 0.8;
}

.ep-num {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
}

.ep-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--moss);
}

.ep-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin: 0;
  flex: 1;
}

.ep-science {
  font-size: 0.8rem;
  color: var(--sage);
  font-style: italic;
  padding-top: 12px;
  border-top: 1px solid rgba(107, 127, 94, 0.15);
}

/* ---- BLOG ---- */
.ttb-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 640px) {
  .ttb-blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.ttb-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--cream-dark);
  border: 1px solid rgba(107, 127, 94, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

a.ttb-blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--sage-light);
  box-shadow: 0 8px 32px rgba(107, 127, 94, 0.12);
}

.ttb-blog-card-media { aspect-ratio: 16 / 9; overflow: hidden; }
.ttb-blog-card-media img { width: 100%; height: 100%; object-fit: cover; }

.ttb-blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ttb-blog-card-date {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

.ttb-blog-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--moss);
}

.ttb-blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ttb-blog-card-link {
  font-size: 0.8rem;
  color: var(--sage);
  font-style: italic;
  padding-top: 8px;
}

.ttb-blog-empty { color: var(--text-dim); }

/* ---- NOTIFY ---- */
.notify {
  background: var(--sage-dark);
  text-align: center;
}

.notify-inner { max-width: 600px; margin: 0 auto; }

.notify .label { color: var(--sage-light); }
.notify h2 { color: var(--cream); }
.notify h2 em { color: var(--amber-light); }
.notify p { color: rgba(247, 242, 232, 0.75); }
.notify .text-link { color: var(--amber-light); }

.notify-leaf {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
  animation: sway 4s ease-in-out infinite;
}

@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0 16px;
  align-items: center;
}

@media (min-width: 480px) {
  .notify-form {
    flex-direction: row;
    justify-content: center;
  }
}

.notify-input {
  flex: 1;
  max-width: 320px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 100px;
  border: 1.5px solid rgba(247, 242, 232, 0.3);
  background: rgba(247, 242, 232, 0.1);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.notify-input::placeholder { color: rgba(247, 242, 232, 0.5); }

.notify-input:focus {
  border-color: var(--amber-light);
  background: rgba(247, 242, 232, 0.15);
}

.notify-fine {
  font-size: 0.78rem;
  color: rgba(247, 242, 232, 0.45);
  margin: 0;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--moss);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(247, 242, 232, 0.08);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--cream);
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(247, 242, 232, 0.55);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: rgba(247, 242, 232, 0.5);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--amber-light); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(247, 242, 232, 0.3);
  margin: 0;
}

/* ---- MOBILE ---- */
@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .hero { min-height: 100svh; }
  .hero-inner { padding-bottom: 60px; }
}

/* ---- TTB ECOSYSTEM CONNECTION ---- */
.eco-nav-links, .eco-nav-actions { display: flex; align-items: center; gap: 16px; }
.eco-nav-links a, .eco-login { color: rgba(247,242,232,0.78); text-decoration: none; font-size: 0.85rem; font-weight: 500; }
.nav.scrolled .eco-nav-links a, .nav.scrolled .eco-login { color: var(--sage-dark); }
.eco-nav-links a:hover, .eco-login:hover { color: var(--amber-light); }
.eco-login { border: 1px solid rgba(247,242,232,0.28); border-radius: 999px; padding: 9px 16px; }
.nav.scrolled .eco-login { border-color: rgba(107,127,94,0.32); }
.ttb-ecosystem-footer { background: #f0ede0; color: #333; padding: 24px; border-top: 1px solid #d5d2c5; text-align: left; }
.eco-footer-brand { max-width: 1100px; margin: 0 auto 16px; }
.eco-footer-brand strong { display: block; color: #111; font-size: 0.92rem; }
.eco-footer-brand span { display: block; color: #888; font-size: 0.78rem; margin-top: 2px; }
.eco-sites { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 14px; }
.eco-site { color: #333; text-decoration: none; line-height: 1.25; }
.eco-site strong { display: block; font-size: 0.82rem; }
.eco-site span { display: block; font-size: 0.7rem; color: #888; }
.eco-site.is-active { opacity: 0.48; pointer-events: none; }
@media (max-width: 760px) { .nav-inner { gap: 10px; flex-wrap: wrap; } .eco-nav-links { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 12px; } .eco-nav-actions { gap: 8px; } .eco-login { padding: 8px 12px; } .eco-sites { grid-template-columns: 1fr 1fr; } }

/* ---- HEADER/FOOTER FIX ---- */
.nav-logo { color: var(--cream); text-shadow: 0 1px 10px rgba(0,0,0,0.35); }
.nav.scrolled .nav-logo { color: var(--moss); text-shadow: none; }
.nav:not(.scrolled) .btn-nav {
  background: rgba(247, 242, 232, 0.92);
  color: var(--sage-dark);
  border-color: rgba(247, 242, 232, 0.65);
}
.footer-current {
  color: rgba(247, 242, 232, 0.32);
  font-size: 0.82rem;
}
@media (max-width: 560px) {
  .nav { padding: 12px 16px; }
  .nav-inner { gap: 12px; }
  .nav-logo { font-size: 1.08rem; }
  .btn-nav { padding: 8px 12px; font-size: 0.76rem; }
}
