@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --teal: #1D9E75;
  --teal-light: #E1F5EE;
  --teal-dark: #0F6E56;
  --blue: #185FA5;
  --blue-light: #E6F1FB;
  --amber: #B97A17;
  --amber-light: #FAEEDA;
  --purple: #534AB7;
  --purple-light: #EEEDFE;
  --ink: #1a1a18;
  --ink-muted: #52524d;
  --ink-faint: #8a8a82;
  --paper: #fafaf7;
  --paper-warm: #f4f3ee;
  --border: rgba(26,26,24,0.10);
  --border-mid: rgba(26,26,24,0.18);
  --radius: 10px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: 'Lora', serif;
  font-size: 17px; font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
}

.nav-links {
  display: flex; gap: 28px; list-style: none;
}
.nav-links a {
  font-size: 13.5px; font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-join {
  font-size: 13px; font-weight: 500;
  padding: 7px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 99px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-join:hover { opacity: 0.8; }

/* ── HERO ── */
.hero {
  max-width: 780px; margin: 0 auto;
  padding: 72px 40px 60px;
  text-align: center;
}
.hero-eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal-dark);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600; line-height: 1.2;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero-sub {
  font-size: 17px; color: var(--ink-muted);
  max-width: 500px; margin: 0 auto 32px;
  line-height: 1.65;
}
.hero-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.btn {
  font-size: 14px; font-weight: 500;
  padding: 10px 22px; border-radius: 99px;
  text-decoration: none; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid transparent;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { opacity: 0.82; }
.btn-outline { background: transparent; border-color: var(--border-mid); color: var(--ink); }
.btn-outline:hover { background: var(--paper-warm); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }

/* ── WHAT WE DO CARDS ── */
.section { padding: 48px 40px; }
.section-inner { max-width: 1080px; margin: 0 auto; }

.section-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::after {
  content: ''; flex: 1; height: 0.5px;
  background: var(--border);
}

.what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.what-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none; color: inherit; display: block;
}
.what-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
}
.what-icon {
  font-size: 22px; margin-bottom: 12px;
}
.what-title { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.what-desc { font-size: 13px; color: var(--ink-muted); line-height: 1.55; }
.what-tag {
  display: inline-block; margin-top: 14px;
  font-size: 11px; font-weight: 500; padding: 4px 10px;
  border-radius: 99px;
}
.tag-teal { background: var(--teal-light); color: var(--teal-dark); }
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-purple { background: var(--purple-light); color: var(--purple); }
.tag-amber { background: var(--amber-light); color: var(--amber); }

/* ── BLOG ── */

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card-link:hover .blog-card,
.blog-card-link:focus-visible .blog-card {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.blog-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  text-decoration: none; color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
}
.blog-cat {
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 8px;
}
.blog-title {
  font-family: 'Lora', serif;
  font-size: 18px; font-weight: 600; line-height: 1.35;
  margin-bottom: 10px;
}
.blog-excerpt { font-size: 13px; color: var(--ink-muted); line-height: 1.6; }
.blog-meta {
  margin-top: 16px; padding-top: 14px;
  border-top: 0.5px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.blog-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; color: #fff; flex-shrink: 0;
}
.blog-meta-text { font-size: 12px; color: var(--ink-muted); }
.blog-meta-text strong { color: var(--ink); font-weight: 500; }

/* ── PODCAST ── */
.podcast-list { display: flex; flex-direction: column; gap: 10px; }
.podcast-item {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
  transition: background 0.12s;
}
.podcast-item:hover { background: var(--paper-warm); }
.play-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal-light);
  border: none; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
}
.play-btn:hover { background: var(--teal); }
.play-btn:hover svg path { fill: #fff; }
.play-btn svg { width: 14px; height: 14px; margin-left: 2px; }
.play-btn svg path { fill: var(--teal); transition: fill 0.12s; }
.ep-info { flex: 1; }
.ep-num { font-size: 11px; color: var(--ink-faint); margin-bottom: 2px; }
.ep-title { font-size: 14px; font-weight: 500; }
.ep-dur { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }

/* ── SCIENCE CAFÉ ── */
.cafe-section { background: var(--paper-warm); }
.cafe-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; gap: 24px;
  align-items: flex-start;
}
.cafe-date-block {
  text-align: center; flex-shrink: 0;
  background: var(--teal); border-radius: var(--radius);
  padding: 10px 16px; color: #fff; min-width: 58px;
}
.cafe-month { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.cafe-day { font-size: 30px; font-weight: 300; line-height: 1; margin-top: 2px; }
.cafe-body { flex: 1; }
.cafe-title {
  font-family: 'Lora', serif;
  font-size: 20px; font-weight: 600; margin-bottom: 8px;
}
.cafe-detail { font-size: 13.5px; color: var(--ink-muted); margin-bottom: 4px; }
.cafe-desc { font-size: 14px; color: var(--ink-muted); line-height: 1.6; margin: 12px 0 18px; }
.past-topics { margin-top: 28px; }
.past-title { font-size: 13px; font-weight: 500; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 12px; }
.past-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.past-list li {
  font-size: 14px; color: var(--ink-muted);
  padding-left: 16px; position: relative;
}
.past-list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-mid);
}

