/* Starling Publishing: warm paper, deep ink, one serif voice. Covers carry the color. */
@font-face { font-family: Fraunces; src: url(/fonts/fraunces.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: Fraunces; src: url(/fonts/fraunces-italic.woff2) format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/figtree.woff2) format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --paper: #FBF7F0;
  --paper-2: #F4EDE1;
  --paper-3: #EBE2D3;
  --card: #FFFDF9;
  --ink: #1C2238;
  --ink-2: #464D69;
  --ink-3: #636A84;
  --line: #E3D9C8;
  --line-2: #D5C9B5;
  --teal: #1F6F6A;
  --teal-2: #15524E;
  --plum: #5B3FA0;
  --gold: #E3A63B;
  --coral: #D9573F;
  --night: #141A33;
  --night-2: #1E2547;
  --serif: Fraunces, 'Iowan Old Style', Georgia, serif;
  --sans: Figtree, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(28, 34, 56, .06), 0 2px 6px rgba(28, 34, 56, .05);
  --shadow: 0 2px 4px rgba(28, 34, 56, .06), 0 12px 28px -8px rgba(28, 34, 56, .22);
  --shadow-lg: 0 4px 10px rgba(28, 34, 56, .08), 0 30px 60px -20px rgba(28, 34, 56, .38);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.icon { flex: none; width: 1.1em; height: 1.1em; }
.spark { display: inline-block; color: var(--gold); vertical-align: -1px; }

/* Type */
.display { font-family: var(--serif); font-weight: 560; font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -.025em; line-height: 1.02; font-variation-settings: 'opsz' 96; }
.display em, .h2 em { font-style: italic; font-weight: 500; color: var(--plum); }
.h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.02em; font-weight: 560; font-variation-settings: 'opsz' 72; }
.h3 { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.01em; font-weight: 600; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-2); line-height: 1.6; max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.eyebrow-light { color: #9BE3D6; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--teal); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link-light { color: #CFEDE7; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(28, 34, 56, .55); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(251, 247, 240, .35); }
.btn-ghost-light:hover { border-color: var(--paper); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .94rem; }
.btn-block { width: 100%; }
.btn-amazon { background: var(--ink); min-height: 46px; padding: 10px 18px; font-size: .97rem; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions.center { justify-content: center; }

/* Announcement + header */
.announce { background: var(--ink); color: var(--paper); font-size: .92rem; text-align: center; padding: 9px 0; }
.announce a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { color: var(--ink); flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name span { font-family: var(--serif); font-weight: 650; font-size: 1.42rem; letter-spacing: -.02em; font-variation-settings: 'opsz' 48; }
.brand-name small { margin-top: 4px; font-size: .62rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 550; color: var(--ink-2); font-size: .98rem; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.header-cta { flex: none; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 56px; width: min(280px, calc(100vw - 32px)); display: grid; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.menu-panel a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--paper-2); }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding-top: 12px; }
.section-tint { background: var(--paper-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head .eyebrow { margin-bottom: 10px; }
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.page-head .lead { margin-top: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-bottom: 18px; font-size: .92rem; color: var(--ink-3); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-2); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; }

/* Hero */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 20%, rgba(91, 63, 160, .10), transparent 60%), radial-gradient(50% 60% at 70% 90%, rgba(31, 111, 106, .10), transparent 60%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-title { font-size: clamp(2.7rem, 6vw, 5rem); margin-bottom: 22px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; list-style: none; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.hero-facts span { font-size: .92rem; color: var(--ink-3); }
.hero-art { position: relative; min-height: clamp(380px, 46vw, 560px); }
.hero-glow { position: absolute; inset: 8% 4% 4%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fff8e8 0%, rgba(227, 166, 59, .18) 40%, transparent 70%); filter: blur(6px); }
.hero-spark { position: absolute; color: var(--gold); z-index: 3; animation: twinkle 4s ease-in-out infinite; }
.hero-spark.s1 { top: 4%; right: 12%; }
.hero-spark.s2 { top: 18%; left: 6%; animation-delay: 1.3s; color: var(--plum); }
.hero-spark.s3 { bottom: 6%; right: 4%; animation-delay: 2.1s; color: var(--teal); }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(20deg); opacity: .6; } }
.fan { position: absolute; inset: 0; }
.fan a { position: absolute; top: 50%; left: 50%; width: 42%; border-radius: 6px 10px 10px 6px; transform-origin: 50% 110%; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.fan img { width: 100%; border-radius: 4px 8px 8px 4px; box-shadow: var(--shadow-lg); }
.fan a::after { content: ''; position: absolute; inset: 0; border-radius: 4px 8px 8px 4px; background: linear-gradient(90deg, rgba(0, 0, 0, .22) 0, rgba(255, 255, 255, .18) 2.2%, rgba(0, 0, 0, .06) 4.5%, transparent 9%); pointer-events: none; }
.fan-0 { transform: translate(-128%, -46%) rotate(-14deg); z-index: 1; }
.fan-1 { transform: translate(-90%, -52%) rotate(-7deg); z-index: 2; }
.fan-2 { transform: translate(-50%, -53%) rotate(0deg); z-index: 5; width: 46% !important; }
.fan-3 { transform: translate(-10%, -52%) rotate(7deg); z-index: 2; }
.fan-4 { transform: translate(28%, -46%) rotate(14deg); z-index: 1; }
.hero-art:hover .fan-0 { transform: translate(-138%, -47%) rotate(-17deg); }
.hero-art:hover .fan-1 { transform: translate(-96%, -54%) rotate(-9deg); }
.hero-art:hover .fan-2 { transform: translate(-50%, -57%) rotate(0deg); }
.hero-art:hover .fan-3 { transform: translate(-4%, -54%) rotate(9deg); }
.hero-art:hover .fan-4 { transform: translate(38%, -47%) rotate(17deg); }

/* Book cards */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 34px); }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(22px, 2.6vw, 34px) clamp(18px, 2.2vw, 28px); }
.book-card { display: flex; flex-direction: column; min-width: 0; }
.book-card[hidden] { display: none; }
.book-link { display: block; text-decoration: none; color: inherit; }
.cover-frame { position: relative; margin-bottom: 14px; perspective: 900px; }
.cover-frame .cover { width: 100%; aspect-ratio: 1000 / 1294; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; transform-origin: left center; }
.cover-frame::after { content: ''; position: absolute; inset: 0 0 auto 0; aspect-ratio: 1000 / 1294; border-radius: 3px 8px 8px 3px; background: linear-gradient(90deg, rgba(0, 0, 0, .2) 0, rgba(255, 255, 255, .22) 2.5%, rgba(0, 0, 0, .05) 5%, transparent 10%); pointer-events: none; }
.book-link:hover .cover, .book-link:focus-visible .cover { transform: rotateY(-8deg) translateY(-4px); box-shadow: var(--shadow-lg); }
.cover-blank { display: grid; place-items: center; align-content: center; gap: 12px; width: 100%; aspect-ratio: 1000 / 1294; padding: 18px; border-radius: 3px 8px 8px 3px; background: linear-gradient(160deg, var(--night-2), var(--night)); color: var(--paper); text-align: center; font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; box-shadow: var(--shadow); }
.cover-blank-spark { color: var(--gold); }
.book-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.25; letter-spacing: -.005em; font-variation-settings: 'opsz' 24; }
.book-link:hover .book-title { text-decoration: underline; text-decoration-thickness: 1px; }
.book-meta { margin: 5px 0 0; font-size: .9rem; color: var(--ink-3); }
.book-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.book-price { font-size: .88rem; color: var(--ink-3); line-height: 1.35; }
.book-price b { color: var(--ink); font-size: 1rem; margin-right: 2px; }
.buy-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .86rem; font-weight: 650; text-decoration: none; background: var(--card); transition: background .2s, border-color .2s; }
.buy-chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; box-shadow: var(--shadow-sm); }
.badge + .badge { top: 42px; }
.badge-soon { background: var(--gold); color: var(--ink); }
.badge-play { background: var(--plum); color: #fff; }
.badge .icon { width: 13px; height: 13px; }

/* Collections */
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.collection-card { --accent: var(--teal); position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.collection-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.collection-art { position: relative; height: 176px; background: radial-gradient(120% 120% at 50% 110%, color-mix(in srgb, var(--accent) 34%, #fff) 0%, color-mix(in srgb, var(--accent) 12%, var(--paper)) 70%); overflow: hidden; }
.collection-art span { position: absolute; bottom: -34px; width: 30%; left: 50%; }
.collection-art img { width: 100%; border-radius: 3px 6px 6px 3px; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .45); }
.collection-art .stack-0 { transform: translateX(-50%); z-index: 3; bottom: -26px; }
.collection-art .stack-1 { transform: translateX(-122%) rotate(-9deg); z-index: 2; }
.collection-art .stack-2 { transform: translateX(22%) rotate(9deg); z-index: 1; }
.collection-copy { padding: 22px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.collection-copy h3 { font-family: var(--serif); font-size: 1.32rem; margin-bottom: 8px; }
.collection-copy p { color: var(--ink-2); font-size: .97rem; margin-bottom: 14px; }
.collection-count { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--ink); }
.collection-count::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* Color-along feature */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-page { position: relative; display: grid; grid-template-columns: 1fr 1fr; max-width: 520px; margin-inline: auto; padding: 16px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.split-page::after { content: ''; position: absolute; top: 16px; bottom: 16px; left: 50%; width: 30px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .12) 48%, rgba(0, 0, 0, .18) 50%, rgba(0, 0, 0, .12) 52%, transparent); pointer-events: none; }
.split-half { overflow: hidden; aspect-ratio: 1000 / 1294; }
.split-half img { width: 100%; height: 100%; object-fit: cover; }
.split-half.color { border-radius: 6px 0 0 6px; }
.split-half.line { border-radius: 0 6px 6px 0; background: #fff; }
.split-half.line img { filter: grayscale(1) contrast(2.6) brightness(1.5); mix-blend-mode: multiply; opacity: .78; }
.feature-copy p { color: var(--ink-2); font-size: 1.08rem; margin-top: 18px; }

/* Night band (Scan & Play) */
.night { position: relative; color: var(--paper); background: radial-gradient(70% 90% at 85% 10%, rgba(91, 63, 160, .55), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(31, 111, 106, .45), transparent 60%), var(--night); overflow: hidden; padding: clamp(64px, 9vw, 120px) 0; }
.night::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 68%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 58% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 76% 42%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 90% 80%, #FFC93C 50%, transparent 51%), radial-gradient(1px 1px at 44% 88%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 6% 76%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 66% 58%, #fff 50%, transparent 51%); opacity: .7; pointer-events: none; }
.night-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.night .h2, .night .display { color: var(--paper); }
.night .display em, .night .h2 em { color: #FFC93C; }
.night-lead { font-size: 1.15rem; color: #D9DCEC; max-width: 56ch; margin-top: 18px; }
.steps { list-style: none; display: grid; gap: 14px; margin-top: 30px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.steps li > span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #FFC93C; color: var(--night); font-weight: 800; }
.steps b { display: block; font-size: 1.04rem; }
.steps div { color: #C9CDE2; font-size: .97rem; }
.night-art { position: relative; min-height: 420px; }
.phone { position: absolute; right: 6%; top: 0; width: 230px; aspect-ratio: 9 / 18.5; border-radius: 36px; padding: 10px; background: #0B0F22; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7), inset 0 0 0 2px rgba(255, 255, 255, .08); transform: rotate(6deg); }
.phone-screen { height: 100%; border-radius: 28px; background: linear-gradient(180deg, #2B2A6B, #1B1A3D); padding: 34px 16px 16px; display: flex; flex-direction: column; gap: 18px; }
.phone-screen .phone-logo { width: 64px; height: 64px; margin-inline: auto; border-radius: 16px; }
.phone-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.phone-tiles span { border-radius: 16px; background: #3DD6B5; }
.phone-tiles span:nth-child(2) { background: #FFC93C; }
.phone-tiles span:nth-child(3) { background: #FF6B5B; }
.phone-tiles span:nth-child(4) { background: #6EC6FF; }
.qr-page-art { position: absolute; left: 0; bottom: 4%; width: 240px; aspect-ratio: 8.5 / 11; border-radius: 6px; background: #FFFDF8; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .65); transform: rotate(-7deg); padding: 22px; }
.page-lines { height: 62%; border-radius: 8px; background: repeating-radial-gradient(circle at 50% 60%, transparent 0 14px, rgba(28, 34, 56, .55) 15px 16px), #fff; border: 1.5px solid rgba(28, 34, 56, .55); }
.page-qr { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 10px; border: 2px solid var(--ink); color: var(--ink); background: #fff; }
.page-qr .icon { width: 44px; height: 44px; stroke-width: 1.6; }
.page-star { position: absolute; left: 22px; bottom: 30px; color: var(--plum); }

/* Play page */
.night-page { padding: clamp(56px, 8vw, 104px) 0; }
.try-card { justify-self: center; width: min(360px, 100%); padding: 26px; border-radius: 24px; background: var(--card); color: var(--ink); text-align: center; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .7); }
.try-qr { width: 220px; margin: 0 auto 18px; border-radius: 12px; overflow: hidden; }
.try-qr svg { width: 100%; height: auto; }
.try-card p { color: var(--ink-2); }
.try-card .text-link-light { color: var(--teal); }
.step-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.step-cards li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step-cards li::before { counter-increment: step; content: counter(step); position: absolute; right: 22px; top: 18px; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--paper-3); font-weight: 600; }
.step-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--paper-2); color: var(--plum); margin-bottom: 18px; }
.step-icon .icon { width: 26px; height: 26px; }
.step-cards h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 8px; }
.step-cards p { color: var(--ink-2); margin: 0; }
.game-kinds { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; margin: 0; padding: 0; }
.game-kinds li { position: relative; padding: 24px 22px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.game-kinds li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--kind); }
.game-kinds h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 8px; color: var(--kind); }
.game-kinds p { margin: 0; color: var(--ink-2); }
.game-kinds-note { margin: 22px 0 0; max-width: 62ch; color: var(--ink-2); }
.check-list { list-style: none; display: grid; gap: 16px; margin-top: 22px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.check-list li .icon { margin-top: 4px; color: var(--teal); stroke-width: 2.6; }
.check-list b { color: var(--ink); }
.check-list.compact { gap: 10px; margin-top: 12px; }
.mini-links { list-style: none; display: grid; gap: 6px; margin-top: 8px; }
.mini-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; background: var(--paper); }
.mini-links a:hover { background: var(--paper-2); }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 26px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--ink-3); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-2); }

/* About teaser + imprint */
.about-teaser { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-teaser p { color: var(--ink-2); font-size: 1.08rem; margin-top: 18px; }
.imprint-card, .facts { margin: 0; display: grid; }
.imprint-card { padding: 10px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.imprint-card div, .facts div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.imprint-card div:last-child, .facts div:last-child { border-bottom: 0; }
dt { color: var(--ink-3); font-size: .93rem; }
dd { margin: 0; font-weight: 600; text-align: right; }
dd small { display: block; font-weight: 500; color: var(--ink-3); font-size: .84rem; }
.cta-band { padding-top: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: var(--paper-2); border: 1px solid var(--line); }
.cta-inner p { color: var(--ink-2); margin: 10px 0 0; }
.cta-inner .h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

/* Generic content */
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--serif); font-size: 1.65rem; margin: 1.6em 0 .55em; letter-spacing: -.01em; }
.prose h2:first-child, .prose .eyebrow + h2 { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul:not(.check-list) { padding-left: 1.2em; margin: 0 0 1em; }
.prose a { color: var(--teal); font-weight: 600; }
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.side-card { position: sticky; top: 100px; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.side-card h2 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 8px; }
.side-card .facts { margin: 6px 0 20px; }
.side-note { font-size: .94rem; color: var(--ink-2); margin: 16px 0 0; }
.side-note a { color: var(--teal); font-weight: 600; }
.callout { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; padding: 18px 20px; border-radius: 14px; background: color-mix(in srgb, var(--plum) 8%, var(--card)); border: 1px solid color-mix(in srgb, var(--plum) 25%, var(--line)); color: var(--ink-2); }
.callout .icon { color: var(--plum); width: 24px; height: 24px; }
.empty-state { text-align: center; padding: clamp(40px, 6vw, 72px) 20px; border-radius: 24px; border: 1.5px dashed var(--line-2); background: var(--card); }
.empty-state p { color: var(--ink-2); max-width: 52ch; margin: 12px auto 0; }
.empty-spark { color: var(--gold); margin: 0 auto 16px; }
.empty-spark.light { color: #FFC93C; }
.small-light { margin-top: 26px; font-size: .9rem; color: #A9AECB; letter-spacing: .08em; }
.status-page .lead { margin: 18px auto 0; }

/* Resources */
.group-title { margin: 8px 0 18px; }
.group-title ~ .group-title { margin-top: 44px; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.resource-card { display: flex; gap: 18px; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.resource-cover { flex: none; width: 76px; }
.resource-cover img { border-radius: 3px 6px 6px 3px; box-shadow: var(--shadow-sm); }
.resource-icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--paper-2); color: var(--teal); }
.resource-kind { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.resource-card h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; }
.resource-card p { color: var(--ink-2); font-size: .95rem; margin-bottom: 10px; }

/* Catalogue filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px; margin-bottom: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.search-field { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.search-field .icon { position: absolute; left: 14px; color: var(--ink-3); }
.search-field input { width: 100%; min-height: 46px; padding: 10px 14px 10px 42px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .94rem; font-weight: 600; color: var(--ink-2); background: var(--paper); transition: background .15s, color .15s, border-color .15s; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.chip:hover span { border-color: var(--ink); }
.filter-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.select-field select { min-height: 42px; padding: 8px 36px 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C2238' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-weight: 600; font-size: .94rem; }
.check-field { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .94rem; color: var(--ink-2); cursor: pointer; }
.check-field input { width: 18px; height: 18px; accent-color: var(--ink); }
.js .js-hide { display: none; }
.result-count { color: var(--ink-3); font-size: .94rem; margin: 0 4px 24px; }

/* Book page */
.book-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(44px, 6vw, 72px); background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.book-detail { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.book-cover-col { position: sticky; top: 100px; }
.book-3d { position: relative; max-width: 420px; margin-inline: auto; perspective: 1400px; }
.book-3d img, .book-3d .cover-blank { width: 100%; border-radius: 3px 10px 10px 3px; box-shadow: -14px 24px 50px -14px rgba(28, 34, 56, .45), 0 2px 6px rgba(28, 34, 56, .12); transform: rotateY(-7deg); transform-origin: left center; }
.book-3d::after { content: ''; position: absolute; inset: 0; border-radius: 3px 10px 10px 3px; background: linear-gradient(90deg, rgba(0, 0, 0, .24) 0, rgba(255, 255, 255, .2) 2.4%, rgba(0, 0, 0, .06) 5%, transparent 10%); transform: rotateY(-7deg); transform-origin: left center; pointer-events: none; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag-row .badge { position: static; box-shadow: none; }
.tag { --accent: var(--teal); display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: .84rem; font-weight: 650; text-decoration: none; color: var(--ink); }
.tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.book-h1 { font-family: var(--serif); font-size: clamp(2.2rem, 4.4vw, 3.5rem); font-weight: 580; letter-spacing: -.022em; line-height: 1.05; font-variation-settings: 'opsz' 96; }
.book-subtitle { margin: 12px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.12rem, 1.8vw, 1.35rem); color: var(--ink-2); line-height: 1.4; }
.book-byline { margin: 16px 0 0; color: var(--ink-3); font-weight: 550; }
.book-byline .dot { margin: 0 8px; }
.book-blurb { margin: 22px 0 0; font-size: 1.15rem; color: var(--ink-2); max-width: 54ch; }
.buy-box { margin-top: 30px; padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.buy-title { font-size: .8rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.buy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.buy-row:last-of-type { border-bottom: 0; }
.buy-format b { display: block; font-size: 1.05rem; }
.buy-format span { font-size: .9rem; color: var(--ink-3); }
.buy-price { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.pill { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); font-size: .85rem; font-weight: 650; color: var(--ink-2); }
.buy-note { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-3); }
.intl { margin-top: 12px; font-size: .92rem; }
.intl summary { cursor: pointer; display: inline-flex; gap: 8px; align-items: center; font-weight: 650; color: var(--ink-2); }
.intl ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.intl li a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; font-size: .86rem; }
.intl li a:hover { border-color: var(--ink); }
.intl p { color: var(--ink-3); font-size: .85rem; margin: 0; }
.book-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.book-body .prose p { font-size: 1.06rem; }
.book-hero + .section { padding-top: clamp(36px, 5vw, 56px); }

/* Forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-card { padding: clamp(22px, 3vw, 34px); border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > span { font-weight: 650; font-size: .95rem; }
.field em { font-style: normal; font-weight: 500; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--ink-3); }
.form-note a { color: var(--teal); }
.form-error { padding: 12px 16px; border-radius: 12px; background: #FDECE8; color: #8A2A17; font-weight: 600; border: 1px solid #F3C3B6; }
.success { text-align: center; }
.success-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 14%, var(--card)); color: var(--teal); }
.success-icon .icon { width: 30px; height: 30px; }
.success p { color: var(--ink-2); margin-top: 10px; }

/* Footer */
.site-footer { background: var(--night); color: #D3D6E6; padding: 64px 0 28px; margin-top: 0; }
.site-footer .brand, .site-footer .logo-mark { color: var(--paper); }
.site-footer .brand-name small { color: #A9AECB; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { margin-top: 16px; max-width: 38ch; font-size: .96rem; color: #B8BCD3; }
.site-footer h2 { font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: #9BE3D6; margin-bottom: 14px; }
.site-footer a:not(.brand) { display: flex; align-items: center; gap: 6px; padding: 4px 0; text-decoration: none; font-size: .96rem; color: #E1E3EE; }
.site-footer a:not(.brand):hover { color: #fff; text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; color: #A9AECB; }


/* ---- Free coloring pages ---- */
.badge-free { background: var(--teal); color: #fff; }
.book-extras { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; font-weight: 650; font-size: .95rem; }
.book-extras a { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); text-decoration: none; }
.book-extras a:hover { text-decoration: underline; }
.section-note { color: var(--ink-3); margin: 0; font-size: .95rem; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 18px; }
.page-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.page-card { display: flex; flex-direction: column; min-width: 0; }
.page-thumb { display: block; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.page-thumb img { width: 100%; height: auto; }
.page-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.page-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; padding-top: 10px; }
.page-card-title { font-size: .95rem; font-weight: 650; font-family: var(--sans); }
.page-card-title a { text-decoration: none; }
.page-card-actions { display: inline-flex; gap: 4px; }
.page-card-actions a { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .82rem; font-weight: 650; text-decoration: none; background: var(--card); }
.page-card-actions a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-card-actions .icon { width: 14px; height: 14px; }
.color-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.color-book { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.color-book:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.color-book-cover { flex: none; width: 64px; }
.color-book-cover img { border-radius: 2px 5px 5px 2px; box-shadow: var(--shadow-sm); }
.color-book-copy { flex: 1; display: grid; gap: 2px; min-width: 0; }
.color-book-copy b { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.color-book-copy span { color: var(--ink-3); font-size: .9rem; }
.color-book > .icon { color: var(--ink-3); }
.color-book-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: center; }
.color-book-hero img { border-radius: 3px 8px 8px 3px; box-shadow: var(--shadow-lg); transform: rotate(3deg); }

/* Look inside */
.look-strip { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 16px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; }
.look-strip li { scroll-snap-align: start; }
.look-page { display: block; text-decoration: none; }
.look-page img { width: 100%; height: auto; border-radius: 4px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.look-page:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.look-page span { display: block; margin-top: 8px; font-size: .88rem; color: var(--ink-3); font-weight: 600; }
.look-dialog { width: min(820px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 20px; background: var(--card); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6); overflow: auto; }
.look-dialog::backdrop { background: rgba(20, 26, 51, .78); backdrop-filter: blur(4px); }
.look-frame { position: relative; padding: 18px; display: grid; gap: 12px; justify-items: center; }
.look-frame img { width: auto; max-width: 100%; max-height: calc(100dvh - 170px); border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.look-caption { margin: 0; font-weight: 650; color: var(--ink-2); }
.look-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.look-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Coloring tool */
.color-page { padding: clamp(24px, 4vw, 44px) 0 clamp(56px, 7vw, 88px); }
.color-head { margin-bottom: 18px; }
.color-head p { color: var(--ink-2); margin: 8px 0 0; }
.color-app { --current: #E53935; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "tools tools" "stage palette" "stage side"; grid-template-rows: auto auto 1fr; gap: 14px 20px; align-items: start; }
.color-dock { display: contents; }
.color-tools { grid-area: tools; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: sticky; top: 84px; z-index: 6; }
.tool-group { display: flex; gap: 6px; align-items: center; padding-right: 10px; border-right: 1px solid var(--line); }
.tool-group:last-child { border-right: 0; padding-right: 0; margin-left: auto; }
.tool { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); font-weight: 650; cursor: pointer; }
.tool[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tool.icon-only { width: 42px; padding: 0; justify-content: center; }
.tool:disabled { opacity: .4; cursor: default; }
.size { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; }
.size i { width: var(--d); height: var(--d); border-radius: 50%; background: var(--current); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.size[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.color-app[data-tool="fill"] .sizes { opacity: .45; }
.color-stage-wrap { grid-area: stage; overflow: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-2); box-shadow: var(--shadow); max-height: calc(100dvh - 200px); }
.color-stage { position: relative; width: min(100%, calc((100dvh - 210px) * var(--ar, .77))); margin: 0 auto; }
.color-stage canvas, .color-stage .color-line { position: absolute; inset: 0; width: 100%; height: 100%; }
.color-stage .color-line { pointer-events: none; mix-blend-mode: multiply; user-select: none; -webkit-user-drag: none; }
.color-stage canvas { cursor: crosshair; touch-action: none; background: #fff; }
.color-app[data-tool="fill"] .color-stage canvas { touch-action: pan-x pan-y pinch-zoom; cursor: cell; }
.color-side { grid-area: side; display: grid; gap: 16px; }
.palette { grid-area: palette; min-inline-size: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.palette legend { padding: 0 6px; font-weight: 700; font-size: .9rem; }
.swatch { position: relative; aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--ink); }
.swatch.custom { display: grid; place-items: center; background: conic-gradient(#E53935, #FDD835, #43A047, #29B6F6, #8E24AA, #E53935); overflow: hidden; }
.swatch.custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.fill-mode { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.fill-mode em { display: block; font-style: normal; font-weight: 500; color: var(--ink-3); }
.fill-mode input { margin-top: 3px; accent-color: var(--ink); }
.color-guide { margin: 0; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.color-guide button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: crosshair; }
.color-guide img { width: 100%; height: auto; border-radius: 6px; }
.color-guide figcaption { display: flex; gap: 6px; margin-top: 8px; font-size: .84rem; color: var(--ink-3); }
.color-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.color-actions .btn { min-height: 44px; padding: 8px 12px; font-size: .92rem; }
.color-note { font-size: .88rem; color: var(--ink-3); margin: 0; }
.color-note a { color: var(--teal); font-weight: 600; }
.color-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; margin: 0; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); text-align: center; }
.color-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.color-cta { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 26px; align-items: center; margin-top: 36px; padding: 24px; border-radius: 22px; background: var(--paper-2); border: 1px solid var(--line); }
.color-cta p:not(.eyebrow) { color: var(--ink-2); margin: 8px 0 0; }
.color-cta .actions { margin-top: 16px; }
.color-cta-cover img { border-radius: 3px 6px 6px 3px; box-shadow: var(--shadow); }
.js .color-app:not(.is-ready) .color-tools, .js .color-app:not(.is-ready) .color-side { opacity: .6; pointer-events: none; }
html:not(.js) .color-tools, html:not(.js) .palette, html:not(.js) .fill-mode, html:not(.js) .color-actions, html:not(.js) .color-guide figcaption { display: none; }
.print-sheet { display: none; }
@media print {
  body.is-printing > *:not(.print-sheet) { display: none !important; }
  body.is-printing .print-sheet { display: block; }
  body.is-printing .print-sheet img { display: block; width: 100%; max-height: 100vh; object-fit: contain; }
  @page { margin: 10mm; }
}
@media (max-width: 1080px) {
  .page-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .color-app { display: block; }
  .color-dock { display: block; position: sticky; top: 66px; z-index: 6; padding: 8px; margin-bottom: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .color-dock .color-tools { position: static; flex-wrap: nowrap; overflow-x: auto; padding: 0 0 8px; border: 0; border-radius: 0; box-shadow: none; background: none; scrollbar-width: none; }
  .color-dock .palette { display: flex; gap: 8px; overflow-x: auto; padding: 6px 4px 2px; border: 0; border-radius: 0; background: none; scrollbar-width: thin; }
  .palette legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .palette .swatch { flex: none; width: 38px; height: 38px; }
  .color-stage, .color-stage-wrap { width: 100%; max-height: none; }
  .color-side { margin-top: 14px; }
  .color-book-head { grid-template-columns: minmax(0, 1fr); }
  .color-book-hero { display: none; }
}
@media (max-width: 640px) {
  .page-grid, .page-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .tool span { display: none; }
  .tool { width: 42px; padding: 0; justify-content: center; }
  .tool-group { padding-right: 6px; gap: 4px; }
  .tool-group:last-child { margin-left: 0; }
  .size { width: 36px; height: 36px; }
  .color-cta { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .color-books { grid-template-columns: minmax(0, 1fr); }
  .page-card-actions span { display: none; }
}


/* ---- Discovery: signup, topics, ideas, guides ---- */
.top-space { margin-top: 36px; }
.signup-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: linear-gradient(135deg, #FFF8EA, #F3ECFF); border: 1px solid var(--line); }
.signup-box .eyebrow { margin-bottom: 8px; }
.signup-box p:not(.eyebrow) { color: var(--ink-2); margin: 8px 0 0; }
.signup-box.compact { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px; }
.signup-form { display: grid; gap: 12px; }
.signup-form .field { margin: 0; }
.signup-form .btn { justify-self: start; }
.signup-form.big { margin-top: 24px; max-width: 560px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.consent a { color: var(--teal); }
.freepack { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.freepack-art { position: relative; min-height: 420px; }
.freepack-art img { position: absolute; width: 46%; border-radius: 6px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.freepack-art .fp-0 { left: 4%; top: 6%; transform: rotate(-8deg); }
.freepack-art .fp-1 { right: 6%; top: 0; transform: rotate(6deg); }
.freepack-art .fp-2 { left: 14%; bottom: 0; transform: rotate(4deg); }
.freepack-art .fp-3 { right: 12%; bottom: 6%; transform: rotate(-5deg); z-index: 1; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chip-cloud h2 { width: 100%; margin-bottom: 4px; }
.chip-cloud .tag span { color: var(--ink-2); font-weight: 600; }
.color-topics { margin-top: 24px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 40px; }
.topic-card { display: grid; grid-template-rows: 150px auto; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.topic-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.topic-card img { width: 100%; height: 150px; object-fit: cover; object-position: top; background: #fff; border-bottom: 1px solid var(--line); }
.topic-card span { display: grid; padding: 12px 14px; }
.topic-card b { font-family: var(--serif); font-size: 1.05rem; }
.topic-card small { color: var(--ink-3); }
.page-card-book { flex-basis: 100%; color: var(--ink-3); font-size: .8rem; margin-top: -4px; }
.color-desc { color: var(--ink-2); font-size: 1.05rem; max-width: 75ch; margin: 10px 0 0; }
.color-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; font-size: .9rem; color: var(--ink-3); }
.color-meta span:not(:last-child)::after { content: '·'; margin-left: 14px; color: var(--line-2); }
.color-meta a { color: var(--teal); font-weight: 600; }
.color-how { font-size: .9rem; color: var(--ink-3); margin: 8px 0 0; }
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; height: 200px; overflow: hidden; background: var(--paper-2); }
.gallery-strip img { width: 100%; height: 200px; object-fit: cover; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.idea-card { display: grid; gap: 8px; text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.idea-card img { width: 100%; height: auto; border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.idea-card:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.idea-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 8px; }
.idea-figure { margin: 0; }
.idea-figure img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-lg); background: #fff; }
.idea-copy .lead { margin-top: 14px; }
.idea-source { color: var(--ink-3); margin-top: 16px; }
.idea-source a { color: var(--teal); font-weight: 600; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 36px; }
.guide-card { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.guide-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.guide-card b { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; }
.guide-card span { color: var(--ink-2); font-size: .93rem; }
.guide-card small { color: var(--ink-3); font-weight: 600; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.guide-title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.guide-meta { color: var(--ink-3); margin: 14px 0 28px; font-size: .95rem; }
.guide-body { max-width: 70ch; }
.guide-body h2 { font-family: var(--serif); font-size: 1.6rem; margin: 1.6em 0 .5em; }
.guide-body h3 { font-family: var(--sans); font-size: 1.15rem; margin: 1.3em 0 .4em; }
.guide-body p, .guide-body li { font-size: 1.06rem; line-height: 1.7; }
.guide-body ul, .guide-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.guide-body li { margin: .3em 0; }
.guide-body blockquote { margin: 1em 0; padding: 12px 18px; border-left: 4px solid var(--gold); background: var(--paper-2); border-radius: 0 12px 12px 0; }
.guide-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.side-book { display: flex; gap: 12px; align-items: center; padding: 8px 0; text-decoration: none; font-weight: 600; }
.side-book img, .side-book .cover-blank { width: 48px; flex: none; border-radius: 2px 4px 4px 2px; box-shadow: var(--shadow-sm); }
.sources { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.sources ol { padding-left: 1.3em; color: var(--ink-2); }
.sources li { margin: 6px 0; }
.sources a { color: var(--teal); font-weight: 600; }
.sources small { color: var(--ink-3); margin-left: 6px; }
@media (max-width: 900px) {
  .signup-box, .freepack, .idea-layout, .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .freepack-art { min-height: 300px; max-width: 420px; }
  .guide-side { position: static; }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav a { padding: 8px 10px; }
  .header-cta span { display: none; }
  .header-cta { width: 44px; padding: 0; }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf > :nth-child(n+7) { display: none; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu { display: block; }
  .hero-grid, .feature, .night-grid, .about-teaser, .prose-grid, .book-body, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: clamp(320px, 78vw, 460px); order: -1; margin-top: -10px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .night-art { min-height: 380px; max-width: 460px; width: 100%; margin-inline: auto; }
  .side-card, .book-cover-col { position: static; }
  .book-detail { grid-template-columns: minmax(0, 1fr); }
  .book-3d { max-width: 300px; }
  .step-cards { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  body { font-size: 1rem; }
  .header-row { min-height: 66px; }
  .brand-name span { font-size: 1.24rem; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .shelf > :nth-child(n+7) { display: flex; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .book-foot { flex-direction: column; align-items: flex-start; }
  .collection-grid { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .buy-row { grid-template-columns: minmax(0, 1fr) auto; }
  .buy-row .btn-amazon { grid-column: 1 / -1; width: 100%; }
  .hero-facts { gap: 12px 26px; }
  .hero-facts strong { font-size: 1.6rem; }
  .fan a { width: 34%; }
  .fan-2 { width: 40% !important; }
  .phone { width: 180px; right: 0; }
  .qr-page-art { width: 190px; }
  .night-art { min-height: 330px; }
  .filters { padding: 12px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .imprint-card { padding: 4px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
