/* Sarah Sax — site styles. Colors taken from the Squarespace theme. */
:root {
  --cyan: #30c0dc;
  --cyan-dark: #1b8ea5;      /* cyan darkened for text on white (AA) */
  --purple: #a456c1;
  --purple-dark: #7a3a96;    /* purple darkened for small text (AA) */
  --gold: #ffcb5a;
  --ink: #272727;
  --muted: #5c5c5c;
  --bg: #fff;
  --tint: #f4fbfd;
  --lavender: #faf5fc;
  --heading: "gopher", "Outfit", "Avenir Next", system-ui, sans-serif; /* Adobe Fonts; Outfit is the free fallback */
  --body: "effra", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1100px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--body);
  color: var(--ink);
  background: var(--bg);
}
img, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--cyan-dark); text-underline-offset: 2px; }
a:hover { color: var(--purple); }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  text-transform: lowercase;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 2.75rem); color: var(--purple); }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--cyan); }
h3 { font-size: 1.5rem; color: var(--purple); }
h4 { font-size: 1.15rem; color: var(--ink); text-transform: none; margin-top: 1.5em; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; background: #fff; padding: 8px; }

/* Announcement bar */
.announcement {
  display: block;
  background: var(--purple);
  color: var(--ink);
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  padding: .55rem var(--gutter);
  text-decoration: none;
}
.announcement:hover { color: var(--ink); text-decoration: underline; }

/* Header + nav */
.site-header {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 5;
}
.site-title {
  font: 700 1.75rem/1 var(--heading);
  color: var(--cyan);
  text-decoration: none;
  white-space: nowrap;
}
.menu nav ul { list-style: none; margin: 0; padding: 0; }
.menu nav a, .nav-folder {
  font: 700 1.15rem/1 var(--heading);
  color: var(--cyan);
  text-decoration: none;
  text-transform: lowercase;
}
.menu nav a:hover, .menu nav a[aria-current] { color: var(--purple); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0; }

@media (min-width: 860px) {
  .menu nav > ul { display: flex; gap: 1.4rem; align-items: center; }
  .has-children { position: relative; }
  .nav-folder { cursor: default; }
  .has-children ul {
    display: none;
    position: absolute;
    top: 100%;
    left: -1rem;
    padding: .75rem 1rem !important;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgb(0 0 0 / .12);
    min-width: 250px;
  }
  .has-children ul li { padding: .4rem 0; }
  .has-children:hover ul, .has-children:focus-within ul { display: block; }
  .has-children::after { content: ""; position: absolute; inset: 100% 0 -12px; } /* hover bridge */
}
@media (max-width: 859px) {
  .menu-toggle {
    width: 44px; height: 44px;
    display: flex; flex-direction: column; justify-content: center; gap: 5px; align-items: center;
  }
  .menu-toggle span { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--cyan); transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .menu nav { display: none; }
  .menu nav.open {
    display: block;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    padding: .5rem var(--gutter) 1.5rem;
    box-shadow: 0 12px 20px rgb(0 0 0 / .08);
  }
  .menu nav li { padding: .55rem 0; }
  .menu .has-children ul { padding-left: 1rem; margin-top: .4rem; }
  .menu .has-children ul a { font-size: 1rem; }
  .nav-folder { color: var(--ink); opacity: .6; }
}

/* Layout */
main { min-height: 50vh; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding: clamp(2rem, 6vw, 4rem) 0; }
.section.tint { background: var(--tint); }
.page-title { text-align: center; margin-bottom: 1.5rem; }
.lede { font-size: 1.15rem; text-align: center; max-width: 720px; margin: 0 auto 2rem; }

.button {
  display: inline-block;
  background: var(--cyan);
  color: #fff;
  font: 700 .95rem/1 var(--heading);
  letter-spacing: .1em;
  text-transform: none;
  text-decoration: none;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  transition: background .15s;
}
.button:hover { background: var(--purple); color: #fff; }

/* Home */
.covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2.5vw, 28px);
  padding: 1rem 0 3rem;
}
.covers a { display: block; }
.covers img { width: 100%; border-radius: 4px; box-shadow: 0 6px 18px rgb(0 0 0 / .14); }
@media (max-width: 700px) { .covers { grid-template-columns: repeat(2, 1fr); } }

