/* Inner pages share the landing page's tokens, wordmark, and reading rhythm. */
:root { color-scheme:light; --surface:#f0f5fc; --border:var(--line); }
.site-page { min-height:100vh; display:flex; flex-direction:column; }
.site-main { flex:1; padding-block:64px 80px; }
.site-main h1 { font-size:clamp(38px,5vw,60px); letter-spacing:-1.8px; margin-bottom:20px; line-height:1.12; }
.site-main h2 { font-size:32px; letter-spacing:-.8px; line-height:1.2; }
.site-main h3 { font-size:17px; letter-spacing:0; }
.site-main p { color:var(--muted); }
.site-main a:not(.button) { text-decoration:underline; text-underline-offset:4px; }
.site-main .eyebrow { color:var(--accent); margin-bottom:18px; }
.site-main .actions { justify-content:flex-start; flex-wrap:wrap; gap:16px; margin-block:24px; }
.site-main button { font-family:inherit; cursor:pointer; }
.site-main button:not(.secondary-button):not(.text-button) { display:inline-flex; align-items:center; justify-content:center; padding:14px 23px; border:1px solid transparent; border-radius:5px; color:white; background:var(--accent); font-size:14px; font-weight:600; }
.site-main button:hover:not(:disabled) { filter:brightness(.92); }
.site-main button:disabled { opacity:.55; cursor:not-allowed; }
.site-main label { display:block; font-size:14px; font-weight:600; margin-bottom:8px; }
.site-main input:not([type=hidden]) { width:100%; min-height:50px; border:1px solid #8d99aa; border-radius:5px; padding:12px 14px; font:inherit; background:white; color:var(--ink); }
.site-main .button { font-size:14px; text-align:center; min-height:48px; }
.secondary-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 16px; border:1px solid #9cacc4; border-radius:5px; color:var(--accent); background:white; font:600 14px/1.5 var(--sans); text-decoration:none!important; }
.text-button { padding:6px 0; border:0; background:none; color:var(--muted); text-decoration:underline; text-underline-offset:4px; font-size:14px; }
.page-heading { max-width:760px; margin-bottom:36px; }
.page-heading>p:not(.eyebrow) { max-width:630px; font-size:17px; }
.panel { padding:32px; border:1px solid var(--line); border-radius:10px; background:white; }
.panel-soft { background:var(--surface); border-color:var(--surface); }
.panel h2 { margin-bottom:16px; }
.panel p:last-child { margin-bottom:0; }
.panel-label { color:var(--accent)!important; font-size:11px; font-weight:650; text-transform:uppercase; letter-spacing:1.7px; }
.notice { background:var(--surface); border-left:3px solid var(--accent); padding:14px 18px; margin-block:24px; font-size:14px; }
.auth-layout { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:start; max-width:980px; margin:12px auto 24px; }
.auth-layout h1 { max-width:460px; }
.auth-layout .intro { max-width:420px; font-size:17px; }
.auth-form { margin-top:24px; }
.auth-form button { width:100%; }
.auth-form .actions { margin-bottom:12px; }
.auth-note { font-size:13px; margin-top:20px; }
.status-mark { display:grid; place-items:center; width:48px; height:48px; background:var(--surface); color:var(--accent); border-radius:12px; font-size:24px; margin-bottom:24px; }
.account-email { overflow-wrap:anywhere; }
.account-layout { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:24px; align-items:start; }
.account-stack { display:grid; gap:24px; }
.account-layout .actions { margin-bottom:0; }
.access-status { color:var(--accent)!important; font-size:13px; font-weight:600; }
.account-layout .panel h2 { font-size:28px; }
.account-layout .panel p { font-size:14px; }
.account-signout { margin-top:24px; }
.key { display:block; font:16px/1.8 ui-monospace,monospace; border:1px solid #9cacc4; background:var(--surface); border-radius:6px; padding:20px; overflow-wrap:anywhere; user-select:all; color:var(--ink); }
.license-layout { max-width:760px; margin-inline:auto; }
.key-help { font-size:14px; }
.purchase-summary { max-width:900px; margin-inline:auto; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:64px; align-items:start; }
.purchase-summary h2 { font-size:28px; }
.purchase-summary button { width:100%; }
.purchase-summary .fine { margin-block:20px; font-size:13px; }
.checkout-return { max-width:920px; margin:auto; }
.welcome { text-align:center; padding:0 0 40px; }
.welcome-mark { display:grid; place-items:center; width:64px; height:64px; margin:0 auto 24px; border:1px solid #d7e3f6; border-radius:50%; background:var(--surface); color:var(--accent); font-size:32px; }
.welcome-copy { max-width:530px; margin:0 auto 22px; font-size:18px; }
.payment-status { font-size:14px; margin-bottom:24px; overflow-wrap:anywhere; }
.payment-status span { padding-inline:7px; }
.download-button span { margin-left:8px; }
.download-detail { max-width:560px; margin:14px auto 0; font-size:13px; }
.setup { border:1px solid var(--line); border-radius:10px; padding:32px; }
.setup-heading h2 { font-size:30px; margin-bottom:28px; }
.setup-steps { counter-reset:setup; list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; padding:0; margin:0; }
.setup-steps li { counter-increment:setup; }
.setup-steps li::before { content:counter(setup); display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--surface); color:var(--accent); font-size:13px; font-weight:650; margin-bottom:16px; }
.setup-steps p { font-size:14px; }
.welcome-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; margin-top:28px; font-size:14px; color:var(--muted); }
.library-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.book-card { display:flex; flex-direction:column; }
.book-card h2 { font-size:30px; }
.book-card .book-description { flex:1; }
.book-card .book-meta { margin-bottom:24px; font-size:13px; }
.book-card .actions { margin:0; }
.breadcrumb { font-size:13px; margin-bottom:28px; }
.book-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:40px; align-items:start; }
.book-layout .panel h2 { font-size:26px; }
.commit-list { padding:0; list-style:none; }
.commit { border-top:1px solid var(--line); padding:24px 0; }
.commit h3 { margin-bottom:8px; }
.commit p { font-size:13px; }
.commit .actions { margin:12px 0 0; }
.commit .actions a { font-size:13px; }
.repo-link { overflow-wrap:anywhere; font-size:13px; }
.export-links { display:grid; gap:12px; }
.reader-hero { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; padding-block:12px 64px; }
.reader-hero .intro { font-size:18px; }
.reader-preview { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:32px; }
.reader-preview h2 { font-size:28px; }
.reader-book { display:flex; gap:18px; padding:20px 0; border-top:1px solid #d5dfed; align-items:center; }
.reader-book p { margin:0; font-size:13px; }
.reader-cover { width:46px; height:64px; flex-shrink:0; background:#455b86; border-radius:2px 5px 5px 2px; box-shadow:inset 4px 0 #ffffff20; }
.reader-cover.violet { background:#79648f; }.reader-cover.green { background:#446e67; }
.reader-features { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px 48px; padding-block:48px; border-block:1px solid var(--line); }
.reader-features p { font-size:15px; }
.reader-cta { padding-top:56px; max-width:680px; }
@media (prefers-reduced-motion:no-preference) { .welcome-mark { animation:welcome-arrive .45s ease-out; } @keyframes welcome-arrive { from { opacity:0; transform:translateY(6px) scale(.92); } to { opacity:1; transform:none; } } }
@media (max-width:800px) { .site-main { padding-block:44px 56px; }.auth-layout,.purchase-summary,.reader-hero { grid-template-columns:1fr; gap:32px; }.auth-layout { max-width:560px; }.auth-layout h1 { max-width:none; }.account-layout,.book-layout { grid-template-columns:1fr; }.book-layout aside { grid-row:1; }.reader-hero { max-width:640px; margin:auto; }.reader-hero h1 { max-width:550px; } }
@media (max-width:600px) { .site-main h1 { font-size:40px; letter-spacing:-1.2px; }.site-main h2 { font-size:28px; }.panel,.setup,.reader-preview { padding:24px; }.site-main .actions { align-items:stretch; flex-direction:column; }.site-main .actions>* { width:100%; }.site-main .actions button { width:100%; }.library-grid,.reader-features,.setup-steps { grid-template-columns:1fr; }.setup-steps { gap:28px; }.setup-steps li { position:relative; padding-left:42px; }.setup-steps li::before { position:absolute; left:0; top:0; }.welcome-footer { flex-direction:column; }.reader-hero { padding-bottom:40px; }.reader-features { gap:20px; }.download-button { width:100%; }.site-main .commit .actions { flex-direction:row; gap:24px; }.site-main .commit .actions>* { width:auto; } }
.site-page .nav { gap:20px; flex-wrap:wrap; }
.site-main :is(.panel,.page-heading,.auth-layout>div,.reader-hero>div) { min-width:0; overflow-wrap:anywhere; }
.site-main .auth-layout h1 { font-size:clamp(38px,4.3vw,54px); }
.site-main button { gap:16px; }
.key-help { margin-top:16px; }
.reader-preview { margin:0; }
.purchase-summary .page-heading { margin-bottom:0; }
.purchase-summary .page-heading .fine { font-size:13px; }
.reference-page { max-width:68ch; margin-inline:auto; }
.reference-page .page-heading { margin-bottom:32px; }
.reference-page .page-heading .fine { font-size:13px; }
.reference-section { padding-block:24px; border-top:1px solid var(--line); }
.reference-section h2 { font-size:26px; margin-bottom:12px; }
.reference-section p:last-child { margin-bottom:0; }
.reference-links { display:flex; flex-wrap:wrap; gap:8px 20px; padding:0; margin:0 0 28px; list-style:none; }
