/* Self-hosted fonts (11-08 SEO/performance pass): same Google Fonts files (latin subset, variable
   weights, SIL Open Font License), served from /fonts/ so no third-party request blocks rendering.
   build_site.js puts this at the top of /site.css and /news/news.css. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/cormorant-garamond-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400 600; font-display: swap; src: url(/fonts/cormorant-garamond-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/source-sans-3-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Kids' Book Good News: same tokens, fonts and washes as the jimmy-bear.com home page (src/styles.css). */
:root {
  --background: oklch(0.951 0.024 88);
  --paper: oklch(0.973 0.017 90);
  --paper-deep: oklch(0.918 0.031 85);
  --foreground: oklch(0.33 0.042 55);
  --ink-soft: oklch(0.47 0.038 55);
  --primary: oklch(0.63 0.107 62);
  /* 11-10 a11y: same amber, deep enough for text, hover and focus rings (WCAG 2.2 AA) */
  --primary-ink: oklch(0.48 0.1 60);
  --secondary: oklch(0.915 0.03 84);
  --secondary-foreground: oklch(0.37 0.042 55);
  --border: oklch(0.868 0.03 82);
  --amber-warm: oklch(0.8 0.108 76);
  --dusty-blue: oklch(0.66 0.058 245);
  --sage: oklch(0.7 0.049 145);
  --plum: oklch(0.68 0.068 310);
  --radius: 1rem;
  --font-display: "Cormorant Garamond", "Playfair Display", ui-serif, Georgia, serif;
  --font-sans: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --wash-warm:
    radial-gradient(110% 80% at 12% 10%, color-mix(in oklab, var(--amber-warm) 38%, transparent), transparent 62%),
    radial-gradient(95% 70% at 88% 6%, color-mix(in oklab, var(--plum) 24%, transparent), transparent 60%),
    radial-gradient(120% 90% at 55% 108%, color-mix(in oklab, var(--dusty-blue) 22%, transparent), transparent 66%);
  --wash-soft:
    radial-gradient(90% 70% at 82% 18%, color-mix(in oklab, var(--sage) 22%, transparent), transparent 66%),
    radial-gradient(85% 65% at 8% 88%, color-mix(in oklab, var(--amber-warm) 24%, transparent), transparent 66%);
  --shadow-glow: 0 22px 60px -34px color-mix(in oklab, var(--primary) 40%, transparent);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
a { color: var(--foreground); text-decoration-color: color-mix(in oklab, var(--primary) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--primary-ink); }
a:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; border-radius: 999px; z-index: 10; }
/* 11-10 a11y: screen-reader-only text (e.g. "opens in a new tab") */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 11-10 a11y: 24px+ tap targets (WCAG 2.5.8) via padding + equal negative margin, so nothing moves */
.nav a, .crumbs a, .site-footer .small a { display: inline-block; padding: .3rem 0; margin: -.3rem 0; }
.wrap { max-width: 50rem; margin: 0 auto; padding: 0 1.25rem; }
.wash-warm { background-image: var(--wash-warm); }

.site-header { border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; flex-wrap: wrap; }
.wordmark { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; text-decoration: none; color: var(--foreground); }
.nav { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.nav a[aria-current] { color: var(--primary-ink); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0 0; padding: 0; font-size: .85rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "\203A"; margin-right: .4rem; }
.crumbs a { color: var(--ink-soft); }

.intro { text-align: center; padding: 2.5rem 0 1.5rem; }
.intro h1 { font-size: clamp(2.5rem, 7vw, 3.75rem); margin: .25rem 0 .5rem; }
.kicker { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 38rem; margin: 1rem auto 0; }
.meta { color: var(--ink-soft); font-size: .95rem; margin: .25rem 0 0; }

.soft-card {
  border-radius: calc(var(--radius) + 12px);
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  background-color: color-mix(in oklab, var(--paper) 88%, transparent);
  background-image: var(--wash-soft);
  box-shadow: var(--shadow-glow);
  padding: 1.5rem 1.6rem;
}
.issue-list, .stories { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.issue-list h2 { font-size: 1.75rem; margin: 0; }
.issue-list h2 a { text-decoration: none; }
.issue-list p { margin: .5rem 0 0; }
.stories h2 { font-size: 1.85rem; margin: .35rem 0 .6rem; }
.stories p { margin: 0; }
.tag { display: inline-block; border-radius: 999px; background: var(--secondary); color: var(--secondary-foreground); padding: .2rem .75rem; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.stories .source { margin-top: .9rem; font-size: .95rem; color: var(--ink-soft); }
.more { color: var(--ink-soft); font-size: .95rem; margin: 2rem 0 0; text-align: center; }

.site-footer { border-top: 1px solid var(--border); margin-top: 4rem; padding: 3.5rem 1.25rem; text-align: center; }
.site-footer .small { margin: 0; font-size: .875rem; color: var(--ink-soft); }
.site-footer .motto { margin: .75rem 0 0; font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--primary-ink); }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) { a:focus-visible { outline-color: Highlight; } }

@media (max-width: 480px) {
  .soft-card { padding: 1.25rem; }
  .stories h2 { font-size: 1.6rem; }
}
