/* =========================================================
   Taking Domain — Main stylesheet
   Quiet contemplative direction.
   Fraunces (display) + Cormorant Garamond (body) + Inter (UI)
   ======================================================= */

/* ---------- Tokens ---------- */
:root {
  --td-cream:        #FAF7F2;
  --td-cream-deep:   #F2EDE5;
  --td-white:        #FFFDF9;
  --td-ink:          #231F20;
  --td-text:         #3A3438;
  --td-muted:        #6F6672;
  --td-mauve:        #8E5A7A;
  --td-mauve-soft:   #B68AA0;
  --td-purple:       #3D2438;
  --td-gold:         #C7A76C;
  --td-gold-deep:    #A88848;
  --td-scripture:    #F3EAEE;
  --td-border:       rgba(61, 36, 56, 0.12);
  --td-border-soft:  rgba(61, 36, 56, 0.06);
  --td-shadow-sm:    0 6px 24px rgba(61, 36, 56, 0.05);
  --td-shadow:       0 18px 50px rgba(61, 36, 56, 0.07);

  --td-display:      'Fraunces', Georgia, 'Times New Roman', serif;
  --td-body:         'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --td-ui:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --td-radius:       18px;
  --td-radius-lg:    28px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--td-cream);
  color: var(--td-text);
  font-family: var(--td-body);
  font-size: 1.25rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--td-mauve); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--td-purple); }

h1, h2, h3, h4 {
  font-family: var(--td-display);
  color: var(--td-purple);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}

h1 { font-weight: 300; }

p { margin: 0 0 1em; }

em { font-style: italic; }

/* Skip link */
.td-skip-link {
  position: absolute;
  left: -9999px;
}
.td-skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--td-purple);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

/* Screen reader only */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.td-smallcaps {
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

/* ---------- Containers ---------- */
.td-container {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

.td-reading-container {
  max-width: 720px;
  margin-inline: auto;
}

/* ---------- Kicker (small uppercase eyebrow) ---------- */
.td-kicker {
  font-family: var(--td-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--td-mauve);
  margin: 0 0 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.td-kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.td-kicker-light { color: var(--td-gold); }
.td-kicker-center { display: inline-flex; }

/* ---------- Buttons ---------- */
.td-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--td-ui);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--td-purple);
  color: #fff;
  border: 1px solid var(--td-purple);
  transition: all 0.25s ease;
  cursor: pointer;
}
.td-button:hover {
  background: var(--td-mauve);
  border-color: var(--td-mauve);
  color: #fff;
  transform: translateY(-1px);
}
.td-button-ghost {
  background: transparent;
  color: var(--td-purple);
  border-color: var(--td-border);
}
.td-button-ghost:hover {
  background: var(--td-purple);
  color: #fff;
}
.td-button-light {
  background: var(--td-gold);
  border-color: var(--td-gold);
  color: var(--td-purple);
}
.td-button-light:hover {
  background: var(--td-gold-deep);
  border-color: var(--td-gold-deep);
  color: #fff;
}
.td-button-small {
  padding: 0.7rem 1.3rem;
  font-size: 0.85rem;
}

/* ---------- Header ---------- */
.td-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 247, 242, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--td-border-soft);
}

.admin-bar .td-site-header { top: 32px; }

.td-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
  padding-block: 0.4rem;
}

.td-logo { display: inline-flex; align-items: center; }
.td-logo-image {
  width: 120px;
  height: auto;
}

.td-menu, .td-footer-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
  font-family: var(--td-ui);
  font-size: 0.9rem;
  font-weight: 500;
}
.td-menu a {
  color: var(--td-ink);
  position: relative;
  padding: 0.3rem 0;
}
.td-menu a:hover { color: var(--td-mauve); }
.td-menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--td-mauve);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.td-menu a:hover::after { transform: scaleX(1); }

/* Search toggle */
.td-search-toggle {
  background: none;
  border: 1px solid var(--td-border);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--td-ink);
  cursor: pointer;
  transition: all 0.25s ease;
}
.td-search-toggle:hover {
  background: var(--td-purple);
  border-color: var(--td-purple);
  color: #fff;
}

