/* ============================================================
   Grey Wolfe LaJoie — static site v18
   "Canvas" architecture: each page background renders at full
   page width, and everything pinned to it is positioned and
   sized as a PERCENTAGE OF THE ARTWORK, not the window. So the
   buttons stay glued to the same spot in the picture and scale
   with it at any window size — like the Elementor original.

   TO NUDGE ANY BUTTON: find its block below and change --x
   (left), --y (down), or --w (size). All are % of the artwork.
   ============================================================ */

:root {
  --ink: #1d1c1a;
  --parchment: #f6e5af;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.6;
  animation: pageFade .28s ease-out both;
}

@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* subtle manuscript-page edge darkening; CSS-only, no image load */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0) 50%, rgba(30,18,8,.16) 100%);
  box-shadow: inset 0 0 105px rgba(21,12,5,.24);
}

a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* hidden-to-sighted-visitors text for Google + screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- the canvas ---------- */

.canvas { position: relative; }
.canvas > .bg {
  display: block;
  width: 100%;
  height: auto;        /* artwork keeps its own proportions */
}

/* anything pinned to the artwork */
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  transform: translate(-50%, -50%);   /* --x/--y are the CENTER */
  line-height: 0;
}
.pin img {
  width: 100%;
  height: auto;
  transition: transform .18s ease, filter .18s ease;
  transform-origin: center center;
  filter: drop-shadow(2px 5px 4px rgba(32, 18, 8, .35));
}
.pin:hover img,
.pin:focus-visible img {
  transform: rotate(var(--hover-rot, 1.2deg)) translateY(-1px) scale(1.055);
  filter: drop-shadow(4px 10px 6px rgba(32, 18, 8, .46));
}

/* ---------- HOME: cascading buttons pinned to the artwork ----- */
/* values measured from your original Elementor layout            */

.btn-littleones   { --x: 53%;   --y: 22%;   --w: 15%; --hover-rot: -1.4deg; }
.btn-about        { --x: 59%;   --y: 29%;   --w: 13%; --hover-rot: 1.1deg; }
.btn-publications { --x: 66%;   --y: 36%;   --w: 13%; --hover-rot: -0.9deg; }
.btn-contact      { --x: 72.5%; --y: 42.5%; --w: 13%; --hover-rot: 1.5deg; }

@media (max-width: 700px) {
  /* phone layout: the artwork fills the whole screen (cropping the
     sides a little rather than leaving blank space below), anchored
     to the top so the "Welcome aboard..." text stays visible */
  .home-canvas > .bg {
    height: 100vh;
    height: 100svh;
    object-fit: cover;
    object-position: top center;
  }
  /* cascade starts below the Welcome aboard text */
  .btn-littleones   { --x: 50%; --y: 30%; --w: 38%; }
  .btn-about        { --x: 58%; --y: 47%; --w: 34%; }
  .btn-publications { --x: 64%; --y: 64%; --w: 34%; }
  .btn-contact      { --x: 69%; --y: 81%; --w: 34%; }
}

/* ---------- return buttons (fixed corner, not canvas) -------- */

