/* ============================================
   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);
}

/* ---------- 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;
}

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