.td-search-panel {
  border-top: 1px solid var(--td-border-soft);
  background: var(--td-cream);
  padding: 1.5rem 0 1.8rem;
}
.td-search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.td-search-input {
  flex: 1;
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--td-border);
  font-family: var(--td-display);
  font-size: 1.5rem;
  color: var(--td-ink);
  padding: 0.5rem 0;
  font-style: italic;
  font-weight: 300;
}
.td-search-input::placeholder { color: var(--td-muted); }
.td-search-input:focus {
  outline: none;
  border-bottom-color: var(--td-mauve);
}
.td-search-submit {
  font-family: var(--td-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--td-mauve);
  cursor: pointer;
  padding: 0 1rem;
}
.td-search-submit:hover { color: var(--td-purple); }

/* =========================================================
   HERO
   ======================================================= */
.td-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.td-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.td-hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.75) brightness(0.85);
}
.td-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(35, 31, 32, 0.55) 0%, rgba(35, 31, 32, 0.7) 100%),
    radial-gradient(ellipse at top right, rgba(199, 167, 108, 0.18), transparent 60%);
}

.td-hero-content {
  padding: 8rem 0 6rem;
  max-width: 760px;
  color: #fff;
}

.td-hero-content .td-kicker {
  color: var(--td-gold);
  margin-bottom: 1.5rem;
}
.td-hero-content .td-kicker::before { background: var(--td-gold); opacity: 0.8; }

.td-hero-eyebrow {
  display: block;
  font-family: var(--td-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--td-gold);
  letter-spacing: 0.01em;
  margin-bottom: 0.8rem;
}

.td-hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
  max-width: 18ch;
}
.td-hero h1 em {
  font-style: italic;
  color: var(--td-gold);
  font-weight: 400;
  display: block;
  margin-top: 0.2rem;
}

.td-hero-text {
  font-family: var(--td-body);
  font-size: 1.35rem;
  line-height: 1.6;
  color: rgba(255, 253, 249, 0.85);
  font-weight: 400;
  max-width: 56ch;
  margin-bottom: 2.4rem;
}

.td-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.td-hero-actions .td-button-ghost {
  color: #fff;
  border-color: rgba(255, 253, 249, 0.4);
}
.td-hero-actions .td-button-ghost:hover {
  background: rgba(255, 253, 249, 0.12);
  border-color: #fff;
}

/* =========================================================
   SCRIPTURE THESIS (Deuteronomy 29:29)
   ======================================================= */
