/* Rocky Doodles Publishing: storybook-shelf theme. Cream paper, navy ink, one coral accent, hand-drawn doodles. */
@font-face { font-family: 'Shantell Sans'; font-weight: 800; font-display: swap; src: url(/fonts/shantell-sans-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Shantell Sans'; font-weight: 600; font-display: swap; src: url(/fonts/shantell-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 400; font-display: swap; src: url(/fonts/nunito-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 700; font-display: swap; src: url(/fonts/nunito-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 800; font-display: swap; src: url(/fonts/nunito-sans-latin-800-normal.woff2) format('woff2'); }

:root {
  --paper: #fbf6ec; --paper-2: #f4ebd9; --card: #fffdf8; --ink: #1d2b4a; --ink-2: #4c5770; --line: #e3d7bf;
  --coral: #f05a3c; --coral-dark: #cf4327; --yellow: #ffc233; --teal: #16b3a3; --wood: #c98d56; --wood-dark: #9c6536;
  --display: 'Shantell Sans', 'Comic Sans MS', system-ui, sans-serif;
  --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px; --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(29, 43, 74, .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: 400 18px/1.62 var(--body); background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .45em; }
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; }
.eyebrow { font: 800 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin-bottom: .7em; }
.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: 1fr 1fr; gap: 26px 20px; }
.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); }