.return {
  position: absolute;
  top: 1.1rem; left: 1.1rem;
  z-index: 5;
  width: clamp(72px, 9vw, 110px);
  line-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.return img {
  width: 100%;
  height: auto;
  transition: transform .18s ease, filter .18s ease;
  filter: drop-shadow(1px 2px 2px rgba(25,15,8,.28));
}
.return:hover,
.return:focus-visible {
  background: transparent;
  box-shadow: none;
}
.return:hover img,
.return:focus-visible img {
  transform: rotate(var(--return-hover-rot, -1.2deg)) translateY(-1px) scale(1.045);
  filter: drop-shadow(2px 4px 3px rgba(25,15,8,.36));
}
.page-about .return { --return-hover-rot: 1.1deg; }
.page-littleones .return { --return-hover-rot: -1.3deg; }
.page-publications .return { --return-hover-rot: 1.4deg; }
.page-contact .return { --return-hover-rot: -0.9deg; }

/* ---------- LITTLE ONES -------------------------------------- */

body.page-littleones { background: #150506; }

/* the crooked cover, pinned over the picture page */
/* larger and farther right/down to match the Elementor Little Ones page */
.lo-cover { --x: 32%; --y: 43%; --w: 46%; --hover-rot: -1.1deg; }
.lo-cover img { filter: drop-shadow(0 8px 22px rgba(0,0,0,.55)); }
.lo-cover:hover img,
.lo-cover:focus-visible img { filter: drop-shadow(0 11px 28px rgba(0,0,0,.62)); }

/* NOTE: the ".canvas >" prefix is required — without it these rules
   lose to ".canvas > .bg" above and BOTH images render stacked (that
   was the bug pushing the cover way down the page) */
.canvas > .lo-desktop { display: block; }
.canvas > .lo-mobile  { display: none; }
@media (max-width: 700px) {
  .canvas > .lo-desktop { display: none; }
  .canvas > .lo-mobile  { display: block; }
  /* on the tall mobile artwork the cover sits over the picture page */
  .lo-cover { --x: 50%; --y: 23%; --w: 90%; }
}

/* ---------- ABOUT --------------------------------------------- */

body.page-about { background: var(--parchment); }

/* Desktop/tablet: make the about artwork behave like the old Elementor
   version — it fills the viewport instead of sitting as a smaller image.
   Mobile keeps the separate tall image below. */
.page-about .canvas { min-height: 100vh; min-height: 100svh; }
.canvas > .about-desktop {
  display: block;
  width: 100%;
  height: 100vh;
  height: 100svh;
  object-fit: cover;
  object-position: top center;
}
.canvas > .about-mobile  { display: none; }
@media (max-width: 700px) {
  /* Keep the same warm page color behind the mobile artwork instead of
     letting the browser/default dark background show around the image. */
  .page-about .canvas {
    min-height: 0;
    background: var(--parchment);
    padding-top: 3.4rem;
  }
  .canvas > .about-desktop { display: none; }
  /* Keep the mobile about art slightly inset, with the top breathing room
     coming from the canvas padding so the Return button does not overlap. */
  .canvas > .about-mobile  {
    display: block;
    width: 92%;
    height: auto;
    margin: 0 auto;
    object-fit: initial;
  }
}

/* ---------- CONTACT -------------------------------------------- */
/* boat artwork drawn at full page width (height = 125.7% of the
   width); form pushed down a % of the width so it always lands in
   the same spot of the water as the picture scales */

body.page-contact {
  background:
    url("images/contact-bg.webp") top center / 100% auto no-repeat
    #9fb4c1;             /* sea color continues under the artwork */
}
.contact-stage {
  min-height: 125.7vw;
  padding: 0 1rem 10vw;
}
.contact-form {
  position: relative;
  width: min(500px, 88%);
  margin: 30vw auto 0;    /* <-- raises/lowers the form on desktop */
  padding: clamp(1.15rem, 2.6vw, 1.75rem) clamp(1.05rem, 2.8vw, 1.85rem) 1.45rem;
  background:
    radial-gradient(circle at 18% 6%, rgba(255,255,255,.32), rgba(255,255,255,0) 25%),
    repeating-linear-gradient(0deg, rgba(83, 45, 20, .045) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, rgba(249, 230, 173, .97), rgba(224, 193, 119, .96));
  border: 2px solid rgba(78, 45, 20, .70);
  outline: 1px solid rgba(122, 46, 39, .38);
  outline-offset: -8px;
  border-radius: 4px 10px 6px 9px;
  box-shadow:
    0 18px 42px rgba(12, 24, 35, .42),
    inset 0 0 22px rgba(80, 44, 16, .13),
    inset 0 0 0 1px rgba(255,255,255,.24);
  transform: rotate(-.22deg);
}
.contact-form::before {
  content: "✦ ❧ ✦";
  display: block;
  margin: 0 auto .45rem;
  color: #7a2e27;
  text-align: center;
  font-size: .78rem;
  line-height: 1;
  letter-spacing: .24em;
  opacity: .88;
}
@media (max-width: 700px) {
  body.page-contact {
    background-image: url("images/contact-bg-mobile.webp");
  }
  .contact-form { margin-top: 84vw; width: min(500px, 90%); }  /* <-- same, for phones */
}

.contact-form label {
  display: block;
  color: #392615;
  text-shadow: none;
  font-size: 1.04rem;
  font-variant-caps: small-caps;
  letter-spacing: .035em;
  margin: 0.88rem 0 0.28rem;
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form .req { color: #7a2e27; }
.name-row { display: flex; gap: 0.75rem; }
.name-row > div { flex: 1; }
.name-row small {
  color: rgba(57, 38, 21, .72);
  text-shadow: none;
  font-style: italic;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.58rem 0.72rem;
  font: inherit;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 230, .94), rgba(247, 235, 196, .92));
  border: 1px solid rgba(69, 44, 22, .68);
  border-radius: 2px 5px 3px 4px;
  box-shadow: inset 0 2px 4px rgba(54,37,16,.16), 0 1px 0 rgba(255,255,255,.28);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid rgba(122, 46, 39, .48); outline-offset: 2px; }
.contact-form button {
  margin-top: 1.15rem;
  padding: 0.58rem 1.65rem;
  font: inherit;
  color: #2d1d10;
  background:
    linear-gradient(180deg, rgba(235, 204, 130, .97), rgba(205, 161, 76, .96));
  border: 1px solid rgba(70,42,17,.76);
  border-radius: 2px 8px 4px 7px;
  box-shadow: 0 5px 10px rgba(54, 37, 16, .28), inset 0 1px 0 rgba(255,255,255,.35);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.contact-form button:hover,
.contact-form button:focus-visible { background: linear-gradient(180deg, rgba(243, 215, 145, .98), rgba(213, 170, 84, .98)); transform: rotate(0.8deg) translateY(-1px) scale(1.035); box-shadow: 0 7px 14px rgba(54, 37, 16, .34), inset 0 1px 0 rgba(255,255,255,.38); }

/* ---------- PUBLICATIONS ---------------------------------------- */

body.page-publications {
  /* Anchor the manuscript image to the TOP so the upper edge of the
     illustration is not chopped off. Keeping it centered horizontally
     leaves the boar/pig figure to the right of the scroll on desktop/tablet. */
  background: url("images/publications-bg.webp") top center / cover no-repeat fixed #3f3d5c;
}
@media (max-width: 800px) {
  body.page-publications { background-attachment: scroll; }
}

.pub-stage {
  min-height: 100vh;
  padding: 6rem 1rem 4rem;
}

/* the scroll grows with the list: border-image keeps the rolled
   ends intact and stretches only the parchment middle */
.scroll-box {
  margin-left: clamp(0px, 9vw, 170px);
  width: clamp(330px, 46vw, 660px);
  max-width: 96%;
  border-style: solid;
  border-width: 90px 26px 90px 26px;
  border-image: url("images/scroll.webp") 200 50 200 50 fill stretch;
  padding: 0 1.4rem;
  text-align: center;
  color: var(--ink);
}

/* Be extra explicit here because some browsers/preview states were rendering
   non-link publication text too pale over the parchment. */
.scroll-box,
.scroll-box h1,
.scroll-box h2,
.scroll-box ul,
.scroll-box li,
.scroll-box em {
  color: var(--ink);
}
.scroll-box h1 { font-size: 1.4rem; font-weight: 400; margin: 0 0 1rem; }
.scroll-box h2 {
  color: #7a2e27;
  font-weight: 500;
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: .025em;
  text-decoration: none;
  margin: 2.05rem 0 0.65rem;
}
.scroll-box h2::after {
  content: "✦ ❧ ✦";
  display: block;
  color: #7a2e27;
  font-size: .72rem;
  line-height: 1;
  margin: .25rem auto .15rem;
  letter-spacing: .18em;
  opacity: .9;
}
.scroll-box ul { list-style: none; margin: 0; padding: 0; }
.scroll-box li { margin-bottom: 0.45rem; }
.scroll-box li::before { content: "~ "; }
.scroll-box a { color: #214766; }

@media (max-width: 700px) {
  .pub-stage { display: flex; justify-content: center; padding-top: 6rem; }
  .scroll-box {
    margin-left: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    border-width: 64px 18px 64px 18px;
    padding: 0 0.9rem;
  }
  .scroll-box h2 { font-size: 1.12rem; margin: 1.55rem 0 0.48rem; }
  .scroll-box h2::after { font-size: .64rem; margin-top: .2rem; }
}


/* ---------- CUSTOM 404 ---------------------------------------- */

body.page-404 {
  min-height: 100vh;
  background: url("images/home-bg.webp") top center / cover no-repeat #25150d;
}
.missing-note {
  width: min(540px, calc(100% - 2rem));
  margin: 13vh auto 3rem;
  padding: clamp(1.35rem, 4vw, 2.2rem);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,0) 44%),
    rgba(246, 229, 175, .95);
  border: 1px solid rgba(54, 37, 16, .58);
  border-radius: 8px 3px 9px 4px;
  box-shadow: 0 16px 36px rgba(18, 11, 6, .36), inset 0 0 0 1px rgba(255,255,255,.24);
  transform: rotate(-.25deg);
}
.missing-note h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
}
.missing-note p { margin: .55rem auto 0; max-width: 36rem; }
.missing-note .home-link {
  display: inline-block;
  margin-top: 1.25rem;
  padding: .48rem 1.05rem;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 248, 226, .92);
  border: 1px solid rgba(60,50,30,.62);
  border-radius: 3px 7px 4px 6px;
  box-shadow: 0 3px 7px rgba(54, 37, 16, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.missing-note .home-link:hover,
.missing-note .home-link:focus-visible { transform: rotate(.8deg) translateY(-1px); box-shadow: 0 5px 10px rgba(54,37,16,.24); }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .pin img, .return, .return img, .contact-form button, .missing-note .home-link { transition: none; }
  .pin:hover img, .pin:focus-visible img,
  .return:hover, .return:focus-visible,
  .return:hover img, .return:focus-visible img,
  .contact-form button:hover, .contact-form button:focus-visible,
  .missing-note .home-link:hover, .missing-note .home-link:focus-visible { transform: none; }
}


/* ---------- page-turn transitions (native, zero-JS) ------------- */
/* Pages crossfade like turned leaves in supporting browsers
   (Chrome, Edge, Safari 18+); others just navigate normally. */
@media not (prefers-reduced-motion: reduce) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
}

