/*
Theme Name: Reflecting Theologian
Theme URI: https://www.reflectingtheologian.com
Author: Reflecting Theologian
Author URI: https://www.reflectingtheologian.com
Description: A clean, minimal theme for a biblical & theological reflections journal. Charcoal ink, gold accent, elegant serif headings, and a signature "reflection" motif. Fully responsive.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reflecting-theologian
*/

/* =========================================================
   Reflecting Theologian — design system
   Charcoal ink · gold accent · warm paper · reflection motif
   ========================================================= */

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

:root {
  --ink:        #201f1d;   /* primary text / wordmark */
  --ink-soft:   #4a4844;   /* secondary text */
  --ink-faint:  #8a877f;   /* meta / captions */
  --gold:       #b68235;   /* accent line & links */
  --gold-deep:  #7d5411;   /* reflected / hover gold */
  --paper:      #faf8f3;   /* page background */
  --paper-warm: #f3efe6;   /* alt sections */
  --card:       #ffffff;
  --line:       #e5e0d5;   /* hairline borders */
  --dark:       #1a1917;   /* dark footer / hero */

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --measure: 44rem;        /* reading width */
  --wide:    72rem;        /* layout width */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.6rem; }
p  { margin: 0 0 1.25em; color: var(--ink-soft); }
.lead { font-size: 1.25rem; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
}

