:root {
  --pgc-primary: #1f5f4a;
  --pgc-secondary: #f4a340;
  --pgc-accent: #df5a4a;
  --pgc-text: #1f2937;
  --pgc-muted: #5f6b7a;
  --pgc-background: #f6f9f6;
  --pgc-surface: #ffffff;
  --pgc-border: #d9e3dc;
  --pgc-radius: 0.9rem;
  --pgc-shadow: 0 8px 24px rgba(31, 95, 74, 0.12);
  --pgc-max-width: 76rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--pgc-text);
  background: radial-gradient(circle at top right, #fdf8ec 0%, var(--pgc-background) 45%, #eef6f0 100%);
  font-family: "Nunito", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(31, 95, 74, 0.4);
  outline-offset: 2px;
}

.pgc-shell {
  max-width: var(--pgc-max-width);
}

.brand-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(31, 95, 74, 0.2);
}

.pgc-card {
  background: var(--pgc-surface);
  border: 1px solid var(--pgc-border);
  border-radius: var(--pgc-radius);
  box-shadow: var(--pgc-shadow);
}

.pgc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pgc-button:hover,
.pgc-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(31, 95, 74, 0.22);
}

.pgc-button-primary {
  background-color: var(--pgc-primary);
  color: #ffffff;
}

.pgc-button-secondary {
  background-color: #ffffff;
  color: var(--pgc-primary);
  border: 1px solid var(--pgc-border);
}

.section-heading {
  color: #153f32;
  letter-spacing: 0.01em;
}

.book-cover {
  width: 100%;
  border-radius: 0.8rem;
  box-shadow: 0 12px 18px rgba(31, 95, 74, 0.18);
}

.book-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(31, 95, 74, 0.18);
}

.lesson-preview {
  border-radius: 0.75rem;
  border: 1px solid var(--pgc-border);
  box-shadow: 0 8px 14px rgba(31, 95, 74, 0.1);
}

.lesson-preview-trigger {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-lightbox.hidden {
  display: none;
}

.preview-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.8);
}

.preview-lightbox-content {
  position: relative;
  width: min(96vw, 1100px);
  max-height: 92vh;
  z-index: 1;
}

.preview-lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: -0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.preview-lightbox-figure {
  margin: 0;
  background: #ffffff;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.35);
}

.preview-lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
}

.preview-lightbox-title {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pgc-primary);
}

.hero-banner {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--pgc-border);
  box-shadow: var(--pgc-shadow);
}

.pgc-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  background: #e7f2ec;
  color: #18503d;
  font-weight: 700;
  font-size: 0.8125rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0.75rem;
  z-index: 100;
  background-color: var(--pgc-primary);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pgc-button,
  .book-card {
    transition: none;
  }
}