.td-thesis {
  background: var(--td-cream-deep);
  border-block: 1px solid var(--td-border-soft);
  padding: clamp(5rem, 9vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.td-thesis::before,
.td-thesis::after {
  content: '';
  position: absolute;
  font-family: var(--td-display);
  font-style: italic;
  font-size: clamp(8rem, 18vw, 16rem);
  color: var(--td-gold);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}
.td-thesis::before { content: '\201C'; top: 1rem; left: 4%; }
.td-thesis::after  { content: '\201D'; bottom: -3rem; right: 4%; }

.td-thesis-inner {
  max-width: 820px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.td-thesis-kicker {
  display: inline-flex;
  margin-bottom: 1.8rem;
}

.td-thesis-quote p {
  font-family: var(--td-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.4;
  color: var(--td-purple);
  margin: 0 0 2rem;
  letter-spacing: -0.01em;
}

.td-thesis-quote cite {
  display: inline-block;
  font-family: var(--td-ui);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--td-mauve);
}
.td-translation {
  color: var(--td-muted);
  font-weight: 400;
  margin-left: 0.3rem;
}

.td-thesis-note {
  margin-top: 2.6rem;
  font-family: var(--td-body);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--td-muted);
  max-width: 38ch;
  margin-inline: auto;
}

/* =========================================================
   GENERIC SECTIONS
   ======================================================= */
.td-section {
  padding: clamp(5rem, 8vw, 7.5rem) 0;
}

.td-section-heading {
  margin-bottom: 3.5rem;
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
}
.td-section-heading h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 400;
}
.td-section-heading h2 em {
  font-style: italic;
  color: var(--td-mauve);
}
.td-section-lede {
  color: var(--td-muted);
  font-size: 1.2rem;
  margin-top: 0.8rem;
}

.td-section-footer {
  margin-top: 3.5rem;
  text-align: center;
}

/* =========================================================
   CATEGORIES
   ======================================================= */
.td-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.td-category-card {
  display: flex;
  flex-direction: column;
  background: var(--td-white);
  border: 1px solid var(--td-border-soft);
  border-radius: var(--td-radius-lg);
  padding: 2.6rem 2rem;
  color: var(--td-ink);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.td-category-card:hover {
  background: var(--td-cream-deep);
  border-color: var(--td-border);
  transform: translateY(-3px);
  box-shadow: var(--td-shadow);
}

.td-category-num {
  font-family: var(--td-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--td-gold);
  margin-bottom: 1.5rem;
}
.td-category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.td-category-card p {
  color: var(--td-muted);
  margin-bottom: 1.6rem;
  flex-grow: 1;
  font-size: 1.08rem;
}
.td-category-more {
  font-family: var(--td-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-mauve);
  transition: gap 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.td-category-card:hover .td-category-more {
  color: var(--td-purple);
  gap: 0.7rem;
}

/* =========================================================
   START HERE
   ======================================================= */
.td-start-here {
  background: var(--td-white);
  border-block: 1px solid var(--td-border-soft);
}

.td-start-list {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--td-border-soft);
}

.td-start-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--td-border-soft);
  align-items: baseline;
}
.td-start-num {
  font-family: var(--td-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2.6rem;
  color: var(--td-gold);
  line-height: 1;
}
.td-start-body h3 {
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
  font-weight: 400;
}
.td-start-body h3 a {
  color: var(--td-purple);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.4s ease;
}
.td-start-body h3 a:hover { background-size: 100% 1px; }
.td-start-body p {
  color: var(--td-text);
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}
.td-start-body .td-meta { margin: 0; }

/* =========================================================
   POST GRID
   ======================================================= */
.td-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.td-post-card {
  display: flex;
  flex-direction: column;
}
.td-post-image {
  display: block;
  border-radius: var(--td-radius);
  overflow: hidden;
  margin-bottom: 1.4rem;
  aspect-ratio: 4 / 3;
  background: var(--td-cream-deep);
}
.td-post-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.td-post-card:hover .td-post-image img { transform: scale(1.04); }

.td-post-image-placeholder {
  display: grid;
  place-items: center;
  background: var(--td-cream-deep);
  color: var(--td-gold);
  font-family: var(--td-display);
  font-style: italic;
  font-size: 3rem;
  font-weight: 300;
}

.td-meta {
  font-family: var(--td-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--td-muted);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.85;
}
.td-meta-tiny {
  font-size: 0.45rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--td-muted);
  opacity: 0.45;
  margin: 1.2rem 0 0;
}
.td-meta-center { justify-content: center; }
.td-meta-dot { color: var(--td-gold); }

.td-post-card h3 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}
.td-post-card h3 a {
  color: var(--td-purple);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.4s ease;
}
.td-post-card h3 a:hover { background-size: 100% 1px; }

.td-post-card p {
  color: var(--td-text);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.td-read-more {
  font-family: var(--td-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-mauve);
  display: inline-flex;
  gap: 0.4rem;
  transition: gap 0.25s ease;
}
.td-read-more:hover {
  color: var(--td-purple);
  gap: 0.7rem;
}

/* =========================================================
   SUBSCRIBE
   ======================================================= */
.td-subscribe-section {
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(5rem, 9vw, 8rem);
}
.td-subscribe-box {
  background:
    radial-gradient(circle at top right, rgba(199, 167, 108, 0.22), transparent 28rem),
    var(--td-purple);
  border-radius: var(--td-radius-lg);
  color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem);
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
}
.td-subscribe-box .td-kicker { color: var(--td-gold); }
.td-subscribe-box .td-kicker::before { background: var(--td-gold); }
.td-subscribe-box h2 {
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1rem;
  max-width: 18ch;
  margin-inline: auto;
}
.td-subscribe-box p {
  color: rgba(255, 253, 249, 0.85);
  font-size: 1.2rem;
  max-width: 50ch;
  margin: 0 auto 2rem;
}

