/* Rocky Doodles Publishing: "Expedition Worlds" look (chosen 2026-11-11). Sky and sea, the covers' yellow outlined
   title lettering, each book its own world. Display: Lilita One. Body: Nunito. */
@font-face { font-family: 'Lilita One'; font-weight: 400; font-display: swap; src: url(/fonts/lilita-one-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url(/fonts/nunito-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(/fonts/nunito-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url(/fonts/nunito-latin-900-normal.woff2) format('woff2'); }

:root {
  --paper: #f2faff; --paper-2: #e2f3fc; --card: #fff; --ink: #14243f; --ink-2: #475775; --line: #cfe2ee;
  --sky: #39b5f2; --sky-2: #8ad8ff; --sea: #0b4f8a; --abyss: #062c52; --deep: #0b3a66; --sun: #ffc93c; --bark: #4a2a12;
  --coral: #0b6fb8; --coral-dark: #084f86; --yellow: #ffc93c; --teal: #16b3a3; --wood: #c98d56; --wood-dark: #9c6536;
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px; --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(6, 44, 82, .45);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; color: var(--ink); font: 600 18px/1.6 var(--body); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: .005em; margin: 0 0 .45em; color: var(--deep); }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--ink-2); font-size: .92em; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.doodle { position: absolute; pointer-events: none; }

/* buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .78em 1.45em; border-radius: 999px;
  font: 800 1.02rem/1.1 var(--body); text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, color .15s; cursor: pointer; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 3px 0 var(--coral-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--coral-dark); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--coral-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: .55em 1.1em; font-size: .92rem; }
.chip { display: inline-block; font: 800 .78rem/1 var(--body); letter-spacing: .04em; padding: .45em .8em; border-radius: 999px;
  background: color-mix(in srgb, var(--c, var(--coral)) 16%, white); color: color-mix(in srgb, var(--c, var(--coral)) 70%, var(--ink)); margin: 0 .35em .35em 0; }
.chip-soft { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.text-link { font-weight: 800; color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link::after { content: ' →'; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 2em; margin-bottom: .55em; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .28em; width: 1.25em; height: 1.1em; background: no-repeat center / contain
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M2.5 12.4c2.4 1.6 4 3.4 5.6 6.1C11 11.9 15.3 6.5 21.6 2.3' fill='none' stroke='%23f05a3c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand img { height: 50px; width: auto; }
.site-nav { margin-left: auto; display: flex; gap: 6px; }
.site-nav a { text-decoration: none; font-weight: 800; padding: .5em .85em; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current] { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 24px; height: 3px; border-radius: 3px; background: var(--ink); position: relative; margin: 0 auto; content: ''; transition: transform .2s; }
.nav-toggle .bars::before { position: absolute; top: -8px; } .nav-toggle .bars::after { position: absolute; top: 8px; }
.nav-toggle[aria-expanded='true'] .bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .bars::after { transform: translateY(-8px) rotate(-45deg); }

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.section-alt { background: var(--paper-2); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 640px; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }
.page-head { padding: clamp(48px, 7vw, 88px) 0 8px; }
.page-head h1 { max-width: 16em; }

/* hero */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); }
.hero h1 { font-size: clamp(2.2rem, 3.7vw, 3.35rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.scribble { background: no-repeat left bottom / 100% .32em url(/img/doodles/underline.svg); padding-bottom: .12em; white-space: nowrap; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.hero-show { margin: 0; position: relative; }
.showcase { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #1a2030; border: 6px solid #fff;
  box-shadow: 0 30px 60px -28px rgba(29, 43, 74, .6), 0 0 0 1px var(--line); transform: rotate(.6deg); }
.showcase img, .showcase iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.showcase iframe { opacity: 0; transition: opacity .6s; }
.showcase iframe.ready { opacity: 1; }
.hero-show figcaption { display: flex; align-items: flex-start; gap: 6px; margin: 14px 0 0 8%; font: 600 1.05rem/1.2 var(--display); color: var(--ink-2); }
.arrow-note { position: static; width: 54px; transform: scaleY(-1) rotate(8deg); margin-top: -10px; }
.note { padding-top: 14px; }

/* shelf */
.shelf { --book-h: 290px; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 32px; }
.shelf-book { display: flex; align-items: flex-end; justify-content: center; height: var(--book-h); position: relative; }
.shelf-book img { max-height: calc(var(--book-h) - 8px); width: auto; position: relative; z-index: 1; filter: drop-shadow(0 14px 12px rgba(60, 38, 16, .28));
  transition: transform .25s; transform-origin: bottom center; }
.shelf-book:hover img { transform: translateY(-6px) rotate(-1.5deg); }
.shelf-book::after { content: ''; position: absolute; left: -16px; right: -16px; bottom: -4px; height: 16px; z-index: 0;
  background: linear-gradient(var(--wood) 0 55%, var(--wood-dark) 55% 100%); box-shadow: 0 12px 16px -10px rgba(60, 38, 16, .55); }
.shelf-meta { padding-top: 22px; }
.shelf-meta h3 { margin: .35em 0 .3em; font-size: 1.22rem; }
.shelf-meta h3 a { text-decoration: none; }
.shelf-meta h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.shelf-meta p { color: var(--ink-2); font-size: .98rem; margin-bottom: .6em; }
.shelf-links { display: flex; gap: 16px; }
.shelf-links a { font-weight: 800; color: var(--coral); font-size: .95rem; text-underline-offset: 3px; }

/* series */
.series { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.series + .series { margin-top: clamp(56px, 8vw, 96px); }
.series.flip .series-art { order: 2; }
.series-art img { filter: drop-shadow(0 22px 22px rgba(29, 43, 74, .22)); }
.series-books { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.series-books a { font-weight: 800; color: var(--coral); text-underline-offset: 3px; }

/* printables band */
.printables-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; position: relative; }
.thumbs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.thumbs li { background: #fff; padding: 6px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.thumbs li:nth-child(2n) { transform: rotate(2.5deg) translateY(10px); }
.star-a { width: 46px; right: 10px; top: -34px; }
.spiral-a { width: 40px; left: 44%; bottom: -30px; }

/* coming soon */
.coming-list { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.coming-item { display: flex; gap: 22px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: 0 0 0 1.5px var(--line); }
.coming-cover { flex: 0 0 110px; }
.coming-cover img { box-shadow: var(--shadow); border-radius: 3px; }
.cover-sketch { aspect-ratio: 8.5 / 11; border: 2.5px dashed #c9bda5; border-radius: 6px; display: grid; place-items: center; font: 800 2.4rem var(--display); color: #c9bda5; }
.coming-item h3 { margin-bottom: .3em; }
.coming-item p { margin: 0; color: var(--ink-2); }

/* signup */
.signup { background: var(--ink); color: var(--paper); border-radius: 18px; padding: clamp(24px, 4vw, 40px); max-width: 760px; }
.signup h3 { font-size: 1.6rem; }
.signup p { color: #d6dbe6; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input { flex: 1 1 240px; font: inherit; padding: .75em 1em; border-radius: 999px; border: 0; }
.fine-print { font-size: .85rem; margin: .8em 0 0; }

/* about teaser */
.about-teaser { max-width: 700px; text-align: center; }
.about-teaser p { color: var(--ink-2); font-size: 1.12rem; }

/* book page */
.book-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.book-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.book-art { position: sticky; top: 110px; display: flex; justify-content: center; }
.book-art img { max-height: 620px; width: auto; filter: drop-shadow(0 26px 24px rgba(29, 43, 74, .3)); }
.crumbs { font-size: .92rem; color: var(--ink-2); margin-bottom: 1em; }
.crumbs a { color: var(--ink-2); }
.subtitle { font-size: 1.2rem; color: var(--ink-2); margin-top: -.2em; }
.byline { font-weight: 800; }
.chips { margin: 1.1em 0 1.3em; }
.book-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; box-shadow: var(--shadow); border-radius: 4px; overflow: hidden; transition: transform .2s; }
.zoom:hover { transform: translateY(-4px); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: .65em 0; border-bottom: 1.5px dashed var(--line); }
.specs dt { font-weight: 800; }
.specs dd { margin: 0; color: var(--ink-2); }
.review-ask { text-align: center; max-width: 640px; position: relative; }
.review-ask p { color: var(--ink-2); }
.heart-a { width: 48px; left: 50%; top: -58px; transform: translateX(-50%) rotate(-8deg); }
.more { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.more a { display: flex; align-items: center; gap: 16px; text-decoration: none; font: 800 1.08rem/1.2 var(--display); background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: 0 0 0 1.5px var(--line); transition: transform .2s; }
.more a:hover { transform: translateY(-3px); }
.more img { width: 72px; flex: 0 0 72px; }

/* before / after */
.compare-row { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: 32px; justify-content: center; }
.compare { position: relative; background: #fff; box-shadow: var(--shadow); border-radius: 4px; overflow: hidden; user-select: none; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: #fff; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--coral); pointer-events: none; }
.compare::before { content: '⇆'; position: absolute; z-index: 2; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: var(--coral); color: #fff; display: grid; place-items: center; font: 800 20px/1 var(--body); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); pointer-events: none; }
.compare-label { position: absolute; bottom: 10px; font: 800 .75rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .92); padding: .45em .7em; border-radius: 999px; pointer-events: none; }
.compare-label.l { left: 10px; } .compare-label.r { right: 10px; }

/* printables page */
.printables { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px; }
.printable > a img { background: #fff; padding: 6px; box-shadow: var(--shadow); transform: rotate(-1.5deg); transition: transform .2s; }
.printable:nth-child(2n) > a img { transform: rotate(1.5deg); }
.printable > a:hover img { transform: rotate(0) translateY(-4px); }
.printable { display: flex; flex-direction: column; }
.printable .btn { margin-top: auto; align-self: flex-start; }
.printable h3 { margin: 1em 0 .3em; }
.printable p { font-size: .98rem; }
.tips { max-width: 720px; margin-bottom: 48px; }

/* about & contact */
.about-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-text h2 { font-size: 1.7rem; margin-top: 1.2em; }
.about-text h2:first-child { margin-top: 0; }
.about-photo { border: 8px solid #fff; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.about-books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 14px; align-items: start; }
.about-books img { filter: drop-shadow(0 16px 14px rgba(29, 43, 74, .25)); }
.about-books img:nth-child(odd) { transform: rotate(-2deg); } .about-books img:nth-child(even) { transform: rotate(2deg) translateY(14px); }
.contact-grid h2 { font-size: 1.45rem; margin-top: 1.4em; }
.contact-grid h2:first-child { margin-top: 0; }
.big-link { font: 800 clamp(1.2rem, 2.4vw, 1.6rem) var(--display); }
.big-link a { color: var(--coral); text-underline-offset: 5px; word-break: break-word; }
.contact-card { position: relative; background: var(--card); border-radius: 18px; padding: 32px; box-shadow: 0 0 0 1.5px var(--line); }
.sparkle-a { width: 48px; right: 18px; top: -22px; }
.contact-form { display: grid; gap: 16px; background: var(--card); border-radius: 18px; padding: 28px; box-shadow: 0 0 0 1.5px var(--line); }
.contact-form label { display: grid; gap: 6px; font-weight: 800; }
.contact-form input, .contact-form textarea { font: inherit; padding: .7em .9em; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; }
.prose { max-width: 720px; }
.notfound { text-align: center; padding-bottom: 96px; }
.notfound img { margin: 0 auto 18px; }
.notfound .lede { margin: 0 auto; }

/* footer */
.site-footer { background: var(--ink); color: #d6dbe6; padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.site-footer h2 { font: 800 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin: 8px 0 14px; }
.site-footer nav a, .site-footer div > a { display: block; text-decoration: none; margin-bottom: 8px; color: #eef1f7; }
.site-footer a:hover { text-decoration: underline; }
.social a { display: inline-block !important; margin-right: 14px; }
.fine { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; color: #aab3c5; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(20, 26, 40, .82); }
.lightbox img { max-height: 90vh; width: auto; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }

/* responsive */
@media (max-width: 980px) {
  .hero-grid, .series, .printables-band, .book-grid, .two-col, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .series.flip .series-art { order: 0; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .book-art { position: static; } .book-art img { max-height: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .more { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .header-row { height: 66px; }
  .brand img { height: 38px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; background: var(--paper); padding: 10px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(29, 43, 74, .3); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8em 1em; }
  .showcase { aspect-ratio: 4 / 5; }
  .shelf { --book-h: 210px; gap: 28px 22px; }
  .coming-list { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .scribble { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Hero still (used when SITE.showcase is false): the live books standing side by side */
.hero-books { display: flex; justify-content: center; align-items: flex-end; gap: 6%; padding: 10px 4% 0; }
.hero-books img { width: 42%; height: auto; filter: drop-shadow(0 18px 16px rgba(29, 43, 74, .28)); }
.hero-books img:nth-child(odd) { transform: rotate(-3deg); } .hero-books img:nth-child(even) { transform: rotate(3deg) translateY(16px); }

/* ===== Expedition Worlds ===== */
.poster { font: 400 clamp(2.6rem, 6.4vw, 5.6rem)/.98 var(--display); color: var(--sun); -webkit-text-stroke: clamp(2px, .3vw, 4px) var(--bark);
  paint-order: stroke fill; text-shadow: 0 .07em 0 var(--bark); letter-spacing: .005em; }
.btn { border-radius: 16px; font: 900 1.02rem/1.1 var(--body); border: 3px solid var(--bark); box-shadow: 0 5px 0 var(--bark); color: var(--bark); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--bark); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--bark); }
.btn-primary, .btn-sun { background: var(--sun); color: var(--bark); box-shadow: 0 5px 0 var(--bark); }
.btn-primary:hover { box-shadow: 0 7px 0 var(--bark); }
.btn-ghost, .btn-white { background: #fff; color: var(--bark); border-color: var(--bark); }
.btn-ghost:hover { background: #fff8e0; color: var(--bark); }
.btn-small { padding: .5em 1em; font-size: .92rem; border-width: 2px; box-shadow: 0 3px 0 var(--bark); border-radius: 12px; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }
.text-link { color: var(--sea); }
.ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M2.5 12.4c2.4 1.6 4 3.4 5.6 6.1C11 11.9 15.3 6.5 21.6 2.3' fill='none' stroke='%230b4f8a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.site-header { background: color-mix(in srgb, var(--sky-2) 94%, transparent); border-bottom: 0; }
.site-nav a { color: var(--deep); font-weight: 900; }
.site-nav a:hover, .site-nav a[aria-current] { background: rgba(255, 255, 255, .6); box-shadow: none; }
@media (max-width: 760px) { .site-nav { background: var(--sky-2); border-bottom: 0; } }
.page-head { background: linear-gradient(var(--sky-2), var(--sky)); padding: clamp(40px, 6vw, 72px) 0 clamp(70px, 8vw, 96px); position: relative; margin-bottom: 8px; }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); color: var(--sun); -webkit-text-stroke: clamp(2px, .26vw, 3px) var(--bark); paint-order: stroke fill; text-shadow: 0 .06em 0 var(--bark); }
.page-head .lede { color: #0b2f55; font-weight: 800; }
.page-head .lede a { color: var(--deep); }
.page-head::after, .sky .waterline { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22 Q15 8 30 22 T60 22 T90 22 T120 22 V40 H0Z' fill='%23f2faff'/%3E%3Cpath d='M0 22 Q15 8 30 22 T60 22 T90 22 T120 22' fill='none' stroke='%23ffffff' stroke-width='3'/%3E%3C/svg%3E") 0 0 / 120px 100% repeat-x; }
.notfound.page-head img { margin: 0 auto 18px; }
.section-alt { background: var(--paper-2); }
.chip { border-radius: 10px; }
/* home: sky, waterline, the book diving in */
.sky { position: relative; background: linear-gradient(var(--sky-2), var(--sky) 62%); overflow: hidden; padding-top: clamp(20px, 4vw, 48px); }
.sky .waterline { height: 64px; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22 Q15 8 30 22 T60 22 T90 22 T120 22 V40 H0Z' fill='%230b4f8a'/%3E%3Cpath d='M0 22 Q15 8 30 22 T60 22 T90 22 T120 22' fill='none' stroke='%23ffffff' stroke-width='3'/%3E%3C/svg%3E"); }
.sky-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: end; }
.sky-text { padding-bottom: clamp(90px, 11vw, 150px); }
.sky .poster { margin-bottom: .35em; max-width: 11ch; }
.sky .lede { color: #0b2f55; font-weight: 800; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.dive { position: relative; min-height: 470px; }
.dive-book { position: absolute; right: 8%; bottom: -46px; width: min(330px, 72%); border-radius: 6px 14px 14px 6px; transform: rotate(-8deg);
  box-shadow: -10px 0 0 -2px #e9e2d2, 0 30px 50px rgba(3, 30, 60, .45); z-index: 2; }
.port { position: absolute; width: var(--s, 120px); aspect-ratio: 1; border-radius: 50%; border: 8px solid #fff; overflow: hidden; z-index: 3;
  box-shadow: 0 0 0 3px var(--bark), 0 12px 24px rgba(3, 30, 60, .35); background: var(--sea); }
.port img { width: 100%; height: 100%; object-fit: cover; }
.port.p1 { --s: 132px; left: 2%; bottom: 120px; animation: swim 7s ease-in-out infinite; }
.port.p2 { --s: 104px; right: 0; bottom: 330px; animation: swim 6s ease-in-out -2s infinite; }
@keyframes swim { 50% { transform: translateY(-14px) rotate(3deg); } }
/* home: worlds */
.sea { background: linear-gradient(var(--sea), var(--abyss)); color: #fff; padding: 36px 0 clamp(70px, 9vw, 110px); }
.sea .poster { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: .25em; }
.sea .intro { color: #d4e9ff; max-width: 46ch; margin: 0 0 34px; font-weight: 800; }
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.world { position: relative; border-radius: 26px; overflow: hidden; min-height: 430px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; border: 4px solid var(--c); background: var(--c); isolation: isolate; }
.world-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; transform: scale(1.45); transform-origin: 50% 88%;
  z-index: -2; transition: transform .6s; }
.world::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 35%, color-mix(in srgb, var(--c) 90%, #000) 80%); }
.world:hover .world-bg { transform: scale(1.53); }
.world h3 { font-size: 2rem; margin: 0 0 6px; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.world h3 a { color: inherit; text-decoration: none; }
.world p { margin: 0 0 14px; font-weight: 800; font-size: 1rem; color: #fff; line-height: 1.4; }
.world-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 !important; }
.stamp { position: absolute; top: 18px; right: -40px; transform: rotate(35deg); background: var(--sun); color: var(--bark); font: 900 .85rem var(--body);
  padding: 6px 48px; border-block: 2px solid var(--bark); }
/* home: how big */
.howbig-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.howbig h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.panels img { background: #fff; border-radius: 14px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.panels img + img { transform: rotate(2deg) translateY(24px); }
/* home: try a page */
.sunband { background: var(--sun); color: var(--bark); padding: clamp(64px, 8vw, 96px) 0; overflow: hidden; }
.sun-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.poster.light { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.sunband p { font-weight: 800; max-width: 40ch; }
.spread { display: flex; justify-content: center; filter: drop-shadow(0 24px 30px rgba(74, 42, 18, .35)); transform: rotate(-3deg); }
.spread img { width: 46%; max-width: 270px; background: #fff; border: 3px solid var(--bark); }
.spread img + img { border-left: 0; }
.about-teaser .signup { margin: 40px auto 0; text-align: left; }
/* footer */
.site-footer { background: var(--abyss); }
.site-footer h2 { color: var(--sun); font-family: var(--body); font-weight: 900; }
.slogan { font: 400 1.7rem/1.1 var(--display); color: var(--sun); -webkit-text-stroke: 1.5px var(--bark); paint-order: stroke fill; margin: 0 0 .4em; }
@media (max-width: 1000px) { .worlds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .sky-grid, .howbig-grid, .sun-grid { grid-template-columns: 1fr; }
  .sky-text { padding-bottom: 10px; }
  .dive { min-height: 320px; } .dive-book { right: 50%; bottom: -60px; width: 220px; transform: translateX(50%) rotate(-8deg); }
  .port.p1 { --s: 92px; left: 2%; bottom: 90px; } .port.p2 { --s: 84px; right: 2%; bottom: auto; top: 10px; }
}
@media (max-width: 560px) { .worlds { grid-template-columns: 1fr; } .world { min-height: 380px; } .panels { grid-template-columns: 1fr; } .panels img + img { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .port { animation: none; } .world-bg { transition: none; } }
/* home: animals popping out (decorative; only transform + opacity animate). Without JS, or with reduced motion,
   they simply sit in place: the swimmers in the sea, each tile's animal peeking over its top edge. */
.sea .wrap { position: relative; }
.shoal { position: absolute; top: -26px; right: 24px; width: min(38%, 440px); height: 150px; pointer-events: none; z-index: 4; }
.swim { position: absolute; height: auto; max-width: none; will-change: transform, opacity; }
.sw-turtle { width: 140px; left: 0; top: 46px; }
.sw-clownfish { width: 70px; left: 38%; top: 4px; }
.sw-vampire-squid { width: 64px; left: 58%; top: 66px; }
.sw-anglerfish { width: 84px; right: 0; top: 18px; }
.swim-js .swim { opacity: 0; }
.worlds { margin-top: 100px; row-gap: 88px; }   /* room for the peeking animals (the intro's margin collapses into this) */
.world-cell { position: relative; display: flex; flex-direction: column; }
.world-cell > .world { flex: 1; z-index: 1; }
.peek { position: absolute; z-index: 0; bottom: calc(100% - 14px); left: var(--px, 50%); width: min(var(--pw, 150px), var(--pf, .55) * 100%); aspect-ratio: var(--pr);
  transform: translateX(-50%); overflow: hidden; pointer-events: none; }
.peek-in { position: absolute; inset: 0; transform-origin: 50% 100%; }
.peek-in img { width: 100%; height: auto; display: block; transform-origin: 50% 100%; }
.pk-undersea { --pw: 140px; --pf: .52; --pr: 440 / 264; --px: 38%; }
.pk-dinosaur { --pw: 162px; --pf: .6; --pr: 400 / 242; --px: 58%; }
.pk-safari { --pw: 212px; --pf: .78; --pr: 400 / 177; --px: 50%; }
.pk-rainforest { --pw: 118px; --pf: .46; --pr: 400 / 338; --px: 50%; }
.peek-js .peek-in { transform: translateY(102%); }
.peek-js .up .peek-in { animation: peek-pop .95s cubic-bezier(.3, .7, .4, 1) forwards, peek-idle 4.2s ease-in-out .95s infinite; }
@keyframes peek-pop {
  0% { transform: translateY(102%) scale(1, 1); }
  48% { transform: translateY(-9%) scale(.9, 1.12); }
  66% { transform: translateY(3%) scale(1.1, .88); }
  82% { transform: translateY(-2%) scale(.97, 1.03); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes peek-idle { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-3px) rotate(-1.5deg); } 65% { transform: translateY(1px) rotate(1.2deg); } }
@keyframes peek-wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-5deg) translateY(-4px); } 45% { transform: rotate(4deg); } 70% { transform: rotate(-2deg); } }
@media (hover: hover) { .world-cell:hover .peek-in img { animation: peek-wiggle .6s ease-in-out; } }
@media (max-width: 700px) {
  .shoal { position: relative; top: auto; right: auto; width: 100%; height: 92px; margin: -6px 0 6px; }
  .sw-turtle { width: 96px; left: 0; top: 30px; }
  .sw-clownfish { width: 52px; left: 34%; top: 2px; }
  .sw-vampire-squid { width: 48px; left: 58%; top: 40px; }
  .sw-anglerfish { width: 60px; right: 2%; top: 8px; }
}
@media (max-width: 560px) { .pk-undersea { --pw: 124px; } .pk-dinosaur { --pw: 146px; } .pk-safari { --pw: 196px; } .pk-rainforest { --pw: 112px; } }
@media (prefers-reduced-motion: reduce) { .peek-in, .peek-in img { animation: none !important; transform: none !important; } .swim { opacity: 1 !important; } }
