:root {
  --color-sky: #5ea8d0;
  --color-sky-dark: #3d7ea6;
  --color-sky-light: #a9d4ea;
  --color-earth: #6fb37e;
  --color-earth-dark: #4c8c5d;
  --color-earth-light: #a8d9b4;
  --color-text: #e9f1ef;
  --color-muted: #93a9ae;
  --color-bg: #10181a;
  --color-border: #24343a;
  --tint-sky: #142530;
  --tint-earth: #13221b;
  --color-footer-bg: #0a1113;
  --color-footer-text: #e9f1ef;
  --color-footer-muted: #a9bdc2;
  --color-footer-border: #24343a;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.35);
  --gradient-horizon: linear-gradient(135deg, #3a8cb8, #57a06b);
  --max-width: 760px;
  --radius: 14px;
  --heading-font: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

:root[data-theme="light"] {
  --color-sky: #2e7ba6;
  --color-sky-dark: #1f5c80;
  --color-sky-light: #8fc2de;
  --color-earth: #4c8c5d;
  --color-earth-dark: #386b45;
  --color-earth-light: #93c79f;
  --color-text: #17262b;
  --color-muted: #55707a;
  --color-bg: #fbfcfb;
  --color-border: #dce6e2;
  --tint-sky: #e9f2f6;
  --tint-earth: #eef6f0;
  --color-footer-bg: #17262b;
  --color-footer-text: #fbfcfb;
  --color-footer-muted: #a9bdc2;
  --color-footer-border: #33474e;
  --shadow-card: 0 2px 8px rgba(23, 38, 43, 0.05);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

h1,
h2 {
  font-family: var(--heading-font);
  line-height: 1.15;
}

.site-header {
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-muted);
  font-weight: 600;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.site-nav a[aria-current="page"] {
  color: var(--color-sky);
  border-bottom-color: var(--color-sky);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--color-sky);
  border-color: var(--color-sky);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

:root:not([data-theme="light"]) .theme-toggle .icon-moon {
  display: block;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

.page {
  padding: 3rem 1.5rem 4rem;
}

.hero {
  text-align: center;
  background: var(--tint-sky);
  border-radius: var(--radius);
  padding: 3rem 1.75rem;
}

.hero-photo-ring {
  display: inline-block;
  padding: 5px;
  border-radius: 50%;
  background: var(--gradient-horizon);
  margin-bottom: 1.25rem;
}

.hero-photo {
  display: block;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 3px solid var(--tint-sky);
}

.hero h1 {
  margin: 0 0 0.4rem;
  font-size: 2.5rem;
}

.tagline {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin: 0.25rem 0;
}

.company-link {
  margin-top: 0.75rem;
}

.about,
.connect,
section {
  margin-top: 2.5rem;
}

.about {
  background: var(--tint-earth);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
}

.about h2,
.connect h2 {
  font-size: 1.6rem;
  margin-top: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--color-earth-dark);
  font-weight: 700;
  margin-top: -0.5rem;
}

.social-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0.5rem 0 0;
}

.social-links a {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.social-links a:hover {
  border-color: var(--color-sky);
  background: var(--color-sky);
  color: #ffffff;
  text-decoration: none;
}

.page-header {
  margin-bottom: 2rem;
}

.overview-figure {
  margin: 2rem 0;
  padding: 0;
}

.overview-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  display: block;
}

.overview-figure figcaption {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.page-header h1 {
  display: inline-block;
  font-size: 2.1rem;
  margin: 0 0 0.9rem;
  padding-bottom: 0.7rem;
  background-image: var(--gradient-horizon);
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 64px 4px;
}

.platform-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.platform-links a {
  background: var(--tint-sky);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 600;
}

.platform-links a:hover {
  background: var(--color-sky);
  color: #ffffff;
  text-decoration: none;
}

.quote {
  border-left: 4px solid var(--color-earth);
  padding: 1rem 1.5rem;
  margin: 0 0 2rem;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text);
  background: var(--tint-earth);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.job-card {
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-earth);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}

.job-card h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.principle-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.principle-card .eyebrow {
  margin-top: 0;
}

.principle-card h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.7rem;
}

.principle-summary {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.principle-link {
  display: inline-block;
  border: 1px solid var(--color-sky);
  color: var(--color-sky);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
}

.principle-link:hover {
  background: var(--color-sky);
  color: #ffffff;
  text-decoration: none;
}

.principle-hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin: 0 0 2rem;
}

.core-question {
  background: var(--tint-sky);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.core-question .eyebrow {
  margin-top: 0;
}

.core-question-text {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  margin: 0;
}

.teach-list,
.hard-questions {
  padding-left: 1.25rem;
}

.teach-list li,
.hard-questions li {
  margin-bottom: 0.5rem;
}

.bible-framework {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0;
}

.bible-framework li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.bible-framework li:last-child {
  border-bottom: none;
}

.framework-step {
  display: block;
  font-weight: 600;
}

.framework-refs {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.framework-refs a {
  color: var(--color-earth-dark);
  font-weight: 600;
}

.framework-note {
  color: var(--color-muted);
  font-style: italic;
  margin-top: 0.25rem;
}

.framework-verse {
  margin: 0.5rem 0 0;
  padding: 0.6rem 1rem;
  border-left: 3px solid var(--color-earth);
  background: var(--tint-earth);
  border-radius: 0 8px 8px 0;
}

.framework-verse p {
  margin: 0;
  font-style: italic;
}

.framework-verse cite {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.85rem;
}

.framework-verse cite a {
  color: var(--color-earth-dark);
  font-weight: 600;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.comparison-col {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.comparison-col .eyebrow {
  margin-top: 0;
}

.comparison-col p:last-child {
  margin-bottom: 0;
}

.exercise-card {
  background: var(--tint-earth);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

.exercise-card .eyebrow {
  margin-top: 0;
}

.exercise-card h2 {
  margin-top: 0.25rem;
}

.one-sentence {
  border-left: 4px solid var(--color-sky);
  background: var(--tint-sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.75rem;
  margin: 2.5rem 0;
  font-family: var(--heading-font);
  font-size: 1.2rem;
}

.one-sentence p {
  margin: 0;
}

.story-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

.story-block {
  margin-bottom: 1.5rem;
}

.story-block:last-child {
  margin-bottom: 0;
}

.story-block .eyebrow {
  margin-top: 0;
}

.story-block p:last-child {
  margin-bottom: 0;
}

.story-prompt {
  color: var(--color-muted);
}

.stage-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.stage-pager-link {
  font-weight: 600;
}

.stage-pager-hub {
  color: var(--color-muted);
  font-weight: 500;
}

@media (max-width: 600px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .principle-card {
    padding: 1.75rem;
  }
}

.overview-image {
  cursor: zoom-in;
}

.principle-slider {
  outline: none;
}

.slider-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.slider-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.35s ease;
}

.slider-track .principle-card {
  flex: 0 0 100%;
  margin-bottom: 0;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.slider-prev,
.slider-next {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.slider-prev:hover:not(:disabled),
.slider-next:hover:not(:disabled) {
  border-color: var(--color-sky);
  color: var(--color-sky);
}

.slider-prev:disabled,
.slider-next:disabled {
  opacity: 0.4;
  cursor: default;
}

.slider-counter {
  color: var(--color-muted);
  font-size: 0.9rem;
  min-width: 3.5rem;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}

.lightbox-viewport.is-dragging {
  cursor: grabbing;
}

.lightbox-image {
  max-width: 92vw;
  max-height: 80vh;
  transition: transform 0.05s linear;
  -webkit-user-select: none;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 0.75rem 0 1.25rem;
}

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  margin-top: 4rem;
}

.footer-inner {
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-inner p {
  color: var(--color-footer-muted);
  margin: 0;
}

.footer-inner .social-links a {
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  background: transparent;
  border-color: var(--color-footer-border);
  color: var(--color-footer-text);
}

.footer-inner .social-links a:hover {
  background: var(--color-sky-light);
  border-color: var(--color-sky-light);
  color: #10181a;
}

@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .about {
    padding: 2rem 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
