/* Stork Academy -- shared article template styles
   Warm editorial direction, mobile-first. Every article page loads this one file. */

:root {
  --bg: #faf6ee;
  --ink: #2c2420;
  --ink-soft: #6b5f54;
  --rule: #e6ddcc;
  --tag-bg: #efe6d8;
  --tag-ink: #4a4136;
  --terracotta: #c1502e;
  --terracotta-ink: #7a2f18;
  --teal: #20443c;
  --teal-tint: #e7efec;
  --card: #fff;
  --img-fill: #e9dcc8;
  --max: 680px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 0.5em;
}

a { color: var(--terracotta-ink); }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 0 auto; }

/* ---------- Nav ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 20px 16px;
}
.wordmark {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 19px;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wordmark img { height: 30px; width: auto; border-radius: 0; }
.nav-links { display: none; gap: 20px; font-size: 14px; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-menu-btn {
  background: none; border: none; padding: 4px;
  color: var(--ink); font-size: 22px; line-height: 1;
  cursor: pointer;
}
@media (min-width: 680px) {
  .site-nav { padding: 30px 20px 22px; }
  .wordmark img { height: 40px; }
  .nav-links { display: flex; gap: 28px; font-size: 15px; }
  .nav-menu-btn { display: none; }
}

/* ---------- Article shell ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 20px 60px; }

.breadcrumb {
  font-size: 13px; color: var(--ink-soft); margin: 4px 0 18px;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }

.pillar-tag {
  display: inline-block;
  background: var(--terracotta);
  color: #fdf1ea;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-decoration: none;
}

article h1 {
  font-size: 30px;
  margin-bottom: 10px;
}
@media (min-width: 680px) {
  article h1 { font-size: 36px; }
}

.meta-line {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid var(--rule);
}
.meta-line .trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal);
  font-weight: 500;
}

/* ---------- Quick answer callout ---------- */
.quick-answer {
  background: var(--teal-tint);
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  margin: 0 0 30px;
  font-size: 16px;
}
.quick-answer p { margin: 0; }
.quick-answer .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
  font-weight: 600;
}

/* ---------- Body copy ---------- */
article .body p { margin: 0 0 20px; }
article .body h2 {
  font-size: 23px;
  margin-top: 42px;
  margin-bottom: 14px;
}
article .body h3 {
  font-size: 18px;
  margin-top: 30px;
  margin-bottom: 10px;
}
article .body ul, article .body ol {
  padding-left: 22px;
  margin: 0 0 20px;
}
article .body li { margin-bottom: 8px; }
article .body figure { margin: 0 auto 24px; text-align: center; }
article .body figcaption {
  font-size: 13px; color: var(--ink-soft); margin-top: 8px; text-align: center;
}
article .body strong { color: var(--ink); }

/* ---------- Product callout ---------- */
.product-callout {
  background: var(--card);
  border: 0.5px solid var(--rule);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 30px 0;
  display: flex;
  gap: 14px;
  align-items: center;
}
.product-callout .info { flex: 1; min-width: 0; }
.product-callout .info .kicker {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--terracotta-ink); margin-bottom: 3px;
}
.product-callout .info .name { font-weight: 600; font-size: 15px; }
.product-callout .info .why { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.product-callout a.btn {
  flex-shrink: 0;
  font-size: 13px;
  border: 0.5px solid var(--ink);
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--ink);
}

/* ---------- Recommendations page ---------- */
.rec-intro { max-width: var(--max); margin: 0 auto 30px; }
.rec-intro .disclosure { font-size: 13px; color: var(--ink-soft); font-style: italic; }
.rec-pillar-nav {
  max-width: var(--max); margin: 0 auto 44px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.rec-pillar-nav a {
  font-size: 13px; text-decoration: none; color: var(--tag-ink);
  background: var(--tag-bg); border-radius: 20px; padding: 7px 14px;
}
.rec-section { max-width: var(--max); margin: 0 auto 48px; }
.rec-section h2 { font-size: 24px; margin-bottom: 6px; }
.rec-section > p { color: var(--ink-soft); margin: 0 0 20px; }
.rec-grid { display: flex; flex-direction: column; gap: 18px; }
.rec-card {
  background: var(--card); border: 0.5px solid var(--rule); border-radius: 14px;
  padding: 18px; display: flex; gap: 18px; align-items: flex-start;
}
.rec-card img {
  width: 84px; height: 84px; object-fit: contain; flex-shrink: 0;
  background: var(--img-fill); border-radius: 10px; padding: 8px;
}
.rec-card .rec-body { flex: 1; min-width: 0; }
.rec-card h3 { font-size: 17px; margin: 0 0 6px; }
.rec-card h3 a { color: var(--ink); text-decoration: none; }
.rec-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 10px; }
.rec-card a.btn {
  display: inline-block; font-size: 13px; border: 0.5px solid var(--ink);
  border-radius: 8px; padding: 7px 14px; text-decoration: none; color: var(--ink);
}
.rec-card.rec-new { border-color: var(--terracotta); }
.rec-card .rec-badge {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--terracotta-ink); font-weight: 600; margin-bottom: 4px; display: block;
}
@media (max-width: 480px) {
  .rec-card { flex-direction: column; }
  .rec-card img { width: 64px; height: 64px; }
}

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; }
.faq h2 { font-size: 22px; margin-bottom: 14px; }
.faq details {
  border-bottom: 0.5px solid var(--rule);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--terracotta);
  font-size: 20px;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- References ---------- */
