/* 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; }

/* jimmy-bear.com, Concept A: faithful hand-built copy of the Lovable storybook design.
   Values are the Lovable tokens (src/styles.css) and the Tailwind v4 utilities the page used,
   written out as plain CSS. Breakpoints: sm 640px, md 768px, lg 1024px. */
:root {
  --radius: 1rem;
  --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: 4.5:1 text, 3:1 ring) */
  --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);
  --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);
}

/* Reset (the parts of Tailwind preflight the page relies on) */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { background-color: var(--background); color: var(--foreground); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-size: inherit; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; }

/* Shared pieces */
.display { font-family: var(--font-display); }
.wash-warm { background-image: var(--wash-warm); }
.wash-soft { background-image: var(--wash-soft); }
.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);
}
/* Image slot: feathered vignette edges */
.slot-art {
  position: relative; overflow: hidden; width: 100%;
  border-radius: calc(var(--radius) + 12px);
  background-color: var(--paper-deep);
  background-image: var(--wash-warm);
  -webkit-mask-image: radial-gradient(115% 115% at 50% 50%, black 55%, color-mix(in srgb, black 55%, transparent) 76%, transparent 100%);
  mask-image: radial-gradient(115% 115% at 50% 50%, black 55%, color-mix(in srgb, black 55%, transparent) 76%, transparent 100%);
}
.slot-art picture { display: block; width: 100%; height: 100%; }
.slot-art img { width: 100%; height: 100%; object-fit: cover; }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-4x5 { aspect-ratio: 4 / 5; }
.r-3x4 { aspect-ratio: 3 / 4; }

.page { min-height: 100vh; }
.band { padding: 5rem 1.25rem; }
.inner-4 { max-width: 56rem; margin: 0 auto; }
.inner-5 { max-width: 64rem; margin: 0 auto; }
.inner-6 { max-width: 72rem; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.25rem; line-height: calc(2.5 / 2.25); }

/* 1. Hero */
.hero { position: relative; overflow: hidden; padding: 3.5rem 1.25rem 5rem; }
.hero-text { margin-top: 3rem; text-align: center; }
.hero h1 { font-size: 3rem; line-height: 1.05; letter-spacing: -0.025em; }
.hero .motto { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.5rem; line-height: calc(2 / 1.5); font-style: italic; color: var(--primary-ink); }
.hero .blurb { max-width: 42rem; margin: 1.5rem auto 0; font-size: 1rem; line-height: 1.625; color: var(--ink-soft); }
.scroll-cue { margin: 3.5rem auto 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--ink-soft); }
.scroll-cue .line { display: block; height: 3.5rem; width: 1px; background-image: linear-gradient(to bottom in oklab, transparent, var(--border), color-mix(in oklab, var(--primary) 60%, transparent)); }
.scroll-cue .word { font-size: .75rem; line-height: calc(1 / .75); text-transform: uppercase; letter-spacing: .3em; }

/* 2. Meet Jimmy Bear */
.meet-grid { margin-top: 3rem; display: grid; align-items: center; gap: 2.5rem; }
.meet-quote { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.625; }
.pillars { margin-top: 4rem; display: grid; gap: 1.5rem; }
.pillar { padding: 1.75rem; }
.pillar h3 { font-size: 1.5rem; line-height: calc(2 / 1.5); }
.pillar .sub { margin-top: .25rem; font-size: .875rem; line-height: calc(1.25 / .875); font-weight: 600; color: var(--ink-soft); }
.chips { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { border-radius: 9999px; background: var(--secondary); padding: .25rem .75rem; font-size: .75rem; line-height: calc(1 / .75); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--secondary-foreground); }
.pillar .body { margin-top: 1.25rem; font-size: .875rem; line-height: 1.625; color: var(--ink-soft); }

/* 3. Framework */
.framework { display: grid; gap: 2.5rem; }
.framework h2 { font-size: 1.875rem; line-height: calc(2.25 / 1.875); }
.framework .rule { display: block; margin-top: 1rem; height: 1px; width: 4rem; background: color-mix(in oklab, var(--primary) 50%, transparent); }
.framework p { margin-top: 1.25rem; font-size: 1rem; line-height: 1.625; color: var(--ink-soft); }

