/*
Theme Name: It's Gospel Time
Theme URI: https://its-gospel-time.de
Author: Gabriel Wrona
Description: Schlankes, responsives Gutenberg-Theme für den chronologischen Bibelleseplan von It's Gospel Time.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: its-gospel-time
*/

:root {
  --igt-navy: #0b1f36;
  --igt-navy-soft: #173753;
  --igt-gold: #c99a3d;
  --igt-gold-light: #f1d79d;
  --igt-ink: #17202b;
  --igt-muted: #5f6b78;
  --igt-paper: #f7f8fa;
  --igt-white: #ffffff;
  --igt-line: #dce2e8;
  --igt-radius: 18px;
  --igt-shadow: 0 18px 50px rgba(11,31,54,.12);
  --igt-content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--igt-ink);
  background: var(--igt-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
}
a { color: var(--igt-navy-soft); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: #8a651e; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 1rem; padding: .75rem 1rem; background: #fff; z-index: 9999; }

.igt-wrap { width: min(calc(100% - 2rem), var(--igt-content)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--igt-line); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-branding { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--igt-gold); background: var(--igt-navy); border-radius: 50%; font-family: Georgia, serif; font-size: 1.55rem; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-title { color: var(--igt-navy); font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.28rem; }
.brand-subtitle { color: var(--igt-muted); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.primary-menu { display: flex; align-items: center; gap: 1.35rem; padding: 0; margin: 0; list-style: none; }
.primary-menu a { color: var(--igt-ink); font-size: .94rem; font-weight: 650; text-decoration: none; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: #8a651e; }
.menu-toggle { display: none; border: 0; background: var(--igt-paper); border-radius: 10px; padding: .7rem .8rem; color: var(--igt-navy); font-weight: 700; }

.igt-hero { position: relative; isolation: isolate; min-height: 650px; display: grid; align-items: center; overflow: hidden; background: var(--igt-navy); color: white; }
.igt-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(7,22,40,.96) 0%, rgba(7,22,40,.86) 42%, rgba(7,22,40,.28) 75%, rgba(7,22,40,.12) 100%), var(--igt-hero-image, linear-gradient(135deg,#0b1f36,#284f6d)); background-position: center; background-size: cover; }
.igt-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; z-index: -1; background: linear-gradient(transparent, rgba(4,14,26,.42)); }
.hero-content { max-width: 720px; padding-block: 6rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--igt-gold-light); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--igt-gold); }
.igt-hero h1 { max-width: 680px; margin: 1rem 0 1.2rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.035em; }
.igt-hero p { max-width: 620px; margin: 0 0 2rem; color: #e7edf3; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.igt-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font-weight: 750; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.igt-button:hover { transform: translateY(-2px); }
.igt-button--gold { color: #122338; background: var(--igt-gold-light); box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.igt-button--gold:hover { color: #122338; background: #ffe8b7; }
.igt-button--ghost { color: white; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.07); }
.igt-button--ghost:hover { color: white; background: rgba(255,255,255,.14); }

.igt-section { padding-block: clamp(4rem, 8vw, 7rem); }
.igt-section--soft { background: var(--igt-paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2, .entry-title { margin: 0; color: var(--igt-navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; }
.section-heading p { max-width: 560px; margin: 0; color: var(--igt-muted); }
.feature-grid, .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card, .post-card { padding: 1.6rem; border: 1px solid var(--igt-line); border-radius: var(--igt-radius); background: white; box-shadow: 0 8px 30px rgba(11,31,54,.06); }
.feature-card__number { display: block; color: var(--igt-gold); font-family: Georgia, serif; font-size: 2.5rem; line-height: 1; }
.feature-card h3, .post-card h3 { margin: .8rem 0 .55rem; color: var(--igt-navy); font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.25; }
.feature-card p, .post-card p { margin: 0; color: var(--igt-muted); }
.post-card a { text-decoration: none; }
.post-card__meta { color: #7a8490; font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.scripture-band { background: var(--igt-navy); color: white; }
.scripture-inner { display: grid; grid-template-columns: 190px 1fr; gap: clamp(2rem,6vw,6rem); align-items: center; }
.cross-symbol { color: var(--igt-gold); font-family: Georgia, serif; font-size: 9rem; font-weight: 300; line-height: 1; text-align: center; }
.scripture-band blockquote { margin: 0; font-family: Georgia, serif; font-size: clamp(1.5rem,3vw,2.5rem); line-height: 1.35; }
.scripture-band cite { display: block; margin-top: 1rem; color: var(--igt-gold-light); font-family: Inter, sans-serif; font-size: .9rem; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.content-shell { width: min(calc(100% - 2rem), 880px); margin-inline: auto; padding-block: clamp(3rem,7vw,6rem); }
.entry-header { margin-bottom: 2rem; }
.entry-meta { margin-bottom: .65rem; color: var(--igt-gold); font-size: .82rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.entry-content > * { max-width: 760px; margin-inline: auto; }
.entry-content > .alignwide { max-width: 1060px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3 { color: var(--igt-navy); font-family: Georgia, serif; line-height: 1.2; }
.entry-content blockquote { margin-block: 2rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--igt-gold); background: var(--igt-paper); }

.lesson-header { padding: 3rem 0; background: linear-gradient(135deg,var(--igt-navy),var(--igt-navy-soft)); color: white; }
.lesson-header .entry-title { color: white; }
.lesson-facts { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }
.lesson-fact { padding: .42rem .78rem; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #e8eef4; font-size: .88rem; }
.lesson-actions { display: flex; justify-content: space-between; gap: 1rem; padding-top: 2rem; margin-top: 3rem; border-top: 1px solid var(--igt-line); }
.igt-progress-button { border: 0; border-radius: 999px; padding: .75rem 1rem; background: var(--igt-navy); color: white; font-weight: 750; cursor: pointer; }
.igt-progress-button[aria-pressed="true"] { background: #315f46; }

.igt-plan-tools { display: flex; gap: .8rem; margin-bottom: 1.5rem; }
.igt-plan-search { width: 100%; padding: .85rem 1rem; border: 1px solid var(--igt-line); border-radius: 12px; font: inherit; }
.igt-plan-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.igt-plan-item { display: block; padding: 1rem; border: 1px solid var(--igt-line); border-radius: 14px; color: var(--igt-ink); background: white; text-decoration: none; }
.igt-plan-item:hover { border-color: var(--igt-gold); box-shadow: 0 8px 24px rgba(11,31,54,.08); }
.igt-plan-item strong { display: block; color: var(--igt-navy); }
.igt-plan-item span { color: var(--igt-muted); font-size: .9rem; }

.site-footer { background: #071626; color: #c9d2dc; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-block: 4rem; }
.site-footer h2, .site-footer h3 { margin-top: 0; color: white; font-family: Georgia, serif; }
.site-footer a { color: #e7edf3; }
.footer-menu { padding: 0; margin: 0; list-style: none; }
.footer-menu li + li { margin-top: .45rem; }
.footer-bottom { padding-block: 1rem; border-top: 1px solid rgba(255,255,255,.12); color: #9daab7; font-size: .85rem; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-navigation { position: absolute; inset: 76px 0 auto; display: none; padding: 1rem; background: white; border-bottom: 1px solid var(--igt-line); }
  .site-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-menu a { display: block; padding: .75rem; }
  .feature-grid, .post-grid, .igt-plan-list { grid-template-columns: 1fr 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-subtitle { display: none; }
  .igt-hero { min-height: 590px; }
  .igt-hero::before { background: linear-gradient(180deg, rgba(7,22,40,.82), rgba(7,22,40,.95)), var(--igt-hero-image, linear-gradient(135deg,#0b1f36,#284f6d)); background-position: 64% center; background-size: cover; }
  .hero-content { padding-block: 4.5rem; }
  .feature-grid, .post-grid, .igt-plan-list, .footer-inner, .scripture-inner { grid-template-columns: 1fr; }
  .cross-symbol { font-size: 6rem; }
  .scripture-inner { gap: 1rem; }
  .footer-inner { gap: 1.5rem; }
  .lesson-actions { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Navigation for imported multi-page posts */
.page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-top: 2.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--igt-line);
  border-bottom: 1px solid var(--igt-line);
}
.page-links strong { margin-right: .25rem; }
.page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: .2rem .7rem;
  border: 1px solid var(--igt-line);
  border-radius: 999px;
  background: #fff;
  color: var(--igt-primary);
  font-weight: 700;
  text-decoration: none;
}
.page-links a:hover,
.page-links a:focus-visible {
  border-color: var(--igt-accent);
  background: var(--igt-accent);
  color: #fff;
}
.entry-content img {
  max-width: 100%;
  height: auto;
}