/* ---------- newsletter (bottom of About) ------------------------ */

.newsletter {
  background: var(--parchment);
  text-align: center;
  padding: 2.5rem 1.25rem 3.5rem;
  color: #4a2a20;
}
.newsletter h2 {
  font-weight: 400;
  font-style: italic;
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}
.newsletter p { margin: 0 0 1.2rem; }
.newsletter-form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  width: min(320px, 80vw);
  padding: 0.55rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: #fffdf3;
  border: 1px solid #7a3b2e;
  border-radius: 3px;
}
.newsletter-form button {
  padding: 0.55rem 1.4rem;
  font: inherit;
  color: #fffdf3;
  background: #7a3b2e;
  border: 1px solid #5c2c22;
  border-radius: 3px;
  cursor: pointer;
}
.newsletter-form button:hover { background: #8e4636; }
.newsletter-form input:focus,
.newsletter-form button:focus-visible { outline: 2px solid #7a3b2e; outline-offset: 2px; }

/* ---------- thanks page ----------------------------------------- */

.thanks-note {
  width: min(520px, 88%);
  margin: 0 auto;
  padding-top: 34vw;
  text-align: center;
  color: #f8f2da;
  text-shadow: 0 1px 5px rgba(20,40,60,.9);
}
.thanks-note h1 { font-weight: 400; font-size: 1.7rem; margin: 0 0 0.5rem; }
.thanks-note p  { font-size: 1.1rem; font-style: italic; }
@media (max-width: 700px) { .thanks-note { padding-top: 88vw; } }

/* ---------- themed 404 ------------------------------------------- */

body.page-404 {
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}
.missing-note img.lost {
  width: min(380px, 82vw);
  height: auto;
  margin-bottom: 0.5rem;
}
.missing-note h1 { font-weight: 400; font-size: 1.7rem; margin: 0 0 0.4rem; color: #4a2a20; }
.missing-note p  { font-style: italic; margin: 0 0 1.6rem; color: #4a2a20; }
.missing-note .return-inline { display: inline-block; line-height: 0; }
.missing-note .return-inline img { width: 130px; transition: transform .18s ease; }
.missing-note .return-inline:hover img { transform: rotate(-2deg) scale(1.05); }


/* ---------- occasional notes: scroll note + quiet footer ---------- */

.notes-scroll-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 4.2rem 0 0;
}
.notes-scroll {
  width: min(470px, 92%);
  border-style: solid;
  border-width: 58px 20px 58px 20px;
  border-image: url("images/scroll.webp") 200 50 200 50 fill stretch;
  padding: .1rem .9rem .3rem;
  text-align: center;
  color: #4a2a20;
  filter: drop-shadow(0 10px 20px rgba(12, 24, 35, .22));
}
.notes-scroll h2 {
  margin: .1rem 0 .35rem;
  font-weight: 400;
  font-style: italic;
  font-size: 1.18rem;
  color: #7a2e27;
}
.notes-scroll p {
  margin: 0 0 .85rem;
  line-height: 1.45;
  font-size: .98rem;
}
.notes-scroll-form {
  display: flex;
  justify-content: center;
  gap: .55rem;
  flex-wrap: wrap;
  margin-bottom: .25rem;
}
.notes-scroll-form input,
.notes-inline-form input {
  min-width: min(280px, 72vw);
  padding: .52rem .75rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 251, 239, .92);
  border: 1px solid rgba(92, 44, 34, .72);
  border-radius: 3px 5px 4px 4px;
}
.notes-scroll-form button,
.notes-inline-form button {
  padding: .52rem 1rem;
  font: inherit;
  color: #fff9ee;
  background: #7a3b2e;
  border: 1px solid #5f2d22;
  border-radius: 3px 7px 4px 6px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 2px 6px rgba(54,37,16,.18);
}
.notes-scroll-form button:hover,
.notes-scroll-form button:focus-visible,
.notes-inline-form button:hover,
.notes-inline-form button:focus-visible {
  background: #8d4737;
  transform: rotate(.55deg) translateY(-1px);
  box-shadow: 0 4px 10px rgba(54,37,16,.24);
}
.notes-scroll-form input:focus,
.notes-inline-form input:focus,
.notes-inline summary:focus-visible {
  outline: 2px solid #7a3b2e;
  outline-offset: 2px;
}
@media (max-width: 700px) {
  .notes-scroll-wrap { margin-top: 3rem; }
  .notes-scroll { width: min(440px, 94%); border-width: 48px 18px 48px 18px; }
  .notes-scroll-form input,
  .notes-inline-form input { min-width: min(260px, 78vw); }
}

.site-colophon {
  width: min(740px, calc(100% - 1.5rem));
  margin: 1.1rem auto 1.8rem;
  text-align: center;
  color: #5c342a;
}
.notes-inline {
  display: inline-block;
  max-width: 100%;
  background: rgba(246, 229, 175, .93);
  border: 1px solid rgba(90, 53, 31, .42);
  border-radius: 999px;
  padding: .35rem .85rem .42rem;
  box-shadow: 0 6px 16px rgba(22, 12, 5, .12);
}
.notes-inline[open] {
  border-radius: 18px;
  padding: .6rem .85rem .75rem;
  min-width: min(540px, 100%);
}
.notes-inline summary {
  list-style: none;
  cursor: pointer;
  font-size: .95rem;
  line-height: 1.3;
}
.notes-inline summary::-webkit-details-marker { display: none; }
.notes-inline-title { font-style: italic; }
.notes-inline-verb {
  color: #7a2e27;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.notes-inline p {
  margin: .55rem auto .7rem;
  max-width: 28rem;
  font-size: .95rem;
}
.notes-inline-form {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}

/* make the footer feel quieter on image-heavy pages */
.page-littleones .site-colophon,
.page-publications .site-colophon,
.page-contact .site-colophon { margin-top: 1.5rem; }

/* ---------- 404 repairs ---------------------------------------- */
body.page-404 {
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}
.missing-note {
  width: min(540px, calc(100% - 2rem));
  margin: 5vh auto 2rem;
  padding: clamp(1.35rem, 4vw, 2.2rem);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,0) 44%),
    rgba(246,229,175,.96);
  border: 1px solid rgba(54,37,16,.58);
  border-radius: 8px 3px 9px 4px;
  box-shadow: 0 16px 36px rgba(18,11,6,.22), inset 0 0 0 1px rgba(255,255,255,.24);
  transform: none;
}
.missing-note img.lost {
  width: min(380px, 82vw);
  height: auto;
  display: block;
  margin: 0 auto .75rem;
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 57%, rgba(0,0,0,.92) 66%, rgba(0,0,0,0) 84%);
  mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 57%, rgba(0,0,0,.92) 66%, rgba(0,0,0,0) 84%);
}
.missing-note h1 {
  font-weight: 400;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  margin: 0 0 .4rem;
  color: #4a2a20;
}
.missing-note p {
  font-style: italic;
  margin: 0 0 1.25rem;
  color: #4a2a20;
}
.missing-note .return-inline {
  display: inline-block;
  line-height: 0;
  transform: none;
}
.missing-note .return-inline img {
  width: 130px;
  height: auto;
  display: block;
  filter: drop-shadow(1px 2px 2px rgba(25,15,8,.2));
  transition: transform .18s ease, filter .18s ease;
}
.missing-note .return-inline:hover img,
.missing-note .return-inline:focus-visible img {
  transform: rotate(-1.4deg) translateY(-1px) scale(1.04);
  filter: drop-shadow(2px 4px 3px rgba(25,15,8,.3));
}