/* 4. The Stories */
.shelf { margin-top: 3.5rem; display: grid; column-gap: 2rem; row-gap: 3.5rem; padding-bottom: .5rem; }
.book { display: flex; flex-direction: column; align-items: center; text-align: center; }
.book .slot-art { max-width: 18rem; }
.book h3 { margin-top: 1.5rem; font-size: 1.5rem; line-height: 1.375; }
.book p { margin-top: .5rem; max-width: 26rem; font-size: .875rem; line-height: 1.625; color: var(--ink-soft); }

/* 5. About */
.about { padding: 6rem 1.25rem; text-align: center; }
.about .credit { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.625; }
.about .credit.first { margin-top: 2.5rem; }
.about .credit + .credit { margin-top: .75rem; }
.about .note { max-width: 48rem; margin: 3.5rem auto 0; font-size: 1.125rem; line-height: 1.625; color: var(--ink-soft); }

/* 6. Footer */
.site-foot { border-top: 1px solid var(--border); padding: 3.5rem 1.25rem; text-align: center; }
.site-foot .copy { font-size: .875rem; line-height: calc(1.25 / .875); color: var(--ink-soft); }
.site-foot .news-link { margin-top: .75rem; font-size: .875rem; line-height: calc(1.25 / .875); }
/* 11-10 a11y: inline-block + padding/negative margin = 28px tap target (WCAG 2.5.8) with no layout shift */
.site-foot .news-link a { display: inline-block; padding: .25rem 0; margin: -.25rem 0; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; }
.site-foot .news-link a:hover { color: var(--primary-ink); }
.site-foot .motto { margin-top: .75rem; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; font-style: italic; color: var(--primary-ink); }

/* 11-08 SEO pass: who-it's-for line, author link, Q&A (same type scale and colours as the page) */
.hero h1 .h1-sub { display: block; margin-top: .75rem; font-family: var(--font-sans); font-size: .8125rem; line-height: 1.4; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.books-intro { max-width: 44rem; margin: 1.5rem auto 0; text-align: center; font-size: 1.0625rem; line-height: 1.7; color: var(--ink-soft); }
.about .author-title { margin-top: 3.5rem; font-size: 1.5rem; line-height: 1.375; }
.about .author-text { max-width: 40rem; margin: .75rem auto 0; font-size: 1rem; line-height: 1.625; color: var(--ink-soft); }
.about .author-text a, .faq-news a { color: var(--foreground); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.faq { margin-top: 3rem; display: grid; gap: 1.25rem; }
.faq-item { padding: 1.5rem 1.75rem; }
.faq dt { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.35; font-weight: 600; }
.faq dd { margin-top: .5rem; font-size: 1rem; line-height: 1.625; color: var(--ink-soft); }
.faq-news { margin-top: 2.5rem; text-align: center; font-size: 1rem; line-height: 1.625; color: var(--ink-soft); }

a:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: 2px; border-radius: 4px; }
/* 11-10 a11y: nothing on the page animates today; keep it that way for people who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* Windows high-contrast / forced colours: keep the focus ring visible */
@media (forced-colors: active) { a:focus-visible { outline-color: Highlight; } }

@media (min-width: 640px) {
  .band { padding: 7rem 2rem; }
  .band.framework-band { padding: 6rem 2rem; }
  .hero { padding: 5rem 2rem 6rem; }
  .hero h1 { font-size: 4.5rem; }
  .hero .motto { font-size: 1.875rem; line-height: 1.2; }
  .hero .blurb { font-size: 1.125rem; }
  .section-title { font-size: 3rem; line-height: 1; }
  .meet-quote { font-size: 1.5rem; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { padding: 8rem 2rem; }
  .about .credit { font-size: 1.875rem; }
  .site-foot { padding: 3.5rem 2rem; }
}
@media (min-width: 768px) {
  .meet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .framework { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}
@media (min-width: 1024px) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
