/* The site's one stylesheet: the mix Kristin asked for on 2026-11-25.
   Marsh only as a strip at the top and the bottom. Between them, calm
   book-page sections, each on its own ground so they read as separate
   blocks: white for the books, pale pencil blue for the editing work,
   warm cream for the bio. */

:root {
  --night: #0d0f24;     /* marsh silhouette */
  --sky-top: #161a40;
  --sky-mid: #2b306c;
  --sky-low: #5a5e98;
  --gold: #ecd092;      /* the cover's title lettering */
  --moon: #edc6a2;
  --paper: #fdfdfc;     /* books */
  --wash: #e9edf9;      /* work with me */
  --cream: #f8f1df;     /* about */
  --ink: #17171c;
  --graphite: #5d6069;
  --pencil: #2748c4;    /* editor's blue pencil */
  --strip: clamp(76px, 14vw, 10rem);  /* height of a marsh strip */
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.25rem/1.5 "EB Garamond", Garamond, "Times New Roman", serif;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1.05rem; }
cite { font-style: italic; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--pencil); outline-offset: 3px; }
.hero a:focus-visible, .contact a:focus-visible { outline-color: var(--gold); }

h2 {
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.btn {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  padding: 1rem 0.6rem;
  border: 1.5px solid;
}
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn.gold:hover { background: #f6e3b6; border-color: #f6e3b6; }
.btn.line { color: var(--gold); border-color: var(--gold); }
.btn.line:hover { background: rgba(236, 208, 146, 0.14); }
.btn.pencil, .contact .btn { padding: 1rem 1.3rem; }
.btn.pencil { background: var(--pencil); border-color: var(--pencil); color: #fff; }
.btn.pencil:hover { background: #1d3aa6; border-color: #1d3aa6; }

/* ---------- top: night sky with a strip of marsh ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, var(--sky-top) 0%, #20245a 42%, var(--sky-mid) 70%, var(--sky-low) 100%);
}
.stars {
  position: absolute;
  inset: 0;
  background-image: url(images/stars.svg), url(images/stars.svg);
  background-size: 420px 420px, 660px 660px;
  background-position: 0 0, 170px 90px;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 78%);
  mask-image: linear-gradient(#000 30%, transparent 78%);
}
/* the marsh strip sits directly under the words, with no gap */
.marsh {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--strip);
}
.reeds {
  position: absolute;
  inset: 0;
  background: url(images/reeds-wide.svg) center bottom / auto 100% repeat-x;
}
.moon {
  position: absolute;
  right: 12%;
  top: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #f8e3cb 0, var(--moon) 58%, #d7a886 100%);
  box-shadow: 0 0 30px 6px rgba(237, 198, 162, 0.25);
}

.top {
  position: relative;
  z-index: 2;
  padding: 1.15rem 1.5rem 0;
}
.name {
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
}
.top ul {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.3rem;
}
.top ul a { display: inline-block; padding: 0.55rem 0; font-size: 1.15rem; text-decoration: none; }
.top ul a:hover { color: var(--gold); }

.hero-text {
  position: relative;
  z-index: 2;
  padding: 1.6rem 1.5rem calc(var(--strip) + 0.25rem);
}
.roles {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.roles::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  margin-top: 0.8rem;
  background: var(--gold);
}
h1 {
  font-weight: 400;
  font-size: clamp(2.35rem, 9.6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 0 0 1rem;
}
.lede { font-size: 1.2rem; max-width: 31rem; margin: 0 0 1.5rem; }
.hero .actions .btn { flex: 1 1 auto; }

/* ---------- books and work with me: both at once ---------- */

.books, .work, .about { padding: 2rem 1.5rem 1.5rem; }
.books { background: var(--paper); }
.work { background: var(--wash); }
.about { background: var(--cream); }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.book img {
  width: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 16px 28px -14px rgba(13, 15, 36, 0.6);
}
.book { text-align: center; }
.book h3 {
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 1.1rem 0 0.1rem;
}
.shops { display: flex; justify-content: center; gap: 0.6rem; margin: 0.65rem 0 0; }

/* round icon buttons: bookshops under each cover, social links in the footer */
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
}
.icon-link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon { width: 1.25rem; height: 1.25rem; fill: currentColor; }

/* the Work With Me header, underlined in blue pencil */
.marked::after {
  content: "";
  display: block;
  width: 11.5rem;
  max-width: 100%;
  height: 0.9rem;
  margin-top: 0.3rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 184 14' preserveAspectRatio='none'%3E%3Cpath d='M3 8.5C28 4.5 52 10.5 84 6.5S142 3.5 181 7.5' fill='none' stroke='%232748c4' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / 100% 100%;
}
.pitch { font-size: 1.6rem; line-height: 1.2; margin: 0 0 1.1rem; }
.work .actions { justify-content: center; }
.services {
  list-style: none;
  margin: 1.5rem 0 1.9rem;
  padding: 0;
}
/* the full moon from the top of the page, beside each service */
.services li {
  position: relative;
  font-size: 1.35rem;
  line-height: 1.25;
  padding: 0.55rem 0 0.55rem 2rem;
}
.services li::before {
  content: "";
  position: absolute;
  left: 0.05rem;
  top: 0.82rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #f8e3cb 0, var(--moon) 58%, #d7a886 100%);
  box-shadow: 0 0 0 1px rgba(183, 128, 92, 0.45), 0 0 10px 2px rgba(237, 198, 162, 0.55);
}

/* ---------- about ---------- */

/* her photo as a circle, set into the text */
.portrait {
  float: left;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  shape-outside: circle(50%);
  shape-margin: 0.9rem;
  margin: 0.3rem 1rem 0.4rem 0;
  box-shadow: 0 10px 22px -10px rgba(60, 40, 10, 0.55);
}
.bio::after { content: ""; display: block; clear: both; }
.bio p:last-of-type { margin-bottom: 0; }

/* ---------- newsletter sign-up ---------- */

.newsletter { position: relative; background: var(--wash); padding: 2rem 1.5rem 1.75rem; }
.newsletter p { max-width: 34rem; }
.signup { display: flex; gap: 0.6rem; max-width: 30rem; }
.signup[hidden] { display: none; }
.signup input { flex: 1 1 auto; min-width: 0; }
.signup .btn { flex: none; padding: 0 1.5rem; }
/* gold lettering on night, as on the Frenzy of Sparks cover */
.btn.night { background: var(--night); border-color: var(--night); color: var(--gold); }
.btn.night:hover { background: var(--sky-mid); border-color: var(--sky-mid); }
.signup-done { margin: 0; font-size: 1.3rem; }

/* ---------- bottom: say hello, then the marsh again ---------- */

.contact {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, var(--sky-top) 0%, #20245a 34%, var(--sky-mid) 60%, var(--sky-low) 90%);
}
.contact .stars {
  -webkit-mask-image: linear-gradient(#000 10%, transparent 55%);
  mask-image: linear-gradient(#000 10%, transparent 55%);
  opacity: 0.6;
}
.contact-text { position: relative; z-index: 2; padding: 2rem 1.5rem 0.25rem; }
.contact-text p { max-width: 32rem; }
.contact-text .actions { max-width: none; justify-content: center; margin-top: 1.4rem; }
.contact-text .btn { min-width: 11rem; }
.contact .marsh { position: relative; height: var(--strip); }
.contact .reeds { transform: scaleX(-1); }
.ground {
  position: relative;
  background: var(--night);
  padding: 0.9rem 1.5rem 1.1rem;
  text-align: center;
}
.elsewhere { display: flex; justify-content: center; gap: 1rem; margin: 0 0 0.8rem; }
.elsewhere .icon-link { color: var(--gold); }
.elsewhere .icon-link:hover { background: var(--gold); color: var(--night); border-color: var(--gold); }
.copyright { margin: 0; color: #aeb2d2; font-size: 1rem; text-align: center; }
.plain-foot { background: var(--night); padding: 1.25rem 1.5rem 2rem; }

/* ---------- inquiry form ---------- */

.inner .hero-text { padding: 1.75rem 1.5rem 2.75rem; }
.inner h1 { margin: 0; }
.inner .stars {
  -webkit-mask-image: none;
  mask-image: none;
  opacity: 0.7;
}

/* ---------- work with me page ---------- */

.inner .lede { margin: 0.9rem 0 0; font-size: 1.3rem; }
.inner .actions { margin-top: 1.4rem; }
.inner .actions .btn { flex: 0 1 auto; padding: 1rem 1.3rem; }

.page-block { padding: 2rem 1.5rem 1.6rem; }
.page-block.paper { background: var(--paper); }
.page-block.wash { background: var(--wash); }
.page-block.cream { background: var(--cream); }
.page-block p:last-child { margin-bottom: 0; }

.service-list { display: grid; gap: 1rem; margin: 1.4rem 0 1.5rem; }
.before-list { margin-bottom: 0.4rem; }
.service { background: var(--wash); padding: 1.4rem 1.25rem 1.35rem; }
.service h3 {
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.15;
  margin: 0 0 0.3rem;
}
.price { font-weight: 500; font-size: 1.25rem; color: var(--pencil); margin: 0 0 0.9rem; }
.receive { font-weight: 500; margin: 0 0 0.3rem; }
.turnaround { font-style: italic; }

/* short lists with the small moon as the bullet */
.moons { list-style: none; margin: 0 0 1rem; padding: 0; }
.moons li { position: relative; padding: 0.22rem 0 0.22rem 1.6rem; line-height: 1.35; }
.moons li::before {
  content: "";
  position: absolute;
  left: 0.05rem;
  top: 0.62rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #f8e3cb 0, var(--moon) 58%, #d7a886 100%);
  box-shadow: 0 0 0 1px rgba(183, 128, 92, 0.45);
}

/* the steps, each numbered inside a moon */
.steps { list-style: none; margin: 0 0 1.2rem; padding: 0; counter-reset: step; }
.steps:last-child { margin-bottom: 0; }
.steps:last-child li:last-child { padding-bottom: 0.4rem; }
.steps li { position: relative; counter-increment: step; padding: 0 0 1.15rem 3.1rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--night);
  background: radial-gradient(circle at 40% 38%, #f8e3cb 0, var(--moon) 58%, #d7a886 100%);
  box-shadow: 0 0 0 1px rgba(183, 128, 92, 0.45);
}
.steps strong { display: block; font-weight: 500; font-size: 1.35rem; line-height: 1.3; margin-bottom: 0.15rem; }

/* questions that open and close */
.faq { border-top: 1px solid rgba(23, 23, 28, 0.22); }
.faq:last-of-type { border-bottom: 1px solid rgba(23, 23, 28, 0.22); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  padding: 0.85rem 2.2rem 0.85rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 0.55rem;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
  color: var(--pencil);
}
.faq[open] summary::after { content: "\2212"; }
.faq p { margin: 0; padding: 0 0 1rem; max-width: 38rem; }

/* ---------- books page ---------- */

/* cover and title side by side, then the book's text across the full width */
.book-page {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  column-gap: 1.25rem;
  align-items: center;
}
.book-page .cover {
  width: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 16px 28px -14px rgba(13, 15, 36, 0.6);
}
.book-title h2 { font-size: 2rem; margin: 0 0 0.8rem; text-wrap: balance; }
.book-title .shops { justify-content: flex-start; margin: 0; }
.book-body { grid-column: 1 / -1; margin-top: 1.5rem; min-width: 0; }
.book-body .pitch { font-size: 1.45rem; line-height: 1.25; }
.book-body h3 { font-weight: 400; font-size: 1.7rem; line-height: 1.15; margin: 1.6rem 0 0.9rem; }

.praise { margin: 0 0 1.3rem; padding: 0.1rem 0 0.1rem 1rem; border-left: 2px solid #d7a886; }
.praise p { margin: 0 0 0.35rem; padding: 0; font-size: 1.2rem; line-height: 1.45; max-width: none; }
.praise footer { font-size: 1.05rem; line-height: 1.35; color: var(--graphite); }
.faq .praise:first-of-type { margin-top: 0.2rem; }
.book-body > .praise:last-of-type { margin-bottom: 1.5rem; }

.press { list-style: none; margin: 0; padding: 0 0 1rem; font-size: 1.15rem; line-height: 1.35; }
.press li { padding: 0.4rem 0; break-inside: avoid; }
.press + p { font-size: 1.15rem; }

.talk { position: relative; overflow: hidden; color: #fff; background: linear-gradient(180deg, var(--sky-top) 0%, #20245a 40%, var(--sky-mid) 68%, var(--sky-low) 100%); }
.talk-text { position: relative; z-index: 2; padding: 2rem 1.5rem calc(var(--strip) + 0.25rem); }
.talk-text p { font-size: 1.3rem; margin: 0; max-width: 34rem; }
.talk-text .actions { margin-top: 1.4rem; max-width: none; justify-content: center; }
.talk-text .actions .btn { flex: 0 1 auto; padding: 1rem 1.3rem; }

/* words for screen readers only, such as "opens in a new window" */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-intro, .form-block, .form-send { padding: 2.25rem 1.5rem 2rem; }
.form-intro { background: var(--cream); font-size: 1.3rem; }
.form-intro p:last-child { margin-bottom: 0; }
.form-block.paper { background: var(--paper); }
.form-block.wash { background: var(--wash); }
.form-send { background: var(--cream); }
.measure { max-width: 38rem; }

.field, fieldset { margin: 0 0 1.75rem; }
.measure > .field:last-child, .measure > fieldset:last-child { margin-bottom: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
.field label, legend {
  display: block;
  padding: 0;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
.hint { font-size: 1.1rem; line-height: 1.4; color: var(--graphite); margin: -0.2rem 0 0.6rem; }

input[type="text"], input[type="email"], textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ink);
  background: #fff;
  border: 1px solid #81859a;
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--pencil);
  outline-offset: 1px;
  border-color: var(--pencil);
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 1.2rem;
  line-height: 1.3;
  cursor: pointer;
}
.choice input {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.08rem 0 0;
  accent-color: var(--pencil);
}

button.btn { font-family: inherit; cursor: pointer; }
.form-send .btn { font-size: 0.85rem; padding: 1.15rem 1.8rem; }
.fine { font-size: 1.05rem; color: var(--graphite); margin: 1.1rem 0 0; }

/* a page shorter than the screen ends on the marsh ground, not on white */
.short { background: var(--night); }

/* ---------- wider screens ---------- */

@media (min-width: 60rem) {
  :root { --edge: max(3rem, calc((100vw - 68rem) / 2 + 3rem)); }

  .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem var(--edge) 0;
  }
  .top ul { margin: 0; gap: 0 2.4rem; }

  .hero-text { padding: 3.25rem var(--edge) 3.25rem; }
  h1 { max-width: 40rem; }
  .lede { font-size: 1.3rem; margin-bottom: 2rem; }
  .hero .actions .btn { flex: 0 0 auto; padding: 1.05rem 1.6rem; }

  /* on a wide screen the marsh stands to the right of the words */
  .hero .marsh { left: auto; width: 62%; height: 100%; }
  .hero .reeds {
    background: url(images/reeds.svg) right bottom / auto 80% no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 6%, #000 46%);
    mask-image: linear-gradient(90deg, transparent 6%, #000 46%);
  }
  .moon { width: 84px; height: 84px; right: 17%; top: 22%; }

  h2 { font-size: 2.6rem; }

  .both { display: grid; grid-template-columns: 1fr 1fr; }
  .books { padding: 2.75rem 4.5rem 2.5rem var(--edge); }
  .work { padding: 2.75rem var(--edge) 2.5rem 4.5rem; }
  .pair { gap: 2rem; }

  .about { padding: 2.75rem var(--edge) 2.5rem; }
  .about-grid { max-width: 46rem; }
  .portrait {
    width: 11rem;
    height: 11rem;
    shape-margin: 1.5rem;
    margin: 0.4rem 1.75rem 0.6rem 0;
  }
  .pitch { font-size: 1.8rem; }

  .newsletter { padding: 2.75rem var(--edge) 2.5rem; }

  .contact-text { padding: 2.75rem var(--edge) 0.5rem; }

  .inner .hero-text { padding: 2.5rem var(--edge) 3rem; }
  .inner h1 { max-width: 46rem; }
  .form-intro, .form-block, .form-send { padding: 3rem var(--edge) 2.75rem; }

  .page-block { padding: 3rem var(--edge) 2.75rem; }
  .page-block > p, .page-block > .steps, .page-block > .moons, .page-block > .faq-list { max-width: 44rem; }
  .service-list { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
  .service { padding: 1.75rem 1.6rem 1.6rem; height: 100%; }
  .talk-text { padding: 3rem var(--edge) calc(var(--strip) + 1rem); }

  /* books page: the cover stands beside everything about its book */
  .book-page { grid-template-columns: 15rem minmax(0, 42rem); column-gap: 4rem; align-items: start; }
  .book-page .cover { grid-row: 1 / span 2; }
  .book-title, .book-body { grid-column: 2; }
  .book-title h2 { font-size: 2.6rem; }
  .book-body { margin-top: 1.4rem; }
  .press { columns: 2; column-gap: 2.5rem; }
}
