/* ==========================================================================
   Walking In The Light — Daily thoughts of a Christian Man · Jeremy Hopkins
   Design system: clean · minimal · modern · bold
   Layout inspired by challies.com (content + sidebar feed)
   Brand palette: #283890 blue · #0E0F10 ink · #485057 / #798893 slate-grays
   ========================================================================== */

:root {
  /* Color */
  --ink:        #0E0F10;   /* near-black text (brand) */
  --ink-soft:   #485057;   /* muted text / accent (brand) */
  --ink-faint:  #798893;   /* faint gray (brand) */
  --paper:      #ffffff;   /* white background */
  --paper-2:    #f5f6f9;   /* light gray panel */
  --line:       #e6e8ee;   /* hairline borders */
  --primary:    #283890;   /* brand royal blue */
  --primary-2:  #1d2a6e;   /* darker blue (hover) */
  --primary-3:  #3a4cae;   /* lighter blue */
  --wash:       rgba(40,56,144,.07); /* secondary tint (#28389054-ish) */
  --white:      #ffffff;   /* card / input surface */

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --maxw-prose: 700px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(14,15,16,.04), 0 10px 30px rgba(14,15,16,.06);

  --header-bg: rgba(255,255,255,.88);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --ink:        #eef0f4;
  --ink-soft:   #aab3bd;
  --ink-faint:  #7f8a96;
  --paper:      #0f1117;
  --paper-2:    #171a22;
  --line:       #262b36;
  --primary:    #8ea2e6;
  --primary-2:  #a9b9ef;
  --primary-3:  #7689d8;
  --wash:       rgba(142,162,230,.10);
  --white:      #161922;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.45);
  --header-bg: rgba(15,17,23,.85);
}
[data-theme="dark"] .cta-band { background: #21306b; }
[data-theme="dark"] .thumb .cat,
[data-theme="dark"] .card-media .tag { background: rgba(15,17,23,.9); color: var(--ink); }

/* ---------- 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(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.prose { max-width: var(--maxw-prose); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 .8rem;
}

/* category tag (used everywhere, Challies-style) */
.cat {
  display: inline-block; font-family: var(--font-body);
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--primary); background: var(--wash);
  padding: .3em .7em; border-radius: 999px;
}
.meta-line { font-size: .82rem; color: var(--ink-faint); font-weight: 500; }
.meta-line a { color: var(--ink-faint); }
.meta-line .dot { margin: 0 .5em; opacity: .6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .75em 1.4em; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }

/* ---------- Header / Nav ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1rem; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .mark { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em; }
.brand .mark span { color: var(--primary); }
.brand .tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-top: .35rem; font-weight: 600; }
.brand:hover .mark { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--primary); border-radius: 2px; }
.nav-cta { margin-left: .25rem; }

.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; transition: border-color .2s ease, color .2s ease, transform .15s ease; }
.theme-toggle:hover { border-color: var(--primary); color: var(--ink); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- Page hero (slim) ---------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: .6rem; }
.page-hero p.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }

/* ---------- Homepage feature ---------- */
.feature { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.feature-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; }
.feature-media { aspect-ratio: 16/10; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: var(--shadow); }
.feature-body .cat { margin-bottom: 1rem; }
.feature-body h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: .5rem; }
.feature-body h2 a { color: var(--ink); }
.feature-body h2 a:hover { color: var(--primary); }
.feature-body p { color: var(--ink-soft); }

/* ---------- Two-column layout (content + sidebar) ---------- */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 3.5rem; padding: clamp(2.5rem, 6vw, 4rem) 0; align-items: start; }
.layout-main { min-width: 0; }
.section-label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; }
.section-label h2 { margin: 0; font-size: 1.25rem; }
.section-label a { font-size: .85rem; font-weight: 600; }

