/* Romi Publishing. Layout idea: a publisher's catalogue, covers lead, type stays quiet. */
:root {
  color-scheme: light;
  --paper: #F5F0E6;
  --ink: #26241F;
  --muted: #5E5A52;
  --line: #D9D1C0;
  --accent: #A64A22;
  --accent-light: #E39A62;
  --serif: 'Libre Baskerville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  --sans: 'Libre Franklin', 'Franklin Gothic Medium', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; }
.rule { height: 4px; background: var(--accent); }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 40px; padding-top: 22px; padding-bottom: 22px; }
.wordmark { font-family: var(--serif); font-size: 17px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 36px; font-size: 14px; font-weight: 500; letter-spacing: .06em; }
.bar nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* shared type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.sub { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); }
.tagline { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.45; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; color: var(--muted); }
.place, .formats { font-size: 15px; color: var(--muted); }
.lede { font-size: 18px; line-height: 1.65; max-width: 34em; }
.cover { box-shadow: 0 28px 48px -28px rgba(38, 36, 31, .6), 0 2px 6px rgba(38, 36, 31, .18); }

/* buy menu */
.actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 28px; }
.buy { position: relative; }
.buy summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; letter-spacing: .04em; border-radius: 2px; }
.buy summary::-webkit-details-marker { display: none; }
.buy summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.buy[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.buy summary:hover { background: #3A3731; }
.buy ul { list-style: none; margin: 6px 0 0; padding: 6px 0; min-width: 230px; background: #FBF8F1; border: 1px solid var(--ink); border-radius: 2px; position: absolute; z-index: 5; left: 0; }
.buy li a { display: flex; align-items: center; min-height: 44px; padding: 0 18px; text-decoration: none; font-size: 15px; font-weight: 500; }
.buy li a:hover { background: var(--paper); }
.buy li.direct a { font-weight: 600; }
.buy li.direct + li:not(.direct) { border-top: 1px solid var(--line); }
.more { display: inline-flex; align-items: center; min-height: 52px; font-size: 15px; font-weight: 600; text-underline-offset: 5px; }

/* hero */
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 88px; padding-top: 72px; padding-bottom: 96px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-text h1 { font-size: clamp(46px, 6.4vw, 92px); line-height: 1; letter-spacing: -.01em; }
.hero-cover { flex: 0 1 400px; min-width: 0; display: block; }

/* novels */
.section-head { border-top: 1px solid var(--ink); padding: 64px 0 36px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 40px; }
.section-head h2 { font-size: 44px; line-height: 1.1; }
.section-head p { font-size: 15px; color: var(--muted); }
.row { border-top: 1px solid var(--line); padding: 64px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 80px; }
.row-cover { flex: 0 1 320px; min-width: 0; display: block; }
.row-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.row-text h3 { font-size: clamp(36px, 4vw, 56px); line-height: 1.05; }
.row-text h3 a { text-decoration: none; }
.epigraph { display: flex; flex-direction: column; gap: 2px; }
.epigraph p:first-child { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4; }
.epigraph .gloss { font-size: 14px; color: var(--muted); }
.review { margin: 0; max-width: 34em; display: flex; flex-direction: column; gap: 6px; }
.review p { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.6; }
.review footer { font-size: 15px; }

/* author band */
.author-band { background: var(--ink); color: var(--paper); }
.author-band a:hover { color: var(--accent-light); }
.author-band .eyebrow { color: var(--accent-light); }
.author-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; padding-top: 88px; padding-bottom: 88px; }
.author-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.author-text h2, .author-text h1 { font-size: 44px; line-height: 1.1; }
.author-band .author-text p:not(.eyebrow) { font-size: 19px; line-height: 1.65; max-width: 34em; color: #E4DED0; }
.monogram { flex: 0 0 176px; width: 176px; height: 176px; border-radius: 50%; background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.monogram.on-cream { background: #FBF8F1; border: 1px solid var(--line); }
.monogram div { width: 156px; height: 156px; border: 1px solid var(--ink); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.monogram span { font-family: var(--serif); font-size: 52px; line-height: 1; letter-spacing: .04em; }
.monogram i { width: 28px; height: 2px; background: #C4622F; }

/* book page */
.book-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 88px; padding-top: 64px; padding-bottom: 80px; }
.book-cover { flex: 0 1 400px; min-width: 0; }
.book-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.book-text h1 { font-size: clamp(42px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.01em; }
.byline { font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.facts { list-style: none; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; color: var(--muted); }
.hook { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--accent); display: flex; flex-direction: column; margin-top: 12px; }
.logline { font-size: 19px; line-height: 1.65; max-width: 34em; font-weight: 500; margin-top: 12px; }
.hook { font-style: italic; }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 36em; font-size: 18px; line-height: 1.7; }
.direct-note { font-size: 14px; color: var(--muted); margin-top: -8px; }
.buy ul { min-width: 280px; }
.soon { font-size: 16px; max-width: 34em; }
.reviews { display: flex; flex-direction: column; gap: 22px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 8px; }
.reviews h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.photo { margin: 0 0 88px; }

/* also by */
.also { border-top: 1px solid var(--ink); }
.also .wrap { padding-top: 56px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 32px; }
.also h2 { font-size: 32px; }
.others { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.other { display: flex; flex-direction: column; gap: 12px; width: 200px; max-width: 100%; text-decoration: none; }
.other span { font-family: var(--serif); font-size: 19px; }
.other small { font-size: 13px; color: var(--muted); letter-spacing: .04em; }

/* author page, 404 */
.author-page .author-grid { padding-top: 80px; padding-bottom: 80px; align-items: flex-start; }
.author-page h1 { font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; }
.notfound .wrap { padding-top: 96px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 20px; }
.notfound h1 { font-size: clamp(38px, 5vw, 64px); }

/* footer */
.site-footer { background: var(--ink); color: var(--paper); border-top: 1px solid #45423B; }
.site-footer a:hover { color: var(--accent-light); }
.foot { padding-top: 64px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 56px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px 48px; }
.foot-cols div { display: flex; flex-direction: column; }
.foot-cols h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 8px; }
.foot-cols a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-size: 16px; }
.foot-end { display: flex; flex-direction: column; gap: 20px; }
.foot-mark { font-family: var(--serif); font-size: clamp(40px, 8.6vw, 124px); line-height: 1; letter-spacing: -.01em; color: #4A463E; }
.foot-end p { font-size: 14px; color: #BDB6A8; }

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .hero-grid { padding-top: 40px; padding-bottom: 64px; }
  .hero-cover, .row-cover, .book-cover { flex-basis: 100%; max-width: 320px; }
  .row { padding: 48px 0; }
  .row-flip .row-cover { order: -1; }
  .tagline { font-size: 21px; }
  .other { width: 140px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cover { transition: transform .25s ease; }
  a:hover > .cover { transform: translateY(-4px); }
}

/* booksellers */
.trade-inner { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.trade h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
.editions { border-collapse: collapse; width: 100%; max-width: 860px; font-size: 16px; }
.editions caption { text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); padding-bottom: 12px; }
.editions th, .editions td { text-align: left; padding: 14px 24px 14px 0; border-top: 1px solid var(--line); font-weight: 400; white-space: nowrap; }
.editions thead th { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted); border-top: 1px solid var(--ink); }
.editions tbody th { font-family: var(--serif); font-size: 17px; }
.editions .num { font-variant-numeric: tabular-nums; }

/* extras, excerpts, guide */
.extras { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 15px; font-weight: 600; }
.extras a { text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }
.terms { font-size: 16px; font-weight: 600; }
.excerpt-inner, .guide-inner { max-width: 760px; padding-top: 72px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 18px; }
.excerpt h1, .guide h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; }
.excerpt h1 a, .guide h1 a { text-decoration: none; }
.chapter { margin-top: 36px; font-family: var(--serif); font-size: 18px; line-height: 1.85; }
.chapter h2 { font-size: 15px; letter-spacing: .22em; text-transform: uppercase; text-align: center; }
.chapter-date { text-align: center; font-style: italic; color: var(--muted); margin: 8px 0 0; }
.chapter h2 + p, .chapter-date + p { margin-top: 40px; }
.chapter p + p { text-indent: 1.6em; }
.chapter .chapter-date + p { text-indent: 0; }
.chapter .lead-in { font-variant: small-caps; letter-spacing: .04em; }
.chapter hr.scene { border: 0; height: 28px; margin: 0; }
.chapter hr.scene + p { text-indent: 0; }
.excerpt-end { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 28px; }
.keep { flex-basis: 100%; font-family: var(--serif); font-style: italic; font-size: 20px; }
.rights { font-size: 13px; color: var(--muted); }
.questions { margin: 24px 0 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.7; }
.questions li::marker { font-family: var(--serif); color: var(--accent); }
@media print { .site-header, .site-footer, .rule, .excerpt-end, .skip { display: none; } body { background: #fff; } }

/* ===== v2: changes from the design review ===== */
.rule { height: 3px; }
.bar nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 #C4622F; }

/* long-form copy in the book face */
.prose, .lede, .questions, .author-text p:not(.eyebrow), .trade-inner > .lede { font-family: var(--serif); }
.prose, .questions { font-size: 16.5px; line-height: 1.8; max-width: 34em; }
.lede { font-size: 17px; line-height: 1.75; }
.logline { font-size: 17px; }

/* display tuning */
.hero-text h1, .book-text h1, .author-page h1, .trade h1 { letter-spacing: -.02em; }
.hero-text h1 { font-size: clamp(44px, 5.6vw, 80px); }

/* buttons and the buy menu */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; letter-spacing: .04em; border-radius: 2px; text-decoration: none; }
.btn:hover { background: #3A3731; color: var(--paper); }
.buy-menu { position: absolute; z-index: 5; left: 0; margin-top: 6px; width: 340px; max-width: calc(100vw - 40px); background: #FBF8F1; border: 1px solid var(--ink); border-radius: 2px; padding: 6px 0; }
.buy .buy-menu ul { position: static; margin: 0; padding: 0; min-width: 0; border: 0; background: none; }
.buy-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 18px 4px; }
.buy-note { font-size: 13px; color: var(--muted); padding: 2px 18px 10px; border-bottom: 1px solid var(--line); }
.buy li.direct a { justify-content: space-between; gap: 16px; font-weight: 600; }
.buy li.direct + li:not(.direct) { border-top: 0; }
.buy .price { font-variant-numeric: tabular-nums; }
.buy .price s { font-weight: 400; color: var(--muted); margin-left: 6px; }
.excerpt-end .buy-menu, .book-end .buy-menu { top: auto; bottom: calc(100% + 6px); margin-top: 0; }
.book-end { margin-top: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.author-band a:focus-visible { outline-color: var(--accent-light); }

/* hero: grouped spacing, larger cover, review strip */
.hero-grid { align-items: flex-start; padding-top: 64px; padding-bottom: 64px; }
.hero-text { gap: 0; }
.hero-text h1 { margin-top: 18px; }
.hero-text .sub { margin-top: 14px; }
.hero-text .tagline { margin-top: 28px; }
.hero-text .meta { margin-top: 12px; }
.hero-text .lede { margin-top: 28px; }
.hero-text .actions { margin-top: 32px; }
.hero-text .formats { margin-top: 10px; }
.hero-cover { flex: 0 1 440px; }
.hero-quote { border-top: 1px solid var(--line); padding: 44px 0 52px; }
.hero-quote .review { max-width: 30em; margin: 0 auto; text-align: center; gap: 12px; }
.hero-quote .review p { font-size: 22px; line-height: 1.5; }

/* the novels */
.section-head { padding: 40px 0 28px; }
.section-head h2, .also h2 { font-size: 28px; }
.row-text h3 { font-size: clamp(34px, 3.6vw, 48px); }

/* book page */
.book-cover { flex-basis: 360px; }
@media (min-width: 1040px) { .book-cover { position: sticky; top: 32px; } }
.hook { color: var(--ink); font-size: 22px; margin-top: 20px; }
.hook::before { content: ""; width: 28px; height: 2px; background: #C4622F; margin-bottom: 14px; }
.reviews .review p { font-style: normal; font-size: 16px; line-height: 1.75; }
.reviews .review p em { font-style: italic; }
.reviews .review + .review { border-top: 1px solid var(--line); padding-top: 22px; }
.book-text .photo { margin: 12px 0 0; max-width: 760px; }
.photo img { border: 1px solid var(--line); }

/* cover strips */
.others { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 260px)); gap: 40px 56px; }
.other { width: auto; }
.other img { aspect-ratio: 800 / 1220; object-fit: cover; width: 100%; }

/* excerpt and guide */
.back { font-size: 14px; text-underline-offset: 4px; align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; }
.excerpt-inner > .eyebrow, .excerpt h1, .excerpt .byline { text-align: center; }
.excerpt .back { align-self: center; }
.mini-rule { width: 28px; height: 2px; background: #C4622F; align-self: center; margin-top: 6px; }
.chapter { max-width: 620px; margin-inline: auto; font-size: 17px; line-height: 1.8; }
.chapter .lead-in { font-variant: normal; text-transform: uppercase; font-size: .8em; letter-spacing: .1em; }
.chapter hr.scene { height: auto; text-align: center; padding: 14px 0; }
.chapter hr.scene::after { content: "·"; color: var(--muted); font-size: 20px; }

/* booksellers */
.editions { max-width: none; }
.editions .num { text-align: right; padding-right: 32px; }
.editions thead th { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.editions tbody tr:hover { background: #EFE9DB; }
.terms { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 34em; }

/* footer: light colophon with the Romi mark */
.site-footer { background: #ECE5D5; color: var(--ink); border-top: 1px solid var(--ink); }
.site-footer a:hover { color: var(--accent); }
.foot { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 40px 72px; }
.foot-brand { flex: 1 1 280px; display: flex; align-items: center; gap: 18px; }
.foot-logo { width: 76px; height: auto; flex: none; }
.foot-name { font-family: var(--serif); font-size: 17px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.3; }
.foot-tag { font-size: 14px; color: var(--muted); margin-top: 4px; }
.foot-cols { flex: 3 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 28px 40px; }
.foot-cols h2 { color: #9A4420; }
.foot-cols a { font-size: 15px; min-height: 40px; }
.foot-copy { flex-basis: 100%; padding-top: 24px; border-top: 1px solid #CFC6B2; font-size: 13px; color: var(--muted); }

@media (max-width: 720px) {
  .hero-grid { padding-top: 32px; padding-bottom: 40px; gap: 28px; }
  .hero-cover { order: -1; flex-basis: 100%; max-width: 200px; }
  .hero-quote { padding: 32px 0 40px; }
  .hero-quote .review p { font-size: 19px; }
  .book-cover { max-width: 240px; }
  .others { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .foot { gap: 32px; }
}

/* v3: phone, tablet and accessibility review */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.scroll-hint { display: none; font-size: 13px; color: var(--muted); margin-top: 8px; }
.editions th, .editions td, .editions .num { padding-right: 16px; }
.editions tr > :last-child { padding-right: 0; }
.foot-cols a { min-height: 44px; }
@media (min-width: 721px) {
  .hero-grid, .book-grid, .row { flex-wrap: nowrap; gap: clamp(32px, 6vw, 88px); }
  .hero-text, .book-text, .row-text { flex: 1 1 0; }
  .hero-cover { flex: 0 0 clamp(220px, 36vw, 440px); }
  .book-cover { flex: 0 0 clamp(200px, 32vw, 360px); }
  .row-cover { flex: 0 0 clamp(180px, 28vw, 320px); }
}
@media (min-width: 450px) and (max-width: 1039px) {
  .others { grid-template-columns: repeat(3, minmax(0, 200px)); gap: 28px clamp(16px, 4vw, 56px); }
}
@media (max-width: 840px) { .scroll-hint { display: block; } }
@media (max-width: 720px) {
  .bar { padding-top: 10px; padding-bottom: 6px; }
  .author-grid { padding-top: 56px; padding-bottom: 56px; }
  .book-grid { padding-top: 32px; padding-bottom: 56px; }
  .author-page .author-grid { padding-top: 48px; padding-bottom: 56px; }
  .hero-cover { max-width: 220px; }
  .row-cover { max-width: 200px; }
  .monogram { flex-basis: 112px; width: 112px; height: 112px; }
  .monogram div { width: 98px; height: 98px; gap: 6px; }
  .monogram span { font-size: 34px; }
  .monogram i { width: 20px; }
  .buy-label { letter-spacing: .08em; }
}
@media (max-width: 480px) {
  .chapter { font-size: 16px; line-height: 1.7; }
  .chapter p + p { text-indent: 1.2em; }
  .actions .buy, .actions .btn { flex-basis: 100%; }
  .buy summary, .btn { width: 100%; justify-content: center; }
}
@media (max-width: 400px) { .bar nav { gap: 4px 18px; font-size: 13px; letter-spacing: .03em; } }

/* v4: newsletter band, rotating reviews, motion */
.signup { border-top: 1px solid var(--line); background: #FBF8F1; }
.signup-inner { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 72px; }
.signup-text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 10px; }
.signup-text h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; }
.signup-text p:last-child { font-family: var(--serif); font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 30em; }
.signup-form { flex: 1 1 360px; max-width: 480px; display: flex; flex-direction: column; gap: 8px; }
.signup-form label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.signup-row { display: flex; gap: 0; }
.signup-row input { flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--ink); border-right: 0; border-radius: 2px 0 0 2px; }
.signup-row input::placeholder { color: #8C877C; }
.signup-row input:focus-visible { outline: 2px solid #A64A22; outline-offset: 2px; position: relative; z-index: 1; }
.signup-row button { height: 50px; padding: 0 26px; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--paper, #F5F0E6); background: var(--ink); border: 1px solid var(--ink); border-radius: 0 2px 2px 0; cursor: pointer; }
.signup-row button:hover { background: #3A3731; }
.signup-note { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .signup-inner { padding-top: 44px; padding-bottom: 48px; } .signup-text h2 { font-size: 26px; } }

.rotator { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.slides { display: grid; width: 100%; }
.slides .slide { grid-area: 1 / 1; align-self: center; justify-self: center; }
.slides .slide:not(.on) { opacity: 0; visibility: hidden; }
.hero-quote .review footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; }
.on-book { color: var(--muted); }
.on-book a { color: inherit; }
.rot-ctl { display: none; align-items: center; gap: 2px; }
.rotator.live .rot-ctl { display: flex; }
.dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--muted); }
.dot.on::before { background: #A64A22; border-color: #A64A22; }
.rot-pause { margin-left: 12px; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 6px 4px; cursor: pointer; }
.rot-pause:hover { color: var(--ink); }
.amazon-reviews { margin-top: 8px; font-size: 15px; }

@media (prefers-reduced-motion: no-preference) {
  .slides .slide { transition: opacity .9s ease, visibility 0s linear .9s; }
  .slides .slide.on { transition: opacity .9s ease .25s, visibility 0s; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .cover { transition: transform .3s ease, box-shadow .3s ease; }
  a:hover > .cover { transform: translateY(-5px); box-shadow: 0 36px 56px -28px rgba(38, 36, 31, .7), 0 3px 8px rgba(38, 36, 31, .2); }
  details.buy[open] .buy-menu { animation: menu-in .16s ease-out; }
  .hero-text { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-cover { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .12s both; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
@media print { .signup, .rot-ctl { display: none; } .js .reveal { opacity: 1; transform: none; } }
.signup-form { flex: 1 1 300px; min-width: 0; }
.signup-row button { flex: none; white-space: nowrap; }
@media (max-width: 400px) { .signup-row button { padding: 0 18px; } }

/* v5: Romi Kids link in the header */
.bar nav { margin-left: auto; }
.kids-pill { font-family: "Fredoka", var(--sans); font-weight: 700; font-size: 17px; letter-spacing: .01em; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; display: inline-block; line-height: 38px; white-space: nowrap; }
.kids-pill:hover { border-color: var(--ink); }
@media (max-width: 720px) {
  .bar { gap: 2px 16px; }
  .bar .wordmark { order: 1; }
  .kids-pill { order: 2; font-size: 15px; line-height: 34px; padding: 0 13px; }
  .bar nav { order: 3; flex-basis: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) { .kids-pill { transition: transform .2s ease, border-color .2s ease; } .kids-pill:hover { transform: translateY(-1px) rotate(-1deg); } }
.buy-menu { max-height: min(600px, 78vh); overflow-y: auto; }
/* === review fixes === */
.kids-pill { position: relative; }
.kids-pill::after { content: ""; position: absolute; inset: -6px 0; }
@media (min-width: 721px) and (max-width: 860px) {
  .bar { gap: 2px 16px; }
  .bar .wordmark { order: 1; }
  .kids-pill { order: 2; }
  .bar nav { order: 3; flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 379px) {
  .bar { column-gap: 10px; }
  .wordmark { font-size: 15px; letter-spacing: .17em; }
  .kids-pill { font-size: 14px; padding: 0 11px; }
}
@media (max-width: 339px) { .wordmark { font-size: 13px; letter-spacing: .13em; } .kids-pill { padding: 0 10px; } }
@media (min-width: 721px) and (max-width: 860px) { .bar { padding-top: 12px; padding-bottom: 8px; } }

/* v6: reader extras page */
.extras-inner { padding-top: 72px; padding-bottom: 88px; max-width: 880px; display: flex; flex-direction: column; gap: 14px; }
.extras-page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1.1; }
.extras-page h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.extras-note { font-family: var(--serif); font-size: 16.5px; line-height: 1.75; color: var(--muted); max-width: 36em; }
.start-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.start-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start; }
.start-list h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.start-list h3 a { text-decoration: none; }
.start-list h3 a:hover { color: var(--accent, #A64A22); }
.start-list .place { font-size: 14px; color: var(--muted); margin: 4px 0 8px; }
.start-list p:last-child { font-family: var(--serif); font-size: 16.5px; line-height: 1.7; max-width: 34em; }
.start-cover .cover { width: 96px; height: auto; }
.extras-links { list-style: none; margin: 4px 0 0; padding: 0; }
.extras-links li { border-bottom: 1px solid var(--line); }
.extras-links a { display: flex; align-items: center; min-height: 52px; text-decoration: none; font-size: 17px; }
.extras-links a::after { content: "→"; margin-left: auto; padding-left: 16px; color: var(--muted); }
.extras-links a:hover { color: #A64A22; }
@media (max-width: 720px) { .extras-inner { padding-top: 40px; padding-bottom: 56px; } .start-list li { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; } .start-cover .cover { width: 72px; } }
@media (max-width: 420px) { .bar nav { gap: 4px 14px; font-size: 13px; letter-spacing: .02em; } }

/* v7: shop row (pills), menu fixes, launch-review fixes */
.buyblock { display: flex; flex-direction: column; gap: 16px; }
.actions.shop { gap: 10px; align-items: stretch; position: relative; }
.actions.links { gap: 10px 28px; }
.shop .btn, .shop .buy summary { min-height: 46px; padding: 0 20px; font-size: 14.5px; }
.btn.ghost, .shop .buy summary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover, .shop .buy summary:hover, .shop .buy[open] summary { background: rgba(38, 36, 31, .07); color: var(--ink); }
.shop .btn:not(.ghost) { border: 1px solid var(--ink); }
.buy-menu { width: 300px; max-height: min(620px, calc(100vh - 90px)); overscroll-behavior: contain; }
.buy-menu.flip { left: auto; right: 0; }
.buy-menu .buy-note { border-bottom: 0; padding-bottom: 8px; }
.buy-menu ul + .buy-label { border-top: 1px solid var(--line); margin-top: 6px; }
.hero-text .actions.shop { margin-top: 0; } .hero-text .buyblock { margin-top: 32px; } .hero-text .actions { margin-top: 0; }
.excerpt-end .buyblock, .book-end .buyblock { flex: 1 1 100%; }
button:focus-visible, summary:focus-visible { outline: 2px solid #A64A22; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { @keyframes menu-in { from { opacity: 0; } } }
@media (max-width: 560px) {
  .actions.shop { display: grid; grid-template-columns: 1fr 1fr; }
  .shop .btn, .shop .buy summary { width: 100%; justify-content: center; padding: 0 10px; }
  .shop .buy { position: static; flex-basis: auto; }
  .shop .buy:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .shop .buy-menu { position: static; width: auto; max-width: none; max-height: none; margin-top: 8px; grid-column: 1 / -1; }
  .shop .buy[open] { grid-column: 1 / -1; }
}
@media (min-width: 640px) { .foot-cols { grid-template-columns: repeat(3, auto); justify-content: space-between; column-gap: 24px; } .foot-cols a, .foot-name { white-space: nowrap; } .foot-brand { flex-shrink: 0; } }
@media (min-width: 721px) { .book-cover { position: sticky; top: 32px; } }
@media (min-width: 721px) and (max-width: 840px) { .editions { font-size: 15px; } .editions th, .editions td, .editions .num { padding-right: 8px; } .editions tbody th { font-size: 16px; } }
@media (max-width: 720px) { .other span { font-size: 17px; } }
