/* ============================================
   Tribe Travel Truth — shared design system
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Public+Sans:wght@400;500;600&display=swap');

:root {
  --ivory: #FAF6EF;
  --sage: #C9D4C0;
  --blush: #E8D3CA;
  --stone-blue: #B8C4C9;
  --charcoal: #1F2A33;
  --charcoal-soft: #3C4750;
  --max-width: 760px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal-soft);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--charcoal);
  font-weight: 500;
  line-height: 1.18;
  margin: 0;
}

a {
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--stone-blue);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

a:hover, a:focus-visible {
  text-decoration-color: var(--charcoal);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  padding: 32px var(--gutter) 24px;
  border-bottom: 1px solid var(--stone-blue);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark {
  display: block;
  height: 56px;
  width: auto;
}

@media (max-width: 520px) {
  .wordmark {
    height: 44px;
  }
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.site-nav a {
  color: var(--charcoal-soft);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover, .site-nav a.active {
  color: var(--charcoal);
  border-bottom-color: var(--charcoal);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 46px);
  max-width: 16ch;
}

.hero p.lede {
  margin-top: 20px;
  font-size: 18px;
  max-width: 58ch;
}

.hero .cta-row {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 13px 26px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover, .btn:focus-visible {
  background: var(--charcoal-soft);
}

.btn-quiet {
  background: none;
  color: var(--charcoal);
  padding: 13px 0;
  border-bottom: 1px solid var(--charcoal);
  border-radius: 0;
  text-decoration: none;
}

.btn-quiet:hover {
  color: var(--charcoal-soft);
}

/* ---------- Sections ---------- */

section {
  padding: 56px 0;
}

section.tinted {
  background: var(--sage);
  padding: 56px var(--gutter);
}
section.tinted .wrap { padding: 0; }

section > h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

section > p.section-intro {
  max-width: 60ch;
  margin-top: 8px;
  margin-bottom: 32px;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--stone-blue);
  margin: 0;
}

/* ---------- Three threads grid ---------- */

.thread-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.thread-card {
  padding: 28px 24px;
  border-radius: 6px;
  background: var(--ivory);
}
.thread-card:nth-child(1) { background: var(--sage); }
.thread-card:nth-child(2) { background: var(--blush); }
.thread-card:nth-child(3) { background: var(--stone-blue); }

.thread-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.thread-card p {
  font-size: 15px;
  margin: 0;
}

@media (max-width: 640px) {
  .thread-grid { grid-template-columns: 1fr; }
}

/* ---------- Study / product index list ---------- */

.study-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.study-list li {
  border-top: 1px solid var(--stone-blue);
  padding: 32px 0;
}

.study-list li:last-child {
  border-bottom: 1px solid var(--stone-blue);
}

.study-entry-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}

.study-entry-top h3 {
  font-size: 23px;
}

.study-meta {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--charcoal-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.study-desc {
  margin-top: 12px;
  max-width: 62ch;
  font-size: 15.5px;
}

.study-includes {
  margin-top: 10px;
  font-size: 14px;
  color: var(--charcoal-soft);
}

.study-list .btn {
  margin-top: 16px;
}

/* ---------- How it works list ---------- */

.simple-list {
  margin: 0;
  padding-left: 20px;
}
.simple-list li {
  margin-bottom: 8px;
}

/* ---------- Product page ---------- */

.product-header {
  padding: 56px 0 8px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
}

.product-header h1 {
  font-size: clamp(30px, 4.5vw, 40px);
}

.product-price {
  margin-top: 16px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  color: var(--charcoal);
}

.product-buy {
  margin-top: 28px;
}

.includes-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.includes-list li {
  padding: 10px 0;
  border-top: 1px solid var(--stone-blue);
  font-size: 15.5px;
}

.includes-list li:last-child {
  border-bottom: 1px solid var(--stone-blue);
}

/* ---------- Collection shelf (teen studies) ---------- */

.collection-shelf {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--stone-blue);
}

.collection-shelf h2 {
  font-size: 26px;
}

.collection-shelf .section-intro {
  margin-bottom: 20px;
}

.shared-note {
  margin: 0 0 24px;
  padding: 12px 16px;
  background: var(--blush);
  border-radius: 4px;
  font-size: 14px;
  color: var(--charcoal);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.study-card {
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--stone-blue);
  border-radius: 6px;
  overflow: hidden;
}

.study-card img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 3px solid var(--accent, var(--stone-blue));
}

.study-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.study-card-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.study-card-body h3 a {
  text-decoration: none;
}

.study-card-hook {
  font-size: 14px;
  color: var(--charcoal-soft);
  margin: 0 0 16px;
  flex: 1;
}