/* ---------- Post feed rows (Challies "See Also" style) ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.feed-item:first-child { padding-top: 0; }
.thumb { aspect-ratio: 16/10; border-radius: var(--radius); position: relative; overflow: hidden; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.thumb.alt  { background: linear-gradient(135deg, #485057, #2c3238); }
.thumb.alt2 { background: linear-gradient(135deg, #3a4cae, #283890); }
.thumb.alt3 { background: linear-gradient(135deg, #5a6b78, #38424b); }
.feed-body h3 { font-size: 1.4rem; margin: .35rem 0 .4rem; }
.feed-body h3 a { color: var(--ink); }
.feed-body h3 a:hover { color: var(--primary); }
.feed-body p { font-size: .96rem; color: var(--ink-soft); margin: 0 0 .6rem; }

/* ---------- Sidebar widgets ---------- */
.sidebar { display: flex; flex-direction: column; gap: 2rem; position: sticky; top: 94px; }
.widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.widget h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 1rem; }
.widget.author { text-align: center; }
.author-avatar { width: 84px; height: 84px; border-radius: 999px; margin: 0 auto 1rem; background: linear-gradient(135deg, var(--primary), var(--primary-2)); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; }
.widget.author .name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 0 0 .25rem; }
.widget.author .role { font-size: .85rem; color: var(--ink-faint); margin: 0 0 1rem; }
.author-facts { list-style: none; margin: 0 0 1.2rem; padding: 0; font-size: .92rem; color: var(--ink-soft); }
.author-facts li { padding: .3rem 0; border-top: 1px solid var(--line); }
.author-facts li:first-child { border-top: 0; }

.subscribe-mini input { width: 100%; padding: .7em .9em; border: 1.5px solid var(--line); border-radius: 8px; font-size: .95rem; font-family: var(--font-body); background: var(--paper); color: var(--ink); margin-bottom: .6rem; }
.subscribe-mini input:focus { outline: none; border-color: var(--primary); }
.subscribe-mini .btn { width: 100%; justify-content: center; }

.tagcloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tagcloud a { font-size: .85rem; padding: .35em .8em; border-radius: 999px; background: var(--wash); color: var(--primary); font-weight: 500; }
.tagcloud a:hover { background: var(--primary); color: #fff; }

.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { padding: .45rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.linklist li:first-child { border-top: 0; }

/* ---------- Article ---------- */
.article-header { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.article-header .cat { margin-bottom: 1rem; }
.article-header h1 { margin-bottom: .8rem; }
.article-hero-media { aspect-ratio: 21/9; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--primary-2)); margin: 1.5rem 0 0; box-shadow: var(--shadow); }
.article-body { padding: 2.2rem 0 1rem; }
.article-body p, .article-body ul, .article-body ol { font-size: 1.13rem; }
.article-body h2 { margin-top: 2.2rem; }
.article-body h3 { margin-top: 1.8rem; }
.article-body blockquote { margin: 2rem 0; padding: 1.1rem 1.6rem; border-left: 4px solid var(--primary); background: var(--wash); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--ink); }
.article-body blockquote cite { display:block; margin-top:.5rem; font-style:normal; font-family:var(--font-body); font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--primary); }

/* author bio box (end of article) */
.author-box { display: grid; grid-template-columns: 84px 1fr; gap: 1.25rem; align-items: center; margin: 2.5rem 0; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.author-box .avatar { width: 84px; height: 84px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; }
.author-box .name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin: 0 0 .2rem; }
.author-box p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

.article-footer-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }

/* See Also grid */
.related { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--line); }
.related .grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
.mini-card .thumb { margin-bottom: .9rem; }
.mini-card h3 { font-size: 1.15rem; margin: .35rem 0 .35rem; }
.mini-card h3 a { color: var(--ink); }
.mini-card h3 a:hover { color: var(--primary); }
.mini-card p { font-size: .9rem; color: var(--ink-soft); margin: 0 0 .5rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); color: #fff; border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 48ch; margin-inline: auto; }
.subscribe { display: flex; gap: .75rem; max-width: 460px; margin: 1.75rem auto 0; }
.subscribe input { flex: 1; padding: .85em 1.1em; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; font-size: 1rem; font-family: var(--font-body); }
.subscribe input::placeholder { color: rgba(255,255,255,.65); }
.subscribe input:focus { outline: none; border-color: #fff; }
.subscribe .btn-primary { background: #fff; color: var(--primary); }
.subscribe .btn-primary:hover { background: rgba(255,255,255,.88); color: var(--primary-2); }

/* ---------- Forms ---------- */
.form { max-width: 600px; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field input, .field textarea { width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: var(--font-body); background: var(--white); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field textarea { resize: vertical; min-height: 150px; }

/* ---------- Generic content sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-alt { background: var(--paper-2); }
.values { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; margin-top: 1.5rem; }
.value { padding: 1.25rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.value h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.value p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.bio-grid { display: grid; grid-template-columns: 320px 1fr; gap: 3rem; align-items: start; }
.portrait { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: var(--shadow); }

.faith-list { counter-reset: faith; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.faith-list li { position: relative; padding: 1.2rem 0 1.2rem 3.2rem; border-top: 1px solid var(--line); }
.faith-list li::before { counter-increment: faith; content: counter(faith); position: absolute; left: 0; top: 1.2rem; width: 2.1rem; height: 2.1rem; border-radius: 999px; background: var(--wash); color: var(--primary); font-family: var(--font-display); font-weight: 600; display: grid; place-items: center; }
.faith-list h3 { margin: 0 0 .3rem; font-size: 1.2rem; }
.faith-list p { margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 4rem; }
[data-theme="dark"] .site-footer { background: #0a0c11; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-block: 3.5rem; }
.site-footer .brand .mark { color: #fff; }
.site-footer .brand .mark span { color: var(--primary-3); }
.site-footer .brand .tag { color: rgba(255,255,255,.5); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: rgba(255,255,255,.72); font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-blurb { margin-top: 1rem; max-width: 34ch; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar .widget { flex: 1 1 240px; }
  .related .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 880px) {
  .feature-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .bio-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .nav-right { gap: 1rem; }
  .nav-links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem 24px 1.5rem; transform: translateY(-130%); transition: transform .28s ease; align-items: stretch; }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 1rem; }
  .nav-cta { margin-left: 0; }
  .nav-toggle { display: block; }
  .feed-item { grid-template-columns: 1fr; gap: .75rem; }
  .related .grid-3 { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .author-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .subscribe { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .article-footer-nav { flex-direction: column; }
}

/* ==========================================================================
   Design polish — image slots, reading bar, share, verse-of-day, reveal, a11y
   ========================================================================== */

/* --- Real-image support: any media block accepts a background image and
   covers it nicely. To use a photo, add inline style="background-image:url('img/x.jpg')". --- */
.thumb, .feature-media, .article-hero-media, .portrait, .card-media,
.feed-item .thumb, .mini-card .thumb {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--primary);   /* fallback so a missing image isn't blank */
}

/* --- Reading progress bar (article pages) --- */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-3));
  z-index: 60; transition: width .1s linear;
}

/* --- Social share row --- */
.share-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 1.75rem 0 0; }
.share-row .label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-right: .25rem; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: border-color .2s, color .2s, transform .15s, background .2s;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn.copied { border-color: var(--primary); color: var(--primary); background: var(--wash); }

/* --- Verse of the day --- */
.widget.vod { background: var(--primary); border-color: var(--primary); }
.widget.vod h4 { color: rgba(255,255,255,.7); }
.widget.vod .verse { font-family: var(--font-display); font-style: italic; font-size: 1.12rem; line-height: 1.5; color: #fff; margin: 0 0 .6rem; }
.widget.vod cite { display: block; font-style: normal; font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.82); }

/* --- Scroll reveal (added by JS; no-op if reduced motion) --- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* --- Accessibility: visible focus rings --- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--primary-3); outline-offset: 2px; border-radius: 6px;
}

/* --- Slightly smoother card lift --- */
.feed-item .thumb, .mini-card .thumb, .feature-media { transition: transform .25s ease, box-shadow .25s ease; }
.feed-item:hover .thumb, .mini-card:hover .thumb { transform: translateY(-3px); box-shadow: var(--shadow); }

/* --- 404 --- */
.error-wrap { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.error-wrap .code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--primary); margin: 0; }
.error-wrap p { color: var(--ink-soft); max-width: 46ch; margin: 1rem auto 2rem; }

/* ==========================================================================
   Real brand assets — WITL logo + Jeremy photo
   ========================================================================== */

/* Brand logo replaces the text wordmark (text kept in DOM for screen readers) */
.brand .mark {
  display: block; width: 232px; height: 42px;
  background: url('../img/witl-logo.png') no-repeat left center;
  background-size: contain;
  text-indent: -9999px; overflow: hidden; white-space: nowrap;
}
.brand .tag { display: none; }
/* Footer is always dark, and the header in dark mode -> use the white logo */
.site-footer .brand .mark,
[data-theme="dark"] .brand .mark { background-image: url('../img/witl-logo-white.png'); }
@media (max-width: 680px) { .brand .mark { width: 184px; height: 34px; } }