@media (prefers-reduced-motion: reduce) {
  .notes-scroll-form button,
  .notes-inline-form button,
  .missing-note .return-inline img { transition: none; }
  .notes-scroll-form button:hover,
  .notes-scroll-form button:focus-visible,
  .notes-inline-form button:hover,
  .notes-inline-form button:focus-visible,
  .missing-note .return-inline:hover img,
  .missing-note .return-inline:focus-visible img { transform: none; }
}


/* ---------- v21 layout refinements ---------------------------- */

/* Keep the quiet notes on the home page tucked against the image itself,
   so the page stops at the artwork edge instead of growing white below it. */
.home-canvas { position: relative; }
.home-inline-notes {
  position: absolute;
  left: 50%;
  bottom: .85rem;
  transform: translateX(-50%);
  width: auto;
  margin: 0;
  z-index: 4;
}
.home-inline-notes .notes-inline {
  background: rgba(246, 229, 175, .95);
  box-shadow: 0 8px 18px rgba(22, 12, 5, .18);
}
@media (max-width: 700px) {
  .home-inline-notes { bottom: .7rem; }
}

/* Contact page: shorten the composition and rely only on the scroll signup. */
.contact-stage {
  min-height: 106vw;
  padding: 0 1rem 5vw;
}
.contact-form {
  margin-top: 24vw;
}
.page-contact .notes-scroll-wrap {
  margin-top: 2.35rem;
}
@media (max-width: 700px) {
  .contact-stage {
    min-height: 182vw;
    padding-bottom: 8vw;
  }
  .contact-form {
    margin-top: 80vw;
    width: min(500px, 90%);
  }
  .page-contact .notes-scroll-wrap { margin-top: 2rem; }
}


