/* Joyce Ann Ashford — public author site.
   Palette from Ashford Quill: indigo, cream (linen), gold thread, red clay (madder). */
:root {
  --paper: #f5ede0;
  --paper-2: #ece0cb;
  --card: #fbf6ec;
  --ink: #1a2333;
  --indigo: #1c3a5e;
  --indigo-deep: #13263f;
  --clay: #a8392b;
  --clay-deep: #8a2c20;
  --gold: #c49248;
  --gold-soft: #e3c48d;
  --gold-ink: #7a561c;
  --muted: #5a5244;
  --line: rgba(28, 58, 94, .16);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Spectral", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --stitch: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 17px);
  --shadow-book: 0 1px 1px rgba(26, 35, 51, .1), 0 12px 20px -8px rgba(26, 35, 51, .38), 0 34px 54px -26px rgba(26, 35, 51, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .27 0 0 0 0 .16 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; color: var(--indigo); }
p { margin: 0 0 1em; }
i, em { font-style: italic; }
::selection { background: var(--clay); color: var(--card); }
:focus-visible { outline: 2.5px solid var(--clay); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
.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; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--indigo); color: var(--card); padding: .6rem 1rem; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow {
  font-family: var(--text); font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 1rem;
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--gutter);
  background: rgba(245, 237, 224, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--stitch); opacity: .55; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--indigo); }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.08rem; letter-spacing: .005em; }
.nav { display: flex; gap: clamp(.9rem, 2.6vw, 2.2rem); }
.nav a {
  position: relative; text-decoration: none; color: var(--indigo);
  font-size: .95rem; letter-spacing: .04em; padding: .55rem 0;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .3rem; height: 1.5px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
@media (max-width: 399px) { .brand-name { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  font-family: var(--text); font-weight: 600; font-size: 1rem; letter-spacing: .02em;
  padding: .8rem 1.5rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .3s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn-primary { background: var(--clay); color: var(--card); box-shadow: 0 10px 22px -12px rgba(168, 57, 43, .8); }
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-quiet { border-color: rgba(28, 58, 94, .4); color: var(--indigo); background: transparent; }
.btn-quiet:hover { border-color: var(--indigo); background: rgba(28, 58, 94, .06); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}
.places { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 1.4rem; }
.places .place { white-space: nowrap; }
.places .dot { color: var(--gold); margin: 0 .25em; }
.hero h1 { margin: 0 0 1.2rem; font-weight: 400; }
.name-script {
  display: block; font-family: var(--script); font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: .9; color: var(--clay);
  margin: 0 0 -.05em .08em;
}
.name-main {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: clamp(4.1rem, 10vw, 9rem); line-height: .86; letter-spacing: -.025em;
  color: var(--indigo); font-variation-settings: "opsz" 144;
}
.roles { font-family: var(--display); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--indigo); margin-bottom: 1.4rem; }
.roles span { color: var(--gold); font-style: normal; font-size: .7em; margin: 0 .45em; vertical-align: .15em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 34em; }
.lede-2 { color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.portrait { position: relative; margin: 0 auto; width: min(100%, 430px); padding: 18px; }
.portrait::before {
  content: ""; position: absolute; inset: 4px;
  border: 1.5px dashed var(--gold); border-radius: 999px 999px 10px 10px; opacity: .75; pointer-events: none;
}
.portrait::after {
  content: ""; position: absolute; left: -6px; bottom: 54px; width: 84px; height: 84px; z-index: 2;
  background:
    conic-gradient(var(--indigo) 0 25%, var(--card) 0 50%, var(--indigo) 0 75%, var(--card) 0) 0 0 / calc(200% / 3) calc(200% / 3);
  border: 4px solid var(--clay); box-shadow: 0 12px 24px -10px rgba(26, 35, 51, .55);
  transform: rotate(-9deg);
}
.portrait-frame {
  position: relative; overflow: hidden; border-radius: 999px 999px 6px 6px;
  box-shadow: 0 30px 60px -30px rgba(19, 38, 63, .7), 0 2px 0 rgba(255, 255, 255, .6) inset;
  background: var(--paper-2);
}
.portrait-frame img { width: 100%; height: auto; }
.portrait-tag {
  position: absolute; right: 0; bottom: 30px; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--card); color: var(--indigo); font-size: .78rem; letter-spacing: .08em;
  padding: .45rem .85rem; border-radius: 999px; box-shadow: 0 10px 20px -12px rgba(26, 35, 51, .6);
}
.stitch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }

/* ---------- book objects ---------- */
.book-3d {
  position: relative; display: block; border-radius: 2px 5px 5px 2px; background: var(--paper-2);
  box-shadow: var(--shadow-book);
}
.book-3d img { width: 100%; height: auto; border-radius: inherit; }
.book-3d::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .2) 0, rgba(255, 255, 255, .28) 1.6%, rgba(255, 255, 255, 0) 4.5%, rgba(0, 0, 0, 0) 93%, rgba(0, 0, 0, .1) 100%);
}
.cloth {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55em;
  aspect-ratio: 7 / 10; padding: 10% 9%; text-align: center; color: var(--gold-soft);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, #7a2f24, #4c1a14);
}
.cloth::before { content: ""; position: absolute; inset: 7%; border: 1px solid rgba(227, 196, 141, .55); border-radius: 2px; }
.cloth-series { font-size: .5em; letter-spacing: .18em; text-transform: uppercase; }
.cloth-title { font-family: var(--display); font-weight: 600; font-size: 1.05em; line-height: 1.05; }
.cloth-sub { font-family: var(--display); font-style: italic; font-size: .66em; line-height: 1.3; }