.find-sarah { text-align: center; }
.find-sarah .doodle { width: 140px; margin: 0 auto 1rem; }
.event-mini { list-style: none; padding: 0; margin: 0 auto; max-width: 560px; text-align: left; }
.event-mini li { padding: .9rem 0; border-top: 1px solid #e6e6e6; }
.event-mini .date { display: block; font-weight: 700; color: var(--purple); font-size: .9rem; }

/* Series-style book pages (Brinkley, Escape This Book, anthologies): tinted band per book, rotating review, buy menu */
.series .page-title { margin-bottom: 0; }
.series .lede { margin: 1rem auto 2rem; }
.series-book { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.series-book:nth-of-type(odd) { background: var(--tint); }
.series-in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.series-book:nth-of-type(even) .series-in { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.series-book:nth-of-type(even) .series-cover { order: 2; }
.series-cover { margin-top: .5rem; }
.series-cover img { width: 100%; border-radius: 4px; box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
.series .tagline { font-size: 1.05rem; }
.series .s { color: #e0a800; }

.rot { margin: 0 0 1.25rem; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.slide.on { opacity: 1; visibility: visible; }
.slide p { font: 700 clamp(1.5rem, 3.2vw, 2.15rem)/1.15 var(--heading); color: var(--purple); margin: 0 0 .5rem; }
.slide.long p { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.slide cite { font-style: normal; font-size: .9rem; font-weight: 700; color: var(--muted); }
.slide cite a { color: inherit; text-decoration-color: #ccc; }
.slide cite a:hover { color: var(--purple); }
.dots { display: flex; gap: 6px; margin-top: .75rem; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: #d5d5d5; cursor: pointer; }
.dots button[aria-current="true"] { background: var(--purple); }

.rev-h { font-size: 1.1rem; color: var(--purple); margin: 1.5rem 0 .5rem; }
.reviews { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.reviews a { display: inline-flex; gap: .3rem; align-items: center; padding: .45rem .85rem; border: 1.5px solid var(--cyan); border-radius: 999px; font-size: .9rem; font-weight: 700; text-decoration: none; background: #fff; }
.reviews a::after { content: "↗"; }
.reviews a:hover { border-color: var(--purple); }

.cta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-start; }
.dd { position: relative; }
.dd summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem; user-select: none; }
.dd summary::-webkit-details-marker { display: none; }
.dd .chev { width: .5em; height: .5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-25%) rotate(45deg); transition: transform .15s; }
.dd[open] .chev { transform: translateY(15%) rotate(-135deg); }
.dd[open] summary.button { background: var(--purple); }
.button.ghost { background: #fff; color: var(--cyan-dark); box-shadow: inset 0 0 0 2px var(--cyan); }
.button.ghost:hover, .dd[open] summary.ghost { background: #fff; color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); }
.dd-menu { position: absolute; z-index: 10; top: calc(100% + 8px); left: 0; min-width: 250px; list-style: none; margin: 0; padding: .4rem; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgb(0 0 0 / .18); }
.dd-menu::before { content: ""; position: absolute; top: -6px; left: 28px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }
.dd-menu a { position: relative; display: flex; align-items: center; gap: .7rem; padding: .65rem .9rem; border-radius: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.dd-menu a:hover, .dd-menu a:focus-visible { background: var(--tint); color: var(--purple); }
.dd-menu a.local { color: var(--cyan-dark); }
.dd-menu .ico { width: 20px; height: 20px; flex: none; border-radius: 5px; box-shadow: 0 0 0 1px rgb(0 0 0 / .1); }
.dd-menu small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.series .note { font-size: .9rem; color: var(--muted); margin: .9rem 0 0; }
@media (max-width: 760px) {
  .series-in, .series-book:nth-of-type(even) .series-in { grid-template-columns: 1fr; }
  .series-book:nth-of-type(even) .series-cover { order: 0; }
  .series-cover { max-width: 300px; }
}

/* About: portrait + bio hero, FAQ accordion, fun-fact cards, press cards + media */
.ab-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.ab-portrait { margin: 0; }
.ab-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.ab-portrait figcaption { font-size: .85rem; color: var(--muted); font-style: italic; margin-top: .4rem; }
.ab-hero .page-title { text-align: left; font-size: clamp(2.25rem, 5.5vw, 3.25rem); margin-bottom: 1rem; }
.ab-jump { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.ab-jump a { padding: .55rem 1.1rem; border: 2px solid var(--cyan); border-radius: 999px; font: 700 .95rem/1 var(--heading); text-decoration: none; color: var(--cyan-dark); }
.ab-jump a:hover { border-color: var(--purple); color: var(--purple); }
.ab-h { text-align: center; margin-bottom: 1.5rem; }
#faqs h2 { text-align: center; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.faq details { background: #fff; border-radius: var(--radius); margin-bottom: .75rem; box-shadow: 0 2px 6px rgb(0 0 0 / .12); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; min-height: 44px; font: 700 1.15rem/1.3 var(--heading); color: var(--purple); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--purple-dark); }
.faq .chev { flex: none; width: .55em; height: .55em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-25%) rotate(45deg); transition: transform .15s; }
.faq details[open] .chev { transform: translateY(15%) rotate(-135deg); }
.faq details > div { padding: 0 1.4rem .5rem; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.fact { padding: 1.5rem 1.75rem; border-radius: var(--radius); background: var(--tint); }
.fact:nth-child(4n+2), .fact:nth-child(4n+3) { background: var(--lavender); }
.fact h3 { font-size: 1.3rem; }
.fact p:last-child { margin-bottom: 0; }
.pets { margin: 0 0 1em; padding-left: 1.2em; }
@media (max-width: 760px) {
  .ab-hero, .facts { grid-template-columns: 1fr; }
  .ab-portrait { max-width: 420px; }
  .ab-portrait img { aspect-ratio: 1; }
  .fact:nth-child(n) { background: var(--tint); }
  .fact:nth-child(even) { background: var(--lavender); }
}

.press-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.press-grid .embed { margin: 0 0 1.25rem; }
.press { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .75rem; }
.press a { display: block; padding: 1rem 1.25rem; background: #fff; border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .06); transition: box-shadow .15s; }
.press a:hover { box-shadow: 0 6px 18px rgb(0 0 0 / .1); }
.press-kind { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-dark); }
.press-title { display: block; font: 700 1.1rem/1.3 var(--heading); margin: .2rem 0; }
.press a:hover .press-title { color: var(--purple); }
.press-title::after { content: " ↗"; color: var(--cyan-dark); }
.press-src { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .press-grid { grid-template-columns: 1fr; } }

.embed { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.audio-embed iframe { width: 100%; border: 0; border-radius: 12px; }

/* School visits: photo + intro hero, lavender pull-quote band with full testimonials behind a toggle, photo row */
.section.lavender { background: var(--lavender); }
.sv-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.sv-hero > picture, .sv-photos > picture { display: block; }
.sv-hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.sv-hero .page-title { text-align: left; font-size: clamp(2.25rem, 5.5vw, 3.25rem); margin-bottom: 1rem; }
.sv-hero .lede { text-align: left; margin: 0 0 1.5rem; }
.sv-book { display: flex; flex-wrap: wrap; gap: .75rem; }
.sv-book .button { flex: 1 1 220px; text-align: center; background: #fff; color: var(--purple-dark); box-shadow: inset 0 0 0 2px var(--purple); }
.sv-book .button:hover { background: var(--purple); color: #fff; }
.sv-h { text-align: center; color: var(--purple); margin-bottom: 1.5rem; }
.pulls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.pulls figure { margin: 0; }
.pulls blockquote { margin: 0 0 .6rem; font: 700 1.25rem/1.35 var(--heading); }
.pulls figcaption { font-size: .9rem; font-weight: 700; color: var(--purple-dark); }
.sv-all { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #e8d9ef; }
.sv-all summary { list-style: none; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: .6rem; min-height: 44px; font-weight: 700; color: var(--purple-dark); }
.sv-all summary::-webkit-details-marker { display: none; }
.sv-all summary:hover { color: var(--purple); }
.sv-all .chev { width: .5em; height: .5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-25%) rotate(45deg); transition: transform .15s; }
.sv-all[open] .chev { transform: translateY(15%) rotate(-135deg); }
.sv-all .testimonials { max-width: 760px; margin: 1.5rem auto 0; }
.testimonials { display: grid; gap: 1.25rem; }
.testimonial { margin: 0; padding: 1.5rem 1.75rem; background: #fff; border-radius: var(--radius); }
.testimonial blockquote { margin: 0 0 .75rem; font-size: 1.02rem; }
.testimonial figcaption { font-weight: 700; color: var(--purple-dark); }
.sv-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .sv-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sv-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 760px) {
  .sv-hero { grid-template-columns: 1fr; }
  .sv-hero img { aspect-ratio: 4 / 3; }
}

/* Photo carousel (full-bleed strip, scroll-snap, arrow buttons) */
.carousel { position: relative; margin: 0 0 2.5rem; }
.carousel-track {
  display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { flex: 0 0 auto; scroll-snap-align: center; } /* <picture> wrappers from eleventy-img */
.carousel-track img { height: clamp(240px, 42vw, 400px); width: auto; max-width: none; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(39, 39, 39, .75); color: #fff; font-size: 1.4rem; cursor: pointer;
}
.carousel-btn:hover, .carousel-btn:focus-visible { background: var(--ink); }
.carousel-btn.prev { left: var(--gutter); }
.carousel-btn.next { right: var(--gutter); }

/* Art gallery */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery a { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: 6px; overflow: hidden; }
.gallery img { width: 100%; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.03); }
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgb(20 20 20 / .92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 4rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; object-fit: contain; }
.lightbox figcaption { color: #eee; margin-top: 1rem; text-align: center; max-width: 60ch; }
.lightbox button {
  position: fixed; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; padding: .5rem 1rem; line-height: 1;
}
.lightbox .close { top: .5rem; right: .5rem; }
.lightbox .prev { left: .25rem; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: .25rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox figure { padding: 3rem .5rem; } }

/* Resources / downloads */
.download { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: center; margin-top: 1.5rem; }
.download img { border-radius: var(--radius); }
@media (max-width: 560px) { .download { grid-template-columns: 1fr; } .download img { max-width: 240px; } }

/* Events */
.event-list { list-style: none; padding: 0; margin: 0; }
.event-card { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid #eee; }
.event-card img { border-radius: 6px; }
.event-card h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.event-card h3 a { color: inherit; text-decoration: none; }
.event-card h3 a:hover { color: var(--cyan-dark); }
.event-meta { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.event-meta strong { color: var(--ink); }
@media (max-width: 560px) { .event-card { grid-template-columns: 1fr; } .event-card img { max-width: 260px; } }
.event-hero { width: 100%; max-width: 560px; margin: 0 auto 1.5rem; border-radius: var(--radius); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
address { font-style: normal; font-weight: 700; margin-bottom: 1em; }
form.contact label { display: block; margin: .6rem 0 .15rem; }
form.contact input, form.contact textarea {
  width: 100%; font: inherit; line-height: 1.4; color: var(--ink); padding: .45rem .75rem; border: 1.5px solid #cfcfcf; border-radius: 8px;
}
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
form.contact .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .9rem; }
form.contact button { border: 0; cursor: pointer; }
form.contact button[disabled] { opacity: .6; cursor: wait; }
form.contact .cf-turnstile { margin-top: .9rem; }
form.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { flex: 1 1 12rem; margin: 0; font-size: .95rem; line-height: 1.35; color: #c0392b; }
.form-thanks { margin-top: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--tint); border-left: 5px solid var(--cyan); }
.form-thanks:focus { outline: none; }
.form-thanks p { margin: 0; }
.form-thanks .form-thanks-title { font-family: var(--heading); font-size: 1.6rem; font-weight: 700; color: var(--purple); text-transform: lowercase; margin-bottom: .25rem; }

/* Footer */
.site-footer { text-align: center; padding: 3rem var(--gutter) 2rem; margin-top: 3rem; border-top: 1px solid #eee; }
.subscribe { max-width: 640px; margin: 0 auto 2rem; }
.subscribe h2 { font-size: 1.7rem; }
.social { list-style: none; display: flex; justify-content: center; gap: 1rem; padding: 0; margin: 0 0 .75rem; }
.social a { color: var(--ink); display: inline-flex; padding: 4px; }
.social a:hover { color: var(--purple); }
.copyright { font-size: .9rem; color: var(--muted); }
