/* ==========================================================================
   IVC Stories — Design System
   Editorial, literary, international. Serif for voice, sans for utility.
   ========================================================================== */

:root {
  /* Colour palette */
  --ivory:        #F7F3EA;
  --ivory-deep:    #EFE8D8;
  --paper:         #FFFDF8;
  --navy:          #16233B;
  --navy-deep:     #0E1729;
  --charcoal:      #26282B;
  --burgundy:      #7C2333;
  --burgundy-deep: #5E1A27;
  --gold:          #A9812E;
  --gold-light:    #C9A45C;
  --forest:        #1F3A30;
  --grey:          #6C6A64;
  --grey-light:    #9A968C;
  --line:          rgba(22, 35, 59, 0.12);
  --line-inverse:  rgba(247, 243, 234, 0.16);

  /* Type */
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --container: 1240px;
  --container-narrow: 860px;
  --radius: 3px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --shadow-sm: 0 1px 3px rgba(14, 23, 41, 0.08);
  --shadow-md: 0 8px 28px rgba(14, 23, 41, 0.10);
  --shadow-lg: 0 20px 60px rgba(14, 23, 41, 0.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
table { border-collapse: collapse; width: 100%; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: var(--radius);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 500; }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
h4 { font-size: 1.1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.on-dark { color: var(--gold-light); }

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--navy);
  line-height: 1.55;
  font-weight: 400;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.75rem;
}
.section-head .heading-group { max-width: 640px; }
.section-head h2 { margin-top: 0.6rem; }

p.muted, .muted { color: var(--grey); }
.text-center { text-align: center; }

blockquote.pull {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--navy);
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  line-height: 1.5;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.25rem, 4vw, 3.5rem) 0; }
.on-navy { background: var(--navy); color: var(--ivory); }
.on-navy h2, .on-navy h3 { color: var(--ivory); }
.on-ivory-deep { background: var(--ivory-deep); }
.on-paper { background: var(--paper); }
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}
.on-navy .divider { border-top-color: var(--line-inverse); }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--burgundy);
  color: var(--paper);
}
.btn-primary:hover { background: var(--burgundy-deep); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--ivory); }
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--line-inverse);
}
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.78rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--burgundy);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: gap 0.18s ease, border-color 0.18s ease;
}
.link-arrow:hover { gap: 0.65rem; border-color: currentColor; }
.link-arrow.on-dark { color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 84px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo span.mark {
  font-size: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-top: 0.4rem;
}
.main-nav { display: flex; align-items: center; gap: 2.1rem; }
.main-nav a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--burgundy); }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--navy);
  transition: background 0.18s ease;
}
.icon-btn:hover { background: var(--ivory-deep); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .main-nav { position: fixed; inset: 84px 0 0 0; background: var(--ivory); flex-direction: column;
    align-items: flex-start; padding: 2rem var(--gutter); gap: 1.6rem; transform: translateX(100%);
    transition: transform 0.28s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn span.btn-label-full { display: none; }
}

.search-panel {
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 41, 0.5);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 700;
  padding-top: 12vh;
}
.search-panel.open { display: flex; }
.search-panel form {
  background: var(--paper);
  width: min(640px, 90vw);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.search-panel input[type="search"] {
  border: none;
  border-bottom: 2px solid var(--navy);
  padding: 0.6rem 0.1rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  background: transparent;
}
.search-panel input[type="search"]:focus { outline: none; }
.search-panel .search-hint { font-size: 0.82rem; color: var(--grey); }
.search-close { align-self: flex-end; background: none; border: none; color: var(--navy); font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-deep) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 1.25rem; }
.hero-copy h1 { max-width: 15ch; }
.hero-copy p.lede { margin-top: 1.5rem; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero-stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.75rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-serif); font-size: 1.9rem; color: var(--navy); }
.hero-stats span { font-size: 0.78rem; color: var(--grey); letter-spacing: 0.02em; }

.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 420px;
  margin-left: auto;
}
.hero-collage .book-cover:nth-child(1) { transform: translateY(2rem); }
.hero-collage .book-cover:nth-child(2) { transform: translateY(-1.5rem); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-collage { order: -1; max-width: 340px; margin: 0 auto; }
  .hero-collage .book-cover:nth-child(1),
  .hero-collage .book-cover:nth-child(2) { transform: none; }
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 2.5rem;
  background: var(--ivory-deep);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-size: 0.78rem;
  color: var(--grey);
  margin-bottom: 1.1rem;
}
.breadcrumb a { color: var(--grey); border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--burgundy); border-color: currentColor; }
.page-header h1 { max-width: 30ch; }
.page-header .lede { margin-top: 1rem; max-width: 60ch; }