/* ---------- shelf ---------- */
.shelf-wrap { position: relative; background: var(--paper-2); padding: clamp(2.2rem, 5vw, 3.4rem) 0 clamp(2rem, 4vw, 3rem); }
.shelf-wrap::before, .shelf-wrap::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--stitch); opacity: .6; }
.shelf-wrap::before { top: 10px; }
.shelf-wrap::after { bottom: 10px; }
.shelf-title { text-align: center; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin: 0 auto 2rem; padding: 0 var(--gutter); }
.shelf-title span { display: block; font-family: var(--text); font-style: normal; font-weight: 600; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .5rem; }
.shelf-title .shelf-langs { display: block; font-size: .62em; font-style: normal; color: var(--muted); margin-top: .35rem; letter-spacing: .04em; }
.shelf {
  --shelf-h: 190px;
  list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1240px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
}
.shelf li { position: relative; padding: 0 clamp(.35rem, .9vw, .75rem); }
.shelf li::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--shelf-h) + 1px); height: 7px;
  background: linear-gradient(var(--indigo), var(--indigo-deep)); box-shadow: 0 8px 14px -8px rgba(19, 38, 63, .8);
}
.shelf-book { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); }
.shelf-book .book-3d { height: var(--shelf-h); transition: transform .45s var(--ease), box-shadow .45s var(--ease); transform-origin: bottom center; }
.shelf-book .book-3d img { height: 100%; width: auto; }
.shelf-book .cloth { font-size: 15px; }
.shelf-book:hover .book-3d, .shelf-book:focus-visible .book-3d { transform: translateY(-8px) rotate(-1.5deg); }
.shelf-label { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 1.4rem; max-width: 140px; line-height: 1.25; }
.shelf-label b { font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--indigo); }
.shelf-label small { font-size: .84rem; color: var(--muted); margin-top: .25rem; }

/* ---------- section heads ---------- */
.section-head { max-width: 780px; margin: 0 auto; text-align: center; padding: 0 var(--gutter); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.01em; }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: .8rem; }
.section-head .eyebrow::before, .section-head .eyebrow::after { content: ""; width: 34px; height: 1.5px; background: var(--stitch); }
.section-lede { font-size: 1.15rem; color: var(--muted); margin: 1.1rem auto 0; max-width: 36em; }

/* ---------- books ---------- */
.books { padding: clamp(3.5rem, 8vw, 6.5rem) 0 0; }
.book {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter);
}
.book + .book::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1.5px; background: var(--stitch); opacity: .5; }
.book-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.book-flip .book-art { order: 2; }
.book-art { display: flex; justify-content: center; }

