@font-face { font-family: 'Work Sans'; src: url('/fonts/WorkSans.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face {
  font-family: Newsreader;
  src: url('/fonts/Newsreader.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #faf7f1;
  --surface: #fff;
  --ink: #1f1a17;
  --secondary: #4a423b;
  --muted: #6b6259;
  --line: #e7e0d5;
  --accent: #2f5340;
  --fill: #efe9df;
  --on: #fff;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Work Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
h1, h2, h3, .brand { font-family: Newsreader, Georgia, serif; font-weight: 500; letter-spacing: -.015em; color: var(--ink); overflow-wrap: anywhere; }
h1 { font-size: 2.875rem; line-height: 1.1; margin: 0 0 24px; }
h2 { font-size: 1.625rem; line-height: 1.25; margin: 0 0 18px; }
h3 { font-size: 1.375rem; line-height: 1.3; margin: 0 0 10px; }
p { max-width: 74ch; color: var(--secondary); overflow-wrap: anywhere; }
li { overflow-wrap: anywhere; }
main { max-width: 1120px; margin: auto; padding: 48px 48px 64px; min-height: 65vh; }
section { margin: 40px 0; scroll-margin-top: 24px; }
.site-header { display: flex; align-items: center; gap: 28px; min-height: 72px; padding: 10px 48px; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 1.375rem; line-height: 1.3; text-decoration: none; }
.brand svg { flex: 0 0 26px; color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 6px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.site-header nav { margin-left: auto; }
.site-header nav a { padding: 0 12px; color: var(--secondary); font-size: .9375rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on); font: 600 .9375rem/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Work Sans', sans-serif; text-decoration: none; text-align: center; }
.button-secondary { background: var(--fill); color: var(--accent); }
.lede { color: var(--secondary); font-size: 1.1875rem; line-height: 1.55; margin: 0 0 24px; }
.eyebrow { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.muted, small, .note { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0; }
.actions small { flex-basis: 100%; }
.hero { display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 56px; align-items: center; margin: 24px 0 56px; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 22px; }
.bookshelf-preview { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.hero .actions { margin: 0; gap: 12px 20px; }
.hero .actions > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.button-large { min-height: 52px; padding-inline: 22px; font-size: 1.0625rem; }
figure.bookshelf-preview { margin: 0; }
.hero-shelf { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px; padding: 26px 32px 12px; }
.book { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 92px; flex: 0 1 92px; min-width: 0; height: 138px; padding: 12px 9px; font: 1rem/1.15 Newsreader, Georgia, serif; color: #fff; border-radius: 2px 4px 4px 2px; box-shadow: 2px 4px 8px #1f1a1747; }
.book small { font: .75rem/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Work Sans', sans-serif; letter-spacing: .03em; text-transform: uppercase; color: inherit; }
.book span { display: block; }
.book i { width: 20px; border-top: 1px solid #fff6; }
.book.one { background: #b99b62; color: #302b21; }
.book.two { background: #3e5a66; height: 142px; }
.book.three { background: #596a47; height: 140px; }
.book img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.plank { position: absolute; bottom: 0; left: 0; right: 0; height: 12px; background: #c19062; box-shadow: inset 0 2px #d9a978, inset 0 -3px #9b6b40; }
.preview-caption { display: flex; align-items: flex-start; gap: 10px; padding: 18px 26px 22px; font-size: 1rem; line-height: 1.4; }
.preview-caption p { color: var(--muted); margin: 4px 0 0; font-size: .875rem; }
.preview-check { display: grid; place-items: center; flex: 0 0 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: #2f7a4b; color: #fff; font-size: 13px; }
.home-steps { margin: 0 0 56px; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; list-style: none; padding: 0; margin: 20px 0 0; counter-reset: step; }
.steps li { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); counter-increment: step; }
.steps h3 { font: 600 1.125rem/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Work Sans', sans-serif; letter-spacing: 0; }
.steps h3::before { content: counter(step) '. '; }
.steps p { margin: 0; font-size: 1rem; line-height: 1.6; }
.home-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 0; align-items: start; }
.public-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-width: 0; }
.home-details h2 { font-size: 1.375rem; margin-bottom: 12px; }
.home-details .note { margin-bottom: 12px; }
.home-details>.public-card>a { display: inline-flex; align-items: center; min-height: 44px; }
.country-guides, .feature-list { list-style: none; padding: 0; margin: 0; }
.country-guides li, .feature-list li { border-bottom: 1px solid var(--line); }
.country-guides li:last-child, .feature-list li:last-child { border-bottom: 0; }
.country-guides a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); text-decoration: none; }
.country-guides a span:last-child { color: var(--muted); font-size: .875rem; }
.feature-list li { position: relative; min-height: 48px; padding: 12px 0 12px 32px; font-size: 1rem; }
.feature-list li::before { content: '✓'; display: grid; place-items: center; position: absolute; left: 0; top: 15px; width: 20px; height: 20px; border-radius: 50%; background: #2f7a4b; color: #fff; font: 600 13px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Work Sans', sans-serif; }
.library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 0; list-style: none; }
.library-grid>li { min-width: 0; display: flex; flex-direction: column; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.library-grid h3 { font-size: 1.375rem; }
.library-grid h3 a { text-decoration: none; }
.library-grid p { font-size: .9375rem; }
.library-grid a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
.library-grid>li>a:last-child { margin-top: auto; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; margin-bottom: 24px; }
.breadcrumbs a { min-width: 0; }
.library-heading .lede { max-width: 64ch; }
.library-page .detail-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); align-items: start; gap: 24px; }
.detail-grid>section { min-width: 0; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.detail-grid h2 { font-size: 1.5rem; }
.detail-grid h3 { font-size: 1.2rem; }
.detail-grid p { font-size: .9375rem; }
.related-guides { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.related-guides a { display: flex; align-items: center; min-height: 44px; font-size: .9375rem; }
.columns { columns: 3; column-gap: 32px; padding-left: 20px; }
.columns li { break-inside: avoid; padding: 6px 0; }
.trust { padding: 24px; border-radius: 16px; background: var(--fill); }
.about-uses .feature-list { padding: 8px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.about-page section:not(.hero, .home-steps, .home-details) { margin: 56px 0 0; }
.about-page .maker-card p:last-child a { display: inline-flex; align-items: center; min-height: 44px; }
.article-page main { max-width: 820px; }
.article-page section { margin: 28px 0; }
.article-page h2 { margin-bottom: 12px; }
.article-page .feature-list { padding: 8px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.maker-card { display: flex; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.maker-monogram { display: grid; place-items: center; flex: 0 0 72px; height: 72px; border-radius: 50%; background: var(--fill); color: var(--accent); font: 1.5rem Newsreader, Georgia, serif; }
.maker-card > div { min-width: 0; overflow-wrap: anywhere; }
.maker-card strong { font-size: 1.125rem; }
.maker-card p { margin: 4px 0 0; font-size: .875rem; }
.prose h2 { margin-top: 32px; }
.prose p, .prose li { font-size: 1rem; line-height: 1.65; }
.prose table { width: 100%; max-width: 74ch; border-collapse: collapse; }
.prose th, .prose td {
  border-bottom: 1px solid var(--line);
  padding: 8px 12px 8px 0;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.prose th:first-child { width: 36%; }
.prose nav { display: none; }
footer { border-top: 1px solid var(--line); padding: 32px 48px 40px; background: var(--surface); color: var(--muted); font-size: .875rem; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; }
.footer-about { max-width: 420px; }
footer .brand { margin: 0 0 6px; min-height: 0; font-size: 1.125rem; }
footer p { margin: 0; color: var(--muted); }
footer nav { align-content: flex-start; gap: 8px 20px; max-width: 680px; }
footer nav a { color: var(--secondary); }
footer small { display: block; margin-top: 18px; max-width: 110ch; }
.skip { position: absolute; top: -100px; left: 20px; padding: 12px; background: var(--surface); z-index: 10; }
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h2 small { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Work Sans', sans-serif; font-weight: 400; letter-spacing: 0; }
/* Library shelves and book pages (tools/seo/shelf-pages.mjs). No motion. */
.shelf-section { margin: 32px 0 40px; }
.shelf { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 24px 20px; list-style: none; padding: 0; margin: 20px 0; }
.shelf-book { min-width: 0; }
.shelf-book p { margin: 4px 0 0; }
.shelf-link { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.shelf-link:hover .shelf-title { text-decoration: underline; }
.cover, .book-cover { display: block; width: 100%; max-width: 140px; aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 2px 4px 4px 2px; background: var(--fill); box-shadow: 2px 4px 8px #1f1a1733; }
.cover-fallback { display: flex; align-items: flex-end; padding: 12px 10px; overflow: hidden; background: #3e5a66; color: #fff; font: 1rem/1.2 Newsreader, Georgia, serif; overflow-wrap: anywhere; }
.shelf-title { font: 500 1.0625rem/1.3 Newsreader, Georgia, serif; color: var(--ink); overflow-wrap: anywhere; }
.shelf-author { font-size: .875rem; color: var(--secondary); }
.state-index h3 { margin-top: 24px; }
.state-list, .book-index, .found-list { list-style: none; padding: 0; margin: 0; }
.state-list { columns: 2; column-gap: 32px; }
.state-list li, .book-index li { break-inside: avoid; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.found-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.found-list li > div { min-width: 0; }
.found-list p { margin: 2px 0 0; }
.found-list a { display: inline-flex; align-items: center; min-height: 44px; }
.book-heading { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 32px; align-items: start; margin-bottom: 24px; }
.book-heading .book-cover { max-width: 180px; }
.book-heading h1 { margin-bottom: 12px; }
.book-page main { max-width: 960px; }
/* California library pages: popular books checked live on a reader's tap
   (tools/seo/check-pages.mjs, /library-check.js). Text only, no motion. */
[hidden] { display: none !important; }
button.button { cursor: pointer; }
.button:disabled { opacity: .6; cursor: default; }
.check-section { margin: 32px 0 40px; }
.check-all { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 16px 0 0; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 32px; list-style: none; padding: 0; margin: 12px 0 20px; }
.check-book { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 16px; align-items: start; min-width: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.check-book .cover { max-width: 72px; }
.check-body { min-width: 0; }
.check-body p { margin: 0; }
.check-body .shelf-author { margin-top: 2px; }
.check-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; }
.check-actions a, .check-catalog { display: inline-flex; align-items: center; min-height: 44px; }
.check-answer:empty { display: none; }
.check-answer { margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--line); }
.check-answer p { margin: 4px 0 0; }
.check-label { font-weight: 600; color: var(--ink); }
.check-answer .check-found { color: var(--accent); }
.check-matches { margin: 4px 0 0; padding-left: 20px; }
.check-match-author { color: var(--muted); font-size: .875rem; }
@media (max-width: 1100px) {
  .shelf { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .hero { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 32px; }
}
@media (max-width: 800px) {
  main { padding: 32px 16px 48px; }
  .site-header { padding: 10px 16px; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
  .site-header nav { display: none; }
  .site-header .brand { font-size: 1.375rem; }
  .site-header .button { padding-inline: 14px; }
  h1 { font-size: 2.25rem; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 28px; margin: 0 0 40px; }
  .hero h1 { font-size: 2.5rem; }
  .hero .lede { font-size: 1.0625rem; }
  .bookshelf-preview { max-width: 420px; width: 100%; margin: auto; }
  .hero-shelf { padding-inline: 26px; }
  .steps, .home-details, .library-grid, .library-page .detail-grid { grid-template-columns: minmax(0,1fr); }
  .home-steps { margin-bottom: 36px; }
  .library-page .detail-grid { gap: 16px; }
  .section-top, .footer-top { display: block; }
  .columns { columns: 2; }
  .shelf { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 16px; }
  .check-list { grid-template-columns: minmax(0,1fr); }
  .state-list { columns: 1; }
  .book-heading { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .book-heading .book-cover { max-width: 140px; }
  .maker-card { align-items: flex-start; padding: 20px; gap: 14px; }
  .maker-monogram { flex-basis: 48px; height: 48px; }
  footer { padding: 28px 16px 32px; }
  footer nav { margin-top: 20px; }
}
@media (max-width: 360px) {
  .site-header .brand { font-size: 1.2rem; }
  .site-header .button { font-size: .875rem; }
  .hero-shelf { gap: 12px; padding-inline: 20px; }
  .book { font-size: .9rem; }
  .columns { columns: 1; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --paper: #15120f; --surface: #1f1b17; --ink: #f1e9dc; --secondary: #d3c8b8; --muted: #b4a995; --line: #463d33; --accent: #9fd0ae; --fill: #2b2621; --on: #10261a; }
}

@media (hover: hover) and (pointer: fine) {
  .button:hover, nav a:hover { text-decoration: underline; }
}
.button:active, nav a:active { box-shadow: inset 0 0 0 2px currentColor; }
.actions a, .public-card > a, .trust > a, .support-actions a { display: inline-flex; align-items: center; min-height: 44px; }