/* ---------- v22 quiet notes wording ---------------------------- */
/* The collapsed footer note now has one clickable phrase only. */
.notes-inline summary {
  color: #7a2e27;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.notes-inline-title {
  font-style: italic;
}
.notes-inline-sep,
.notes-inline-verb {
  display: none;
}


/* ---------- v23 refinements ----------------------------------- */

/* About desktop/tablet: show the full lower portion of the artwork instead
   of cropping it off at the viewport bottom. */
.page-about .canvas {
  min-height: 0;
  background: var(--parchment);
}
.canvas > .about-desktop {
  width: 100%;
  height: auto;
  max-height: 100svh;
  object-fit: contain;
  object-position: top center;
}

/* Little Ones: deepen the return button slightly so it sits better against
   the darker manuscript spread. */
.page-littleones .return img {
  filter: brightness(.78) sepia(.16) saturate(.82) drop-shadow(1px 2px 2px rgba(15, 8, 5, .42));
}
.page-littleones .return:hover img,
.page-littleones .return:focus-visible img {
  filter: brightness(.78) sepia(.16) saturate(.82) drop-shadow(2px 4px 3px rgba(15, 8, 5, .52));
}

/* Contact page: let the page end near the bottom of the newsletter scroll,
   instead of forcing a much taller stage than the content needs. */