.cover-pair { position: relative; width: min(100%, 420px); padding-bottom: 4%; }
.cover-pair .cover-front { position: relative; z-index: 1; width: 70%; transition: transform .5s var(--ease); }
.cover-pair .cover-back { position: absolute; z-index: 0; right: 4%; top: 7%; width: 56%; transform: rotate(5deg); filter: saturate(.92); transition: transform .5s var(--ease); }
.cover-pair:hover .cover-front { transform: translateY(-5px) rotate(-1deg); }
.cover-pair:hover .cover-back { transform: rotate(7deg) translateX(6px); }
.cover-trio { position: relative; width: min(100%, 440px); padding: 16% 0 6%; }
.cover-trio .cover-front { position: relative; z-index: 2; width: 66%; margin: 0 auto; transition: transform .5s var(--ease); }
.cover-trio .cover-left, .cover-trio .cover-right { position: absolute; z-index: 1; top: 3%; width: 48%; transition: transform .5s var(--ease); }
.cover-trio .cover-left { left: 2%; transform: rotate(-7deg); }
.cover-trio .cover-right { right: 2%; transform: rotate(7deg); }
.cover-trio:hover .cover-front { transform: translateY(-5px); }
.cover-trio:hover .cover-left { transform: rotate(-9deg) translateX(-4px); }
.cover-trio:hover .cover-right { transform: rotate(9deg) translateX(4px); }
.ribbon {
  position: absolute; z-index: 3; top: 47%; right: -6px; padding: .25rem .75rem .25rem .9rem;
  background: var(--clay); color: var(--card); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 3px 0 0 3px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .5);
}
.cover-solo { width: min(78%, 330px); transform: rotate(-1.2deg); transition: transform .5s var(--ease); }
.cover-solo:hover { transform: rotate(0) translateY(-5px); }

.tag { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); margin-bottom: .9rem; }
.book h3 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); letter-spacing: -.015em; font-variation-settings: "opsz" 96; }
.subtitle { font-family: var(--display); font-style: italic; font-size: clamp(1.1rem, 1.9vw, 1.32rem); color: var(--muted); line-height: 1.35; margin: .55rem 0 1.5rem; }
.series { display: block; font-family: var(--text); font-style: normal; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-top: .5rem; }
.book-text > p { max-width: 38em; }
.fr-line { font-size: 1rem; background: rgba(251, 246, 236, .75); border-left: 3px solid var(--gold); padding: .9rem 1.1rem; border-radius: 0 8px 8px 0; color: var(--muted); }
.fr-line b { color: var(--indigo); font-weight: 600; }
.actions { margin: 1.8rem 0 1.4rem; }

.editions { list-style: none; margin: 0; padding: 0; max-width: 34rem; border-top: 1px solid var(--line); }
.editions li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.ed-name { font-family: var(--display); font-weight: 600; color: var(--indigo); font-size: 1.02rem; }
.ed-name small { display: block; font-family: var(--text); font-weight: 400; font-size: .82rem; color: var(--muted); }
.buy {
  font-family: var(--text); font-size: .86rem; font-weight: 600; letter-spacing: .03em;
  min-height: 44px; padding: .55rem 1.05rem; border-radius: 999px;
  background: transparent; color: var(--gold-ink); border: 1.5px dashed rgba(122, 86, 28, .55);
}
.buy:disabled { cursor: not-allowed; }
a.buy { display: inline-flex; align-items: center; text-decoration: none; background: var(--indigo); color: var(--card); border: 1.5px solid var(--indigo); transition: background-color .3s; }
a.buy:hover { background: var(--indigo-deep); }

