@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #08111f;
  --bg-deep: #050b14;
  --panel: rgba(13, 27, 46, 0.86);
  --panel-soft: rgba(15, 31, 52, 0.72);
  --panel-border: rgba(170, 229, 181, 0.16);
  --text: #edf5f1;
  --muted: #b0c4ba;
  --accent: #98e16b;
  --accent-strong: #c6ff96;
  --accent-deep: #16301b;
  --warm: #f8d59c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --max-width: 1180px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(113, 197, 80, 0.22), transparent 26%),
    radial-gradient(circle at top right, rgba(58, 142, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #0b1322 0%, #09111d 42%, #050910 100%);
  line-height: 1.65;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  color: #08111f;
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
  z-index: 10;
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(18px);
  background: rgba(5, 11, 20, 0.66);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .site-shell,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-link,
.header-link,
.footer-links a,
.text-link {
  text-decoration: none;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  overflow: visible;
}

.brand-mark img {
  display: block;
  width: 96%;
  height: 96%;
  object-fit: contain;
  max-width: none;
  max-height: none;
  transform: translateX(0);
  filter: brightness(0) invert(1);
}

.brand-text,
.header-link {
  color: var(--muted);
}

.header-link {
  font-weight: 700;
}

.hero,
.story-section,
.authors-section,
.back-cover-section {
  padding: 4.5rem 0;
}

.hero {
  padding-top: 5rem;
}

.hero-stack,
.authors-grid {
  display: grid;
  gap: 2rem;
}

.hero-stack {
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.hero-copy h1,
.story-copy h2,
.closing-copy h2,
.authors-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 4.4vw, 4.2rem);
  max-width: none;
}

.lede {
  font-size: 1.15rem;
  color: #f6fbf8;
  max-width: 40rem;
}

.eyebrow,
.section-kicker,
.author-count,
.footer-title {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero-copy p,
.story-copy p,
.closing-copy p,
.authors-copy p,
.disclaimer-copy p,
.site-footer p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.cta-row,
.inline-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.cta-row {
  margin: 2rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #08111f;
  box-shadow: 0 18px 36px rgba(152, 225, 107, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.meta-note {
  font-size: 0.96rem;
}

.book-gallery {
  margin: 0;
  width: 100%;
  display: block;
  font-size: 0;
  line-height: 0;
}

.book-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.story-layout,
.closing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.story-copy,
.closing-copy {
  max-width: 48rem;
}

.promo-points,
.authors-card {
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.promo-points {
  display: grid;
  gap: 1.2rem;
}

.promo-point {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-point:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.promo-title {
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.promo-point p {
  margin: 0;
  color: var(--muted);
}

.authors-layout {
  display: grid;
  gap: 1.5rem;
}

.authors-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 1.5rem;
}

.authors-list li {
  margin-bottom: 0.65rem;
  padding: 0.45rem 0 0.45rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  color: #f3f9f5;
}

.authors-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(152, 225, 107, 0.14);
}

.authors-list li.sheep-bullet::before {
  background: center / contain no-repeat url("assets/regularSheep.png");
  border-radius: 0;
  box-shadow: none;
  left: -0.05625rem;
  width: 0.5625rem;
  height: 0.5625rem;
}

.inline-actions {
  margin-top: 1.3rem;
  color: var(--warm);
  font-weight: 800;
}

.text-link {
  color: var(--warm);
}

.disclaimer-section {
  padding: 1rem 0 0;
}

.disclaimer-copy {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.disclaimer-copy p {
  max-width: 62rem;
  font-size: 0.96rem;
}

.site-footer {
  padding: 1rem 0 3rem;
}

.footer-grid {
  align-items: start;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
  max-width: 54rem;
  font-size: 0.95rem;
}

.footer-links {
  justify-content: flex-end;
  min-width: 12rem;
}

.footer-links a {
  color: var(--warm);
  font-weight: 800;
}

@media (max-width: 980px) {
  .story-layout,
  .closing-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .authors-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .hero,
  .story-section,
  .authors-section,
  .back-cover-section {
    padding: 3.25rem 0;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .promo-points,
  .authors-card {
    padding: 1.35rem;
  }

  .authors-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-text {
    font-size: 0.95rem;
  }
}

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

  .button {
    transition: none;
  }
}
