/* It's the Second Thought That Counts — shared styles
   Warm, inspirational, editorial-devotional feel. */

:root {
  --cream:        #FBF3E7;
  --cream-deep:   #F3E6D4;
  --ink:          #2E2A24;
  --ink-soft:     #6B6255;
  --terracotta:   #C1703F;
  --terracotta-d: #A2582D;
  --gold:         #D4A24C;
  --sage:         #8A9A6B;
  --line:         #E7D9C4;
  --white:        #FFFDF9;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 6px 24px rgba(46, 42, 36, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta-d); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terracotta-d);
  background: rgba(193, 112, 63, 0.1);
  padding: 0.3em 0.75em;
  border-radius: 999px;
}

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

.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.logo .dot { color: var(--terracotta); }
.logo:hover { text-decoration: none; }

.site-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--terracotta-d);
  text-decoration: none;
}

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

.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero .eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 18ch;
  margin: 0 auto 0.6em;
}

.hero .lede {
  max-width: 42ch;
  margin: 0 auto 2rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--terracotta-d);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-d);
  text-decoration: none;
}

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

section { padding: 3rem 0; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.section-heading h2 { margin: 0; }
.section-heading .see-all { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }

.mission {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mission .container {
  max-width: 720px;
  text-align: center;
}

.mission blockquote {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 1rem;
}

/* ---------- Card grids ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--cream-deep), var(--line));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }

.card .tag { margin-bottom: 0.7em; align-self: flex-start; }

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--terracotta-d); text-decoration: none; }

.card p.excerpt { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

.card .meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

/* ---------- Article ---------- */

.article-header {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.article-header .tag { margin-bottom: 1rem; }

.article-header h1 { max-width: 20ch; margin: 0 auto 0.6em; }

.article-header .meta { color: var(--ink-soft); font-size: 0.95rem; }

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 3rem;
  font-size: 1.08rem;
}

.article-body p { margin-bottom: 1.3em; }

.article-body .pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--terracotta-d);
  border-left: 3px solid var(--terracotta);
  padding-left: 1.2rem;
  margin: 2rem 0;
}

.article-body .scripture {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  margin: 2rem 0;
}

/* ---------- Video embed ---------- */

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Callout / newsletter ---------- */

.callout {
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}

.callout h2 { color: var(--white); }
.callout p { color: rgba(255, 253, 249, 0.85); max-width: 46ch; margin: 0 auto 1.5rem; }
.callout .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.5); }
.callout .btn-secondary:hover { border-color: var(--white); color: var(--white); }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer .foot-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer a { color: var(--ink-soft); font-size: 0.9rem; }
.site-footer small { color: var(--ink-soft); font-size: 0.85rem; }

/* ---------- Category strip ---------- */

.category-strip {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

.category-strip a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.category-strip a:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-d);
  text-decoration: none;
}

@media (max-width: 640px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .hero { padding: 3rem 0 2.5rem; }
  section { padding: 2.25rem 0; }
}