.verse-quote, .prose-quote { margin: 1.8rem 0; padding: .3rem 0 .3rem 1.4rem; border-left: 2px solid var(--gold); }
.verse-quote p { font-family: var(--display); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--indigo); margin: 0 0 .6rem; }
.prose-quote p { font-style: italic; font-size: 1.05rem; color: var(--ink); margin: 0 0 .6rem; }
.verse-quote footer, .prose-quote footer, .mama footer { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.book-moral { font-family: var(--display); font-style: italic; font-size: clamp(1.2rem, 2.1vw, 1.45rem); line-height: 1.4; color: var(--clay); }
.credit { font-size: .95rem; color: var(--muted); }
.idc-mark { display: inline-block; width: 1.45em; height: 1.45em; vertical-align: -.38em; margin: 0 .08em; }

.document { position: relative; margin: 0; width: min(100%, 390px); background: #fffdf8; padding: 12px 12px 16px; transform: rotate(-1.6deg); box-shadow: 0 2px 2px rgba(26, 35, 51, .08), 0 26px 46px -24px rgba(26, 35, 51, .55); }
.document::before { content: ""; position: absolute; top: -12px; left: 50%; width: 118px; height: 28px; margin-left: -59px; background: rgba(227, 211, 176, .82); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.document figcaption { font-size: .86rem; line-height: 1.5; font-style: italic; color: var(--muted); margin-top: .8rem; }
/* Grand Pappy: the cover, with his 1936 TVA record tucked in front of it */
.gp-art { position: relative; width: min(100%, 440px); padding: 0 0 22%; }
.gp-art .cover-front { width: 68%; transform: rotate(-1.2deg); transition: transform .5s var(--ease); }
.gp-art:hover .cover-front { transform: rotate(0) translateY(-5px); }
.gp-art .document { position: absolute; z-index: 2; right: 0; bottom: 0; width: 46%; padding: 8px 8px 10px; transform: rotate(3deg); }
.gp-art .document::before { width: 72px; height: 20px; margin-left: -36px; top: -9px; }
.gp-art .document figcaption { font-size: .8rem; line-height: 1.4; margin-top: .5rem; }
.wip { display: inline-block; color: var(--clay); border: 1.5px solid var(--clay); border-radius: 999px; padding: .05rem .6rem; letter-spacing: .12em; }
.note { position: relative; font-style: italic; color: var(--muted); padding-top: 1rem; }
.note::before { content: ""; position: absolute; top: 0; left: 0; width: 70px; height: 1.5px; background: var(--stitch); }

/* ---------- about ---------- */
.about { position: relative; background: var(--indigo-deep); color: var(--paper); padding: clamp(4rem, 9vw, 7rem) 0; margin-top: clamp(2rem, 5vw, 4rem); overflow: hidden; }
.about::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; opacity: .14; transform: rotate(12deg);
  background:
    conic-gradient(from 45deg, var(--gold) 0 25%, transparent 0 50%, var(--gold) 0 75%, transparent 0) 0 0 / 25% 25%;
}
.about-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.about .section-head { padding: 0; }
.about h2 { color: var(--card); }
.about .eyebrow { color: var(--gold-soft); }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5.5rem); margin-top: clamp(2.5rem, 5vw, 3.8rem); align-items: start; }
.bio { font-size: 1.15rem; line-height: 1.8; }
.bio::first-letter { font-family: var(--display); font-weight: 600; float: left; font-size: 3.9em; line-height: .82; margin: .08em .1em 0 0; color: var(--gold-soft); }
.bio-more { font-size: 1.05rem; line-height: 1.75; margin: 1.1rem 0 0; color: rgba(245, 237, 224, .88); }
.bio-more i { color: var(--gold-soft); }
.mama { margin: 2.2rem 0 0; padding: 1.6rem 0 0; border-top: 1.5px solid rgba(227, 196, 141, .35); }
.mama p { font-family: var(--display); font-style: italic; font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.3; color: var(--gold-soft); margin: 0 0 .7rem; }
.mama p::before { content: "“"; color: var(--clay); margin-left: -.45em; }
.mama p::after { content: "”"; color: var(--clay); }
.mama footer { color: rgba(245, 237, 224, .72); }
.homes { list-style: none; counter-reset: home; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.homes li { counter-increment: home; position: relative; padding: 1.3rem 1.4rem 1.2rem 4rem; border: 1.5px dashed rgba(227, 196, 141, .38); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.homes li::before { content: counter(home); position: absolute; left: 1.25rem; top: .85rem; font-family: var(--display); font-style: italic; font-size: 2rem; color: var(--gold); }
.homes h3 { color: var(--card); font-size: 1.25rem; margin-bottom: .35rem; }
.homes p { font-size: 1rem; line-height: 1.6; margin: 0; color: rgba(245, 237, 224, .86); }

/* ---------- readings ---------- */
.readings { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.ticket {
  position: relative; max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--card); border: 1.5px dashed var(--gold); border-radius: 18px;
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.4rem, 6vw, 4rem);
  box-shadow: 0 30px 60px -40px rgba(26, 35, 51, .55);
}
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--paper); border: 1.5px dashed var(--gold); }
.ticket::before { left: -16px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -16px; clip-path: inset(0 50% 0 0); }
.ticket h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.ticket p { font-size: 1.1rem; max-width: 32em; margin-left: auto; margin-right: auto; }
.ticket-note { font-family: var(--display); font-style: italic; color: var(--clay); margin: 1.4rem auto 0; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: rgba(245, 237, 224, .82); padding: 2.6rem var(--gutter) 2.8rem; font-size: .9rem; line-height: 1.6; }
.foot-inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: .8rem; }
.foot-brand { display: flex; align-items: center; gap: .6rem; margin: 0; color: var(--gold-soft); }
.foot-brand b { font-family: var(--display); font-weight: 600; color: var(--card); }
.foot-legal { margin: 0; max-width: 60em; }

