/*
Theme Name: Bowsong
Theme URI: https://bowsong.com
Author: Bowsong Inc
Description: The corporate site of Bowsong Publishing: a books catalog, author services, and a publishing assistant that emails the team what a visitor needs.
Version: 1.3.5
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bowsong
*/

/* ---------- tokens ---------- */
:root {
  --ink: #0E1326; --navy: #14213D; --navy-2: #1B2D5C; --paper: #F7F3EC; --cream: #FCFAF6; --white: #FFFFFF;
  --rule: rgba(14, 19, 38, 0.12); --rule-light: rgba(255, 255, 255, 0.16); --soft: #5C6070; --mute: #8A8E9C;
  --brass: #C9A24A; --brass-deep: #A8832F; --brass-soft: #F1E4C2; --sky: #7FB0E0; --violet: #8B7CC9; --poppy: #E5854F;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif; --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(18px, 4vw, 40px); --radius: 22px; --radius-sm: 12px;
  --shadow: 0 1px 0 var(--rule), 0 30px 60px -36px rgba(14, 19, 38, 0.35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; font-weight: 450; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
.wrap { width: min(1200px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.wrap.narrow { width: min(820px, calc(100% - 2 * var(--gutter))); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; } .skip:focus { left: 8px; }

/* ---------- type ---------- */
h1, h2, h3, .display { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; font-optical-sizing: auto; margin: 0; }
h1 { font-size: clamp(40px, 6.2vw, 78px); }
h2 { font-size: clamp(30px, 3.8vw, 50px); }
h3 { font-size: clamp(21px, 2vw, 25px); line-height: 1.15; }
h2 em, h1 em { font-style: italic; font-weight: 400; color: var(--brass-deep); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--soft); font-weight: 450; max-width: 60ch; }
.eyebrow { font-family: var(--text); font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-deep); margin: 0 0 16px; }
.eyebrow.light { color: var(--brass); }
.small { font-size: 14px; color: var(--soft); }
.sec-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head .lede { margin-top: 14px; }
.entry { font-size: 18px; line-height: 1.7; }
.entry h2, .entry h3 { margin: 1.4em 0 .5em; }
.entry img { border-radius: var(--radius-sm); }
.entry blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 3px solid var(--brass); font-family: var(--display); font-size: 1.25em; font-style: italic; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent; font-family: var(--text); font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-accent { background: var(--brass); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(201, 162, 74, .9); }
.btn-accent:hover { background: #D8B25C; }
.btn-dark { background: var(--navy); color: #fff; box-shadow: 0 12px 24px -14px rgba(20, 33, 61, .8); }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); } .btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); } .btn-ghost-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.actions.center { justify-content: center; margin-top: 44px; }

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, color .3s; color: var(--ink); }
.site-head::before { content: ""; position: absolute; inset: 0; background: rgba(252, 250, 246, 0); backdrop-filter: blur(0); transition: background .3s, backdrop-filter .3s; z-index: -1; }
.is-front .site-head { color: #fff; }
.site-head.scrolled { color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.site-head.scrolled::before { background: rgba(252, 250, 246, .86); backdrop-filter: blur(14px); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.logo-svg { height: 26px; width: auto; display: block; } .logo-img { height: 34px; width: auto; display: block; filter: brightness(0); }
.is-front .site-head:not(.scrolled) .logo-img, .site-foot .logo-img { filter: brightness(0) invert(1); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.site-nav .menu a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .85; position: relative; padding: 6px 0; }
.site-nav .menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brass); transition: right .3s var(--ease); }
.site-nav .menu a:hover::after, .site-nav .menu .current-menu-item a::after, .site-nav .menu .current_page_parent a::after { right: 0; }
.site-nav .menu a:hover { opacity: 1; }
.nav-cta .btn { padding: 11px 18px; font-size: 14px; }
.nav-toggle { display: none; appearance: none; background: transparent; border: 1.5px solid currentColor; border-radius: 999px; color: inherit; padding: 8px 14px; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; cursor: pointer; }
.nav-toggle .bar { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; display: inline-block; }
.site-main { min-height: 60vh; }
.is-inner .site-main { padding-top: 76px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: calc(76px + clamp(56px, 9vw, 120px)) 0 clamp(48px, 6vw, 80px); isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 500px at 70% 110%, rgba(14,19,38,.0), rgba(14,19,38,.55)), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); pointer-events: none; z-index: -1; }
.aurora { position: absolute; inset: -20% -10%; z-index: -2; filter: blur(70px); opacity: .9; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s var(--ease) infinite alternate; }
.aurora i:nth-child(1) { width: 55vw; height: 55vw; left: -10%; top: -20%; background: radial-gradient(circle, rgba(127,176,224,.55), rgba(127,176,224,0) 60%); }
.aurora i:nth-child(2) { width: 50vw; height: 50vw; right: -5%; top: 10%; background: radial-gradient(circle, rgba(201,162,74,.45), rgba(201,162,74,0) 60%); animation-duration: 28s; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 45vw; height: 45vw; left: 35%; bottom: -30%; background: radial-gradient(circle, rgba(139,124,201,.5), rgba(139,124,201,0) 60%); animation-duration: 25s; animation-delay: -15s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, -4vw) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { color: #fff; text-wrap: balance; }
.hero .lede { color: rgba(255,255,255,.78); margin-top: 22px; }
.hero .lede a { color: #fff; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1.5px; text-underline-offset: 4px; } .hero .lede a:hover { color: var(--brass); }
.hero-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.float-book { position: relative; width: min(360px, 78%); aspect-ratio: 1; animation: hover 7s ease-in-out infinite; }
.float-book .book3d { --d: 30px; --ry: -24deg; --rx: -5deg; }
.float-book .book3d-cover { box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 50px 80px -30px rgba(0,0,0,.75), 0 0 140px -20px rgba(201,162,74,.35); }
.float-book .book3d-shadow { background: rgba(0,0,0,.6); }
.float-book .chip { position: absolute; top: -14px; right: -10px; background: var(--brass); color: var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; box-shadow: 0 10px 20px -10px rgba(0,0,0,.6); transform: rotate(6deg); }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- a book, as an object: cover, page block, top edge, shadow ---------- */
.book3d { --d: 24px; --ry: -18deg; --rx: 0deg; --r: 7px; position: relative; width: 100%; aspect-ratio: 1; perspective: 1500px; perspective-origin: 50% 40%; }
.book3d-in { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); }
.book3d i { position: absolute; display: block; }
.book3d-cover, .book3d-pages, .book3d-top { backface-visibility: hidden; }
.book3d-cover { position: absolute; inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px var(--r) var(--r) 2px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset, 0 30px 50px -28px rgba(14,19,38,.6); }
.book3d-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book3d-cover::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background:
  linear-gradient(90deg, rgba(0,0,0,.30) 0, rgba(0,0,0,.10) 1.2%, rgba(255,255,255,.22) 2.6%, rgba(0,0,0,.14) 4.6%, rgba(0,0,0,.04) 7%, rgba(0,0,0,0) 10%),
  linear-gradient(112deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 28%, rgba(255,255,255,0) 46%); }
.book3d-pages { top: 1.6%; bottom: 1.6%; left: calc(100% - 0.6% - var(--d) / 2); width: var(--d); transform: rotateY(90deg); background:
  linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 85%, rgba(0,0,0,.12) 100%),
  repeating-linear-gradient(90deg, #FBF7EF 0 2px, #E3DBCB 2px 3px); }
.book3d-top { left: 0; right: 0.6%; top: calc(1.6% - var(--d) / 2); height: var(--d); transform: rotateX(90deg); background:
  linear-gradient(180deg, rgba(0,0,0,.10) 0, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.26) 100%),
  repeating-linear-gradient(180deg, #FBF7EF 0 2px, #E3DBCB 2px 3px); }
.book3d-shadow { left: 6%; right: -2%; bottom: -9%; height: 16%; border-radius: 50%; background: rgba(14,19,38,.38); filter: blur(16px); z-index: -1; }
.book3d .no-cover { display: grid; place-items: center; height: 100%; background: var(--paper); font-family: var(--display); font-size: 22px; padding: 20px; text-align: center; }
/* a book that has no cover yet: a designed placeholder in the book's own tint */
.cover-soon { --tint: #7FB0E0; position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 7% 8%; color: var(--ink); text-align: left;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.55), rgba(255,255,255,0) 55%), linear-gradient(160deg, color-mix(in srgb, var(--tint) 55%, #fff) 0%, color-mix(in srgb, var(--tint) 85%, #fff) 60%, var(--tint) 100%); }
@supports not (color: color-mix(in srgb, red, blue)) { .cover-soon { background: var(--tint); } }
.cover-soon .cs-top { display: grid; gap: 3px; padding-right: 30%; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.cover-soon .cs-title { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.cover-soon .cs-foot { display: flex; justify-content: flex-end; } .cover-soon .cs-foot .mark-svg { width: 11%; min-width: 22px; opacity: .55; }
.book-cover-big .cover-soon .cs-title { font-size: clamp(28px, 3.4vw, 46px); } .book-cover-big .cover-soon .cs-top { font-size: 13px; }
.book-cover .chip.soon { background: var(--ink); color: #fff; }
.is-soon .book-cover .book3d-cover { box-shadow: 0 0 0 1px rgba(0,0,0,.06) inset, 0 22px 36px -26px rgba(14,19,38,.45); }
.downloads .card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 18px; box-shadow: 0 18px 30px -22px rgba(14,19,38,.5); }
.downloads .logo-tile { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--paper); margin-bottom: 18px; padding: 18%; } .downloads .logo-tile img { width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: auto; object-fit: contain; margin: 0; box-shadow: none; border-radius: 0; }
.soon-note { font-size: 15px; color: var(--soft); margin: 18px 0 0; } .soon-note a { color: var(--navy); font-weight: 700; text-decoration: none; }
.catalog + .catalog { padding-top: 0; } .catalog.alt { padding-top: clamp(56px, 8vw, 96px); }
/* the "what is next" list on the home page */
.soon-list { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.soon-list .eyebrow { margin-bottom: 10px; }
.soon-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.soon-list a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; }
.soon-list a:hover { color: var(--navy); }
.soon-list .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--rule); font-family: var(--display); font-style: italic; font-size: 14px; color: var(--brass-deep); flex: none; }
@media (prefers-reduced-motion: reduce) { .float-book { animation: none; } }
.orbit { position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); z-index: -1; display: grid; place-items: start center; }
.orbit .mark-svg { width: 34px; color: rgba(255,255,255,.55); transform: translateY(-17px); }
.hero-strip { margin-top: clamp(40px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--rule-light); display: flex; gap: 10px 32px; flex-wrap: wrap; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec.alt { background: var(--paper); }
.page-hero { padding: calc(clamp(48px, 7vw, 96px)) 0 clamp(24px, 4vw, 48px); }
.page-hero h1 { text-wrap: balance; }
.page-hero .lede { margin-top: 18px; }
.page-hero + .sec { padding-top: clamp(24px, 4vw, 48px); }
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: block; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .num { display: block; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 20px; color: var(--brass-deep); margin-bottom: 18px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--soft); margin: 0; font-size: 16px; }
.card .more { display: inline-block; margin-top: 18px; font-weight: 700; font-size: 14px; color: var(--navy); }
.card.post-card img { border-radius: 14px; aspect-ratio: 3/2; object-fit: cover; margin-bottom: 18px; }
.card .date { display: block; font-size: 13px; font-weight: 700; color: var(--mute); margin-bottom: 8px; letter-spacing: .06em; text-transform: uppercase; }

/* featured series */
.feature { background: var(--paper); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature-art img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.feature-copy h2 { font-style: italic; font-weight: 400; font-size: clamp(40px, 5vw, 64px); margin-bottom: 18px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 28px 0 0; border-top: 1px solid var(--rule); }
.steps .step-n { position: absolute; top: -17px; left: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--brass); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.steps h3 { font-size: 20px; margin: 8px 0 8px; }
.steps p { color: var(--soft); font-size: 16px; margin: 0; }

/* band */
.band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 400px at 85% 120%, rgba(201,162,74,.28), transparent 60%), radial-gradient(700px 400px at 10% -20%, rgba(127,176,224,.25), transparent 60%); pointer-events: none; }
.band-in { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: center; }
.band h2 { color: #fff; }
.band .lede { color: rgba(255,255,255,.72); }
.band .actions { justify-content: flex-end; margin-top: 0; }

/* two columns */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: start; }
.story p { font-size: 18px; line-height: 1.7; }
.story h2 { margin-bottom: 20px; }
.story-art img { border-radius: var(--radius); box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; font-size: 17px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--brass-soft); box-shadow: inset 0 0 0 2px var(--brass); }
.check-list li::after { content: ""; position: absolute; left: 7px; top: 11px; width: 5px; height: 9px; border: solid var(--brass-deep); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.faq { margin: 0; }
.faq dt { font-family: var(--display); font-size: 21px; font-weight: 500; margin-top: 22px; }
.faq dd { margin: 8px 0 0; color: var(--soft); }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; }
.facts dt { font-weight: 700; color: var(--soft); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; }
.facts.inline { grid-template-columns: auto auto auto; gap: 4px 28px; margin: 22px 0 6px; }
.facts.inline dt { grid-row: 1; } .facts.inline dd { grid-row: 2; font-weight: 600; }
.person h3 { margin-bottom: 2px; } .person .role { color: var(--brass-deep); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }

/* contact */
.form { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.form label { display: grid; gap: 8px; font-weight: 700; font-size: 14px; }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--rule); border-radius: var(--radius-sm); background: var(--cream); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(20,33,61,.12); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .actions { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 18px; }
.notice.ok { background: #E4F1E6; color: #1E5A2B; } .notice.bad { background: #FBE7DC; color: #8A3A12; }
.contact-aside h3 { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-family: var(--text); color: var(--brass-deep); margin: 26px 0 6px; } .contact-aside h3:first-child { margin-top: 8px; }
.contact-aside p { color: var(--soft); }
.big-link { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--brass); }

/* books */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.book-card { display: block; text-decoration: none; color: inherit; }
.book-cover { position: relative; aspect-ratio: 1; margin: 6px 0 22px; padding-right: 6%; }
.book-cover .book3d { --d: 22px; --ry: -18deg; transition: transform .45s var(--ease); }
.book-card:hover .book-cover .book3d { --ry: -27deg; transform: translateY(-6px); }
.book-cover .chip, .float-book .chip { z-index: 3; }
.book-cover .chip { position: absolute; top: -8px; right: 2%; transform: rotate(4deg); background: var(--brass); color: var(--ink); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.series-name { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 6px; }
.book-card h3 { margin-bottom: 4px; }
.book-card .ages { display: block; font-size: 13px; color: var(--mute); font-weight: 700; margin-bottom: 8px; }
.book-card p { color: var(--soft); font-size: 15px; margin: 0; }
.book-grid-single { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.book-cover-big { padding: 24px 10% 36px 2%; }
.book-cover-big .book3d { --d: 34px; --ry: -22deg; --rx: -4deg; --r: 10px; }
.book-cover-big .book3d-cover { box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset, 0 50px 80px -34px rgba(14,19,38,.6); }
.book-copy h1 { font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 12px; }
.book-copy .entry { margin-top: 20px; }
.stores { margin-top: 22px; }

/* journal */
.post-hero-img img { border-radius: var(--radius); margin-bottom: 36px; }
.post-nav { margin-top: 48px; font-weight: 700; }
.pagination { margin-top: 40px; } .pagination .nav-links { display: flex; gap: 8px; } .pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; } .pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: rgba(255,255,255,.78); padding: clamp(56px, 8vw, 96px) 0 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
.foot-logo { height: 28px; width: auto; color: #fff; }
.foot-line { margin: 18px 0 22px; font-family: var(--display); font-style: italic; font-size: 21px; color: #fff; max-width: 32ch; }
.foot-col h4 { margin: 0 0 14px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.foot-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: #fff; text-decoration: none; } .foot-col a:hover { color: var(--brass); }
.foot-col p { margin: 0 0 8px; }
.foot-social { display: flex; gap: 16px; margin-top: 10px; }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--rule-light); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.5); }
.foot-base a { color: inherit; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- the assistant ---------- */
.assistant-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 16px 36px -14px rgba(14,19,38,.7), 0 0 0 1px rgba(255,255,255,.08); transition: transform .25s var(--ease), background .25s; }
.assistant-fab:hover { transform: translateY(-2px); background: var(--navy-2); }
.fab-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--brass); color: var(--ink); display: grid; place-items: center; } .fab-mark .mark-svg { width: 14px; }
.assistant-open .assistant-fab { display: none; }
.assistant-panel { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: min(420px, calc(100vw - 24px)); height: min(680px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--cream); border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(14,19,38,.6), 0 0 0 1px var(--rule); overflow: hidden; animation: panel .3s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.assistant-panel[hidden] { display: none; }
.assistant-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: #fff; }
.assistant-head b { display: block; font-size: 15px; } .assistant-head small { display: block; font-size: 12px; opacity: .7; }
.assistant-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brass); color: var(--ink); display: grid; place-items: center; flex: 0 0 auto; } .assistant-avatar .mark-svg { width: 15px; }
.assistant-end { margin-left: auto; appearance: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); color: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; } .assistant-end:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.assistant-end[hidden] { display: none; } .assistant-end + .assistant-close { margin-left: 0; }
.assistant-close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; } .assistant-close:hover { background: rgba(255,255,255,.2); }
.assistant-view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.thread { flex: 1; min-height: 0; overflow: auto; padding: 18px 16px 8px; display: grid; gap: 12px; align-content: start; scroll-behavior: smooth; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; }
.msg.me { margin-left: auto; flex-direction: row-reverse; }
.msg-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--brass); color: var(--ink); display: grid; place-items: center; flex: 0 0 auto; } .msg-avatar .mark-svg { width: 10px; }
.msg-body { background: var(--white); border: 1px solid var(--rule); border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: 15px; line-height: 1.5; }
.msg.me .msg-body { background: var(--navy); color: #fff; border-color: transparent; border-radius: 16px 16px 4px 16px; }
.msg-body p { margin: 0; } .msg-body p + p { margin-top: 8px; }
.dots { display: inline-flex; gap: 4px; padding: 4px 2px; } .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); animation: blink 1.2s infinite; } .dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.sent-tag { font-size: 12.5px; font-weight: 700; color: #1E5A2B; margin: 0; } .chat-error { font-size: 13px; color: #8A3A12; margin: 0; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 10px; }
.chip-btn { border: 1.5px solid var(--rule); background: var(--white); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); transition: border-color .2s, background .2s; } .chip-btn:hover { border-color: var(--navy); background: var(--paper); }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 6px; border-top: 1px solid var(--rule); background: var(--white); }
.composer textarea { flex: 1; resize: none; font: inherit; font-size: 15px; line-height: 1.4; padding: 11px 14px; border: 1.5px solid var(--rule); border-radius: 18px; background: var(--cream); color: var(--ink); max-height: 140px; } .composer textarea:focus { outline: none; border-color: var(--navy); }
.send-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brass); color: var(--ink); font-size: 20px; font-weight: 800; cursor: pointer; flex: 0 0 auto; } .send-btn:disabled { opacity: .5; cursor: default; }
.disclosure { margin: 0; padding: 4px 16px 12px; font-size: 11.5px; color: var(--mute); background: var(--white); }
.chip-btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-btn.next { background: var(--brass); border-color: var(--brass); color: var(--ink); } .chip-btn.next:disabled { opacity: .45; cursor: default; }
.linklike { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }
/* the embedded copy on the Publish page */
.assistant-embedded { display: flex; flex-direction: column; height: 620px; background: var(--cream); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.assistant-embedded .thread { padding: 24px 24px 12px; }
.assistant-embedded .msg { max-width: 80%; }
.assistant-embedded .composer, .assistant-embedded .chips, .assistant-embedded .disclosure { padding-left: 24px; padding-right: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; } .orbit { display: none; } .hero-art { min-height: 300px; margin-top: 10px; } .float-book { width: min(300px, 70%); }
  .cards.three { grid-template-columns: 1fr 1fr; } .steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .feature-grid, .two-col, .book-grid-single, .band-in { grid-template-columns: 1fr; } .band .actions { justify-content: flex-start; margin-top: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 76px 0 0 0; background: var(--cream); color: var(--ink); flex-direction: column; align-items: flex-start; padding: 24px var(--gutter); gap: 18px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; overflow: auto; }
  .nav-open .site-nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav-open .site-head { color: var(--ink); } .nav-open .site-head::before { background: var(--cream); } .nav-open .site-head .logo-img { filter: brightness(0); }
  .site-nav .menu { flex-direction: column; gap: 6px; } .site-nav .menu a { font-family: var(--display); font-size: 30px; font-weight: 500; opacity: 1; }
  .nav-cta { margin-top: 10px; } .nav-cta .btn { padding: 14px 22px; font-size: 16px; }
  .cards.three, .steps { grid-template-columns: 1fr; } .form .row { grid-template-columns: 1fr; }
  .hero { padding-top: calc(76px + 40px); } .hero-strip { gap: 8px 18px; font-size: 11.5px; }
  .foot-grid { grid-template-columns: 1fr; }
  .assistant-fab .fab-label { display: none; } .assistant-fab { padding: 8px; }
  .assistant-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .assistant-embedded { height: 70vh; }
  .facts { grid-template-columns: 1fr; gap: 2px 0; } .facts dt { margin-top: 10px; }
}