/* Jeremy's photo: bio portrait + round author avatars (hide the "JH" fallback) */
.portrait { background-image: url('../img/jeremy.jpg'); background-position: center 20%; }
.author-avatar,
.author-box .avatar {
  background-image: url('../img/jeremy.jpg');
  background-size: cover; background-position: center 18%;
  font-size: 0; color: transparent;
}

/* ==========================================================================
   Button & accent-box legibility (fixes washed-out light-blue in dark mode)
   ========================================================================== */

/* Header "Subscribe" button — solid, crisp, and force readable WHITE text
   (the .nav-links a color was overriding it to dark gray in light mode). */
.nav-cta .btn-primary,
.nav-cta .btn-primary:hover,
.nav-cta .btn-primary:focus { font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.10); color: #fff; }

/* Author name in a clean sans so the display font's quirky "J" descender
   doesn't look wobbly. */
.widget.author .name,
.author-box .name { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.005em; }

/* In dark mode --primary is a light blue, which made white text low-contrast.
   Use a deeper, legible blue for filled buttons and accent panels. */
[data-theme="dark"] .btn-primary { background: #3a4cae; color: #fff; }
[data-theme="dark"] .btn-primary:hover { background: #4a5cc8; color: #fff; }

/* Verse of the Day box: deeper blue so white text reads clearly in dark mode */
[data-theme="dark"] .widget.vod { background: #25407c; border-color: #25407c; }
[data-theme="dark"] .widget.vod h4 { color: rgba(255,255,255,.72); }

/* Subscribe band button (white button on the blue band): in dark mode use
   dark-blue text on white instead of light-blue-on-white */
[data-theme="dark"] .subscribe .btn-primary { background: #fff; color: #21306b; }
[data-theme="dark"] .subscribe .btn-primary:hover { background: rgba(255,255,255,.9); color: #1a2456; }

/* Filter banner on the blog archive */
.filter-banner { margin: 0 0 1.25rem; }
.filter-banner a { font-weight: 600; }

/* ==========================================================================
   Masthead header — centered logo on top; menu collapsed into a Menu button;
   light/dark toggle kept outside the menu for direct access.
   ========================================================================== */
:root { --gold: #283890; }            /* accent — now brand blue (was gold) */
[data-theme="dark"] { --gold: #8ea2e6; }

/* Masthead grid: row 1 = centered logo (with toggle top-right), row 2 = menu */
.site-header .nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  height: auto;
  row-gap: .9rem;
  padding: 1.4rem 0 1.05rem;
  position: relative;
}
/* big logo spanning the top, centered */
.site-header .brand { grid-column: 2; grid-row: 1; justify-self: center; align-items: center; text-align: center; }
.site-header .brand .mark {
  width: clamp(190px, 56vw, 540px);
  height: clamp(38px, 10vw, 96px);
  background-position: center;
}
.site-header .brand .tag {
  display: block;
  margin-top: .45rem;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; text-align: center;
}
@media (max-width: 560px) { .site-header .brand .tag { display: none; } }

/* light/dark toggle kept at the top-right, aligned with the logo */
.site-header .theme-toggle { grid-column: 3; grid-row: 1; justify-self: end; }

/* menu options shown as a centered row below the logo */
.site-header .nav-right { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; width: 100%; }
.site-header nav { position: static; }
.site-header .nav-toggle { display: none !important; }   /* no Menu button — links are visible */
.site-header .nav-links {
  position: static; transform: none; inset: auto;
  display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .35rem 1.8rem; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0;
}
.site-header .nav-links li { padding: 0; border: 0; }
.site-header .nav-links a { display: inline-block; padding: .15rem 0; border-radius: 0; color: var(--ink-soft); font-size: 1rem; position: relative; }
.site-header .nav-links a:hover { background: none; color: var(--gold); }
.site-header .nav-links a.active { background: none; color: var(--ink); }
.site-header .nav-links a.active::after { content: ""; display: block; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); border-radius: 2px; }
.site-header .nav-cta { margin: 0 0 0 .3rem; padding: 0; border: 0; }
/* keep the Subscribe button a proper readable pill (the menu-row link styles
   were squashing it into a low-contrast box) */
.site-header .nav-cta .btn-primary {
  width: auto; padding: .5em 1.2em; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 700; font-size: .9rem;
}
.site-header .nav-cta .btn-primary:hover { background: var(--primary-2); color: #fff; }
[data-theme="dark"] .site-header .nav-cta .btn-primary { background: #3a4cae; }
[data-theme="dark"] .site-header .nav-cta .btn-primary:hover { background: #4a5cc8; }

/* ticker sits flush against the header (no gap); content below keeps its own spacing */
main { padding-top: 0; }
.marquee { border-top: 0; }

/* On scroll, condense the header; the menu hides when scrolling down and
   reappears when scrolling up (handled by .menu-hidden in main.js) */
.site-header .nav { transition: padding .25s ease, row-gap .25s ease; }
.site-header .brand .mark { transition: height .25s ease; }
.site-header.scrolled .nav { padding: .55rem 0; }
.site-header.scrolled .brand .tag { display: none; }
.site-header.scrolled .brand .mark { height: clamp(30px, 4.5vw, 40px); }

/* The menu stays part of the header (blends with the logo bar) and simply
   collapses when hidden. The header is position:fixed, so this height change
   never shifts the page — no glitch loop. */
.site-header .nav-right { overflow: hidden; max-height: 8rem; opacity: 1; transition: max-height .28s ease, opacity .2s ease; }
.site-header.menu-hidden .nav-right { max-height: 0; opacity: 0; }
.site-header.menu-hidden .nav { row-gap: 0; }

/* ==========================================================================
   Flavor pass — warmth, gold accents, and editorial touches
   (all easy to dial up or down)
   ========================================================================== */

/* warmer paper so it isn't stark white */
:root { --paper: #fbfaf7; --paper-2: #f4f2ea; }
[data-theme="dark"] { --paper: #0f1117; --paper-2: #171a22; }   /* keep dark backgrounds dark */

/* a thin gold ribbon at the very top — ties the page to the logo's gold */
.site-header { border-top: 3px solid var(--gold); }

/* Homepage welcome / verse band with a soft "light" glow */
.welcome {
  text-align: center;
  padding: clamp(1.25rem, 3.5vw, 2.5rem) 0 0;
  background: radial-gradient(60% 120% at 50% 0%, rgba(40,56,144,.06), transparent 72%);
}
.welcome .verse {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem); line-height: 1.45;
  color: var(--primary); max-width: 32ch; margin: 0 auto .55rem;
}
.welcome cite {
  font-style: normal; font-family: var(--font-body);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.welcome .rule { width: 56px; height: 2px; background: var(--gold); margin: 1.1rem auto 0; border-radius: 2px; opacity: .7; }

/* category chips get a subtle gold edge */
.cat { border: 1px solid rgba(40,56,144,.25); }

/* editorial drop-cap on the first paragraph of an article */
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: 600; color: var(--primary);
  font-size: 3.4em; line-height: .8; float: left; padding: .02em .12em 0 0;
}

/* warmer pull-quotes: gold accent + gold citation */
.article-body blockquote { border-left-color: var(--gold); }
.article-body blockquote cite { color: var(--gold); }

/* section headings get a small gold tick before them */
.section-label h2 { position: relative; }
.section-label { border-bottom-color: var(--gold); }

/* ==========================================================================
   Scrolling category ticker (Blogsville-style)
   ========================================================================== */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.marquee-track {
  display: inline-flex; align-items: center;
  padding: .6rem 0; animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-family: var(--font-body); font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  padding: 0 1.25rem;
}
.marquee-track .m-orn::before { content: "\2726"; color: var(--gold); font-size: .7rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ==========================================================================
   Homepage hero — editorial, framed by hairline rules (light & professional)
   ========================================================================== */
.hero-home {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center; color: #fff;
  border-radius: 0;
  /* break out of the centered container to span the full screen width */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(3.5rem, 10vw, 7rem) 1.5rem;
  background: #16213f;   /* fallback until img/hero.jpg is added */
}
/* looping background video (and a still fallback image beneath it) */
.hero-home::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background: url('../img/hero-poster.jpg') center / cover no-repeat;
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-home::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16,22,44,.34), rgba(16,22,44,.56));
}
.hero-home .eyebrow { color: #cdd7f5; margin-bottom: 1rem; }
.hero-home h1 {
  color: #fff; max-width: 20ch; margin: 0 auto;
  font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.1;
  text-shadow: 0 1px 22px rgba(0,0,0,.3);
}
.hero-home .hero-rule {
  width: 60px; height: 2px; background: rgba(255,255,255,.85);
  border-radius: 2px; margin: 1.4rem auto;
}
.hero-home .lede {
  color: rgba(255,255,255,.9); max-width: 56ch; margin: 0 auto 1.9rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.hero-home .hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-home .hero-verse-line {
  margin: 1.9rem auto 0; max-width: 48ch;
  font-family: var(--font-display); font-style: italic;
  color: rgba(255,255,255,.82); font-size: 1rem;
}
.hero-home .btn-primary { background: #fff; color: #283890; border-color: #fff; }
.hero-home .btn-primary:hover { background: rgba(255,255,255,.88); color: #1d2a6e; }
.hero-home .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero-home .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ==========================================================================
   Bold "magazine" variant — applied only on <body class="theme-bold">
   (used by index-bold.html so you can compare against the current homepage)
   ========================================================================== */
.theme-bold .hero-home { padding: clamp(4rem, 11vw, 7.5rem) 1.5rem; }
.theme-bold .hero-home h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem); line-height: 1.02;
  letter-spacing: -0.02em; max-width: 16ch;
}
.theme-bold .hero-home .lede { font-size: clamp(1.1rem, 2.3vw, 1.4rem); max-width: 50ch; }

/* feed goes full-width and the posts sit side by side as a card grid */
.theme-bold .layout { grid-template-columns: 1fr; gap: 0; }
.theme-bold .sidebar { display: none; }
/* posts as a grid of horizontal mini-cards: small square image left, date + title right */
.theme-bold .feed {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem 2rem;
}
.theme-bold .feed-item {
  display: grid; grid-template-columns: 92px 1fr; gap: 1.1rem; align-items: center;
  padding: 0; border: 0; border-radius: 0; background: none; transition: transform .15s ease;
}
.theme-bold .feed-item:hover { transform: none; box-shadow: none; }
.theme-bold .feed-item:hover .feed-body h3 { color: var(--primary); }
.theme-bold .feed-item .thumb {
  width: 92px; height: 92px; aspect-ratio: 1 / 1; border-radius: 10px; border: 1px solid var(--line);
}
.theme-bold .feed-body { display: flex; flex-direction: column; padding: 0; }
.theme-bold .feed-body .cat { display: none; }
.theme-bold .feed-body > p:not(.meta-line) { display: none; }   /* hide excerpt for the compact look */
.theme-bold .feed-body .meta-line { order: -1; color: var(--gold); font-weight: 700; font-size: .76rem; margin: 0 0 .35rem; }
.theme-bold .feed-body h3 { font-size: 1.08rem; line-height: 1.25; margin: 0; }

/* "See Also" cards: square photo beside the title (matches the feed look) */
.theme-bold .mini-card { display: block; }
.theme-bold .mini-card::after { content: ""; display: block; clear: both; }
.theme-bold .mini-card .thumb {
  float: left; width: 78px; height: 78px; aspect-ratio: 1 / 1;
  border-radius: 10px; border: 1px solid var(--line); margin: 0 1rem 0 0;
}
.theme-bold .mini-card .cat { display: none; }
.theme-bold .mini-card h3 { font-size: 1.02rem; line-height: 1.25; margin: 0 0 .35rem; }
.theme-bold .mini-card > p:not(.meta-line) { display: none; }   /* hide excerpt, keep it compact */
.theme-bold .mini-card .meta-line { margin: 0; font-size: .76rem; }

/* large quote feature block */
.quote-feature {
  text-align: center; padding: clamp(2.5rem,6vw,4.5rem) 1rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: clamp(2rem,5vw,3.5rem) 0;
}
.quote-feature blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 2.7rem); line-height: 1.22; color: var(--ink);
  max-width: 24ch; margin: 0 auto; border: 0; padding: 0; background: none;
}
.quote-feature blockquote::before { content: none; }
.quote-feature cite {
  display: block; margin-top: 1.2rem; font-style: normal; font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}

/* About-the-author strip (below the blog grid on the homepage) */
.about-owner {
  display: grid; grid-template-columns: 190px 1fr; gap: 2.25rem; align-items: center;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.about-owner-photo {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 14px;
  background: var(--primary) url('../img/jeremy.jpg') center/cover no-repeat;
}
.about-owner .eyebrow { margin-bottom: .5rem; }
.about-owner h2 { margin: 0 0 .6rem; }
.about-owner p { color: var(--ink-soft); margin: 0 0 1.3rem; max-width: 60ch; }
.about-owner .facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.3rem; padding: 0; list-style: none; }
.about-owner .facts li { font-weight: 600; color: var(--ink); font-size: .95rem; }
.about-owner .facts li::before { content: "\2022"; color: var(--primary); margin-right: .5rem; }
@media (max-width: 640px) {
  .about-owner { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .about-owner-photo { max-width: 180px; margin: 0 auto; }
  .about-owner .facts { justify-content: center; }
}

/* Browse by Topic — category cards */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.topic-card {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 1.5rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  font-family: var(--font-display); font-size: 1.05rem; color: var(--ink);
  transition: transform .15s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.topic-card:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }

/* three-column values strip */
.values.cols-3 { grid-template-columns: repeat(3, 1fr); }
.values.cols-3 .value { border-top: 3px solid var(--primary); }
@media (max-width: 760px) { .values.cols-3 { grid-template-columns: 1fr; } }

/* Verse of the Day band (rotating) reuses the quote-feature styling */
.quote-feature .eyebrow { margin-bottom: 1rem; }
.quote-feature .verse {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 2.7rem); line-height: 1.22; color: var(--ink);
  max-width: 24ch; margin: 0 auto;
}

/* ==========================================================================
   Designer color pass — depth & rhythm via a deep navy, branded footer,
   filled accents. Goal: stand out, look professional, stay on-brand.
   ========================================================================== */
:root { --navy: #18234e; }              /* deep brand navy for contrast surfaces */
[data-theme="dark"] { --navy: #1a2550; }

/* Footer: neutral deep charcoal — the page's single dark anchor (not blue) */
.site-footer { background: #16181d; }
[data-theme="dark"] .site-footer { background: #0a0b0e; }

/* Verse of the Day — photo background (img/verse-bg.jpg) with a soft dark overlay */
.quote-feature {
  position: relative; overflow: hidden; isolation: isolate;
  background: #16213f; border: 0; color: #fff;
}
.quote-feature::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url('../img/verse-bg.jpg') center / cover no-repeat;
}
.quote-feature::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,19,40,.58), rgba(14,19,40,.74));
}
.quote-feature .eyebrow { color: #cdd7f5; }
.quote-feature .verse { color: #fff; text-shadow: 0 1px 18px rgba(0,0,0,.3); }
.quote-feature cite { color: #cdd7f5; }

/* Subscribe — clean light card; blue lives only in the button */
.cta-band { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--ink-soft); }
.cta-band .eyebrow { color: var(--primary); }
.subscribe input { background: var(--white); border: 1.5px solid var(--line); color: var(--ink); }
.subscribe input::placeholder { color: var(--ink-faint); }
.subscribe input:focus { border-color: var(--primary); }
.subscribe .btn-primary { background: var(--primary); color: #fff; }
.subscribe .btn-primary:hover { background: var(--primary-2); color: #fff; }
[data-theme="dark"] .subscribe .btn-primary { background: #3a4cae; color: #fff; }
[data-theme="dark"] .subscribe .btn-primary:hover { background: #4a5cc8; color: #fff; }

/* tighten the space above and below the subscribe CTA box */
#subscribe { padding-top: clamp(1rem, 2.5vw, 1.75rem); padding-bottom: clamp(1rem, 2.5vw, 1.75rem); }

/* Topic cards fill with brand blue on hover (was just a blue outline) */
.topic-card:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-3px); }
[data-theme="dark"] .topic-card:hover { color: #0f1117; }

/* About-the-author strip gets a soft brand tint so it reads as a feature */
.about-owner { background: var(--wash); border-color: rgba(40,56,144,.16); }
[data-theme="dark"] .about-owner { border-color: var(--line); }

/* Subtle: section dividers and the featured headline use the brand blue,
   active nav + dates already blue — keeps the accent consistent. */
.feature-body h2 a:hover { color: var(--primary); }