.references {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-left: 20px;
}
.references li { margin-bottom: 10px; }

/* ---------- Inline amazon link ---------- */
.amazon-inline-link {
  margin: -8px 0 20px;
}
.amazon-inline-link a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--terracotta-ink);
  border-bottom: 1px solid var(--terracotta);
  text-decoration: none;
}

/* ---------- Course CTA (single, removable) ---------- */
.course-cta {
  background: var(--teal);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
}
.course-cta .eyebrow { font-size: 12px; color: #bcd8cf; margin-bottom: 3px; }
.course-cta .title { font-family: "Fraunces", serif; font-size: 16px; color: #fdf1ea; }
.course-cta .arrow { color: #fdf1ea; font-size: 18px; flex-shrink: 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--teal-tint);
  margin-top: 50px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px 26px;
}
.footer-signup-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.signup-row-encharge { margin-bottom: 28px; max-width: 420px; }
.signup-row { display: flex; gap: 8px; margin: 10px 0 22px; }
.signup-row input {
  flex: 1; height: 40px; border-radius: 8px; border: 0.5px solid #d8cdb9;
  padding: 0 12px; font-size: 14px; background: #fff; font-family: inherit;
}
.signup-row button {
  height: 40px; padding: 0 18px; border-radius: 8px; border: none;
  background: var(--ink); color: var(--bg); font-size: 14px; cursor: pointer;
}
.footer-bottom {
  padding-top: 20px;
  border-top: 0.5px solid rgba(32, 68, 60, 0.15);
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 14px;
}
.footer-bottom-links a { text-decoration: none; }
.footer-bottom-links a.primary { color: var(--teal); font-weight: 600; font-size: 13px; }
.footer-bottom-links a.legal { color: var(--ink-soft); font-weight: 400; font-size: 12px; }
.copyright { font-size: 12px; color: var(--ink-soft); margin: 0; }

/* ---------- Homepage ---------- */
.home-hero { max-width: var(--max); margin: 0 auto; padding: 6px 20px 22px; }
.home-hero-title {
  font-size: 30px;
  margin-bottom: 10px;
}
.home-hero-sub { font-size: 15px; color: var(--ink-soft); margin: 0; }
@media (min-width: 680px) {
  .home-hero-title { font-size: 38px; }
  .home-hero-sub { font-size: 17px; }
}

.home-hero-sub { display: block; }

.pillar-row {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 20px 22px;
}
.pillar-pill {
  flex-shrink: 0;
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.tool-teaser {
  max-width: calc(var(--max) - 40px);
  margin: 0 auto 36px;
  background: var(--teal);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}
.tool-teaser .eyebrow { font-size: 12px; color: #bcd8cf; margin-bottom: 3px; }
.tool-teaser .title { font-family: "Fraunces", serif; font-size: 17px; color: #fdf1ea; }
.tool-teaser .arrow { color: #fdf1ea; font-size: 18px; }

.section-label {
  max-width: var(--max); margin: 0 auto;
  padding: 0 20px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--terracotta-ink);
  font-weight: 600;
  margin-bottom: 10px;
}
.recent-articles { margin-bottom: 42px; }

.article-row {
  display: block;
  max-width: var(--max); margin: 0 auto;
  padding: 14px 20px;
  border-top: 0.5px solid var(--rule);
  text-decoration: none;
}
.pillar-tag-small {
  font-size: 11px;
  color: var(--terracotta-ink);
  font-weight: 600;
}
.article-row-title {
  font-family: "Fraunces", serif;
  font-size: 17px;
  color: var(--ink);
  margin: 4px 0 0;
  line-height: 1.35;
}

/* ---------- Homepage pillar blocks ---------- */
/* Each pillar gets its own soft card, alternating a hair of teal tint, so the
   page reads as distinct topic blocks rather than one long flat list. */
.pillar-section {
  max-width: calc(var(--max) + 24px);
  margin: 0 auto 20px;
  padding: 22px 0 8px;
  border-radius: 18px;
  background: var(--card);
  border: 0.5px solid var(--rule);
}
.pillar-section:nth-of-type(even) { background: var(--teal-tint); border-color: rgba(32,68,60,0.12); }
.pillar-section .article-row:first-of-type { border-top: none; }

.pillar-heading {
  max-width: var(--max); margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.pillar-heading .icon { font-size: 22px; line-height: 1; }
.pillar-heading h2 {
  font-size: 20px;
  margin: 0;
}
.pillar-section .article-row { padding-left: 22px; padding-right: 22px; }
.view-all-row .article-row-title { color: var(--terracotta-ink); font-size: 15px; font-family: "Inter", sans-serif; font-weight: 600; }

/* ---------- Pillar hub page + all-articles page ---------- */
.hub-hero {
  max-width: calc(var(--max) + 24px);
  margin: 0 auto 26px;
  padding: 26px 24px;
  border-radius: 18px;
  background: var(--teal);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hub-hero .icon { font-size: 32px; line-height: 1; flex-shrink: 0; }
.hub-hero h1 { color: #fdf1ea; margin: 0; font-size: 26px; }
.hub-hero .count { color: #bcd8cf; font-size: 13px; margin-top: 4px; }
@media (min-width: 680px) {
  .hub-hero h1 { font-size: 32px; }
}

.all-articles-nav {
  max-width: var(--max); margin: 0 auto 30px;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 20px;
}
.all-articles-nav a {
  font-size: 13px; text-decoration: none; color: var(--tag-ink);
  background: var(--tag-bg); border-radius: 20px; padding: 6px 13px;
  display: inline-flex; align-items: center; gap: 5px;
}

/* ---------- Fertility calculator ---------- */
.calc-widget {
  background: var(--card);
  border: 0.5px solid var(--rule);
  border-radius: 14px;
  padding: 24px 22px;
  margin-bottom: 34px;
}
.calc-label {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 17px;
  margin-bottom: 14px;
}
.calc-label span { color: var(--terracotta-ink); font-weight: 600; }
input[type="range"] {
  width: 100%;
  accent-color: var(--terracotta);
  margin-bottom: 20px;
}
.calc-radio-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.calc-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}
.calc-radio input { accent-color: var(--terracotta); width: 16px; height: 16px; }
.calc-result {
  background: var(--teal-tint);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}
.calc-result-value {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--teal);
}
.calc-result-label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}
@media (min-width: 480px) {
  .calc-radio-row { flex-direction: row; gap: 20px; }
}

/* ---------- TTC quiz ---------- */
.quiz-widget {
  background: var(--card);
  border: 0.5px solid var(--rule);
  border-radius: 14px;
  padding: 22px 20px;
}
.quiz-progress {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--terracotta-ink);
  font-weight: 600;
  margin: 0 0 14px;
}
.quiz-image { max-width: 100%; border-radius: 10px; margin: 0 auto 16px; display: block; }
.quiz-question-title {
  font-family: "Fraunces", serif;
  font-size: 19px;
  margin: 0 0 16px;
  line-height: 1.35;
}
.quiz-answers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.quiz-answer-btn {
  text-align: left;
  padding: 12px 16px;
  border-radius: 10px;
  border: 0.5px solid var(--rule);
  background: var(--bg);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.quiz-answer-btn:disabled { cursor: default; }
.quiz-answer-btn.correct { background: #dcefe2; border-color: #7fb894; font-weight: 600; }
.quiz-answer-btn.incorrect { background: #f6dede; border-color: #d99a9a; }
.quiz-explanation {
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--teal-tint);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0 0;
}
.quiz-next-btn {
  margin-top: 16px;
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: var(--terracotta);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.quiz-result { text-align: center; }
.quiz-result-image { max-width: 200px; margin: 0 auto 16px; border-radius: 10px; }
.quiz-result-score {
  font-family: "Fraunces", serif;
  font-size: 30px;
  color: var(--terracotta-ink);
  margin: 0 0 6px;
}
.quiz-result-title { font-weight: 600; margin: 0 0 10px; }
.quiz-result-desc { font-size: 14px; color: var(--ink-soft); text-align: left; margin-bottom: 6px; }
.quiz-result-desc p { margin: 0 0 10px; }

.affiliate-disclosure { font-size: 13px; color: var(--ink-soft); margin: -8px 0 22px; }