/* =========================================================
   PAGE HERO (used on About, Search, Archive, etc.)
   ======================================================= */
.td-page-hero {
  padding: clamp(2rem, 3.5vw, 3rem) 0 clamp(0.5rem, 1vw, 1rem);
}
.td-page-hero .td-container { max-width: 760px; }
.td-page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  margin-bottom: 0.6rem;
}
.td-page-hero h1 em { color: var(--td-mauve); font-style: italic; font-weight: 400; }
.td-page-hero p {
  color: var(--td-muted);
  font-size: 1.15rem;
  margin: 0;
}
/* Tight modifier: when section follows a page hero, remove redundant gap */
.td-section-tight {
  padding-top: clamp(1rem, 2vw, 1.5rem);
}
.td-page-content-section {
  padding: 1rem 0 6rem;
}

/* =========================================================
   BIBLE REFLECTIONS — Themes Hub Page
   ======================================================= */
.td-themes {
  padding-top: clamp(1rem, 2vw, 2rem);
}

.td-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.td-theme-card {
  display: flex;
  flex-direction: column;
  background: var(--td-white);
  border: 1px solid var(--td-border-soft);
  border-radius: var(--td-radius-lg);
  padding: 2.6rem 2.4rem;
  color: var(--td-ink);
  transition: all 0.3s ease;
  position: relative;
  min-height: 280px;
}
.td-theme-card:hover {
  background: var(--td-cream-deep);
  border-color: var(--td-border);
  transform: translateY(-3px);
  box-shadow: var(--td-shadow);
}

.td-theme-num {
  font-family: var(--td-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--td-gold);
  margin-bottom: 1.2rem;
}
.td-theme-card h2 {
  font-family: var(--td-display);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 400;
  color: var(--td-purple);
  margin: 0 0 0.8rem;
  line-height: 1.2;
}
.td-theme-description {
  font-family: var(--td-body);
  color: var(--td-text);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}
.td-theme-count {
  font-family: var(--td-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--td-mauve);
  margin: 0 0 1.4rem;
  opacity: 0.85;
}
.td-theme-more {
  font-family: var(--td-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-mauve);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.25s ease;
}
.td-theme-card:hover .td-theme-more {
  color: var(--td-purple);
  gap: 0.7rem;
}

/* "More themes" tag-cloud-ish list */
.td-themes-more {
  background: var(--td-cream-deep);
  border-block: 1px solid var(--td-border-soft);
}

.td-theme-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 820px;
  margin-inline: auto;
}
.td-theme-list li { margin: 0; }
.td-theme-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem 0.7rem 1.4rem;
  background: var(--td-white);
  border: 1px solid var(--td-border-soft);
  border-radius: 999px;
  color: var(--td-ink);
  transition: all 0.25s ease;
}
.td-theme-list a:hover {
  border-color: var(--td-mauve);
  background: var(--td-scripture);
  color: var(--td-purple);
}
.td-theme-list-name {
  font-family: var(--td-body);
  font-size: 1.05rem;
  font-weight: 500;
}
.td-theme-list-count {
  font-family: var(--td-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--td-gold-deep);
  background: var(--td-cream);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  min-width: 1.6rem;
  text-align: center;
}

/* Optional intro content from the page itself */
.td-themes-intro {
  padding-top: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 780px) {
  .td-theme-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   POST LIST (for blog index, archive, search)
   ======================================================= */
.td-post-list {
  display: grid;
  gap: 3rem;
  max-width: 780px;
  margin-inline: auto;
}
.td-list-post {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--td-border-soft);
}
.td-list-post:last-child { border-bottom: none; }
.td-list-image {
  display: block;
  border-radius: var(--td-radius);
  overflow: hidden;
  margin-bottom: 1.6rem;
  aspect-ratio: 16 / 9;
}
.td-list-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.td-list-post:hover .td-list-image img { transform: scale(1.03); }
.td-list-post h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 0.8rem;
}
.td-list-post h2 a { color: var(--td-purple); }
.td-list-post h2 a:hover { color: var(--td-mauve); }
.td-list-post p {
  color: var(--td-text);
  font-size: 1.18rem;
  margin-bottom: 1.2rem;
  max-width: 60ch;
}