/* ---------- sample dialogs ---------- */
.sample {
  width: min(740px, calc(100% - 24px)); max-height: min(92vh, 980px); max-height: min(92dvh, 980px);
  max-width: none; padding: 0; border: 0; border-radius: 16px; overflow: auto; overscroll-behavior: contain;
  background: var(--card); color: var(--ink);
  box-shadow: 0 50px 100px -40px rgba(10, 16, 28, .75);
}
.sample-wide { width: min(880px, calc(100% - 24px)); }
.sample::backdrop { background: rgba(19, 38, 63, .66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sample[open] { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
.sample-head {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .8rem .7rem clamp(20px, 5vw, 52px); background: rgba(251, 246, 236, .95); border-bottom: 1px solid var(--line);
}
.sample-head .eyebrow { margin: 0; }
.close { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--indigo); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color .25s, transform .25s; }
.close:hover { background: rgba(28, 58, 94, .08); transform: rotate(90deg); }
.sample-body { padding: clamp(1.4rem, 4vw, 2.4rem) clamp(20px, 6vw, 64px) clamp(2rem, 5vw, 3rem); }
.sample-title { text-align: center; font-weight: 400; font-style: italic; font-size: clamp(1.9rem, 4.6vw, 2.7rem); margin: .4rem 0 1.6rem; }
.sample-title span { display: block; font-family: var(--text); font-style: normal; font-weight: 600; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .6rem; }
.context { font-style: italic; color: var(--muted); text-align: center; max-width: 34em; margin: 0 auto 2rem; font-size: 1.02rem; }
.excerpt p { margin: 0; text-indent: 1.6em; hyphens: auto; }
.excerpt p:first-child { text-indent: 0; }
.excerpt p:first-child::first-letter { font-family: var(--display); font-weight: 600; float: left; font-size: 3.4em; line-height: .84; margin: .08em .1em 0 0; color: var(--clay); }
.sample-end { text-align: center; font-style: italic; color: var(--muted); font-size: .98rem; margin: 2.4rem auto 0; padding-top: 1.4rem; max-width: 34em; position: relative; }
.sample-end::before { content: "❦"; position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%); font-style: normal; color: var(--gold); font-size: 1.2rem; }

.lang-switch { display: flex; justify-content: center; gap: .4rem; margin: 0 auto 1.6rem; }
.lang-switch button {
  font-family: var(--text); font-size: .9rem; font-weight: 600; min-height: 40px; padding: .4rem 1rem;
  border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--indigo); cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--card); }

.poem { margin: 0 auto 2.6rem; max-width: 30em; }
.poem h3 { font-weight: 400; font-style: italic; text-align: center; font-size: 1.55rem; margin-bottom: 1rem; }
.poem p { font-size: 1.1rem; line-height: 1.6; margin: 0 auto; width: fit-content; max-width: 100%; }
.poem .line { display: block; padding-left: 1.4em; text-indent: -1.4em; margin-bottom: .12em; }
.poem + .poem::before { content: "❦"; display: block; text-align: center; color: var(--gold); margin: -1rem 0 1.6rem; }