/* ---------- layout ---------- */
.wrap    { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.narrow  { max-width: var(--measure); margin-left: auto; margin-right: auto; }
section  { padding: clamp(4rem, 9vw, 7rem) 0; }
.center  { text-align: center; }

/* ---------- reflection motif divider ---------- */
.reflect-mark { text-align: center; margin: 0 auto; user-select: none; }
.reflect-mark .word {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.reflect-line {
  height: 1px; width: min(320px, 70%);
  margin: .55rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.reflect-mark .word.mirror {
  transform: scaleY(-1);
  color: var(--gold-deep);
  opacity: .25;
}

/* ---------- top nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,243,.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand img, .brand svg { height: 46px; width: auto; }
.brand { display: inline-flex; align-items: center; }
.nav-links { display: flex; gap: 2.2rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--gold-deep); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .85rem 1.8rem;
  border: 1px solid var(--ink);
  color: var(--ink); background: transparent;
  border-radius: 2px; cursor: pointer;
  transition: all .25s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-gold { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn-gold:hover { background: var(--gold-deep); color: var(--paper); }

/* ---------- hero ---------- */
.hero { padding: clamp(4rem, 11vw, 8.5rem) 0 clamp(3.5rem, 8vw, 6rem); text-align: center; }
.hero .verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink-soft);
  max-width: 34rem; margin: 0 auto 2rem;
}
.hero h1 { margin-bottom: .35em; }
.hero .sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 38rem; margin: 0 auto 2.4rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- reflections grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.4rem; }
.entry { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.entry .cat { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.entry h3 { margin: .5rem 0 .4rem; font-size: 1.7rem; }
.entry h3 a { color: var(--ink); }
.entry h3 a:hover { color: var(--gold-deep); }
.entry .meta { font-size: .82rem; color: var(--ink-faint); letter-spacing: .04em; }
.entry p { margin: .7rem 0 1rem; font-size: 1rem; }
.entry .more { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- feature list (about / topics) ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 2.5rem; }
.pillar .num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.pillar h3 { font-size: 1.35rem; margin: .6rem 0 .4rem; }
.pillar p { font-size: .98rem; margin: 0; }

/* ---------- alt / warm section ---------- */
.warm { background: var(--paper-warm); }

/* ---------- article body ---------- */
.article { padding-top: clamp(2.5rem,6vw,4rem); }
.article-head { text-align: center; margin-bottom: 3rem; }
.article-head .cat { font-size: .72rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color: var(--gold-deep); }
.article-head h1 { margin: .6rem 0 .5rem; }
.article-head .meta { color: var(--ink-faint); font-size: .9rem; }
.prose { font-size: 1.18rem; line-height: 1.85; }
.prose p { color: var(--ink); margin-bottom: 1.5em; }
.prose h2 { margin: 2em 0 .5em; font-size: 2rem; }
.prose h3 { margin: 1.6em 0 .4em; }
.prose blockquote {
  margin: 2em 0; padding: .4em 0 .4em 1.6rem;
  border-left: 2px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: 1.5rem;
  color: var(--ink); line-height: 1.4;
}
.prose blockquote cite { display:block; font-style: normal; font-family: var(--sans); font-size: .8rem; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-faint); margin-top:.8rem; }
.scripture {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.6rem 1.8rem;
  font-family: var(--serif); font-size: 1.35rem; font-style: italic;
  color: var(--ink); margin: 2em 0;
}
.scripture .ref { display:block; font-family: var(--sans); font-style: normal; font-size:.75rem; letter-spacing:.14em; text-transform:uppercase; color: var(--gold-deep); margin-top:.7rem; }

/* ---------- forms ---------- */
.field { margin-bottom: 1.2rem; }
.field label { display:block; font-size:.78rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-soft); margin-bottom:.4rem; }
.field input, .field textarea {
  width:100%; font-family: var(--sans); font-size:1rem; color: var(--ink);
  padding:.8rem 1rem; border:1px solid var(--line); border-radius:2px; background: var(--card);
}
.field input:focus, .field textarea:focus { outline:none; border-color: var(--gold); }
.subscribe { background: var(--dark); color: var(--paper); border-radius: 4px; padding: clamp(2.4rem,5vw,3.6rem); text-align:center; }
.subscribe h2, .subscribe p { color: var(--paper); }
.subscribe p { color: #cfc9bd; }
.subscribe form { display:flex; gap:.7rem; max-width: 30rem; margin: 1.6rem auto 0; flex-wrap: wrap; }
.subscribe input { flex:1 1 14rem; padding:.85rem 1rem; border:1px solid #3a3833; border-radius:2px; background:#252420; color: var(--paper); }
.subscribe input::placeholder { color:#8a877f; }
.subscribe .btn { border-color: var(--gold); color: var(--paper); }
.subscribe .btn:hover { background: var(--gold); color: var(--dark); }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #cfc9bd; padding: 4rem 0 2.5rem; }
.site-footer .brand img, .site-footer .brand svg { height: 54px; }
.footer-grid { display:flex; justify-content: space-between; gap:2.5rem; flex-wrap: wrap; align-items: flex-start; }
.site-footer a { color: #cfc9bd; }
.site-footer a:hover { color: var(--gold); }
.footer-nav { list-style:none; margin:0; padding:0; display:flex; gap:1.6rem; flex-wrap: wrap; font-size:.85rem; letter-spacing:.06em; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size:1.15rem; color:#8a877f; max-width: 22rem; }
.footer-bottom { border-top:1px solid #2f2d29; margin-top:2.5rem; padding-top:1.5rem; font-size:.8rem; color:#8a877f; display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav-toggle { display:block; }
  .nav-links {
    position:absolute; top:76px; left:0; right:0;
    flex-direction:column; gap:0; background: var(--paper);
    border-bottom:1px solid var(--line);
    max-height:0; overflow:hidden; transition:max-height .3s ease;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links li { width:100%; text-align:center; }
  .nav-links a { display:block; padding:1rem; border-top:1px solid var(--line); }
  .footer-grid { flex-direction:column; gap:2rem; }
}

/* small phones */
@media (max-width: 430px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 1.15rem; }
  .hero { padding-top: 3rem; }
  .hero .verse { font-size: 1.25rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .prose { font-size: 1.08rem; }
  .prose blockquote { font-size: 1.3rem; padding-left: 1.1rem; }
  .scripture { font-size: 1.2rem; padding: 1.3rem 1.3rem; }
  .subscribe form { flex-direction: column; }
  .subscribe .btn { width: 100%; }
  .footer-bottom { flex-direction: column; gap:.4rem; }
  .reflect-mark .word { font-size: 1.15rem; letter-spacing: .25em; }
}

/* respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ============ WordPress-specific ============ */
.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;
}
.skip-link { position:absolute; left:-9999px; }
.skip-link:focus { left:1rem; top:1rem; background:var(--ink); color:var(--paper); padding:.6rem 1rem; z-index:100; border-radius:2px; }

/* content images uploaded into posts */
.prose img { border-radius:3px; margin:1.8em 0; }
.prose figure { margin:1.8em 0; }
.prose figcaption { font-size:.85rem; color:var(--ink-faint); text-align:center; margin-top:.5rem; }
.prose ul, .prose ol { margin:0 0 1.5em; padding-left:1.4em; color:var(--ink); }
.prose li { margin-bottom:.5em; }
.prose a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset:3px; }
.prose a:hover { text-decoration-color: var(--gold); }
.wp-block-quote, .prose .wp-block-quote {
  margin:2em 0; padding:.4em 0 .4em 1.6rem; border-left:2px solid var(--gold);
  font-family:var(--serif); font-style:italic; font-size:1.5rem; color:var(--ink); line-height:1.4;
}
.wp-block-pullquote { text-align:center; }
.alignwide { width:min(60rem,92vw); margin-left:50%; transform:translateX(-50%); }
.alignfull  { width:100vw; margin-left:50%; transform:translateX(-50%); }
.aligncenter { margin-left:auto; margin-right:auto; }
.alignright { float:right; margin:0 0 1rem 1.5rem; }
.alignleft  { float:left;  margin:0 1.5rem 1rem 0; }

/* pagination */
.pagination { display:flex; gap:.5rem; justify-content:center; margin-top:3.5rem; flex-wrap:wrap; }
.pagination .page-numbers {
  display:inline-block; padding:.55rem .95rem; border:1px solid var(--line);
  border-radius:2px; font-size:.85rem; color:var(--ink-soft);
}
.pagination .page-numbers.current { background:var(--ink); color:var(--paper); border-color:var(--ink); }
.pagination a.page-numbers:hover { border-color:var(--gold); color:var(--gold-deep); }

/* comments */
.comments { border-top:1px solid var(--line); margin-top:3.5rem; padding-top:2.5rem; }
.comments h3 { font-size:1.5rem; margin-bottom:1.5rem; }
.comment-list { list-style:none; padding:0; margin:0; }
.comment-list li { border-bottom:1px solid var(--line); padding:1.3rem 0; }
.comment-author { font-weight:600; color:var(--ink); }
.comment-meta { font-size:.8rem; color:var(--ink-faint); margin-bottom:.5rem; }
.comment-respond { margin-top:2rem; }
.comment-form label { display:block; font-size:.78rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:.4rem; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width:100%; font-family:var(--sans); font-size:1rem; padding:.8rem 1rem;
  border:1px solid var(--line); border-radius:2px; background:var(--card); margin-bottom:1rem;
}
.comment-form input:focus, .comment-form textarea:focus { outline:none; border-color:var(--gold); }
.form-submit .submit {
  font-family:var(--sans); font-size:.8rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  padding:.85rem 1.8rem; border:1px solid var(--gold-deep); color:var(--gold-deep); background:transparent;
  border-radius:2px; cursor:pointer; transition:all .25s ease;
}
.form-submit .submit:hover { background:var(--gold-deep); color:var(--paper); }

/* WP admin bar offset for sticky header */
body.admin-bar .site-header { top:32px; }
@media (max-width:782px){ body.admin-bar .site-header { top:46px; } }
@media (max-width:600px){ body.admin-bar .site-header { top:0; } }