/* =========================================================
   SINGLE POST
   ======================================================= */
.td-main-single { background: var(--td-cream); }

.td-single { padding: clamp(4rem, 7vw, 6.5rem) 0; }

.td-single-header {
  text-align: center;
  margin-bottom: 3rem;
}
.td-single-header h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 300;
  margin: 1rem 0 0;
  max-width: 22ch;
  margin-inline: auto;
  line-height: 1.12;
}

.td-single-image {
  margin: 0 0 3rem;
}
.td-single-image img {
  width: 100%;
  border-radius: var(--td-radius-lg);
}

.td-content {
  font-family: var(--td-body);
  color: var(--td-text);
  font-size: 1.32rem;
  line-height: 1.8;
}
.td-content p {
  margin: 0 0 1.4em;
}
.td-content h2,
.td-content h3 {
  color: var(--td-purple);
  margin: 2.2em 0 0.7em;
}
.td-content h2 { font-size: 2rem; font-weight: 400; }
.td-content h3 { font-size: 1.6rem; font-weight: 400; }

/* Drop cap on first paragraph */
.td-content-dropcap > p:first-of-type::first-letter {
  font-family: var(--td-display);
  font-style: italic;
  font-weight: 300;
  font-size: 4.4rem;
  line-height: 0.9;
  float: left;
  margin: 0.18em 0.18em 0 0;
  color: var(--td-mauve);
}

/* General blockquotes inside content */
.td-content blockquote,
.td-content .wp-block-quote {
  border-left: 3px solid var(--td-gold);
  padding: 0.4em 0 0.4em 1.4em;
  margin: 2.2em 0;
  font-style: italic;
  color: var(--td-purple);
  font-size: 1.35rem;
  line-height: 1.55;
}

/* Scripture quote (block pattern) */
.td-content .td-scripture,
.td-scripture {
  background: var(--td-scripture);
  border-left: 4px solid var(--td-gold);
  border-radius: 4px 18px 18px 4px;
  padding: 2.2rem 2.4rem;
  margin: 2.5em 0;
}
.td-scripture .td-scripture-text,
.td-scripture-text {
  font-family: var(--td-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--td-purple);
  margin: 0 0 1rem;
}
.td-scripture .td-scripture-ref,
.td-scripture-ref {
  font-family: var(--td-ui);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--td-mauve);
  margin: 0;
}

/* Reflection footer pattern */
.td-reflection-footer {
  background: var(--td-cream-deep);
  border-radius: var(--td-radius);
  padding: 2rem 2.4rem;
  margin: 3em 0 0;
  text-align: center;
  font-style: italic;
  color: var(--td-purple);
}

/* Post footer */
.td-post-footer {
  background: var(--td-cream-deep);
  border-radius: var(--td-radius-lg);
  padding: 2.4rem;
  margin: 4rem auto 0;
  text-align: center;
}
.td-post-footer p {
  font-style: italic;
  color: var(--td-purple);
  font-size: 1.2rem;
  margin-bottom: 1.4rem;
  max-width: 38ch;
  margin-inline: auto;
}

/* Previous / Next post */
.td-post-nav {
  margin-top: 4rem;
  border-top: 1px solid var(--td-border-soft);
  padding-top: 2.5rem;
}
.td-post-nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.td-post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: var(--td-radius);
  transition: background 0.25s ease;
}
.td-post-nav-link:hover { background: var(--td-cream-deep); }
.td-post-nav-prev { text-align: left; }
.td-post-nav-next { text-align: right; }
.td-post-nav-label {
  font-family: var(--td-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--td-mauve);
}
.td-post-nav-title {
  font-family: var(--td-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--td-purple);
  line-height: 1.3;
}

/* =========================================================
   404
   ======================================================= */