.study-card-body .btn {
  align-self: flex-start;
}

/* ---------- Teen product pages (accent color) ---------- */

.product-thumb {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--stone-blue);
  margin-bottom: 24px;
}

.product-header .accent-rule {
  display: block;
  width: 56px;
  height: 4px;
  margin: 18px 0 0;
  background: var(--accent, var(--charcoal));
  border-radius: 2px;
}

.product-header .btn-accent {
  background: var(--accent, var(--charcoal));
}

.product-header .btn-accent:hover,
.product-header .btn-accent:focus-visible {
  filter: brightness(0.92);
}

.shared-pill {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--accent, var(--blush));
  color: var(--ivory);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-top: 1px solid var(--stone-blue);
  padding: 24px 0;
}
.faq-item:last-child {
  border-bottom: 1px solid var(--stone-blue);
}
.faq-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.faq-item p {
  margin: 0;
  font-size: 15.5px;
}

/* ---------- Contact form ---------- */

form.contact-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
}

form.contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
  display: block;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--stone-blue);
  border-radius: 4px;
  background: var(--ivory);
  font-family: inherit;
  font-size: 15px;
  color: var(--charcoal);
}

form.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: 2px solid var(--charcoal);
  outline-offset: 1px;
}

/* ---------- Tag list (blog categories) ---------- */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  background: var(--blush);
  color: var(--charcoal);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 14px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--stone-blue);
  padding: 40px var(--gutter) 56px;
  margin-top: 40px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.social-links a {
  color: var(--charcoal-soft);
  display: inline-flex;
  text-decoration: none;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--charcoal);
}

@media (max-width: 520px) {
  .site-nav { gap: 4px 14px; }
}

/* ============================================
   Add this block to the END of your existing styles.css
   (styles for individual blog post pages)
   ============================================ */

.post {
  padding: 56px 0 64px;
  max-width: 680px;
  margin: 0 auto;
}

.post-body p {
  margin: 0 0 22px;
  font-size: 17px;
}

.post-body h2 {
  font-size: 24px;
  margin: 40px 0 16px;
}

.post-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--stone-blue);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  color: var(--charcoal);
}

/* ---------- Newsletter subscribe form (Kit) ---------- */

.subscribe-form {
  margin-top: 20px;
  max-width: 480px;
}

.subscribe-form .formkit-fields {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

.subscribe-form .formkit-field {
  flex: 1 1 220px;
}

.subscribe-form .formkit-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--stone-blue);
  border-radius: 4px;
  background: var(--ivory);
  font-family: inherit;
  font-size: 15px;
  color: var(--charcoal);
}

.subscribe-form .formkit-input:focus {
  outline: 2px solid var(--charcoal);
  outline-offset: 1px;
}

.subscribe-form .formkit-submit {
  flex: 0 0 auto;
}

.subscribe-form .formkit-alert {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 14px;
}

.subscribe-form .formkit-alert:empty {
  display: none;
  margin: 0;
}

.subscribe-form .formkit-alert-success {
  color: var(--charcoal);
}

.subscribe-form .formkit-alert-error {
  color: #B0413E;
}

/* ---------- Footer subscribe (Kit) ---------- */

footer .footer-subscribe {
  display: block;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--stone-blue);
}

.footer-subscribe-title {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  color: var(--charcoal);
}

/* ---------- Buy options (study pages) ---------- */
.buy-options { margin-top: 24px; display: grid; gap: 10px; max-width: 560px; }
.buy-group-title { margin: 14px 0 0; font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--charcoal-soft); }
.buy-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--stone-blue); border-radius: 4px; background: var(--ivory); }
.buy-option-main { border-color: var(--accent, var(--charcoal)); border-width: 2px; }
.buy-option-text { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.buy-option-text span { font-size: 14px; color: var(--charcoal-soft); }
.buy-option .btn { min-width: 76px; text-align: center; padding: 10px 18px; white-space: nowrap; }
.buy-option .btn-quiet { border: 1px solid var(--charcoal); }
@media (max-width: 480px) { .buy-option { flex-direction: column; align-items: stretch; } .buy-option .btn { width: 100%; } }

/* ---------- Shop landing (two doors) ---------- */
.shop-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.shop-door { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--stone-blue); border-radius: 6px; background: var(--sage); text-decoration: none; color: var(--charcoal); }
.shop-door h2 { margin: 0; font-size: 26px; }
.shop-door p { margin: 0; flex: 1; }
.shop-door .btn { align-self: flex-start; }
.shop-door:hover .btn, .shop-door:focus-visible .btn { background: var(--charcoal-soft); }
