/* Out and About Books — site styles */

@font-face { font-family: "Lora"; src: url("../fonts/Lora-Variable.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/Lora-Italic-Variable.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --paper: #F6F2E9;
  --paper-2: #ECE6D8;
  --ink: #1E2422;
  --ink-soft: #4A524E;
  --pine: #2B2F3A; /* main colour: charcoal (kept the old token name so nothing else needs renaming) */
  --pine-deep: #1C1F27;
  --heather: #6B4592;
  --marigold: #B4622A;
  --ochre-text: #8A5A12;
  --line: #D6CDBA;
  --field: #8C8676;
  --cream-on-dark: #F3EEE2;

  /* Soft pride: pastel tints for backgrounds and stripes, deep shades for anything that carries text */
  --pride-red: #E8A5A5;
  --pride-orange: #F2C29B;
  --pride-yellow: #F1DE9A;
  --pride-green: #A9D3B2;
  --pride-blue: #A7BEE3;
  --pride-violet: #C6ADDC;
  --deep-red: #A33B3B;
  --deep-orange: #B4622A;
  --deep-yellow: #8F7420;
  --deep-green: #2F7A4E;
  --deep-blue: #2F5596;
  --deep-violet: #6B4592;
  --pride-stripe: linear-gradient(90deg, var(--pride-red) 0 16.66%, var(--pride-orange) 16.66% 33.33%, var(--pride-yellow) 33.33% 50%, var(--pride-green) 50% 66.66%, var(--pride-blue) 66.66% 83.33%, var(--pride-violet) 83.33% 100%);

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 3vw, 2.25rem);
  --step-4: clamp(2.25rem, 5vw, 3.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: calc(var(--step-0) * var(--ts, 1));
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 620; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h2 { font-size: calc(var(--step-3) * var(--hs, 1)); }
h3 { font-size: calc(var(--step-1) * var(--hs, 1)); }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; box-shadow: 0 0 0 7px rgba(201, 149, 47, 0.45); border-radius: 2px; }
.cover :focus-visible { outline-color: var(--cream-on-dark); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-family: var(--sans); font-size: var(--step--1); color: var(--ink-soft); line-height: 1.5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--pine); color: #fff; padding: 10px 16px; font-family: var(--sans); z-index: 10; border-radius: var(--radius); }
.skip:focus { top: 12px; }

mark.todo { background: #FBE6A2; color: var(--ink); padding: 0 0.15em; border-bottom: 2px dotted var(--ochre-text); border-radius: 2px; }

/* ---------- wordmark ---------- */

/* ---------- header ---------- */
.site-header { background: var(--paper); position: relative; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--pride-stripe); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 18px 24px; }
.site-header__brand { text-decoration: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-family: var(--sans); font-weight: 500; font-size: 1rem; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.site-nav a:hover { background: var(--paper-2); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--pine); border-radius: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0.6em 1.3em; font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2; border-radius: var(--radius); border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--lg { min-height: 52px; font-size: 1.0625rem; padding-inline: 1.6em; }
.btn--primary { background: var(--pine); color: #fff; }
.btn--primary:hover { background: var(--pine-deep); }
.btn--secondary { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn--secondary:hover { background: var(--pine); color: #fff; }
.btn--quiet { color: var(--pine); text-decoration: underline; text-underline-offset: 0.2em; padding-inline: 0.6em; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--pine); text-decoration: underline; cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 8vw, 96px) clamp(48px, 8vw, 88px); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__title { font-size: calc(clamp(2.9rem, 6.4vw, 5.6rem) * var(--hs, 1)); font-weight: 680; line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 0.45em; color: var(--pine-deep); }
.hero__title span { display: block; }
.hero__title span:nth-child(2) { padding-left: 0.55em; }
.hero__title span:nth-child(3) { padding-left: 1.1em; }
.hero__lede { font-size: var(--step-1); line-height: 1.55; max-width: 34em; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.hero__book { margin: 0; justify-self: center; max-width: 340px; width: 100%; }
.hero__book > a { display: block; }
.hero__book figcaption { margin-top: 18px; font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------- covers ---------- */
.cover { position: relative; aspect-ratio: 5 / 8; width: 100%; border-radius: 2px 4px 4px 2px; overflow: hidden; background: var(--paper-2);
  box-shadow: 0 1px 2px rgba(19, 30, 26, .18), 0 14px 28px -14px rgba(19, 30, 26, .45); transition: transform .2s ease, box-shadow .2s ease; }
.cover::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.18) 0, rgba(255,255,255,.05) 1.2%, rgba(0,0,0,.16) 2.4%, rgba(0,0,0,0) 6%); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
a:hover > .cover, a:focus-visible > .cover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(19, 30, 26, .18), 0 20px 34px -14px rgba(19, 30, 26, .5); }

.cover--placeholder { color: var(--cream-on-dark); container-type: inline-size; }
.cover--pine { background: var(--deep-blue); }
.cover--heather { background: var(--deep-violet); }
.cover--navy { background: var(--deep-green); }
.cover--ochre { background: var(--deep-red); }
.cover__frame { position: absolute; inset: 6%; border: 1px solid rgba(255, 255, 255, .35); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12% 9% 9%; gap: 6%; }
.cover__series { font-family: var(--sans); font-size: max(10px, 6.4cqi); letter-spacing: .04em; opacity: .85; min-height: 1em; }
.cover__title { font-family: var(--serif); font-weight: 600; font-size: 11.5cqi; line-height: 1.08; letter-spacing: -0.01em; margin-top: 10%; text-wrap: balance; overflow-wrap: anywhere; }
.cover__author { font-family: var(--serif); font-style: italic; font-size: 7.6cqi; margin-top: auto; }
.cover .cover__mark { width: 11cqi; height: auto; opacity: .9; flex: none; }
.cover__flag { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: rgba(19, 30, 26, .78); color: var(--cream-on-dark); font-family: var(--sans); font-size: max(11px, 5.4cqi); text-align: center; line-height: 1.35; }

/* ---------- sections ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 32px; margin-bottom: 36px; border-top: 1px solid var(--line); padding-top: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 36em; }
.shelf { padding-bottom: clamp(48px, 7vw, 88px); }
.shelf__more { margin-top: 40px; }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 48px clamp(20px, 3vw, 40px); }
.book-grid--related { grid-template-columns: repeat(auto-fill, minmax(170px, 220px)); }
.book-card { display: flex; flex-direction: column; }
.book-card[hidden] { display: none; }
.book-card__link { color: inherit; text-decoration: none; }
.book-card__link .cover { margin-bottom: 18px; }
.book-card__title { font-size: 1.2rem; line-height: 1.25; margin: 0 0 4px; }
.book-card__link:hover .book-card__title { text-decoration: underline; text-underline-offset: .18em; }
.book-card__author { font-style: italic; color: var(--ink-soft); margin: 0 0 10px; }
.book-card__desc { font-size: 0.97rem; line-height: 1.55; margin: 0 0 12px; }
.book-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin: auto 0 0; font-family: var(--sans); font-size: 0.92rem; padding-top: 10px; border-top: 3px solid var(--pride-green); }
.book-card__price { font-weight: 600; }
.sample-note { font-family: var(--sans); font-size: 0.85rem; color: var(--heather); margin: 8px 0 0; }

.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-weight: 500; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--available { color: var(--deep-green); }
.status--pre_order { color: var(--heather); }
.status--coming_soon { color: var(--ochre-text); }
.status--out_of_stock { color: #6A6A66; }

.how-band { background: #E6ECF4; }
.how { padding-block: clamp(48px, 7vw, 80px); }
.how h2 { margin-bottom: 32px; }
.how__steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.how__steps li { counter-increment: step; }
.how__steps li:nth-child(3n+1)::before { color: var(--deep-red); }
.how__steps li:nth-child(3n+2)::before { color: var(--deep-yellow); }
.how__steps li:nth-child(3n)::before { color: var(--deep-blue); }
.how__steps li::before { content: counter(step); display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--marigold); margin-bottom: 12px; }
.how__steps h3 { margin-bottom: 8px; }
.how__steps p { margin: 0; color: var(--ink-soft); }

.imprint { background: #ECE4F2; color: var(--ink); padding-block: clamp(56px, 8vw, 96px); }
.imprint__inner { display: grid; grid-template-columns: auto minmax(0, 40rem); gap: clamp(28px, 5vw, 64px); align-items: start; }
.imprint h2 { color: var(--pine-deep); }
.imprint p { font-size: var(--step-1); line-height: 1.6; }
.imprint__mark { width: clamp(120px, 16vw, 190px); height: auto; }
.link-light { color: var(--pine); font-family: var(--sans); font-weight: 600; font-size: 1rem; }

.newsletter { background: #F7EDCF; padding-block: clamp(48px, 7vw, 80px); }
.newsletter__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px clamp(32px, 5vw, 72px); align-items: start; }
.newsletter h2 { margin-bottom: 10px; }
.newsletter__inner > div p { color: var(--ink-soft); max-width: 30em; }
.newsletter__row { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: end; }
.newsletter__label { grid-column: 1 / -1; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; }
.newsletter__form .small { margin-top: 12px; }

/* ---------- forms ---------- */
input, select, textarea { font: inherit; font-family: var(--sans); font-size: 1rem; color: var(--ink); background: #fffdf8; border: 1.5px solid var(--field); border-radius: var(--radius); min-height: 46px; padding: 10px 12px; width: 100%; }
textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E2422' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--pine); }
[aria-invalid="true"] { border-color: #A3261B; border-width: 2px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field__error { color: #A3261B; font-family: var(--sans); font-size: 0.92rem; margin: 6px 0 0; }
.form-status { font-family: var(--sans); font-size: 0.98rem; margin: 14px 0 0; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #1F5A38; font-weight: 600; padding: 12px 14px; background: #E1EEE3; border-left: 4px solid var(--deep-green); }
.form-status.is-error { color: #8A1F16; padding: 12px 14px; background: #F6E1DC; border-left: 4px solid #A3261B; }

/* ---------- page heads & prose ---------- */
.page-head { padding-block: clamp(40px, 6vw, 72px) 32px; }
.page-head h1 { font-size: calc(var(--step-4) * var(--hs, 1)); font-weight: 650; color: var(--pine-deep); max-width: 18em; }
.page-head__intro { font-size: var(--step-1); color: var(--ink-soft); max-width: 36em; line-height: 1.55; margin: 0; }
.review-flag { margin: 24px 0 0; padding: 14px 16px; background: #FBF1D6; border-left: 4px solid var(--marigold); font-family: var(--sans); font-size: 0.95rem; line-height: 1.5; max-width: 52rem; }
.review-flag__hint { color: var(--ink-soft); }
.crumbs { font-family: var(--sans); font-size: 0.95rem; margin: 0 0 8px; padding-top: 24px; }
.page-body { padding-bottom: clamp(56px, 8vw, 96px); }
.prose { max-width: 38em; }
.prose--page { line-height: 1.72; }
.prose h2 { font-size: calc(var(--step-2) * var(--hs, 1)); margin-top: 1.8em; }
.prose h3 { font-size: calc(var(--step-1) * var(--hs, 1)); margin-top: 1.5em; margin-bottom: .35em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0 1.4em; }
.prose blockquote { margin: 1.2em 0; padding-left: 1em; border-left: 3px solid var(--marigold); font-style: italic; }

/* ---------- catalogue ---------- */
.catalogue { padding-bottom: clamp(56px, 8vw, 96px); }
.filters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(140px, 1fr)); gap: 14px; padding: 20px; background: var(--paper-2); border-radius: var(--radius); margin-bottom: 16px; }
.filters__field label { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.results-count { font-family: var(--sans); color: var(--ink-soft); margin: 0 0 28px; }
.empty { padding: 40px 0; }
.empty h2 { font-size: calc(var(--step-2) * var(--hs, 1)); }

/* ---------- book page ---------- */
.book { padding-bottom: clamp(40px, 6vw, 72px); }
.book__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; margin-top: 24px; }
.book__cover { position: sticky; top: 24px; max-width: 420px; }
.book__series { font-family: var(--sans); font-size: 1rem; margin-bottom: 10px; }
.book__series a { color: var(--heather); }
.book__title { font-size: calc(clamp(2.1rem, 4.4vw, 3.4rem) * var(--hs, 1)); font-weight: 650; letter-spacing: -0.02em; color: var(--pine-deep); margin-bottom: .25em; }
.book__subtitle { font-size: var(--step-1); color: var(--ink-soft); margin-bottom: .4em; }
.book__author { font-style: italic; font-size: var(--step-1); margin-bottom: 1.2em; }
.book__lede { font-size: var(--step-1); line-height: 1.55; max-width: 34em; }
.book section { margin-top: 40px; }
.book section > h2 { font-size: calc(var(--step-2) * var(--hs, 1)); }
.editions__h { margin-bottom: 14px; }
.editions__list { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--line); }
.edition { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, max-content); gap: 12px 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.edition__format { font-size: 1.2rem; margin: 0 0 2px; }
.edition__price { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; margin: 0 0 4px; }
.edition__info p:last-child { margin: 0; font-size: 0.95rem; }
.edition__isbn { display: block; font-family: var(--sans); color: var(--ink-soft); white-space: nowrap; margin-top: 2px; }
.edition__buy { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.edition__buy .small { margin: 0; }
.editions__soon { font-size: 1.02rem; padding: 14px 16px; background: var(--paper-2); border-radius: var(--radius); }
.details { margin: 0; border-top: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.details dt { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; }
.details dd { margin: 0; }
.related { padding-bottom: clamp(56px, 8vw, 88px); }
.related h2 { border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 32px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-bottom: clamp(56px, 8vw, 96px); }
.contact__form { max-width: 36rem; }
.contact__aside h2 { font-size: calc(var(--step-2) * var(--hs, 1)); }

.order-lines { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); font-family: var(--sans); }
.order-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-2); color: var(--ink); padding-top: 62px; position: relative; font-family: var(--sans); font-size: 0.97rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg,#E40303 0 16.66%,#FF8C00 16.66% 33.33%,#FFD200 33.33% 50%,#008026 50% 66.66%,#24408E 66.66% 83.33%,#732982 83.33%); }
.site-footer a { color: var(--pine); }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; }
.site-footer__brand a { text-decoration: none; display: inline-block; margin-bottom: 16px; }
.site-footer__brand p { font-family: var(--serif); font-style: italic; font-size: 1.05rem; max-width: 18em; color: var(--ink-soft); }
.site-footer mark.todo { color: var(--ink); }
.site-footer__legal { border-top: 1px solid var(--line); padding-block: 20px 28px; font-size: 0.9rem; color: var(--ink-soft); }
.site-footer__legal p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters__field--search { grid-column: 1 / -1; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .hero__inner, .book__grid, .contact, .newsletter__inner { grid-template-columns: 1fr; }
  .hero__book { max-width: 260px; justify-self: start; }
  .book__cover { position: static; max-width: 280px; }
  .how__steps { grid-template-columns: 1fr; gap: 28px; }
  .imprint__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header__inner { padding-block: 14px 8px; }
  .site-nav { width: 100%; margin-inline: -12px; }
  .site-nav a { padding: 0 12px; font-size: 0.98rem; }
  .hero__title span:nth-child(2) { padding-left: 0.5em; }
  .hero__title span:nth-child(3) { padding-left: 1em; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .book-card__desc { display: none; }
  .book-card__title { font-size: 1.05rem; }
  .filters { grid-template-columns: 1fr; padding: 16px; }
  .edition { grid-template-columns: 1fr; }
  .edition__buy { justify-content: flex-start; }
  .edition__buy .btn { flex: 1 1 100%; }
  .details > div { grid-template-columns: 1fr; gap: 2px; }
  .newsletter__row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Bookshop shelf: book cards and illustrated placeholder covers ===== */
.btn { border-radius: 999px; }
.section-head { border-top: 0; padding-top: 0; }
.book-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 56px 32px; }
.book-card__link { display: flex; flex-direction: column; }
.book-card__title { font-family: var(--sans); font-size: .98rem; font-weight: 700; line-height: 1.25; margin: 0 0 2px; min-height: 2.5em; }
.book-card__author { font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--ink); margin: 0; }
.book-card__meta { border: 0 !important; padding: 0; margin: 0 0 16px; font-size: .85rem; color: var(--ink-soft); }
.book-card__meta .status { font-size: .85rem; }
.book-card__price { font-weight: 500; color: var(--ink-soft); }
.book-card__desc { font-family: var(--sans); font-size: .86rem; color: var(--ink-soft); margin: 14px 0 0; line-height: 1.45; }
.cover { border-radius: 3px 8px 8px 3px; }
.cover--placeholder { display: flex; flex-direction: column; padding: 9% 10% 0; container-type: inline-size; }
.cover__top { display: flex; justify-content: space-between; font-family: var(--sans); font-size: max(9px, 5.4cqi); font-weight: 600; opacity: .85; border-bottom: 1px solid currentColor; padding-bottom: 4%; }
.cover__title { font-family: var(--sans); font-weight: 700; font-size: 9.5cqi; line-height: 1.1; margin-top: 7%; text-wrap: balance; }
.cover__art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; }
.cover__author { position: absolute; left: 10%; bottom: 13%; font-family: var(--sans); font-size: max(9px, 5.6cqi); font-weight: 600; }
.cover__flag { background: rgba(0,0,0,.55); color: #fff; }
.how-band { background: transparent; } .how__steps li { background: #fff; padding: 24px; border-radius: 16px; }

.cover__byline { font-family: var(--sans); font-size: max(9px, 5.6cqi); font-weight: 500; margin-top: 3%; opacity: .9; }
.book-card__title { min-height: 2.5em; }
.book-card__meta { white-space: nowrap; display: flex; gap: 10px; justify-content: flex-start; }
@media (max-width: 560px) { .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; } .book-card__desc { display: none; } }

/* ===== Bold and modern: Poppins headings, colour blocks ===== */
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
:root { --display: "Poppins", var(--sans); --hot: #D11F6B; --cobalt: #2F5FD0; --sun: #F7C948; --emerald: #1F8A55; }
.site-header::after { height: 8px; background: linear-gradient(90deg,#E40303 0 16.66%,#FF8C00 16.66% 33.33%,#FFD200 33.33% 50%,#008026 50% 66.66%,#24408E 66.66% 83.33%,#732982 83.33%); }
.site-nav a { font-family: var(--display); font-weight: 500; }
h1, h2, h3, .section-head h2, .how h2, .imprint h2, .newsletter h2, .page-head h1 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
.page-head h1 { font-size: calc(clamp(2.6rem, 6vw, 4.5rem) * var(--hs, 1)); color: var(--ink); }
.section-head h2, .how h2, .related h2 { font-size: calc(clamp(2rem, 4vw, 3rem) * var(--hs, 1)); }
.btn { font-family: var(--display); font-weight: 600; border-radius: 999px; padding-inline: 1.6em; }
.btn--primary { background: var(--ink); }
.btn--primary:hover { background: var(--hot); border-color: var(--hot); color: #fff; }
.btn--light { background: #fff; color: var(--ink); } .btn--light:hover { background: var(--sun); }
.btn--ghost { color: #fff; border: 2px solid rgba(255,255,255,.8); } .btn--ghost:hover { background: rgba(255,255,255,.15); }
.bold-hero { background: var(--hot); color: #fff; overflow: hidden; }
.bold-hero__inner { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.bold-hero__title { font-family: var(--display); font-weight: 700; font-size: calc(clamp(3rem, 7vw, 6.4rem) * var(--hs, 1)); line-height: .92; letter-spacing: -0.045em; margin: 0 0 .3em; color: #fff; }
.bold-hero__title span { display: block; }
.bold-hero__sub { font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.4; max-width: 30em; color: #fff; }
.bold-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.bold-hero__book { display: block; width: 100%; max-width: 330px; justify-self: center; transform: rotate(4deg); }
.bold-hero__book .cover { box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.ticker { background: var(--sun); color: var(--ink); overflow: hidden; white-space: nowrap; border-block: 2px solid var(--ink); }
.ticker__track { display: inline-flex; gap: 0; animation: ticker 40s linear infinite; padding-block: 14px; }
.ticker span { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: -0.01em; padding-inline: 22px; }
.ticker span::after { content: "✦"; margin-left: 44px; font-size: .8em; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }
.shelf { padding-top: clamp(48px, 7vw, 88px); }
.book-card__title { font-family: var(--display); font-weight: 700; }
.how__steps li { border: 2px solid var(--ink); background: #fff; border-radius: 20px; }
.how__steps li::before { font-family: var(--display); font-style: normal; font-weight: 700; font-size: 3rem; color: var(--hot) !important; }
.imprint { background: var(--cobalt); color: #fff; }
.imprint h2 { color: #fff; font-size: calc(clamp(2.2rem, 4.5vw, 3.6rem) * var(--hs, 1)); }
.imprint p { color: #fff; } .link-light { color: #fff; }
.newsletter { background: var(--sun); }
.newsletter h2 { font-size: calc(clamp(2rem, 4vw, 3rem) * var(--hs, 1)); }
.newsletter__inner > div p { color: var(--ink); }
.newsletter input { border: 2px solid var(--ink); border-radius: 999px; padding-inline: 20px; }
@media (max-width: 820px) { .bold-hero__inner { grid-template-columns: 1fr; } .bold-hero__book { max-width: 220px; justify-self: start; } }

/* ===== Shop (merchandise) ===== */
.merch { padding-bottom: clamp(56px, 8vw, 96px); }
.merch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 48px 32px; }
.merch-card { display: flex; flex-direction: column; gap: 8px; }
.merch-card__img { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--paper-2); border: 2px solid var(--ink); }
.merch-card__img img { width: 100%; height: 100%; object-fit: cover; }
.merch-card__name { font-size: 1.25rem; margin: 10px 0 0; }
.merch-card__meta { display: flex; gap: 12px; font-family: var(--sans); font-size: .92rem; margin: 0; }
.merch-card__desc { font-size: .97rem; color: var(--ink-soft); margin: 0; }
.merch-card .btn { align-self: flex-start; margin-top: 6px; }
.merch-card__img .cover__flag { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; font-family: var(--sans); font-size: .82rem; line-height: 1.3; background: rgba(0,0,0,.6); color: #fff; text-align: center; }

/* ===== Logo ===== */
.site-header__brand, .site-footer__brand a { display: inline-block; line-height: 0; }
.site-logo { height: 72px; width: auto; }
.site-header .site-logo { height: 92px; }
.site-footer .site-logo { height: 72px; }
@media (max-width: 560px) { .site-header .site-logo { height: 64px; } }

/* ---------- colour bands behind page titles ---------- */
.page-band { --band: var(--hot); --band-ink: #fff; background: var(--band); color: var(--band-ink); margin-bottom: clamp(28px, 4vw, 40px); border-top: 4px solid #fff; position: relative; overflow: hidden; }
.page-band--cobalt { --band: var(--cobalt); }
.page-band--sun { --band: var(--sun); --band-ink: var(--ink); }
.page-band--red { --band: #E40303; }
.page-band--orange { --band: #FF8C00; --band-ink: var(--ink); }
.page-band--green { --band: #008026; }
.page-band--navy { --band: #24408E; }
.page-band--purple { --band: #732982; }
/* Compact title band: title and introduction side by side, with slanted Pride stripes on wider screens. */
.page-band .page-head { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: clamp(24px, 3vw, 40px); padding-block: 22px;
  padding-right: max(var(--gutter), min(290px, calc(300px - (100vw - var(--wrap)) / 2))); }
.page-band .page-head h1 { margin: 0; max-width: 16em; font-size: calc(clamp(1.9rem, 3.6vw, 2.7rem) * var(--hs, 1)); line-height: 1.1; }
.page-band .page-head__intro { margin: 0; font-size: clamp(1rem, 1.5vw, 1.08rem); max-width: 36em; padding-left: clamp(24px, 3vw, 40px); border-left: 2px solid color-mix(in srgb, var(--band-ink) 50%, transparent); }
.page-band .page-head > :not(h1):not(.page-head__intro) { grid-column: 1 / -1; }
.page-band::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 274px;
  /* Drawn as a vector image so the slanted edges stay smooth on every screen. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 273.52 100' preserveAspectRatio='none'%3E%3Cpolygon points='44.52,0 51.52,0 7.00,100 0.00,100' fill='%23F6F2E9'/%3E%3Cpolygon points='51.52,0 81.52,0 37.00,100 7.00,100' fill='%23E40303'/%3E%3Cpolygon points='81.52,0 88.52,0 44.00,100 37.00,100' fill='%23F6F2E9'/%3E%3Cpolygon points='88.52,0 118.52,0 74.00,100 44.00,100' fill='%23FF8C00'/%3E%3Cpolygon points='118.52,0 125.52,0 81.00,100 74.00,100' fill='%23F6F2E9'/%3E%3Cpolygon points='125.52,0 155.52,0 111.00,100 81.00,100' fill='%23FFD200'/%3E%3Cpolygon points='155.52,0 162.52,0 118.00,100 111.00,100' fill='%23F6F2E9'/%3E%3Cpolygon points='162.52,0 192.52,0 148.00,100 118.00,100' fill='%23008026'/%3E%3Cpolygon points='192.52,0 199.52,0 155.00,100 148.00,100' fill='%23F6F2E9'/%3E%3Cpolygon points='199.52,0 229.52,0 185.00,100 155.00,100' fill='%2324408E'/%3E%3Cpolygon points='229.52,0 236.52,0 192.00,100 185.00,100' fill='%23F6F2E9'/%3E%3Cpolygon points='236.52,0 266.52,0 222.00,100 192.00,100' fill='%23732982'/%3E%3Cpolygon points='266.52,0 273.52,0 229.00,100 222.00,100' fill='%23F6F2E9'/%3E%3C/svg%3E") no-repeat right center / 100% 100%; }
@media (min-width: 701px) {
  /* The slanted stripes replace the rainbow line under the menu on these pages. */
  body:has(.page-band) .site-header::after { display: none; }
  .page-band { border-top: 0; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  /* Tablets: title above the introduction, stripes still on the right. */
  .page-band .page-head { grid-template-columns: 1fr; row-gap: 6px; }
  .page-band .page-head__intro { padding-left: 0; border-left: 0; }
}
@media (max-width: 700px) {
  .page-band::after { display: none; }
  .page-band .page-head { grid-template-columns: 1fr; row-gap: 6px; padding-right: var(--gutter); padding-block: 22px 24px; }
  .page-band .page-head__intro { padding-left: 0; border-left: 0; }
  .site-header__inner { padding-block: 14px 22px; }
}
.page-band .page-head h1, .page-band .page-head__intro { color: var(--band-ink); }
.page-band .review-flag { color: var(--ink); }

/* strapline under the home page heading: one line on wider screens */
.bold-hero__strap { font-family: var(--display); font-weight: 700; color: var(--sun); font-size: clamp(1.2rem, 1.75vw, 1.5rem); line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 1.1em; }
@media (min-width: 821px) { .bold-hero__strap { white-space: nowrap; } }
.bold-hero__strap span { display: inline-block; }

/* moving strip: Pride purple, white text, white line above, no line below */
.ticker { background: #732982; color: #fff; border-top: 4px solid #fff; border-bottom: 0; }
.ticker span { font-weight: 500; letter-spacing: .01em; }

/* front/back cover switch on book pages */
.cover-switch { display: flex; gap: 12px; margin-top: 16px; }
.cover-switch__btn { display: grid; justify-items: center; gap: 4px; width: 64px; font-family: var(--sans); font-size: .85rem; color: var(--ink); text-decoration: none; }
.cover-switch__btn img { width: 56px; aspect-ratio: 5 / 8; height: auto; object-fit: cover; border-radius: 2px; outline: 2px solid transparent; outline-offset: 3px; }
.cover-switch__btn[aria-pressed="true"] img { outline-color: var(--hot); }
.cover-switch__btn[aria-pressed="true"] span { font-weight: 700; }
.cover-switch__btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; border-radius: 4px; }

/* ---------- promotions: corner ribbon on the front cover, deal prices ---------- */
.cover { container-type: inline-size; }
.promo-ribbon { position: absolute; z-index: 3; top: 19cqi; right: -22cqi; width: 96cqi; transform: rotate(45deg); background: var(--hot); color: #fff; text-align: center; font: 700 clamp(9px, 5.2cqi, 20px)/1 var(--display); letter-spacing: .03em; text-transform: uppercase; padding: 2.4cqi 0; box-shadow: 0 3px 8px rgba(0,0,0,.3); white-space: nowrap; pointer-events: none; }
.promo-ribbon[data-long] { font-size: clamp(8px, 4.6cqi, 18px); }
.cover.is-back .promo-ribbon { display: none; }
.deal { color: var(--hot); font-weight: 700; }
del { color: var(--ink-soft); }
.deal-tag { display: inline-block; margin-left: 6px; background: var(--hot); color: #fff; font: 700 .72rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px; border-radius: 999px; vertical-align: middle; }
.promo-note { font-family: var(--sans); background: #FCE4EE; border-left: 4px solid var(--hot); padding: 12px 14px; border-radius: 6px; margin: 0 0 14px; }

/* ---------- home banner: featured books fade in and out ---------- */
.hero-books { display: grid; justify-items: center; width: 100%; max-width: 330px; justify-self: center; }
.hero-books .bold-hero__book { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.hero-books .bold-hero__book.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }
.hero-books__controls { grid-area: 2 / 1; display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.hero-books__dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.hero-books__dot[aria-current="true"] { background: #fff; }
.hero-books__pause { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.hero-books__pause-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero-books__pause[aria-pressed="true"] .hero-books__pause-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.hero-books button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
@media (max-width: 820px) { .hero-books { max-width: 220px; justify-self: start; justify-items: start; } }
@media (prefers-reduced-motion: reduce) { .hero-books .bold-hero__book, .hero-books .bold-hero__book.is-active { transition: none; } }

/* ---------- audio excerpts: bold card player ---------- */
.listen { margin: 8px 0 36px; }
.listen h2 { margin-bottom: 16px; }
.excerpt { margin-bottom: 24px; }
.player { display: flex; gap: 18px; align-items: center; background: var(--sun); border: 2px solid var(--ink); border-radius: 22px; padding: 18px 20px; box-shadow: 6px 6px 0 var(--ink); }
.player__btn { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--hot); border: 2px solid var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; }
.player__btn:hover { background: #B3185A; }
.player__btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.player__icon { width: 0; height: 0; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent currentColor; margin-left: 5px; }
.player.is-playing .player__icon { width: 18px; height: 22px; border-width: 0 6px; border-color: currentColor; border-style: solid; margin-left: 0; }
.player__meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.player__title { font-size: 1.12rem; margin: 0; line-height: 1.25; }
.player__by { margin: 0; font-family: var(--sans); font-size: .95rem; }
.player audio { width: 100%; margin-top: 8px; }
.player.is-enhanced audio { display: none; }
.player__track { margin-top: 8px; }
.player__seek { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border: 2px solid var(--ink); border-radius: 9px; background: linear-gradient(to right, var(--hot) var(--pct, 0%), #fff var(--pct, 0%)); cursor: pointer; margin: 0; }
.player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; }
.player__seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; }
.player__seek:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.player__time { display: flex; justify-content: space-between; margin: 6px 0 0; font-family: var(--sans); font-size: .85rem; font-variant-numeric: tabular-nums; }
.read-along { margin-top: 12px; font-family: var(--sans); }
.read-along summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.read-along .prose { margin-top: 10px; padding: 14px 16px; background: var(--paper-2); border-radius: 12px; font-family: var(--serif, inherit); }
@media (max-width: 560px) { .player { gap: 14px; padding: 16px; } .player__btn { width: 54px; height: 54px; } }
.player [hidden] { display: none !important; }
.player .player__seek { padding: 0; min-height: 0; height: 12px; box-shadow: none; font-size: 0; }

/* ---------- reader reviews (outlined cards) ---------- */
.reviews { margin: 8px 0 36px; }
.reviews h2 { margin-bottom: 10px; }
.stars { color: #E6A700; letter-spacing: 2px; font-size: 1.1rem; line-height: 1; white-space: nowrap; }
.stars__off { color: #D9D1BF; }
.reviews__avg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: var(--sans); margin: 0 0 16px; }
.reviews__avg span:last-child { color: var(--ink-soft); }
.reviews__none { font-family: var(--sans); color: var(--ink-soft); }
.reviews__list, .home-quotes__list { display: grid; gap: 16px; }
.review-card { margin: 0; background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: 5px 5px 0 var(--cobalt); }
.review-card blockquote { margin: 8px 0; padding: 0; border: 0; font-style: normal; font-size: 1.02rem; }
.review-card blockquote p { margin: 0 0 .5em; }
.review-card blockquote p:last-child { margin: 0; }
.review-card figcaption { font-family: var(--sans); font-weight: 700; font-size: .9rem; }
.review-card figcaption a { color: inherit; }
.review-amazon { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.review-write { margin-top: 18px; }
.review-write > summary { list-style: none; display: inline-flex; }
.review-write > summary::-webkit-details-marker { display: none; }
.review-write[open] > summary { background: transparent; color: var(--ink); border-color: var(--ink); }
.review-form { margin-top: 14px; background: var(--paper-2); border-radius: 18px; padding: 18px 20px; display: grid; gap: 4px; }
.review-form h3 { margin: 0 0 8px; }
.review-form__row { display: grid; grid-template-columns: 2fr 1fr; gap: 0 14px; }
.check-field { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; margin: 6px 0 4px; font-family: var(--sans); }
.check-field input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--hot); }
.check-field .field__error { grid-column: 2; }
.review-policy { color: var(--ink-soft); }
.review-form .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 560px) { .review-form__row { grid-template-columns: 1fr; } }
.home-quotes { background: var(--cobalt); padding: clamp(48px, 7vw, 80px) 0; }
.home-quotes h2 { color: #fff; margin-bottom: 22px; }
.home-quotes__list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.home-quotes .review-card { box-shadow: 5px 5px 0 var(--sun); }

/* ---------- Instagram: header button and band above the footer ---------- */
.site-nav__ig { display: flex; align-items: center; }
.ig-link { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 12px; color: var(--ink); text-decoration: none; font: 600 .72rem/1 var(--display); letter-spacing: .01em; min-height: 0 !important; }
.ig-link img { width: 34px; height: 34px; border-radius: 8px; display: block; transition: transform .15s; }
.ig-link:hover img { transform: rotate(-6deg) scale(1.06); }
.ig-link:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.ig-band { background: #732982; color: #fff; padding: clamp(36px, 5vw, 56px) 0; }
.ig-band__inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.ig-band h2 { margin: 0; color: #fff; font-size: calc(clamp(1.6rem, 3.4vw, 2.4rem) * var(--hs, 1)); }
.ig-band__btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 22px 8px 8px; border-radius: 999px; background: #fff; color: var(--ink); font: 700 1.05rem var(--display); text-decoration: none; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.ig-band__btn img { width: 30px; height: 30px; border-radius: 7px; }
.ig-band__btn:hover { background: var(--sun); }
.ig-band__btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ig-link img { transition: none; } }
.site-nav .ig-link { font: 600 .7rem/1 var(--display); padding: 2px 8px; gap: 3px; }
@media (max-width: 820px) { .site-nav .ig-link img { width: 28px; height: 28px; } .site-nav .ig-link { padding-bottom: 6px; } }
/* Instagram icon: grow slightly on hover instead of twisting */
.ig-link:hover img, .ig-link:focus-visible img { transform: scale(1.12); }
/* Home page reviews band: Pride green with black card shadows */
.home-quotes { background: #008026; }
.home-quotes .review-card { box-shadow: 5px 5px 0 #111; }

/* ---------- page layouts: image and text, cards, gallery, feature ---------- */
.page-body { padding-bottom: clamp(48px, 7vw, 80px); }
.layout-image { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.layout-image__fig { margin: 0; border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); background: #fff; }
.layout-image__fig img, .layout-card img, .layout-gallery__grid img, .layout-feature img { display: block; width: 100%; height: auto; }
.layout-image__fig figcaption { font-family: var(--sans); font-size: .9rem; padding: 10px 14px; border-top: 2px solid var(--ink); }
.layout-btn { margin-top: 20px; }
.layout-cards__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 24px; }
.layout-card { background: #fff; border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; }
.layout-card img { aspect-ratio: 3 / 2; object-fit: cover; }
.layout-card__body { padding: 16px 18px 20px; display: grid; gap: 8px; flex: 1; align-content: start; }
.layout-card__body h2 { font-size: calc(1.25rem * var(--hs, 1)); margin: 0; }
.layout-card__text p { margin: 0 0 .5em; font-size: .98rem; }
.layout-card__body .btn { justify-self: start; margin-top: 6px; }
.layout-gallery__grid { columns: 3 260px; column-gap: 18px; margin-top: 24px; }
.layout-gallery__grid figure { margin: 0 0 18px; break-inside: avoid; border-radius: 16px; overflow: hidden; background: #fff; border: 2px solid var(--ink); }
.layout-gallery__grid figcaption { font-family: var(--sans); font-size: .88rem; padding: 8px 12px; }
.layout-feature { background: var(--hot); color: #fff; margin-bottom: clamp(32px, 5vw, 56px); }
.layout-feature__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.layout-feature h1 { color: #fff; font-size: calc(clamp(2.6rem, 6vw, 5rem) * var(--hs, 1)); line-height: .95; letter-spacing: -.04em; margin: 0 0 .3em; }
.layout-feature__intro { font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin: 0 0 24px; color: #fff; }
.layout-feature img { border-radius: 20px; border: 3px solid #fff; transform: rotate(2deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.layout-cta { background: var(--sun); border-block: 2px solid var(--ink); padding: 40px 0; }
.layout-cta__inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.layout-cta h2 { margin: 0; }
@media (max-width: 760px) { .layout-image, .layout-feature__inner { grid-template-columns: 1fr; } .layout-feature img { transform: none; } }
.layout-feature { margin-bottom: 0; }
.layout-feature__body { padding-top: clamp(32px, 5vw, 56px); }

/* ---------- drop-down menus and the phone Menu button ---------- */
.dd { position: relative; }
.dd__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; font: 500 1rem var(--display); color: var(--ink); background: none; border: 0; border-radius: var(--radius); cursor: pointer; }
.dd__btn:hover { background: var(--paper-2); }
.dd__btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.dd.is-current > .dd__btn { box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.dd__chev { transition: transform .15s; }
.dd__btn[aria-expanded="true"] .dd__chev { transform: rotate(180deg); }
.dd__panel { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; min-width: 230px; background: #fff; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); display: none; }
.dd__panel a { display: flex; width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 10px; }
.dd__panel a[aria-current="page"] { box-shadow: none; background: var(--paper-2); font-weight: 700; border-radius: 10px; }
.dd__parent { font-weight: 700 !important; }
.dd__panel li:first-child { border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 4px; }
/* Without JavaScript the panel opens on hover or keyboard focus; with it, the button controls it. */
.dd:hover > .dd__panel, .dd:focus-within > .dd__panel, .dd__btn[aria-expanded="true"] + .dd__panel { display: grid; }
.js .dd:not(:focus-within) .dd__btn[aria-expanded="false"] + .dd__panel { display: none; }
.js .dd:hover > .dd__btn[aria-expanded="false"] + .dd__panel { display: grid; }
.menu-toggle { display: none; }
@media (max-width: 820px) {
  .js .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 10px 18px; min-height: 44px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 700 1rem var(--display); cursor: pointer; }
  .menu-toggle__icon { width: 18px; height: 2px; background: currentColor; position: relative; }
  .menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform .15s; }
  .menu-toggle__icon::before { top: -6px; } .menu-toggle__icon::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }
  .menu-toggle:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
  .js .site-header__inner { flex-wrap: wrap; }
  .js .site-nav { display: none; width: 100%; margin: 8px 0 4px; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav > ul { flex-direction: column; flex-wrap: nowrap; gap: 0; border-top: 2px solid var(--ink); }
  .js .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .js .site-nav > ul > li > a, .js .dd__btn { width: 100%; justify-content: space-between; min-height: 50px; padding: 0 4px; font-size: 1.05rem; }
  .js .site-nav a[aria-current="page"], .js .dd.is-current > .dd__btn { box-shadow: inset 4px 0 0 var(--hot); padding-left: 12px; }
  .js .dd__panel, .js .dd:hover > .dd__panel { position: static; display: none; border: 0; box-shadow: none; border-radius: 0; padding: 0 0 8px 16px; min-width: 0; background: transparent; }
  .js .dd__btn[aria-expanded="true"] + .dd__panel { display: grid; }
  .js .dd__panel li:first-child { border-bottom: 0; margin: 0; padding: 0; }
  .js .site-nav__ig { padding: 8px 0; }
  .js .site-nav .ig-link { flex-direction: row; gap: 10px; font-size: 1rem; padding: 4px; }
}
@media (prefers-reduced-motion: reduce) { .dd__chev, .menu-toggle__icon::before, .menu-toggle__icon::after { transition: none; } }
@media (max-width: 820px) { .js .site-nav .ig-link { justify-content: flex-start; width: auto; } }

/* banner on unpublished pages in the editor's preview (never on the live site) */
.draft-banner { margin: 0; padding: 12px 16px; background: repeating-linear-gradient(-45deg, #FFE7A3 0 14px, #FFDD80 14px 28px); border-bottom: 2px solid var(--ink); font-family: var(--sans); text-align: center; }

/* ---------- Progress Pride flag beside the logo in the header ---------- */
.site-header__brand { display: inline-flex; align-items: center; gap: 16px; }
.site-flag { height: 40px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
@media (max-width: 560px) { .site-flag { height: 30px; } .site-header__brand { gap: 10px; } }

/* Buy buttons on book pages: outline on the page colour, pink on hover. */
.edition__buy .btn--secondary:hover { background: var(--hot); border-color: var(--hot); color: #fff; }

/* ---------- cover thumbnails row, with Listen tiles for audio excerpts ---------- */
.cover-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.cover-thumbs .cover-switch { margin-top: 0; }
.listen-tile { display: grid; justify-items: center; gap: 4px; width: 64px; font-family: var(--sans); font-size: .85rem; color: var(--ink); text-decoration: none; cursor: pointer; }
.listen-tile__tile { position: relative; width: 56px; aspect-ratio: 5 / 8; border-radius: 2px; background: var(--hot); display: grid; place-items: center; overflow: hidden; transition: background .15s; }
.listen-tile:hover .listen-tile__tile { background: #B3185A; }
.listen-tile:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; border-radius: 4px; }
.listen-tile__icon { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.listen-tile__icon svg { width: 14px; height: 14px; fill: var(--hot); }
.listen-tile__pause, .listen-tile.is-playing .listen-tile__play { display: none; }
.listen-tile.is-playing .listen-tile__pause { display: block; }
.listen-tile__wave { position: absolute; top: 7px; left: 0; right: 0; display: flex; justify-content: center; align-items: flex-end; gap: 2px; height: 12px; }
.listen-tile__wave i { width: 3px; border-radius: 2px; background: rgba(255,255,255,.75); }
.listen-tile__wave i:nth-child(1) { height: 5px; } .listen-tile__wave i:nth-child(2) { height: 9px; } .listen-tile__wave i:nth-child(3) { height: 12px; }
.listen-tile__wave i:nth-child(4) { height: 7px; } .listen-tile__wave i:nth-child(5) { height: 10px; } .listen-tile__wave i:nth-child(6) { height: 4px; }
.listen-tile__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.35); }
.listen-tile__bar b { display: block; height: 100%; width: var(--pct, 0%); background: #fff; }
.listen-tile.is-playing .listen-tile__label { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .listen-tile.is-playing .listen-tile__wave i { animation: listen-wave 1s ease-in-out infinite alternate; }
  .listen-tile.is-playing .listen-tile__wave i:nth-child(2n) { animation-delay: -.4s; }
  .listen-tile.is-playing .listen-tile__wave i:nth-child(3n) { animation-delay: -.7s; }
}
@keyframes listen-wave { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.listen-tile__wave i { transform-origin: bottom; }

/* ---------- News: the bar at the top of every page ---------- */
.announce { background: var(--sun); color: var(--ink); border-bottom: 2px solid var(--ink); font-family: var(--display); }
.announce[hidden] { display: none; }
.announce__inner { display: flex; align-items: center; gap: 8px 14px; min-height: 44px; padding-block: 6px; }
.announce__tag { flex: none; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.announce__text { margin: 0; font-weight: 500; font-size: .98rem; line-height: 1.3; }
.announce__link { flex: none; color: var(--ink); font-weight: 700; text-underline-offset: .2em; white-space: nowrap; }
.announce__link:hover { color: var(--hot); }
.announce__x { flex: none; margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.announce__x:hover { background: rgba(0,0,0,.08); }
.announce__x:focus-visible, .announce__link:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (max-width: 640px) {
  .announce__inner { flex-wrap: wrap; padding-block: 8px; }
  .announce__text { flex: 1 1 calc(100% - 120px); font-size: .9rem; }
  .announce__link { font-size: .9rem; }
  .announce__x { position: absolute; right: 8px; top: 6px; }
  .announce { position: relative; padding-right: 36px; }
}

/* ---------- News: launch sticker and link in the home page banner ---------- */
.bold-hero__book.is-launch { position: relative; }
.new-sticker { position: absolute; left: -14px; top: -14px; z-index: 3; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 8px;
  background: var(--sun); color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-12deg);
  font: 700 .74rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.launch-link { grid-row: 3; display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 7px 18px 7px 7px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; font: 600 .95rem var(--display); }
.launch-link[hidden] { display: none; }
.launch-link:hover { background: var(--sun); }
.launch-link:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.launch-link__tag { background: var(--hot); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.hero-books--single .bold-hero__book { opacity: 1; visibility: visible; }
@media (max-width: 820px) { .new-sticker { width: 66px; height: 66px; font-size: .62rem; left: -10px; top: -10px; } }

/* ---------- News: list and post pages ---------- */
.news-list { list-style: none; margin: 0 0 clamp(48px, 7vw, 80px); padding: 0; display: grid; gap: 22px; max-width: 860px; }
.news-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; background: var(--card, #fffdf8); border: 2px solid var(--ink); border-radius: 18px; padding: 16px; box-shadow: 5px 5px 0 var(--ink); }
.news-card:not(:has(.news-card__img)) { grid-template-columns: 1fr; }
.news-card__img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.news-card__date { margin: 0 0 4px; font-family: var(--sans); font-size: .9rem; color: var(--soft, #5c6170); }
.news-card__tag { display: inline-block; margin-left: 6px; background: var(--hot); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: .75rem; font-weight: 700; }
.news-card__title { margin: 0 0 6px; font-size: calc(1.4rem * var(--hs, 1)); line-height: 1.2; }
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__title a:hover { text-decoration: underline; }
.news-card__body p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .news-card { grid-template-columns: 1fr; } }
.news-post { padding-bottom: clamp(48px, 7vw, 80px); }
.news-post > * { max-width: 760px; }
.news-post__date { font-family: var(--sans); color: var(--soft, #5c6170); margin: 0 0 18px; }
.news-post__img { margin: 0 0 24px; }
.news-post__img img { display: block; width: 100%; height: auto; border-radius: 16px; border: 2px solid var(--ink); }
.news-book { display: flex; gap: 22px; align-items: center; margin: 32px 0 8px; padding: 18px; border: 2px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: 5px 5px 0 var(--hot); }
.news-book__cover { flex: none; width: 110px; }
.news-book__cover .cover { width: 110px; }
.news-book__kicker { margin: 0; font: 700 .78rem var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--hot); }
.news-book__title { margin: 2px 0 2px; font-size: calc(1.3rem * var(--hs, 1)); }
.news-book__by { margin: 0 0 10px; font-family: var(--sans); color: var(--soft, #5c6170); }
.news-book .btn--secondary:hover { background: var(--hot); border-color: var(--hot); color: #fff; }
.news-post__back { margin-top: 28px; font-family: var(--sans); }

/* ---------- Coming soon holding page ---------- */
.holding-body { margin: 0; min-height: 100vh; background: var(--hot); color: #fff; display: grid; position: relative; }
.holding-body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 10px;
  background: linear-gradient(90deg,#E40303 0 16.66%,#FF8C00 16.66% 33.33%,#FFD200 33.33% 50%,#008026 50% 66.66%,#24408E 66.66% 83.33%,#732982 83.33%); }
.holding { display: grid; place-items: center; padding: clamp(32px, 6vw, 72px) 20px 72px; }
.holding__inner { max-width: 760px; text-align: center; display: grid; justify-items: center; gap: 4px; }
.holding__brand { display: flex; align-items: center; gap: 18px; margin: 0 0 clamp(20px, 4vw, 36px); }
.holding__logo { height: clamp(72px, 12vw, 100px); width: auto; }
.holding__flag { height: clamp(32px, 5vw, 40px); width: auto; border-radius: 3px; }
.holding__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: calc(clamp(2.8rem, 9vw, 5.4rem) * var(--hs, 1)); line-height: .95; letter-spacing: -.03em; }
.holding__title span { display: block; }
.holding__strap { margin: 18px 0 0; color: var(--sun); font: 700 clamp(1.05rem, 2.4vw, 1.35rem)/1.3 var(--display); }
.holding__soon { margin: clamp(26px, 5vw, 40px) 0 0; display: inline-block; background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 20px; font: 700 .85rem var(--display); letter-spacing: .12em; text-transform: uppercase; }
.holding__msg { margin: 16px 0 0; font-size: 1.15rem; line-height: 1.55; max-width: 560px; }
.holding__msg a { color: #fff; }
.holding__ig { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 20px 8px 10px; box-shadow: 4px 4px 0 var(--ink); text-decoration: none; font: 600 1rem var(--display); }
.holding__ig:hover { background: var(--sun); }
.holding__ig img { border-radius: 6px; }
.holding a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* ---------- Book filters: rounded, to match the title bands ---------- */
.filters { border-radius: 18px; }
.filters input, .filters select { border-radius: 12px; }