.contact-stage {
  min-height: 0;
  padding: 0 1rem 1.2rem;
}
.contact-form {
  margin-top: 11.5vw;
}
.page-contact .notes-scroll-wrap {
  margin-top: 1.15rem;
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .contact-stage {
    min-height: 0;
    padding-bottom: 1rem;
  }
  .contact-form {
    margin-top: 70vw;
    width: min(500px, 90%);
  }
  .page-contact .notes-scroll-wrap { margin-top: 1rem; }
}


/* ---------- v25 publication links + notes position ------------- */
/* Give the quiet newsletter opener a little more breathing room below it
   so the expanded form is already visible instead of unfolding off-screen. */
.site-colophon {
  margin-bottom: 4.25rem;
}
.home-inline-notes {
  bottom: 2.65rem;
}
.page-littleones .site-colophon,
.page-publications .site-colophon,
.page-about .site-colophon {
  margin-bottom: 4.25rem;
}
@media (max-width: 700px) {
  .site-colophon,
  .page-littleones .site-colophon,
  .page-publications .site-colophon,
  .page-about .site-colophon {
    margin-bottom: 4.5rem;
  }
  .home-inline-notes { bottom: 2.4rem; }
}


/* ---------- v28 publications polish ---------------------------- */

.book-feature {
  margin: .15rem auto 1.25rem;
  padding: .75rem .85rem .8rem;
  max-width: 24rem;
  text-align: center;
  background: rgba(255, 249, 224, .38);
  border: 1px solid rgba(122, 46, 39, .32);
  border-radius: 4px 9px 5px 8px;
  box-shadow: 0 3px 8px rgba(54, 37, 16, .10), inset 0 0 14px rgba(122, 46, 39, .045);
}