/* ── ABOUT STRIP ── */
.about-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 40px;
  text-align: center;
}
.about-strip h2 {
  font-family: 'Lora', serif;
  font-size: 28px; font-weight: 600;
  margin-bottom: 14px;
}
.about-strip p { font-size: 16px; opacity: 0.7; max-width: 500px; margin: 0 auto 28px; line-height: 1.65; }
.about-strip .btn-outline { border-color: rgba(255,255,255,0.3); color: var(--paper); }
.about-strip .btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ── FOOTER ── */
footer {
  border-top: 0.5px solid var(--border);
  padding: 28px 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-logo {
  font-family: 'Lora', serif;
  font-size: 14px; font-weight: 600; color: var(--ink);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.footer-logo .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 12px; color: var(--ink-faint); }

/* ── PAGE-SPECIFIC: BLOG ── */
.page-hero {
  max-width: 700px; margin: 0 auto;
  padding: 56px 40px 40px;
}
.page-hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(28px,4vw,40px); font-weight: 600; margin-bottom: 10px;
}
.page-hero p { font-size: 16px; color: var(--ink-muted); }

.filter-bar {
  max-width: 1080px; margin: 0 auto;
  padding: 0 40px 28px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.filter-btn {
  font-size: 13px; padding: 6px 14px; border-radius: 99px;
  border: 0.5px solid var(--border-mid); background: transparent;
  color: var(--ink-muted); cursor: pointer; transition: all 0.12s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

.posts-grid {
  max-width: 1080px; margin: 0 auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

/* ── PAGE-SPECIFIC: SCIENCE CAFÉ ── */
.cafe-page-hero {
  background: var(--teal);
  color: #fff;
  padding: 64px 40px;
  text-align: center;
}
.cafe-page-hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(28px,4vw,44px); font-weight: 600; margin-bottom: 12px;
}
.cafe-page-hero p { font-size: 17px; opacity: 0.88; max-width: 520px; margin: 0 auto; line-height: 1.65; }

.how-it-works {
  max-width: 820px; margin: 0 auto;
  padding: 56px 40px;
}
.how-it-works h2 {
  font-family: 'Lora', serif;
  font-size: 24px; font-weight: 600; margin-bottom: 24px;
}
.steps { display: flex; flex-direction: column; gap: 20px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal-dark);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-text strong { font-weight: 500; display: block; margin-bottom: 2px; }
.step-text { font-size: 14px; color: var(--ink-muted); line-height: 1.55; }

/* ── PAGE-SPECIFIC: WORKSHOPS ── */
.workshops-grid {
  max-width: 1080px; margin: 0 auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.workshop-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
}
.workshop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
}
.workshop-banner {
  height: 8px;
}
.workshop-body { padding: 20px; }
.workshop-type { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-faint); margin-bottom: 6px; }
.workshop-title { font-family: 'Lora', serif; font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.workshop-desc { font-size: 13px; color: var(--ink-muted); line-height: 1.55; margin-bottom: 14px; }
.workshop-meta { display: flex; gap: 14px; font-size: 12px; color: var(--ink-faint); }
.workshop-meta span { display: flex; align-items: center; gap: 4px; }

/* ── PAGE-SPECIFIC: PODCAST ── */
.podcast-page { max-width: 720px; margin: 0 auto; padding: 0 40px 60px; }
.podcast-item-full {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 14px;
  display: flex; gap: 16px; align-items: flex-start;
}
.play-btn-lg {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal-light); border: none; cursor: pointer;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
}
.play-btn-lg:hover { background: var(--teal); }
.play-btn-lg:hover svg path { fill: #fff; }
.play-btn-lg svg { width: 16px; height: 16px; margin-left: 2px; }
.play-btn-lg svg path { fill: var(--teal); transition: fill 0.12s; }
.ep-full-num { font-size: 11px; color: var(--ink-faint); margin-bottom: 3px; }
.ep-full-title { font-family: 'Lora', serif; font-size: 17px; font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
.ep-full-desc { font-size: 13.5px; color: var(--ink-muted); line-height: 1.6; }
.ep-full-meta { margin-top: 12px; font-size: 12px; color: var(--ink-faint); display: flex; gap: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .section { padding: 36px 20px; }
  .hero { padding: 48px 20px 40px; }
  .cafe-card { flex-direction: column; }
  footer { flex-direction: column; text-align: center; padding: 24px 20px; }
  .page-hero { padding: 40px 20px 28px; }
  .filter-bar { padding: 0 20px 20px; }
  .posts-grid { padding: 0 20px 40px; }
  .workshops-grid { padding: 0 20px 40px; }
  .podcast-page { padding: 0 20px 40px; }
  .how-it-works { padding: 36px 20px; }
  .cafe-page-hero { padding: 48px 20px; }
  .about-strip { padding: 48px 20px; }
}
