:root {
  --cream: #FBF6EC; --white: #FFFDFC; --navy: #1B2632;
  --carrot: #F26B3A; --carrot-deep: #C7511F; --teal: #1E7268;
  --gold: #8F5E00; --lilac: #6C5FB0; --muted: #5A6472;
  --line: rgba(27,38,50,0.12); --cream-dim: rgba(251,246,236,0.78);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--cream); color: var(--navy); font-family: "DM Sans", -apple-system, sans-serif; font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 32px; }
.kicker { font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; display: block; margin-bottom: 16px; }

.hero { background: var(--navy); color: var(--cream); padding: 26px 0 96px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 76px; flex-wrap: wrap; }
.wordmark { font-family: "Fraunces", Georgia, serif; font-size: 23px; font-weight: 700; color: var(--cream); text-decoration: none; }
.wordmark em { font-style: normal; color: var(--carrot); }
.topbar nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: var(--cream-dim); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.topbar nav a:hover { color: #fff; }
.topbar nav a.active { color: #fff; border-bottom: 2px solid var(--carrot); }
.btn { display: inline-block; font-family: inherit; font-size: 16px; font-weight: 700; background: var(--carrot-deep); color: #fff; border: none; border-radius: 999px; padding: 14px 28px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--carrot); }
.btn:focus-visible { outline: 3px solid #7FD1C5; outline-offset: 2px; }
.btn.small { font-size: 15px; padding: 10px 20px; }
.btn.ghost { background: transparent; border: 2px solid var(--cream-dim); color: var(--cream); }
.btn.ghost:hover { border-color: #fff; }
.hero .kicker { color: #7FD1C5; }
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); color: #fff; max-width: 16ch; margin-bottom: 22px; }
.hero h1 .hl { color: var(--carrot); }
.hero .lede { font-size: 21px; color: var(--cream-dim); max-width: 56ch; margin-bottom: 36px; }
.hero-facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 44px; }
.fact { border-left: 3px solid var(--carrot); padding-left: 14px; }
.fact strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 22px; color: #fff; }
.fact span { font-size: 14.5px; color: var(--cream-dim); }
.hero-sub { font-size: 13.5px; color: rgba(251,246,236,0.55); margin-top: 14px; }
.hero-sub a { color: inherit; }

section { padding: 76px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.sec { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 12px; }
p.sec-sub { color: var(--muted); max-width: 62ch; margin-bottom: 42px; }
section .kicker { color: var(--teal); }

.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.aud-card h3 { font-size: 21px; margin-bottom: 8px; }
.aud-card p { font-size: 15.5px; color: var(--muted); }

.course { display: grid; grid-template-columns: 130px 1fr auto; gap: 26px; align-items: start; padding: 26px 8px; border-top: 1px solid var(--line); }
.course:last-of-type { border-bottom: 1px solid var(--line); }
.level { font-family: "JetBrains Mono", monospace; font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; padding: 5px 12px; border-radius: 999px; width: fit-content; margin-top: 4px; }
.level.beginner { background: rgba(30,114,104,0.12); color: var(--teal); }
.level.staff { background: rgba(108,95,176,0.14); color: var(--lilac); }
.level.inter { background: rgba(143,94,0,0.14); color: var(--gold); }
.level.adv { background: rgba(199,81,31,0.13); color: var(--carrot-deep); }
.course h3 { font-size: 23px; margin-bottom: 6px; }
.course p { color: var(--muted); font-size: 16.5px; max-width: 62ch; }
.course .book-link { align-self: center; }

.format-band { background: var(--navy); color: var(--cream); border-radius: 24px; padding: 52px 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.format-band .kicker { color: #7FD1C5; }
.format-band h2 { color: #fff; font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 14px; }
.format-band p { color: var(--cream-dim); }
.runsheet { display: flex; flex-direction: column; }
.run-row { display: flex; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(251,246,236,0.12); font-size: 16.5px; }
.run-row:last-child { border-bottom: none; }
.run-row .t { font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--carrot); min-width: 82px; }

.people { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.person { background: var(--white); border: 1.5px solid var(--line); border-radius: 20px; padding: 34px; }
.person .avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--navy); color: var(--cream); font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 28px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.person.doug .avatar { border: 3px solid var(--carrot); }
.person.alex .avatar { border: 3px solid var(--teal); }
.person h3 { font-size: 25px; margin-bottom: 4px; }
.person .role { font-family: "JetBrains Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; display: block; }
.person.doug .role { color: var(--carrot-deep); }
.person.alex .role { color: var(--teal); }
.person p { font-size: 16px; color: var(--muted); }

.book-card { background: var(--white); border: 2px solid var(--carrot); border-radius: 22px; padding: 42px; max-width: 640px; }
.book-card h2 { font-size: 30px; margin-bottom: 8px; }
.book-card > p { color: var(--muted); margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font-family: inherit; font-size: 16px; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--navy); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2.5px solid var(--teal); outline-offset: 1px; }
.book-msg { font-weight: 700; margin-top: 14px; }
.book-msg.ok { color: var(--teal); }
.book-msg.err { color: #b3261e; }

.signup-band { background: var(--teal); color: var(--cream); border-radius: 24px; padding: 52px 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.signup-band .kicker { color: #BFE8E0; }
.signup-band h2 { color: #fff; font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 14px; }
.signup-band p { color: rgba(251,246,236,0.85); }
.signup-band .field input { background: var(--white); }
.signup-band .btn { background: var(--navy); }
.signup-band .btn:hover { background: #28374a; }
.signup-note { font-size: 13px; color: rgba(251,246,236,0.7); margin-top: 10px; }
.signup-band .book-msg.ok { color: #BFE8E0; }
.signup-band .book-msg.err { color: #FFD9CC; }

.faq details { border-top: 1px solid var(--line); padding: 6px 4px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 21px; cursor: pointer; padding: 16px 4px; }
.faq summary:hover { color: var(--carrot-deep); }
.faq summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.faq details p { color: var(--muted); font-size: 16.5px; padding: 0 4px 18px; max-width: 66ch; }

.regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.region-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-decoration: none; color: inherit; display: block; }
.region-card:hover { border-color: var(--carrot); }
.region-card strong { font-family: "Fraunces", Georgia, serif; font-size: 20px; display: block; margin-bottom: 4px; }
.region-card span { font-size: 14.5px; color: var(--muted); }

footer { background: var(--navy); color: var(--cream-dim); padding: 52px 0; margin-top: 30px; }
footer .wordmark { font-size: 21px; }
footer p { font-size: 14.5px; max-width: 64ch; }
footer .fam { margin-top: 18px; font-size: 13.5px; opacity: 0.6; }
footer a { color: inherit; }

/* directory */
.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lib-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.lib-card:hover { border-color: var(--carrot); }
.lib-card .lib-img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; background: var(--navy); }
.lib-card .lib-mono { width: 100%; aspect-ratio: 3/2; background: var(--navy); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: "Fraunces", Georgia, serif; font-size: 44px; font-weight: 700; }
.lib-card .lib-body { padding: 16px 18px 18px; }
.lib-card h3 { font-size: 18.5px; margin-bottom: 3px; }
.lib-card .lib-town { font-size: 14px; color: var(--muted); }
.lib-card .lib-tag { font-family: "JetBrains Mono", monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); margin-top: 8px; display: block; }

.lib-hero { background: var(--navy); border-radius: 22px; overflow: hidden; margin-bottom: 34px; }
.lib-hero img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.lib-hero .credit { font-size: 12px; color: var(--cream-dim); padding: 8px 16px; }
.lib-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 34px; }
.fact-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.fact-card h3 { font-size: 17px; margin-bottom: 10px; }
.fact-card p, .fact-card li { font-size: 15.5px; color: var(--muted); }
.fact-card ul { padding-left: 20px; }
.fact-card a { color: var(--teal); }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--teal); text-decoration: none; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-bar button { font-family: inherit; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; }
.filter-bar button.active { background: var(--navy); color: var(--cream); border-color: var(--navy); }

@media (max-width: 860px) {
  .aud, .people, .lib-facts { grid-template-columns: 1fr; }
  .regions { grid-template-columns: 1fr 1fr; }
  .lib-grid { grid-template-columns: 1fr 1fr; }
  .format-band, .signup-band { grid-template-columns: 1fr; padding: 38px 28px; }
  .course { grid-template-columns: 1fr; gap: 10px; }
  .course .book-link { align-self: start; }
}
@media (max-width: 560px) {
  .lib-grid, .regions { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* Prompt downloads page */
.prompt-list { display: grid; gap: 22px; }
.prompt-card { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 26px 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.prompt-card h2 { font-size: 23px; margin: 0 0 12px; }
.prompt-card p { font-size: 15px; margin: 0 0 10px; max-width: 72ch; }
.prompt-eli strong, .prompt-how strong, .prompt-watch strong { color: var(--carrot-deep); }
.prompt-deeper { font-size: 13.5px; opacity: 0.85; border-top: 1px dashed var(--border); padding-top: 10px; }
.prompt-side { display: grid; gap: 8px; justify-items: end; }
.prompt-meta { font-size: 12.5px; opacity: 0.65; text-align: right; max-width: 150px; }
.prompt-cta { margin-top: 44px; background: var(--navy); color: var(--cream); border-radius: 20px; padding: 34px 36px; }
.prompt-cta h2 { margin: 0 0 10px; }
.prompt-cta p { max-width: 62ch; opacity: 0.9; }
.prompt-cta .btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--cream); }
@media (max-width: 720px) {
  .prompt-card { grid-template-columns: 1fr; }
  .prompt-side { justify-items: start; }
  .prompt-meta { text-align: left; }
}

/* Footer signup (all pages) */
.foot-signup { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.14); padding-bottom: 22px; margin-bottom: 22px; }
.foot-signup strong { display: block; font-size: 16.5px; color: var(--cream); }
.foot-signup span { font-size: 13.5px; opacity: 0.75; }
.fs-form { display: flex; gap: 8px; }
.fs-email { padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: var(--cream); font-size: 14.5px; min-width: 220px; }
.fs-email::placeholder { color: rgba(251,246,236,0.5); }
.fs-msg { grid-column: 1 / -1; margin: 4px 0 0; font-size: 14px; }
.fs-msg.ok { color: #9fd8c9; }
.fs-msg.err { color: #f3b19b; }
@media (max-width: 720px) {
  .foot-signup { grid-template-columns: 1fr; }
  .fs-email { min-width: 0; flex: 1; }
}

/* Advanced section on prompts page */
.prompt-adv { margin-top: 48px; }
.prompt-adv h2 { margin: 6px 0 10px; }
.prompt-adv > p { max-width: 68ch; }
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.adv-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; }
.adv-card h3 { font-size: 18px; margin: 0 0 8px; color: var(--teal); }
.adv-card p { font-size: 14.5px; margin: 0; }
.adv-card code { background: var(--cream); padding: 2px 7px; border-radius: 6px; font-size: 13px; word-break: break-all; }
@media (max-width: 720px) { .adv-grid { grid-template-columns: 1fr; } }

/* Library about blurb */
.lib-about { max-width: 68ch; margin: 8px 0 26px; }
.lib-about p:first-child { font-size: 17.5px; line-height: 1.65; margin: 0 0 8px; }
.lib-about .about-src { font-size: 13px; opacity: 0.6; margin: 0; }
.lib-about .about-src a { color: var(--teal); }
.lib-more { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; margin: 0 0 30px; }
.lib-services h3, .lib-nearby h3 { font-size: 17px; margin-bottom: 10px; }
.svc-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 10px; }
.svc-list li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: 14px; color: var(--muted); }
.svc-note { font-size: 13px; opacity: 0.65; margin: 0; }
.lib-nearby { border-left: 3px solid var(--teal); padding-left: 16px; }
.lib-nearby ul { padding-left: 18px; margin: 0; }
.lib-nearby li { font-size: 14.5px; color: var(--muted); margin-bottom: 6px; }
.lib-nearby a { color: var(--teal); }
.ai-bit { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 14px; padding: 20px 24px; margin: 0 0 26px; max-width: 72ch; }
.ai-bit h3 { font-size: 18px; margin-bottom: 8px; }
.ai-bit p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.ai-bit-link { font-size: 14px; margin-top: 10px; }
.ai-bit-link a { color: var(--teal); }
.want-class { border: 2px solid var(--teal); border-radius: 18px; padding: 26px 28px; margin: 30px 0; background: linear-gradient(180deg, rgba(32,167,154,0.06), rgba(32,167,154,0)); }
.want-class h3 { font-size: 21px; margin-bottom: 6px; }
.want-class > p { color: var(--muted); margin-bottom: 18px; }
.want-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.want-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.want-card h4 { font-size: 16px; margin-bottom: 8px; }
.want-card p, .want-list li { font-size: 14.5px; color: var(--muted); }
.want-list { padding-left: 18px; margin: 8px 0; }
.want-list li { margin-bottom: 6px; }
.want-list a, .want-card a, .want-small a { color: var(--teal); }
.want-staff { border: 2px solid var(--teal); }
.patron-form { display: flex; gap: 8px; margin-top: 10px; }
.patron-form .pf-email { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.pf-msg { font-size: 13px; margin: 8px 0 0; }
.pf-msg.ok { color: var(--teal); }
.pf-msg.err { color: #c0392b; }
.want-micro { font-size: 13px; color: var(--teal); margin: 10px 0 4px; font-weight: 500; }
.hero-offer { font-size: clamp(16px, 2.2vw, 20px); color: #fff; opacity: 0.92; max-width: 58ch; margin-top: 10px; }
.want-faq { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.want-faq details { margin-bottom: 8px; }
.want-faq summary { font-size: 14.5px; font-weight: 600; cursor: pointer; }
.want-faq p { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.ai-learn { margin: 0 0 26px; }
.ai-learn h3 { font-size: 18px; margin-bottom: 4px; }
.learn-sub { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.learn-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.learn-card h4 { font-size: 15px; margin-bottom: 6px; }
.learn-card p { font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 900px) { .learn-grid { grid-template-columns: 1fr; } }
.want-small { font-size: 13px; opacity: 0.8; margin-top: 10px; }
.btn.ghost { background: transparent; border: 1px solid var(--teal); color: var(--teal); }
@media (max-width: 760px) { .want-grid { grid-template-columns: 1fr; } }