.book-feature a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.book-title {
  display: block;
  color: #7a2e27;
  font-size: clamp(1.32rem, 2vw, 1.68rem);
  font-style: italic;
  line-height: 1.15;
}

.book-meta {
  display: block;
  margin-top: .25rem;
  color: rgba(29, 28, 26, .78);
  font-size: .94rem;
  letter-spacing: .025em;
  font-variant-caps: small-caps;
}

.selected-pubs {
  max-width: 29rem;
  margin: 0 auto 1.15rem !important;
  padding: 0 !important;
}

.selected-pubs li {
  margin-bottom: .42rem;
}

.selected-pubs li::before {
  content: "✦ ";
  color: #7a2e27;
  font-size: .72em;
  vertical-align: .08em;
}

@media (max-width: 700px) {
  .book-feature {
    padding: .65rem .7rem .68rem;
    margin-bottom: 1rem;
  }
  .book-title { font-size: 1.28rem; }
  .book-meta { font-size: .82rem; }
}


/* ---------- v29 publications order / emphasis ------------------ */

.book-feature {
  margin-top: .3rem;
  margin-bottom: 1.75rem;
  padding-top: .9rem;
  padding-bottom: .95rem;
}

.book-feature::before {
  content: "book";
  display: block;
  margin: 0 0 .28rem;
  color: rgba(122, 46, 39, .72);
  font-size: .78rem;
  font-style: italic;
  letter-spacing: .09em;
  text-transform: lowercase;
}

.selected-pubs {
  font-style: italic;
}

.selected-pubs em {
  font-style: normal;
}

.selected-pubs li {
  line-height: 1.55;
}
