/* ═══════════════════════════════════════════
   THE TRUST COLLECTIVE — Global Stylesheet
   ═══════════════════════════════════════════ */

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

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

:root {
  --earth: #1a1610;
  --stone: #2d2820;
  --stone-mid: #3a332a;
  --sage: #4a5c4a;
  --sage-light: #5a7a5a;
  --horizon: #7a9e8a;
  --mist: #b8c9be;
  --light: #e8ede9;
  --gold: #c4a882;
  --gold-dim: rgba(196,168,130,0.55);
  --warm: #f0e8d8;
  --parchment: #f5f0e8;
  --parchment-deep: #ede5d8;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', -apple-system, sans-serif;

  --ease-gentle: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  background: var(--earth);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes materialize {
  0% { opacity: 0; filter: blur(6px); transform: translateY(10px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-gentle), transform 0.8s var(--ease-gentle);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SHARED COMPONENTS ── */

/* Wordmark */
.tc-wordmark {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* Thin rule */
.tc-rule {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,168,130,0.4), transparent);
  margin: 0 auto;
}

/* Buttons */
.tc-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 15px 42px;
  border: 1px solid rgba(196,168,130,0.38);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease-gentle);
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-align: center;
}
.tc-btn--gold {
  color: var(--gold);
}
.tc-btn--gold:hover {
  border-color: rgba(196,168,130,0.75);
  color: var(--warm);
  background: rgba(196,168,130,0.06);
}
.tc-btn--sage {
  color: var(--sage);
  border-color: rgba(74,92,74,0.38);
}
.tc-btn--sage:hover {
  background: rgba(74,92,74,0.06);
  border-color: var(--sage);
}

/* Section label */
.tc-eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(196,168,130,0.48);
}

/* ── SITE HEADER ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, box-shadow 0.4s;
}
.site-header.scrolled {
  background: rgba(26,22,16,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(196,168,130,0.08);
}
.site-header__logo {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(196,168,130,0.55);
  transition: color 0.3s;
}
.site-header__logo:hover { color: var(--gold); }

.site-header__nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.site-header__link {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0.6;
  transition: opacity 0.3s, color 0.3s;
}
.site-header__link:hover {
  opacity: 1;
  color: var(--gold);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--mist);
  margin: 5px 0;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .site-header__nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26,22,16,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 99;
  }
  .site-header__nav.open { display: flex; }
  .site-header__nav.open .site-header__link {
    font-size: 14px;
    letter-spacing: 0.2em;
    opacity: 0.8;
  }
}

/* ── FAQ STICKY BAR ── */
.faq-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(26,22,16,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(196,168,130,0.1);
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-gentle);
}
.faq-bar.visible { transform: translateY(0); }
.faq-bar__text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--mist);
  opacity: 0.7;
}
.faq-bar__link {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(196,168,130,0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}
.faq-bar__link:hover { border-color: var(--gold); }

/* ── ESSAY PAGE LAYOUT ── */
.essay-page {
  background: var(--parchment);
  color: var(--earth);
  min-height: 100vh;
  padding: 100px 24px 120px;
  display: flex;
  justify-content: center;
}
.essay-wrap {
  max-width: 680px;
  width: 100%;
}
.essay-logo {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(74,92,74,0.55);
  margin-bottom: 8px;
}
.essay-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 300;
  color: var(--earth);
  margin-bottom: 8px;
  line-height: 1.25;
}
.essay-subtitle {
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 300;
  font-style: italic;
  color: #6b7280;
  margin-bottom: 48px;
}
.essay-h2 {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  color: var(--sage);
  margin: 48px 0 18px;
  letter-spacing: 0.01em;
}
.essay-h3 {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 500;
  color: var(--earth);
  margin: 32px 0 12px;
}
.essay-p {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 300;
  line-height: 1.78;
  color: #2d2820;
  margin-bottom: 16px;
}
.essay-p strong {
  font-weight: 500;
  color: var(--earth);
}
.essay-p em {
  font-style: italic;
  color: #4a4035;
}
.essay-blockquote {
  border-left: 2px solid rgba(196,168,130,0.5);
  padding-left: 24px;
  margin: 28px 0;
  font-style: italic;
  color: #4a4035;
}
.essay-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,168,130,0.5), transparent);
  margin: 44px 0;
}
.essay-closing {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 300;
  font-style: italic;
  text-align: center;
  color: var(--earth);
  margin: 52px 0 16px;
}
.essay-thread {
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 300;
  font-style: italic;
  text-align: center;
  color: var(--sage);
  margin-bottom: 48px;
}

/* Essay navigation footer */
.essay-nav {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(74,92,74,0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.essay-nav__label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(74,92,74,0.55);
}
.essay-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.essay-nav__link {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--sage);
  border: 1px solid rgba(74,92,74,0.25);
  padding: 10px 20px;
  border-radius: 2px;
  transition: all 0.3s;
}
.essay-nav__link:hover {
  background: rgba(74,92,74,0.06);
  border-color: var(--sage);
}

/* ── LIBRARY PAGE ── */
.library-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
}
.library-card {
  background: rgba(74,92,74,0.04);
  border: 1px solid rgba(74,92,74,0.12);
  padding: 28px 32px;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}
.library-card:hover {
  background: rgba(74,92,74,0.08);
  border-color: rgba(74,92,74,0.25);
}
.library-card__title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  color: var(--earth);
  margin-bottom: 12px;
}
.library-card__summary {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: #4a4035;
}
.library-card__status {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 14px;
  opacity: 0.7;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--earth);
  border-top: 1px solid rgba(196,168,130,0.08);
  padding: 48px 24px;
  text-align: center;
}
.site-footer__thread {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: var(--mist);
  opacity: 0.5;
  margin-bottom: 16px;
}
.site-footer__copy {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 0.15em;
  color: rgba(184,201,190,0.25);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .essay-page { padding: 80px 20px 100px; }
  .library-card { padding: 22px 20px; }
}
