/* Theme: illuminated
   Ported from christthroughpaul.com — a single-page, illuminated-manuscript
   style devotional/teaching site. Default palette is the gold/ink English
   look; html[lang="ja"] swaps in the blue Japanese palette and
   html[lang="zh-CN"] swaps in the rust Chinese palette, each with its own
   serif font stack, letter-spacing, line-height and opening-quote glyph —
   consolidated here with CSS custom properties instead of three separate
   stylesheets. */

:root {
  --ink: #0c0903;
  --parchment: #f3ecd9;
  --accent: #c8a44a;
  --accent-soft: #e6d6a8;
  --rule: #ddcd9e;
  --muted: #6b6147;
  --font-body: "Cormorant Garamond", "Noto Serif", Georgia, serif;
  --font-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --quote-glyph: "\201C"; /* “ */
  --max-width: 760px;
}

html[lang="ja"] {
  --ink: #060810;
  --parchment: #deeaf3;
  --accent: #6b9ab8;
  --accent-soft: #bcd6e6;
  --rule: #c3d7e3;
  --muted: #566878;
  --font-body: "Noto Serif JP", "Cormorant Garamond", serif;
  --font-display: "Noto Serif JP", serif;
  --quote-glyph: "\300C"; /* 「 */
}

html[lang="zh-CN"] {
  --ink: #0f0603;
  --parchment: #f2ddd5;
  --accent: #b8583c;
  --accent-soft: #e0b7a8;
  --rule: #e0c3b7;
  --muted: #8a5d4e;
  --font-body: "Noto Serif SC", "Cormorant Garamond", serif;
  --font-display: "Noto Serif SC", serif;
  --quote-glyph: "\201C";
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.75;
  font-size: 1.08rem;
}

html[lang="ja"] body, html[lang="zh-CN"] body { line-height: 1.95; letter-spacing: 0.02em; }

em { font-style: italic; color: var(--accent); }
html[lang="ja"] em, html[lang="zh-CN"] em { font-style: normal; color: var(--accent); }

a { color: var(--accent); }
a:hover { text-decoration: none; }

/* ---- header / nav ---- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--parchment); }

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-name {
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.site-tagline { color: var(--muted); font-size: 0.82rem; margin-left: 0.9rem; font-style: italic; font-weight: 400; }
html[lang="ja"] .site-tagline, html[lang="zh-CN"] .site-tagline { font-style: normal; }

.nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a:first-child { margin-left: 0; }
.nav-links a:hover { color: var(--accent); }

.lang-switch {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.3rem 1.25rem 0.8rem;
  font-size: 0.78rem;
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.15rem 0.55rem;
  display: inline-block;
}
.lang-switch a:hover { color: var(--accent); border-color: var(--accent); }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* ---- hero ---- */
.hero {
  position: relative;
  text-align: center;
  padding: 3rem 1.25rem 3.5rem;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 11rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.07;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.hero-media { position: relative; z-index: 1; margin-bottom: 1.5rem; }
.hero-media img { max-width: 100%; border-radius: 4px; }
.hero-media-caption { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; }

.hero-copy { position: relative; z-index: 1; }

.hero-ornament { color: var(--accent); font-size: 1.1rem; letter-spacing: 0.3em; margin: 0 0 1.1rem; }

.hero-eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: 2.9rem;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  color: var(--ink);
  max-width: 14ch;
  margin-inline: auto;
}
.hero-heading em { font-style: italic; }
html[lang="ja"] .hero-heading em, html[lang="zh-CN"] .hero-heading em { font-style: normal; }

.hero-subheading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.hero-kicker {
  font-style: italic;
  color: var(--accent);
  font-size: 1.15rem;
  margin: 0 0 1.1rem;
}
html[lang="ja"] .hero-kicker, html[lang="zh-CN"] .hero-kicker { font-style: normal; }

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

.hero-badge {
  display: inline-block;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-cta {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-cta:hover { background: var(--accent); color: var(--parchment); }

/* ---- anchor-nav (in-page jump nav, distinct from .site-nav) ---- */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  padding: 1rem 1.25rem 2.2rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}
.anchor-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.anchor-nav a:hover { color: var(--accent); }

/* ---- section structure ---- */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 3px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.9rem;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.3; }
h2 { font-size: 1.9rem; margin: 2.6rem 0 0.9rem; }
h2 em { color: var(--accent); font-style: italic; }
html[lang="ja"] h2 em, html[lang="zh-CN"] h2 em { font-style: normal; }

.lead {
  font-size: 1.2rem;
  color: var(--ink);
  max-width: 54ch;
  margin-bottom: 1.1rem;
}

.sep, main hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ---- scripture ---- */
.scripture {
  background: rgba(200, 164, 74, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0;
}
.scripture-text { margin: 0 0 0.5rem; font-style: italic; }
.scripture-text::before { content: var(--quote-glyph); color: var(--accent); margin-right: 0.15em; }
html[lang="ja"] .scripture-text, html[lang="zh-CN"] .scripture-text { font-style: normal; }
.scripture-ref {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- pullquote ---- */
.pullquote {
  text-align: center;
  margin: 3rem auto;
  max-width: 44ch;
}
.pullquote blockquote {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--ink);
  border: none;
  padding: 0;
}
html[lang="ja"] .pullquote blockquote, html[lang="zh-CN"] .pullquote blockquote { font-style: normal; }
.pullquote cite {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.4rem 0;
  padding: 0.3rem 1.3rem;
  color: var(--muted);
}

/* ---- cards grid ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem;
  margin: 2.5rem 0;
}
.card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.3rem 1.1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.25);
}
.card-sym { display: block; font-size: 1.6rem; color: var(--accent); margin-bottom: 0.5rem; }
.card-title { font-family: var(--font-display); font-weight: 600; margin-bottom: 0.4rem; }
.card-body { font-size: 0.92rem; color: var(--ink); margin-bottom: 0.5rem; }
.card-verse { font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* ---- footer ---- */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}

/* ---- content images (shared row-2/row-3/image-text/text-text blocks) ---- */
main img { max-width: 100%; height: auto; display: block; }
figure.img-figure { margin: 2rem 0; }
figure.img-figure img { margin: 0 auto; border-radius: 4px; }
figure.img-figure figcaption { margin-top: 0.5rem; font-size: 0.8rem; color: var(--muted); text-align: center; font-style: italic; }
.img-row { display: flex; gap: 1rem; margin: 2rem 0; flex-wrap: wrap; }
.img-row figure.img-figure { flex: 1 1 0; min-width: 180px; margin: 0; }
.split { display: flex; gap: 1.5rem; margin: 2rem 0; align-items: flex-start; flex-wrap: wrap; }
.split > * { flex: 1 1 260px; min-width: 0; }
.split figure.img-figure { margin: 0; }
.split-text p:first-child { margin-top: 0; }

@media (max-width: 560px) {
  .img-row, .split { flex-direction: column; }
  .hero-watermark { font-size: 6rem; }
  .hero-heading { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .site-nav { flex-direction: column; align-items: flex-start; }
  .nav-links a { margin-left: 0; margin-right: 1.25rem; }
}
