:root {
  --ink: #21143d;
  --violet: #2a1558;
  --violet-deep: #170c36;
  --pink: #ffb3d7;
  --aqua: #8af1ef;
  --gold: #ffd783;
  --paper: #fff9ff;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem clamp(1.25rem, 5vw, 5rem);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(19,7,51,.55), transparent);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: "Fraunces", serif; font-size: 1.35rem; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--aqua)); color: var(--violet); box-shadow: 0 0 22px rgba(255,180,220,.8); }
nav { display: flex; align-items: center; gap: 1.75rem; }
nav a { text-decoration: none; font-size: .95rem; font-weight: 600; }
.nav-button { padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; backdrop-filter: blur(8px); }

.hero { position: relative; min-height: 760px; height: 96vh; max-height: 980px; display: flex; align-items: center; overflow: hidden; color: white; }
.hero-image-link, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image-link { z-index: 0; }
.hero-image { width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 62% 45%; transform: scale(1.03); }
.hero-shade { pointer-events: none; background: linear-gradient(90deg, rgba(20,8,52,.97) 0%, rgba(24,10,55,.84) 40%, rgba(20,8,52,.12) 74%), linear-gradient(0deg, rgba(19,8,42,.68), transparent 48%); }
.hero-copy { position: relative; z-index: 2; width: min(680px, 88%); margin-left: clamp(1.25rem, 8vw, 8rem); padding-top: 3rem; }
.eyebrow { margin: 0 0 1rem; color: var(--aqua); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.dark { color: #8b3f9d; }
h1, h2 { margin: 0; font-family: "Fraunces", serif; line-height: 1.02; letter-spacing: -.035em; }
h1 { font-size: clamp(3.1rem, 6.5vw, 6.5rem); text-shadow: 0 4px 24px rgba(0,0,0,.2); }
h1 em { color: var(--pink); font-style: normal; }
.intro { max-width: 610px; margin: 1.75rem 0 2rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.65; color: rgba(255,255,255,.92); }
.primary-button { display: inline-flex; gap: .8rem; align-items: center; padding: 1rem 1.3rem; border-radius: 999px; color: var(--violet-deep); background: var(--aqua); text-decoration: none; font-weight: 700; box-shadow: 0 10px 35px rgba(67,241,230,.25); }
.hero-actions, .book-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.secondary-button { display: inline-flex; align-items: center; padding: .95rem 1.25rem; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: white; text-decoration: none; font-weight: 700; backdrop-filter: blur(8px); }
.buy-button { display: inline-flex; gap: .8rem; align-items: center; margin-top: .65rem; padding: .9rem 1.2rem; border-radius: 999px; color: var(--violet-deep); background: var(--aqua); text-decoration: none; font-weight: 800; box-shadow: 0 10px 28px rgba(57,205,204,.28); transition: transform .2s ease, box-shadow .2s ease; }
.buy-button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(57,205,204,.36); }
.buy-button:focus-visible, .secondary-button:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.kindle-button { display: inline-flex; gap: .8rem; align-items: center; margin-top: .65rem; padding: .9rem 1.2rem; border-radius: 999px; color: white; background: #67387e; text-decoration: none; font-weight: 700; box-shadow: 0 10px 28px rgba(103,56,126,.2); transition: transform .2s ease, box-shadow .2s ease; }
.kindle-button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(103,56,126,.28); }
.kindle-button:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.portal-code { position: absolute; z-index: 2; right: clamp(1.25rem, 5vw, 5rem); bottom: 2.5rem; padding: 1rem 1.3rem; border: 1px solid rgba(255,255,255,.3); border-radius: 1rem; background: rgba(26,12,65,.5); backdrop-filter: blur(12px); text-align: center; }
.portal-code span { display: block; margin-bottom: .25rem; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.portal-code strong { font-family: "Fraunces", serif; font-size: 1.35rem; letter-spacing: .12em; }

.bestseller-celebration { display: grid; grid-template-columns: minmax(320px, .95fr) 1.05fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 8vw, 8rem); background: radial-gradient(circle at 15% 20%, rgba(255,194,232,.45), transparent 34%), linear-gradient(135deg, #fff9ff, #f1edff 56%, #e9ffff); }
.bestseller-image-link { display: block; overflow: hidden; border-radius: 1.75rem; box-shadow: 0 28px 90px rgba(56,24,104,.3); transition: transform .2s ease, box-shadow .2s ease; }
.bestseller-image-link:hover { transform: translateY(-4px); box-shadow: 0 34px 100px rgba(56,24,104,.38); }
.bestseller-image-link:focus-visible { outline: 4px solid #713fa1; outline-offset: 5px; }
.bestseller-image-link img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.bestseller-copy { max-width: 690px; }
.bestseller-copy h2 { margin-bottom: 1.4rem; }
.bestseller-copy > p:not(.eyebrow) { font-size: 1.12rem; line-height: 1.8; color: #534866; }
.bestseller-button { display: inline-flex; align-items: center; justify-content: center; margin-top: .8rem; padding: 1rem 1.35rem; border-radius: 999px; color: white; background: linear-gradient(135deg, #6d2ca4, #a43d91); box-shadow: 0 12px 34px rgba(109,44,164,.28); text-decoration: none; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.bestseller-button:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(109,44,164,.36); }
.bestseller-button:focus-visible { outline: 4px solid var(--aqua); outline-offset: 4px; }

.watch-ruby { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 8vw, 8rem); color: white; background: radial-gradient(circle at 82% 12%, rgba(138,241,239,.2), transparent 28%), radial-gradient(circle at 8% 86%, rgba(255,179,215,.2), transparent 30%), var(--violet-deep); }
.watch-ruby-heading { display: grid; grid-template-columns: 1fr minmax(280px, 520px); gap: 2rem; align-items: end; max-width: 1240px; margin: 0 auto 2.4rem; }
.watch-ruby-heading > p { margin: 0 0 .4rem; color: rgba(255,255,255,.75); font-size: 1.08rem; line-height: 1.7; }
.featured-video { max-width: 1240px; margin: auto; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 1.75rem; background: #090414; box-shadow: 0 28px 90px rgba(0,0,0,.38), 0 0 50px rgba(255,147,216,.13); }
.featured-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 1240px; margin: 1.25rem auto 0; }
.video-grid iframe { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 560px; border: 1px solid rgba(255,255,255,.18); border-radius: 1.25rem; background: #090414; box-shadow: 0 16px 45px rgba(0,0,0,.28); }
.youtube-button { display: flex; align-items: center; justify-content: center; gap: .8rem; width: fit-content; margin: 2rem auto 0; padding: 1rem 1.35rem; border-radius: 999px; color: var(--violet-deep); background: var(--aqua); text-decoration: none; font-weight: 800; box-shadow: 0 12px 34px rgba(67,241,230,.2); transition: transform .2s ease, box-shadow .2s ease; }
.youtube-button:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(67,241,230,.3); }
.youtube-button:focus-visible { outline: 4px solid var(--pink); outline-offset: 4px; }

.story { display: grid; grid-template-columns: minmax(280px, .78fr) 1.2fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 9vw, 9rem); background: radial-gradient(circle at 10% 30%, #f2dcff 0, transparent 30%), var(--paper); }
.story-art { max-width: 510px; justify-self: end; }
.glow-frame { padding: 10px; border-radius: 1.5rem; background: linear-gradient(145deg, var(--pink), var(--aqua), #8f70ff); box-shadow: 0 24px 80px rgba(88,44,136,.3); transform: rotate(-2deg); }
.glow-frame img { border-radius: 1rem; }
.image-link { display: block; text-decoration: none; }
.image-link img { transition: filter .2s ease; }
.image-link:hover img { filter: brightness(1.06); }
.image-link:focus-visible { outline: 4px solid var(--gold); outline-offset: 4px; }
.story-copy { max-width: 680px; }
h2 { font-size: clamp(2.6rem, 5vw, 5rem); }
.story-copy > p:not(.eyebrow), .journey-copy > p { font-size: 1.08rem; line-height: 1.8; color: #534866; }
blockquote { margin: 2.5rem 0 0; padding-left: 1.5rem; border-left: 4px solid #d360bf; font-family: "Fraunces", serif; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.45; color: #56316f; }

.world { padding: clamp(5rem, 9vw, 8rem) clamp(1.25rem, 7vw, 7rem); color: white; background: var(--violet-deep); background-image: radial-gradient(circle at 90% 20%, rgba(90,225,230,.18), transparent 27%), radial-gradient(circle at 10% 80%, rgba(255,150,210,.2), transparent 28%); }
.world-heading { max-width: 850px; margin: 0 auto 3rem; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 1240px; margin: auto; }
.cards article { min-height: 250px; padding: 2rem; border: 1px solid rgba(255,255,255,.15); border-radius: 1.5rem; background: rgba(255,255,255,.07); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.visual-card { overflow: hidden; padding: 0 0 2rem !important; }
.visual-card .image-link img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.visual-card h3,.visual-card p { display: block; margin-left: 2rem; margin-right: 2rem; }
.visual-card h3 { margin-top: 1.6rem; }
h3 { margin: 3rem 0 .75rem; font-family: "Fraunces", serif; font-size: 1.7rem; }
.cards p { margin: 0; color: rgba(255,255,255,.72); line-height: 1.65; }

.meet-ruby { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 9vw, 9rem); background: radial-gradient(circle at 10% 20%, #ffe7f6, transparent 35%), linear-gradient(135deg,#fff9ff,#effcff); }
.ruby-quote { position: relative; padding: clamp(2.2rem,5vw,4rem); border-radius: 2rem; background: white; box-shadow: 0 24px 80px rgba(88,44,136,.18); font-family: "Fraunces",serif; font-size: clamp(1.8rem,3.4vw,3rem); line-height: 1.3; color: #5b2b7b; }
.ruby-quote:before { content: "✦"; position: absolute; top: -1.2rem; left: 2rem; color: #ff8dca; font-size: 2.2rem; filter: drop-shadow(0 0 12px #ffb8e0); }
.ruby-copy p:not(.eyebrow) { font-size: 1.08rem; line-height: 1.8; color: #534866; }

.journey { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 680px; background: #f8ecff; }
.journey-media { position: relative; min-height: 680px; }
.journey-cover-link, .journey-cover-link img { width: 100%; height: 100%; min-height: 680px; }
.journey-cover-link img { object-fit: cover; }
.amazon-badge { position: absolute; top: clamp(1.2rem, 3vw, 2.4rem); right: clamp(1.2rem, 3vw, 2.4rem); display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem .7rem .8rem; color: #2b1748; background: linear-gradient(135deg, #fff2a8, #ffc850); border: 2px solid rgba(255,255,255,.82); border-radius: 999px; box-shadow: 0 12px 34px rgba(33,14,68,.34); font-size: .78rem; font-weight: 700; line-height: 1.08; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease; }
.amazon-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(33,14,68,.42); }
.amazon-badge:focus-visible { outline: 4px solid var(--aqua); outline-offset: 4px; }
.amazon-badge strong { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; color: #fff; background: #6d2ca4; border-radius: 50%; font-family: "Fraunces", serif; font-size: 1.25rem; letter-spacing: 0; }
.journey-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 8vw, 7rem); }
.journey-copy h2 { margin-bottom: 1.4rem; }
.coming { font-weight: 700; color: var(--ink) !important; }
.social-row { display: flex; flex-wrap: wrap; gap: .85rem 1.3rem; align-items: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #d8c7e2; }
.social-row span { width: 100%; color: #7b6e85; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.social-row a { font-weight: 700; color: #67387e; }
.future-link { color: #8a7b94; font-weight: 700; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 2rem clamp(1.25rem, 5vw, 5rem); color: rgba(255,255,255,.78); background: #100727; font-size: .85rem; }
footer .brand { color: white; font-size: 1.1rem; }
footer .brand-mark { width: 1.6rem; height: 1.6rem; }

@media (max-width: 820px) {
  nav a:not(.nav-button) { display: none; }
  .site-header { padding: 1rem 1.1rem; }
  .brand { font-size: 1.05rem; }
  .nav-button { padding: .62rem .8rem; font-size: .8rem; }
  .hero { min-height: 790px; height: max(100svh, 790px); align-items: flex-end; }
  .hero-image { object-position: 52% 42%; transform: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(19,8,52,.98) 0%, rgba(23,9,53,.9) 38%, rgba(20,8,52,.25) 74%, rgba(20,8,52,.1) 100%); }
  .hero-copy { margin: 0; padding: 0 1.2rem 8.8rem; width: 100%; }
  .hero-copy .eyebrow { max-width: 19rem; margin-bottom: .65rem; line-height: 1.45; }
  h1 { font-size: clamp(2.65rem, 11.5vw, 3.8rem); line-height: 1; }
  .intro { margin: 1.1rem 0 1.35rem; max-width: 34rem; font-size: 1rem; line-height: 1.5; }
  .primary-button { width: 100%; justify-content: center; }
  .hero-actions, .book-buttons { width: 100%; }
  .secondary-button, .buy-button { width: 100%; justify-content: center; }
  .kindle-button { width: 100%; justify-content: center; }
  .portal-code { left: 1.2rem; right: 1.2rem; bottom: 1.1rem; padding: .75rem 1rem; }
  .story, .world, .meet-ruby { padding: 4.25rem 1.15rem; }
  .bestseller-celebration { grid-template-columns: 1fr; gap: 2.5rem; padding: 4.25rem 1.15rem; }
  .bestseller-image-link { max-width: 560px; margin: auto; border-radius: 1.35rem; }
  .bestseller-button { width: 100%; }
  .watch-ruby { padding: 4.25rem 1.15rem; }
  .watch-ruby-heading { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
  .watch-ruby-heading > p { font-size: 1rem; }
  .featured-video { border-radius: 1.25rem; }
  .video-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 .7rem; }
  .video-grid iframe { flex: 0 0 min(78vw, 360px); scroll-snap-align: start; border-radius: 1rem; }
  .youtube-button { width: 100%; }
  .story { grid-template-columns: 1fr; gap: 2.75rem; }
  .story-art { justify-self: center; max-width: 420px; }
  h2 { font-size: clamp(2.35rem, 10vw, 3.5rem); }
  .story-copy > p:not(.eyebrow), .journey-copy > p, .ruby-copy p:not(.eyebrow) { font-size: 1rem; line-height: 1.7; }
  blockquote { margin-top: 2rem; font-size: 1.35rem; }
  .world-heading { margin-bottom: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .cards article { min-height: auto; border-radius: 1.2rem; }
  .visual-card { padding-bottom: 1.6rem !important; }
  .visual-card h3, .visual-card p { margin-left: 1.35rem; margin-right: 1.35rem; }
  .visual-card h3 { margin-top: 1.35rem; font-size: 1.55rem; }
  .journey { grid-template-columns: 1fr; }
  .meet-ruby { grid-template-columns: 1fr; gap: 2.75rem; }
  .ruby-quote { padding: 2rem 1.5rem; border-radius: 1.4rem; font-size: 1.75rem; }
  .journey-media { min-height: 0; }
  .journey-cover-link, .journey-cover-link img { min-height: 0; height: auto; max-height: none; }
  .journey-cover-link img { aspect-ratio: 1 / 1; object-fit: cover; }
  .amazon-badge { top: 1rem; right: 1rem; }
  .journey-copy { padding: 4.25rem 1.2rem; }
  .social-row { gap: .75rem; }
  .social-row a { display: inline-flex; min-height: 44px; align-items: center; padding: .65rem .9rem; border-radius: 999px; background: white; text-decoration: none; }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 390px) {
  .brand-mark { width: 1.75rem; height: 1.75rem; }
  .brand { gap: .45rem; font-size: .98rem; }
  .nav-button { padding: .58rem .7rem; font-size: .75rem; }
  .hero-copy { padding-left: 1rem; padding-right: 1rem; }
  h1 { font-size: 2.55rem; }
}

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

.coloring-book { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: clamp(2rem,5vw,5rem); padding: clamp(3.5rem,7vw,6rem) clamp(1.25rem,8vw,8rem); background: linear-gradient(125deg,#fff0fa,#f1edff 55%,#dffffa); }
.coloring-copy h2 { font-size: clamp(2.2rem,4.3vw,4.2rem); margin: 0 0 1.2rem; }
.coloring-copy h2 em { color: #873590; }
.coloring-copy > p:not(.eyebrow) { max-width: 650px; color: #534866; font-size: 1.08rem; line-height: 1.8; }
.coloring-copy .bestseller-button { gap: .6rem; text-align: center; }
.coloring-art { padding: 2rem; border: 3px solid #fff; border-radius: 2rem; background: linear-gradient(145deg,#ffcfeb,#fff4ae,#bdf4f0); box-shadow: 0 18px 50px #67387e20; text-align: center; transform: rotate(3deg); }
.coloring-art p { font-family: "Fraunces",serif; font-size: clamp(1.6rem,2.6vw,2.7rem); line-height: 1.4; }
.coloring-art span { color: #873590; font-size: 2.5rem; }
#coloring-book { scroll-margin-top: 2rem; }
@media(max-width:820px) { .coloring-book { grid-template-columns: 1fr; padding: 3.5rem 1.15rem; } .coloring-art { display: none; } }
