:root {
  --ink: #24314d;
  --body: #3f4b61;
  --muted: #6f7b8d;
  --paper: #fffaf0;
  --cream: #fff3d7;
  --mist: #eff9fa;
  --white: #ffffff;
  --teal: #0b8793;
  --teal-dark: #076a73;
  --coral: #ef7052;
  --gold: #f3b540;
  --leaf: #5d985e;
  --blue: #247fac;
  --line: #e6dfcf;
  --shadow: 0 18px 46px rgba(36, 49, 77, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--body);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

p,
li,
.button,
.book-card,
.series-panel,
.feature-list div,
.benefit,
.contact-card {
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid rgba(230, 223, 207, 0.9);
  backdrop-filter: blur(16px);
}

.nav-wrap,
.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.brand span {
  font-size: 18px;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 11px;
  border-radius: 6px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(11, 135, 147, 0.1);
  outline: none;
}

.hero {
  position: relative;
  min-height: 760px;
  isolation: isolate;
  overflow: hidden;
  background: #dcecf0 url("images/hero-world.webp") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 248, 235, 0.48);
}

.hero-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.section-title,
.legal-title {
  margin: 18px 0 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.series-panel h3,
.book-card strong,
.gallery figcaption {
  overflow-wrap: anywhere;
}

.hero h1 {
  max-width: 760px;
  font-size: 64px;
}

.hero-copy {
  max-width: 670px;
  margin: 24px 0 0;
  color: #2f3d56;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.section-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.mailto-fallback {
  margin: 14px 0 0;
  color: #2f3d56;
  font-weight: 700;
}

.mailto-fallback a {
  color: var(--teal-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  background: var(--teal);
  color: var(--white);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--teal-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(36, 49, 77, 0.18);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--white);
  border-color: var(--teal);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin-top: 36px;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(36, 49, 77, 0.12);
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--mist);
}

.section.warm {
  background: var(--cream);
}

.section.scene {
  background: #f6ead6 url("images/season-world.webp") center center / cover no-repeat;
}

.section.scene .section-inner {
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(230, 223, 207, 0.86);
  border-radius: 8px;
  padding: 40px;
}

.section-kicker {
  margin: 0;
  color: var(--teal);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
}

.section-title {
  font-size: 42px;
}

.section-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--body);
  font-size: 19px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.two-column > * {
  min-width: 0;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
  max-width: 100%;
}

.series-panel {
  min-width: 0;
  max-width: 100%;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px;
  box-shadow: var(--shadow);
}

.series-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.15;
  word-break: break-word;
}

.series-panel p {
  margin: 12px 0 0;
}

.series-panel ul,
.legal-content ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.series-panel li,
.legal-content li {
  position: relative;
  padding-left: 24px;
  margin-top: 8px;
}

.series-panel li::before,
.legal-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
  max-width: 100%;
}

.book-card {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(36, 49, 77, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.book-card:hover,
.book-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(11, 135, 147, 0.45);
  box-shadow: 0 18px 40px rgba(36, 49, 77, 0.14);
  outline: none;
}

.book-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  object-position: center top;
  background: #fff;
  border-radius: 6px;
}

.book-card strong {
  display: block;
  max-width: 100%;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  word-break: break-word;
}

.book-card span {
  display: block;
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 180px));
  gap: 12px;
  justify-content: start;
  margin-top: 36px;
  max-width: 100%;
}

.gallery figure {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 12px 32px rgba(36, 49, 77, 0.08);
}

.gallery img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  object-position: center top;
  border-radius: 6px;
  background: #fff;
}

.gallery figcaption {
  margin-top: 11px;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.3;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.benefit {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.benefit b {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.benefit p {
  margin: 8px 0 0;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.feature-list div {
  padding: 18px 18px 17px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}

.feature-list b {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.contact-band {
  background: var(--ink);
  color: var(--white);
}

.contact-band .section-title,
.contact-band .section-kicker,
.contact-band .section-lead {
  color: var(--white);
}

.contact-band .section-lead {
  color: rgba(255, 255, 255, 0.82);
}

.contact-band .mailto-fallback,
.contact-band .mailto-fallback a {
  color: var(--white);
}

.contact-details {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.contact-details span,
.contact-details a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-footer {
  background: #151d2f;
  color: rgba(255, 255, 255, 0.74);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-page {
  padding: 70px 0;
  background: var(--paper);
}

.legal-title {
  font-size: 46px;
}

.legal-content {
  max-width: 850px;
  margin: 22px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
}

.legal-content h2 {
  margin: 30px 0 8px;
  color: var(--ink);
  font-size: 24px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 10px 0 0;
}

@media (max-width: 980px) {
  .hero {
    min-height: 700px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .book-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(4, minmax(0, 160px));
  }

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

@media (max-width: 760px) {
  .nav-wrap,
  .section-inner,
  .hero-inner,
  .footer-inner {
    width: min(640px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }

  .nav-wrap {
    justify-content: center;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 660px;
  }

  .hero-inner {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 34px;
    max-width: 360px;
  }

  .hero-copy,
  .section-lead {
    font-size: 17px;
    max-width: min(100%, 330px);
  }

  .section-title {
    max-width: 340px;
  }

  .hero-actions,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 320px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 62px 0;
  }

  .section-title {
    font-size: 30px;
  }

  .section-kicker {
    max-width: 340px;
  }

  .hero-facts {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-facts span {
    max-width: 100%;
  }

  .series-grid,
  .feature-list,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .book-grid,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .book-card img {
    height: 220px;
  }

  .gallery img {
    height: 220px;
  }

  .section.scene .section-inner,
  .legal-content {
    padding: 24px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 470px) {
  .book-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .book-card img,
  .gallery img {
    height: 230px;
  }

  .hero h1 {
    font-size: 31px;
    max-width: 300px;
  }

  .hero-copy {
    max-width: 310px;
  }
}