/* picture-book peek: the verse sits on the page like the printed book, or under it on small screens */
.peek-page { container-type: inline-size; position: relative; margin: 0 auto; max-width: clamp(280px, calc(92vh - 262px), 640px); max-width: clamp(280px, calc(92dvh - 262px), 640px); }
.peek-art { border-radius: 4px; overflow: hidden; box-shadow: 0 2px 2px rgba(26, 35, 51, .08), 0 24px 44px -24px rgba(26, 35, 51, .6); background: var(--paper-2); }
.peek-art img { width: 100%; height: auto; aspect-ratio: 1; }
.peek-verse {
  position: absolute; left: 9.18%; top: 7.29%; width: 84.59%;
  padding: 2.35cqw 4cqw; margin: -2.35cqw 0 0 -4cqw;
  background: url("/img/mom/panel.png") center / 100% 100% no-repeat;
  font-family: var(--text); font-size: 3.2cqw; line-height: 1.36; color: #2b2620; text-align: center;
}
.peek-verse.fs-1 { font-size: 3.1cqw; }
.peek-verse.fs-2 { font-size: 3.27cqw; }
.peek-verse.fs-3 { font-size: 3.59cqw; }
.peek-verse p { margin: 0; }
.peek-verse .nw { white-space: nowrap; }
@container (max-width: 520px) {
  .peek-verse, .peek-verse.fs-1, .peek-verse.fs-2, .peek-verse.fs-3 {
    position: static; margin: 1.1rem 0 0; padding: 0; background: none; font-size: 1.12rem; line-height: 1.55;
  }
}
.peek-num { text-align: center; font-size: .82rem; color: var(--muted); margin: .7rem 0 0; font-variant-numeric: tabular-nums; }
.peek-controls { display: none; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.2rem; }
.peek.is-ready .peek-controls { display: flex; }
.peek.is-ready .peek-page:not(.is-current) { display: none; }
.peek.is-ready .peek-num { display: none; }
.peek-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--indigo); font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background-color .25s, transform .25s; }
.peek-btn:hover:not(:disabled) { background: rgba(28, 58, 94, .08); }
.peek-btn:disabled { opacity: .35; cursor: default; }
.peek-count { margin: 0; min-width: 7.5em; text-align: center; font-size: .92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.peek:not(.is-ready) .peek-page + .peek-page { margin-top: 2rem; }

/* without JavaScript the sample links still open the samples in place */
dialog.sample:target { display: block; position: static; margin: 2rem auto; }

/* ---------- reveal on scroll (only for content below the fold at load) ---------- */
/* The star quilt: Montage's first cover, kept as her heritage quilt (not a book cover) */
.heritage-quilt { display: flex; align-items: center; gap: clamp(1.4rem, 4vw, 3rem); margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding-top: clamp(2rem, 4vw, 3rem); border-top: 1.5px solid rgba(227, 196, 141, .35); }
.quilt-frame { flex: 0 0 auto; width: clamp(150px, 22vw, 230px); padding: 10px; border: 1.5px dashed rgba(227, 196, 141, .6); border-radius: 14px; background: rgba(255, 255, 255, .03); transform: rotate(-2deg); }
.quilt-frame img { width: 100%; border-radius: 6px; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .8); }
.heritage-quilt figcaption { max-width: 34em; font-size: 1.05rem; line-height: 1.65; color: rgba(245, 237, 224, .86); }
.heritage-quilt figcaption b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--gold-soft); margin-bottom: .3rem; }

.pre { opacity: 0; transform: translateY(22px); }
.pre.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .pre { transform: none; }
  .pre.in { transition: opacity .4s linear; }
  .sample[open] { animation: none; }
  .shelf-book .book-3d, .cover-pair .cover-front, .cover-pair .cover-back, .cover-trio .book-3d, .cover-solo, .gp-art .cover-front, .btn, .close { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding-top: 1.6rem; }
  .portrait { order: -1; width: min(66%, 320px); }
  .portrait::after { width: 56px; height: 56px; bottom: 34px; }
  .portrait-tag { display: none; }
  .book, .book-flip { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .book-flip .book-art { order: 0; }
  .cover-pair { width: min(100%, 360px); }
  .cover-trio { width: min(100%, 380px); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
}
/* seven books on a wide screen: 3 on the top shelf (memoirs, poems), 4 below (picture books, family history) */
@media (min-width: 1101px) {
  .shelf { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); row-gap: 2.4rem; }
  .shelf li { grid-column: span 2; display: flex; justify-content: center; }
  .shelf li:first-child { grid-column: 2 / span 2; }
  .shelf li:nth-child(4) { grid-column: 1 / span 2; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .shelf { --shelf-h: 150px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; max-width: 760px; }
  .shelf li { display: flex; justify-content: center; }
  .shelf-book .cloth { font-size: 12px; }
  .shelf li:last-child:nth-child(3n+1) { grid-column: 2; }
}
@media (max-width: 760px) {
  .cover-solo { width: min(64%, 250px); }
  .cover-pair { width: min(100%, 320px); }
  .shelf { --shelf-h: 104px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.6rem; padding: 0 10px; }
  .shelf li { padding: 0 6px; display: flex; justify-content: center; }
  .shelf-book .cloth { font-size: 8.5px; }
  .shelf li:last-child:nth-child(3n+1) { grid-column: 2; }
  .shelf-label { margin-top: 1.1rem; }
  .shelf-label b { font-size: .84rem; }
  .shelf-label small { font-size: .8rem; }
}
@media (max-width: 520px) {
  body { font-size: 1.06rem; }
  .heritage-quilt { flex-direction: column; align-items: flex-start; }
  .gp-art .document figcaption { display: none; }
  .places { font-size: .78rem; letter-spacing: .12em; }
  .places .dot { display: none; }
  .places .place { display: block; }
  .hero-actions .btn { flex: 1 1 auto; }
  .editions li { align-items: flex-start; }
  .sample { width: calc(100% - 16px); max-width: none; max-height: calc(100dvh - 16px); border-radius: 12px; }
}
