@font-face { font-family: 'Fraunces'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/fraunces-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/fraunces-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/nunito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/nunito-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/nunito-latin-700-normal.woff2') format('woff2'); }
:root {
  --book-ink: #2b3240;
  --book-paper: #fbf7f0;
  --book-sand: #f3eee4;
  --book-sage: #a9beb3;
  --book-leaf: #3e5b4e;
  --book-orange: #e89b50;
  --book-rule: #e6dfd3;
  /* Text tokens must read on paper and directly on the sage sky (4.5:1 on both). */
  --book-muted: #424a4f;
  --ui-surface: #fffdfa;
  --ui-on-accent: var(--book-ink);
  --ui-on-sage: var(--book-ink);
  --ui-on-leaf: var(--book-paper);
  --ui-focus: var(--book-leaf);
  --ui-error: #74373f;
  --ui-leaf-text: #384e4a;
  --ui-field-border: #85796b;
  --ink: var(--book-ink);
  --ivory: var(--book-paper);
  --muted: var(--book-muted);
  --title: 'Fraunces', Georgia, serif;
  --ui-font: 'Nunito', Arial, sans-serif;
  font-family: var(--ui-font);
  background: var(--book-paper);
  color: var(--book-ink);
}
/* The storefront composes this same sky into sections along the rocket flight.
   Every other screen inherits the studio sky, including new customer pages. */
@media screen {
  body:not(.storyfront) {
    min-height: 100vh;
    min-height: 100svh;
    background: linear-gradient(165deg, transparent 18%, #ffe0b384 57%, #edcedb91 86%, #d8d9ed80),
                var(--book-sage) url('/creator-art/sky-background.webp') 72% center / cover;
    background-attachment: fixed;
  }
}
body, button, input, textarea, select { font-family: var(--ui-font); }
h1, h2, h3, h4, h5, h6 { font-family: var(--title); }
::selection { color: var(--ui-on-sage); background: var(--book-sage); }

.print-cover-art { position: relative; display: block; container-type: inline-size; }
.print-cover-art img { width:100%; height:auto; display:block; }
.print-cover-art .cover-name { position:absolute; top:5%; left:1%; right:1%; height:15.5%; display:flex; align-items:center; justify-content:center; background:#14213c; color:#ffd061; font:700 16.5cqw/1 'Fraunces',Georgia,serif; letter-spacing:-.045em; }
.mini-cover { width:55px; flex:0 0 55px; }

.rocket-wordmark { display: inline-flex; align-items: center; gap: .17em; white-space: nowrap; }
.rocket-wordmark .brand-rocket { width: 1.04em; height: 1.04em; flex: none; }

/* <twinkle-stars> (twinkle-stars.js) scatters pencil sparkles and dots behind a section.
   Each star's color arrives as --star; the sparkle shape is a mask over it. */
twinkle-stars { position: absolute; inset: 0; z-index: -1; display: block; overflow: hidden; pointer-events: none; }
twinkle-stars[fixed] { position: fixed; }
twinkle-stars i { --star: #fff1d6;
  position: absolute; width: var(--size); height: var(--size); translate: -50% -50%; opacity: var(--rest); background-color: var(--star); }
twinkle-stars .sparkle { -webkit-mask: url('/assets/stars/sparkle.svg') center / contain no-repeat; mask: url('/assets/stars/sparkle.svg') center / contain no-repeat; rotate: var(--turn); }
twinkle-stars .dot { border-radius: 50%; box-shadow: 0 0 calc(var(--size) * 1.6) var(--star); }
/* twinkle-stars.js gives each star its own uneven flicker; reduced motion skips it. */
.flight twinkle-stars { z-index: 0; }
.library:has(twinkle-stars) { position: relative; isolation: isolate; }
@media print { twinkle-stars { display: none; } }
