/* ============================================
   The Pattern Is Real — homepage stylesheet
   Built 2026-05-26 by Bossy
   Design direction: site/content/design-direction.md
   Reference: literary author site, small magazine,
   contemplative restraint. Make it look like a book.
   ============================================ */

:root {
  --bg: #faf6ee;
  --paper: #f0ead8;
  --ink: #1f1c17;
  --ember: #a04830;
  --slate: #7a736a;
  --rule: rgba(31, 28, 23, 0.08);
}

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

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  line-height: 1.65;
  font-weight: 400;
}

/* ============================================
   Header / Nav
   ============================================ */

header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

nav {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1.5rem;
}

nav .brand {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

nav ul a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.15s ease;
}

nav ul a:hover {
  color: var(--ember);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero .tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0;
}

.hero-logo {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  object-fit: contain;
}

.hero-bio {
  max-width: 540px;
  margin: 3rem auto 0;
  text-align: center;
}

.hero-bio p {
  font-size: 1.15rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.cta {
  margin-top: 1rem;
}

.cta a {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid var(--ember);
  padding-bottom: 3px;
  transition: all 0.15s ease;
}

.cta a:hover {
  background: var(--ember);
  color: var(--bg);
  border-bottom-color: var(--ember);
}

/* ============================================
   Body sections
   ============================================ */

main section {
  max-width: 640px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

main section h2 {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

main section .section-intro {
  color: var(--slate);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

main section p {
  margin-bottom: 1.25rem;
}

main section a {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(160, 72, 48, 0.35);
  transition: border-color 0.15s ease;
}

main section a:hover {
  border-bottom-color: var(--ember);
}

/* ============================================
   Books feature
   ============================================ */

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  margin-top: 2rem;
}

.book h3 {
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.book p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.book-links {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 0.5rem;
}

.book-links a {
  font-size: 0.78rem;
}

/* ============================================
   Pullquote
   ============================================ */

.pullquote {
  text-align: center;
  padding: 4.5rem 1.5rem !important;
  max-width: 680px !important;
}

.pullquote blockquote {
  font-size: 1.45rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
}

/* ============================================
   Practice + podcast teasers
   ============================================ */

.practice-teaser p,
.podcast p,
.skeptic-teaser p,
.support p {
  font-size: 1.1rem;
}

.support {
  text-align: center;
}

.support-cta {
  margin-top: 1.5rem;
}

.support-cta a {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid var(--ember);
  padding-bottom: 3px;
  transition: all 0.15s ease;
  margin: 0 0.5rem;
}

.support-cta a:hover {
  background: var(--ember);
  color: var(--bg);
}

.skeptic-teaser .eyebrow {
  margin-bottom: 0.5rem;
}

.skeptic-teaser h2 {
  margin-top: 0.25rem;
}

.link-out a {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================
   Footer
   ============================================ */

footer {
  max-width: 640px;
  margin: 5rem auto 0;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  border-top: 1px solid var(--rule);
}

footer p {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

footer a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 115, 106, 0.3);
  transition: color 0.15s ease, border-color 0.15s ease;
}

footer a:hover {
  color: var(--ember);
  border-bottom-color: var(--ember);
}

footer .copyright {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   Page intro (used on practice / about / etc)
   ============================================ */

.page-intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 1.5rem 2.5rem;
  text-align: center;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}

.page-intro h1 {
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--slate);
  font-style: italic;
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================
   Practice steps
   ============================================ */

.practice-steps {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.step {
  max-width: none !important;
  margin: 0 !important;
  padding: 3rem 0 !important;
  border-bottom: 1px solid var(--rule);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.75rem !important;
}

.step h2 {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem !important;
  line-height: 1.2;
}

.step p {
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 1.5rem !important;
}

.step blockquote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--slate);
  padding-left: 1.25rem;
  border-left: 2px solid var(--ember);
}

/* ============================================
   Practice closing
   ============================================ */

.practice-closing {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.reassurance {
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 2.5rem !important;
}

.next-step a {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid var(--ember);
  padding-bottom: 3px;
  transition: all 0.15s ease;
}

.next-step a:hover {
  background: var(--ember);
  color: var(--bg);
}

/* ============================================
   Long-form content (science-and-spirit)
   ============================================ */

.long-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.long-intro p {
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.long-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}

.long-section:last-of-type {
  border-bottom: none;
}

.section-number {
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1rem;
}

.long-section h2 {
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.long-section blockquote {
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1.75rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--ember);
}

.long-section p {
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.long-section .closing {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--slate);
  margin-top: 2rem;
}

.long-closing {
  padding: 4rem 0 3rem;
}

.long-closing h2 {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 1.75rem;
  line-height: 1.2;
}

.long-closing p {
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.long-next {
  padding: 3rem 0 2rem;
  text-align: center;
  border-top: 1px solid var(--rule);
}

.long-next a {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(160, 72, 48, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}

.long-next a:hover {
  border-bottom-color: var(--ember);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 700px) {
  html {
    font-size: 16px;
  }

  .hero {
    padding: 4rem 1.25rem 3rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
  }

  .hero-bio {
    margin-top: 2rem;
  }

  .book-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  nav {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  nav ul {
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  main section {
    padding: 2.75rem 1.25rem;
  }

  main section h2 {
    font-size: 1.5rem;
  }

  .pullquote blockquote {
    font-size: 1.2rem;
  }

  .page-intro {
    padding: 3.5rem 1.25rem 2rem;
  }

  .page-intro h1 {
    font-size: 2.1rem;
  }

  .lede {
    font-size: 1.1rem;
  }

  .step h2 {
    font-size: 1.5rem;
  }

  .step {
    padding: 2.25rem 0 !important;
  }

  .long-section {
    padding: 2.75rem 0;
  }

  .long-section h2 {
    font-size: 1.6rem;
  }

  .long-section blockquote {
    font-size: 1.1rem;
  }

  .long-closing h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  nav ul {
    gap: 1rem;
  }
}