/* ---------- Book cover (generated art, no photography needed) ---------- */
.book-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 11% 10%;
  color: var(--ivory);
  isolation: isolate;
}
.book-cover::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.16), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(0,0,0,0.18), transparent 55%);
}
.book-cover .cv-mark { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.book-cover .cv-title {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.18;
  font-weight: 600;
}
.book-cover .cv-author { font-size: 0.72rem; letter-spacing: 0.05em; opacity: 0.9; margin-top: 0.6rem; }

.cv-1 { background: linear-gradient(155deg, #7C2333, #4A1520); }
.cv-2 { background: linear-gradient(155deg, #1F3A30, #12241D); }
.cv-3 { background: linear-gradient(155deg, #16233B, #0A1220); }
.cv-4 { background: linear-gradient(155deg, #A9812E, #6E5217); }
.cv-5 { background: linear-gradient(155deg, #5B3A5C, #341F36); }
.cv-6 { background: linear-gradient(155deg, #23555E, #122C31); }
.cv-7 { background: linear-gradient(155deg, #8C4A2F, #522A1A); }
.cv-8 { background: linear-gradient(155deg, #3C4A2E, #202810); }

.book-cover.size-sm { border-radius: 2px; }

.book-cover.has-photo {
  padding: 0;
  display: block;
}
.book-cover.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Cards ---------- */
.book-card { display: flex; flex-direction: column; }
.book-card .book-cover { margin-bottom: 1.1rem; }
.book-card:hover .book-cover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.book-cover { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.book-card .card-genre { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.book-card h3 { font-size: 1.1rem; margin-top: 0.4rem; }
.book-card .card-author { font-size: 0.86rem; color: var(--grey); margin-top: 0.2rem; }
.book-card .card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-available { background: rgba(31, 58, 48, 0.12); color: var(--forest); }
.tag-optioned { background: rgba(169, 129, 46, 0.16); color: #7A5C1E; }
.tag-sold { background: rgba(108, 106, 100, 0.16); color: var(--grey); }
.tag-new { background: rgba(124, 35, 51, 0.12); color: var(--burgundy); }
.tag-bestseller { background: rgba(22, 35, 59, 0.1); color: var(--navy); }

.author-card { text-align: center; }
.avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  color: var(--ivory);
  font-weight: 600;
  margin: 0 auto 1.1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-card h3 { font-size: 1.05rem; }
.author-card .card-genre { font-size: 0.78rem; color: var(--burgundy); font-weight: 600; margin-top: 0.3rem; }
.author-card p.bio-line { font-size: 0.88rem; color: var(--grey); margin-top: 0.6rem; }
.author-card.align-left { text-align: left; }
.author-card.align-left .avatar { margin: 0 0 1.1rem; width: 84px; height: 84px; font-size: 1.5rem; }

.avatar-lg { width: 220px; height: 220px; font-size: 3.2rem; }

.deal-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.deal-card .book-cover { aspect-ratio: 2/3; }
.deal-card .deal-meta { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.deal-card h4 { margin-top: 0.35rem; }
.deal-card p { margin-top: 0.4rem; font-size: 0.92rem; color: var(--grey); }

.rights-cat-card {
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.rights-cat-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.rights-cat-card .cat-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ivory-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--burgundy);
}
.rights-cat-card .cat-icon svg { width: 22px; height: 22px; }
.rights-cat-card h3 { font-size: 1.15rem; }
.rights-cat-card p { margin-top: 0.6rem; font-size: 0.92rem; color: var(--grey); flex: 1; }
.rights-cat-card .link-arrow { margin-top: 1.25rem; }

.news-card { display: flex; flex-direction: column; }
.news-card .news-thumb {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  color: var(--ivory);
}
.news-card .news-cat { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.news-card .news-date { font-size: 0.78rem; color: var(--grey); margin-top: 0.5rem; }
.news-card h3 { margin-top: 0.5rem; font-size: 1.15rem; }
.news-card p { margin-top: 0.55rem; font-size: 0.92rem; color: var(--grey); }

.event-card {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.event-date {
  font-family: var(--font-serif);
  color: var(--navy);
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 1.5rem;
}
.event-date .day { font-size: 2rem; display: block; line-height: 1; }
.event-date .month { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey); }
.event-card h3 { font-size: 1.05rem; }
.event-card p { font-size: 0.88rem; color: var(--grey); margin-top: 0.3rem; }
@media (max-width: 700px) {
  .event-card { grid-template-columns: 70px 1fr; }
  .event-card .btn { grid-column: 1 / -1; margin-top: 0.5rem; }
}

.team-card { display: flex; gap: 1.25rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.team-card .avatar { margin: 0; }
.team-card .role { font-size: 0.82rem; color: var(--burgundy); font-weight: 600; margin-top: 0.2rem; }
.team-card .meta-row { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; margin-top: 0.85rem; font-size: 0.82rem; color: var(--grey); }
.team-card .meta-row strong { color: var(--navy); font-weight: 600; }

/* ---------- Stats / logos strip ---------- */
.stats-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.stats-strip div { text-align: center; flex: 1; min-width: 140px; }
.stats-strip strong { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.6rem); display: block; color: var(--ivory); }
.stats-strip span { font-size: 0.8rem; color: var(--grey-light); }

/* ---------- Timeline (About) ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -2rem; top: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--burgundy); border: 2px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--burgundy);
}
.timeline-item .year { font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); }
.timeline-item p { margin-top: 0.5rem; color: var(--grey); max-width: 60ch; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.field .hint { font-size: 0.76rem; color: var(--grey); margin-top: -0.2rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  color: var(--charcoal);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--burgundy);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-file {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--grey);
  background: var(--paper);
}
.checkbox-row { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.86rem; color: var(--grey); }
.checkbox-row input { margin-top: 0.25rem; }
.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}
.form-actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 0.5rem; flex-wrap: wrap; }

/* Filter sidebar (catalogue) */
.catalogue-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .catalogue-layout { grid-template-columns: 1fr; } }
.filters { position: sticky; top: 104px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.filters h4 { margin-bottom: 0.25rem; }
.filter-group { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: none; }
.filter-group legend, .filter-group .filter-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.7rem; display: block; }
.filter-option { display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; color: var(--charcoal); padding: 0.3rem 0; cursor: pointer; }
.filter-option input { accent-color: var(--burgundy); }
.filter-search { margin-bottom: 1.25rem; }
.filter-search input { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.9rem; background: var(--ivory); }

.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem; }
.results-count { font-size: 0.88rem; color: var(--grey); }
.sort-select { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 0.8rem; background: var(--paper); font-size: 0.85rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; background: var(--ivory-deep); border-radius: 999px; padding: 0.35rem 0.7rem 0.35rem 0.9rem; }
.chip button { background: none; border: none; color: var(--grey); font-size: 0.9rem; line-height: 1; }

/* ---------- Book detail page ---------- */
.book-detail { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .book-detail { grid-template-columns: 1fr; } }
.book-detail .cover-col { position: sticky; top: 104px; }
.book-detail .cover-col .book-cover { max-width: 340px; }
.book-facts { margin-top: 1.75rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.book-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; font-size: 0.86rem; }
.book-facts dt { color: var(--grey); }
.book-facts dd { margin: 0; color: var(--navy); font-weight: 500; text-align: right; }
.book-detail .meta-line { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.book-detail .synopsis { margin: 1.75rem 0; }
.book-detail .synopsis p + p { margin-top: 1rem; }

.territory-table th, .territory-table td { text-align: left; padding: 0.75rem 1rem; font-size: 0.88rem; border-bottom: 1px solid var(--line); }
.territory-table th { color: var(--grey); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.territory-table tr:last-child td { border-bottom: none; }

.review-quote { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.review-quote:last-child { border-bottom: none; }
.review-quote cite { display: block; margin-top: 0.75rem; font-style: normal; font-size: 0.82rem; color: var(--grey); }

.sticky-enquire {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 400;
  box-shadow: var(--shadow-lg);
}

/* ---------- Author detail ---------- */
.author-hero { display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 760px) { .author-hero { grid-template-columns: 1fr; text-align: left; } }
.author-hero .avatar-lg { margin: 0; }
.author-links { display: flex; gap: 0.85rem; margin-top: 1.25rem; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3rem; padding-bottom: 2.25rem; border-left: 1px solid var(--line); margin-left: 0.9rem; }
.step:last-child { border-color: transparent; padding-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: -0.9rem; top: 0;
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--font-serif);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.step h4 { margin-bottom: 0.4rem; }
.step p { color: var(--grey); font-size: 0.92rem; }
.on-navy .step { border-left-color: var(--line-inverse); }
.on-navy .step::before { background: var(--gold); color: var(--navy-deep); box-shadow: none; }
.on-navy .step p { color: var(--grey-light); }

/* ---------- Value grid (services) ---------- */
.value-card { border-top: 2px solid var(--navy); padding-top: 1.25rem; }
.value-card h3 { font-size: 1.15rem; }
.value-card ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.value-card li { font-size: 0.9rem; color: var(--grey); padding-left: 1.1rem; position: relative; }
.value-card li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Newsletter ---------- */
.newsletter-panel {
  background: var(--navy);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}
.newsletter-panel h2 { color: var(--ivory); }
.newsletter-form { display: flex; gap: 0.75rem; min-width: 340px; }
.newsletter-form input {
  flex: 1;
  border: 1px solid var(--line-inverse);
  background: rgba(255,255,255,0.05);
  color: var(--ivory);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
}
.newsletter-form input::placeholder { color: var(--grey-light); }
.newsletter-form input:focus { outline: none; border-color: var(--gold-light); }
@media (max-width: 760px) {
  .newsletter-panel { grid-template-columns: 1fr; text-align: left; }
  .newsletter-form { min-width: 0; flex-direction: column; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--grey-light); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 980px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .footer-top { grid-template-columns: 1fr; } }
.footer-top .logo { color: var(--ivory); }
.footer-top p { font-size: 0.88rem; margin-top: 1rem; max-width: 30ch; }
.footer-col h5 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ivory); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.88rem; }
.footer-col a:hover { color: var(--ivory); }
.footer-social { display: flex; gap: 0.9rem; margin-top: 1.5rem; }
.footer-social a { width: 34px; height: 34px; border: 1px solid var(--line-inverse); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { border-color: var(--gold-light); color: var(--gold-light); }
.footer-social svg { width: 15px; height: 15px; }
.footer-bottom { border-top: 1px solid var(--line-inverse); padding-top: 1.75rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: var(--ivory); }

/* ---------- Misc ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.callout {
  background: var(--ivory-deep);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  font-size: 0.92rem;
  color: var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.two-col-text { columns: 2; column-gap: 3rem; }
@media (max-width: 760px) { .two-col-text { columns: 1; } }
.two-col-text p { break-inside: avoid; margin-bottom: 1rem; }

.table-scroll { overflow-x: auto; }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.82rem; color: var(--navy); }

.data-table { margin-top: 1.5rem; font-size: 0.88rem; min-width: 480px; }
.data-table th, .data-table td { text-align: left; padding: 0.65rem 1rem 0.65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-family: var(--font-sans); font-weight: 600; color: var(--navy); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid var(--line); }
.data-table td { color: var(--grey); }
.data-table td:first-child { color: var(--navy); font-weight: 500; }
.confidence-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; padding: 0.2rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.confidence-high { background: rgba(31, 58, 48, 0.12); color: var(--forest); }
.confidence-provisional { background: rgba(169, 129, 46, 0.15); color: var(--gold); }

.map-frame { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); border: 1px solid var(--line); }

.office-card { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.office-card h3 { font-size: 1.05rem; }
.office-card address { font-style: normal; font-size: 0.92rem; color: var(--grey); margin-top: 0.6rem; line-height: 1.7; }

.download-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.download-card .dl-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ivory-deep); color: var(--burgundy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.download-card .dl-icon svg { width: 20px; height: 20px; }
.download-card .dl-meta { font-size: 0.78rem; color: var(--grey); margin-top: 0.2rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.status-banner {
  background: var(--forest);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.92rem;
}

/* ---------- Copyable email template ---------- */
.template-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.template-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.template-card-head h3 { font-size: 1.05rem; }
.email-template {
  white-space: pre-wrap;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.template-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 1.5rem; }
.copy-btn.is-copied { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