.td-404 {
  padding: clamp(5rem, 9vw, 8rem) 0;
  text-align: center;
}
.td-404 h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--td-purple);
  margin: 1rem 0 1.5rem;
}
.td-404-text {
  font-size: 1.25rem;
  color: var(--td-text);
  margin-bottom: 2.5rem;
  max-width: 48ch;
  margin-inline: auto;
}
.td-404-verse {
  background: var(--td-scripture);
  border-left: 4px solid var(--td-gold);
  border-radius: 4px 18px 18px 4px;
  padding: 2rem 2.4rem;
  margin: 2.5rem auto;
  max-width: 600px;
  text-align: left;
}
.td-404-verse p {
  font-family: var(--td-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--td-purple);
  margin: 0 0 0.8rem;
}
.td-404-verse cite {
  font-family: var(--td-ui);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--td-mauve);
}
.td-404-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.td-search-empty {
  text-align: center;
  padding: 2rem 0;
}
.td-search-form-inline {
  margin-top: 2rem;
}

/* =========================================================
   PAGINATION
   ======================================================= */
.td-pagination {
  margin-top: 4rem;
  text-align: center;
}
.td-pagination .nav-links {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.td-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.8rem;
  border-radius: 999px;
  font-family: var(--td-ui);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--td-muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.td-pagination .page-numbers:hover,
.td-pagination .page-numbers.current {
  color: var(--td-purple);
  border-color: var(--td-border);
  background: var(--td-cream-deep);
}

/* =========================================================
   FOOTER
   ======================================================= */
.td-site-footer {
  background: var(--td-cream-deep);
  border-top: 1px solid var(--td-border-soft);
  padding: 5rem 0 2rem;
  margin-top: 4rem;
}

.td-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--td-border-soft);
}

.td-footer-brand .td-logo-image { width: 140px; }
.td-footer-blurb {
  font-family: var(--td-body);
  font-size: 1.1rem;
  color: var(--td-text);
  margin: 1rem 0 1rem;
  max-width: 36ch;
}
.td-footer-verse {
  font-family: var(--td-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--td-mauve);
  margin: 0;
}

.td-footer-col h4 {
  font-family: var(--td-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--td-gold);
  margin-bottom: 1.2rem;
}
.td-footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.td-footer-col a {
  color: var(--td-ink);
  font-family: var(--td-body);
  font-size: 1.08rem;
}
.td-footer-col a:hover { color: var(--td-mauve); }

.td-footer-subscribe p {
  color: var(--td-muted);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.td-footer-base {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--td-ui);
  font-size: 0.82rem;
  color: var(--td-muted);
}
.td-footer-base p { margin: 0; }
.td-footer-menu {
  font-size: 0.82rem;
  gap: 1.2rem;
}
.td-footer-menu a { color: var(--td-muted); }
.td-footer-menu a:hover { color: var(--td-purple); }

/* =========================================================
   FADE-IN ANIMATION
   ======================================================= */
.td-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.td-fade-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .td-fade { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ======================================================= */
@media (max-width: 980px) {
  .td-category-grid,
  .td-post-grid {
    grid-template-columns: 1fr 1fr;
  }
  .td-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .td-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 1.15rem; }
  .td-container { width: min(100% - 32px, 1140px); }

  .td-menu { display: none; }

  .td-hero { min-height: 70vh; }
  .td-hero-content { padding: 6rem 0 5rem; }

  .td-thesis::before,
  .td-thesis::after { display: none; }

  .td-category-grid,
  .td-post-grid { grid-template-columns: 1fr; }

  .td-start-item {
    grid-template-columns: 60px 1fr;
    gap: 1.2rem;
  }
  .td-start-num { font-size: 2rem; }

  .td-post-nav-inner {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .td-post-nav-next { text-align: left; }

  .td-footer-grid {
    grid-template-columns: 1fr;
  }

  .td-footer-base {
    flex-direction: column;
    text-align: center;
  }

  .td-content-dropcap > p:first-of-type::first-letter {
    font-size: 3.4rem;
  }
}

@media (max-width: 480px) {
  .td-logo-image { width: 130px; }
  .td-search-toggle { width: 36px; height: 36px; }
}
