/* Sailor Story Studio — Sunlit Children's Publishing House Design System */
:root {
  --bg-cream: #FBF7F0;
  --bg-oatmeal: #F3EBDC;
  --surface: #FFFFFF;
  --surface-tint: #FFFDF9;
  --navy: #162A3E;
  --navy-deep: #0E1D2D;
  --slate: #3C4D5F;
  --slate-muted: #5A6B7D;
  --amber-text: #8F4F06;
  --gold-fill: #F3B34C;
  --gold-soft: #FBE9C6;
  --berry: #B24333;
  --berry-hover: #973426;
  --sage: #2C5E4F;
  --border: #E5D9C4;
  --shadow-sm: 0 4px 14px rgba(22, 42, 62, 0.06);
  --shadow-md: 0 14px 34px rgba(22, 42, 62, 0.10);
  --shadow-book: 0 24px 48px rgba(14, 29, 45, 0.22), 0 6px 14px rgba(14, 29, 45, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1160px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-cream);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Announcement Ribbon */
.promo-ribbon {
  background: var(--navy-deep);
  color: var(--bg-cream);
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(243, 179, 76, 0.28);
}

.promo-ribbon__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 24px;
  text-align: center;
}

.promo-ribbon__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gold-fill);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.promo-ribbon__link {
  color: #FFE0A6;
  font-weight: 700;
  text-underline-offset: 3px;
}

.promo-ribbon__link:hover {
  color: #FFFFFF;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 247, 240, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

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

.brand__mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--slate);
  transition: color 0.16s ease;
}

.site-nav__links a:hover {
  color: var(--berry);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

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

.btn--primary {
  background: var(--berry);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(178, 67, 51, 0.24);
}

.btn--primary:hover {
  background: var(--berry-hover);
}

.btn--gold {
  background: var(--gold-fill);
  color: var(--navy-deep);
  box-shadow: 0 8px 20px rgba(217, 138, 43, 0.25);
}

.btn--gold:hover {
  background: #EAA539;
}

.btn--navy {
  background: var(--navy);
  color: #FFFFFF;
}

.btn--navy:hover {
  background: var(--navy-deep);
}

.btn--outline {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline:hover {
  background: var(--bg-oatmeal);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.875rem;
}

/* Typography & Section Layout */
.section {
  padding: 76px 0;
}

.section--alt {
  background: var(--bg-oatmeal);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-text);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-top: 0;
  letter-spacing: -0.02em;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-head p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--slate);
}

/* Hero */
.hero {
  padding: 58px 0 74px;
  background:
    radial-gradient(circle at 84% 18%, rgba(243, 179, 76, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(178, 67, 51, 0.08) 0%, transparent 42%),
    var(--bg-cream);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 48px;
  align-items: center;
}

.hero__pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--amber-text);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(143, 79, 6, 0.16);
}

.pill--sage {
  background: #E2EFEA;
  color: #1F4A3D;
  border-color: rgba(31, 74, 61, 0.18);
}

.hero__title {
  font-size: clamp(2.15rem, 4.1vw, 3.25rem);
  line-height: 1.09;
  margin-bottom: 12px;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
  color: var(--berry);
  margin: 0 0 18px;
}

.hero__lead {
  font-size: 1.08rem;
  color: var(--slate);
  margin: 0 0 24px;
  max-width: 60ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero__note {
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--slate);
  box-shadow: var(--shadow-sm);
}

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

.hero__specs li {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.spec-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-muted);
}

.spec-value {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
}

.hero__showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.book-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 360px;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 14px;
}

.book-frame img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow-book);
  transition: transform 0.22s ease;
}

.book-frame:hover img {
  transform: translateY(-4px);
}

.book-frame__caption {
  font-size: 0.86rem;
  color: var(--slate-muted);
  text-align: center;
}

.book-frame__jump {
  font-weight: 700;
  color: var(--berry);
  text-underline-offset: 3px;
}

/* Spreads & Story Pillars */
.spreads-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.media-card__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.media-card__btn img {
  width: 100%;
  aspect-ratio: 970 / 600;
  object-fit: cover;
}

.media-card__body {
  padding: 18px 20px;
}

.media-card__body h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.media-card__body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--slate);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.pillar-card__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.pillar-card__btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pillar-card__content {
  padding: 16px 18px 20px;
}

.pillar-card__content h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.pillar-card__content p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--slate);
}

/* Free Printable Lead Magnet */
.printable-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
}

.checklist {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--slate);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: var(--sage);
}

.printable-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sheet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.sheet-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.sheet-card img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.sheet-card span {
  display: block;
  margin-top: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy);
}

/* About Mama Alba & Studio Umbrella */
.author-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.author-card__photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--gold-soft);
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
}

.author-card__bio p {
  margin: 0 0 14px;
  color: var(--slate);
}

.studio-band {
  margin-top: 28px;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.studio-band h3 {
  color: #FFE0A6;
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.studio-band p {
  margin: 0;
  max-width: 66ch;
  color: #E7EEF5;
  font-size: 0.96rem;
}

/* Educator & Review Contact Section */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.contact-box__copy {
  max-width: 650px;
}

.contact-box__copy h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  margin-bottom: 10px;
}

.contact-box__copy p {
  margin: 0;
  color: var(--slate);
}

.contact-box__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
}

/* Legal / Policy Subpages */
.legal-wrap {
  padding: 56px 0 80px;
}

.legal-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.legal-card h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.legal-card h2 {
  font-size: 1.32rem;
  margin: 28px 0 8px;
}

.legal-card p,
.legal-card li {
  color: var(--slate);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #D9E2EC;
  padding: 44px 0 34px;
  font-size: 0.92rem;
}

.site-footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #FFFFFF;
  margin: 0 0 6px;
}

.site-footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  color: #FFE0A6;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 0.84rem;
  color: #B4C2D0;
}

/* Lightbox Dialog */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 29, 45, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__panel {
  position: relative;
  max-width: min(940px, 100%);
  max-height: 92vh;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox__img {
  max-height: 76vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox__caption {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.lightbox__controls {
  display: flex;
  gap: 8px;
}

.lightbox__btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-cream);
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.lightbox__btn:hover {
  background: var(--gold-soft);
}

/* Responsive */
@media (max-width: 980px) {
  .hero__grid,
  .printable-grid,
  .author-card {
    grid-template-columns: 1fr;
  }

  .hero__showcase {
    order: -1;
  }

  .book-frame {
    max-width: 290px;
  }

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

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

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 24px 22px;
    background: var(--bg-cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .spreads-grid,
  .pillars-grid,
  .printable-previews {
    grid-template-columns: 1fr;
  }

  .author-card,
  .contact-box,
  .legal-card {
    padding: 24px;
  }

  .author-card__photo {
    width: 170px;
    height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .book-frame img {
    transition: none;
  }
}
