@font-face {
  font-family: 'Baskervville';
  src: url('/assets/baskervville.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #243d37;
  --pine: #2d5747;
  --cream: #fffaf2;
  --paper: #fffdf8;
  --page-background: #fffaf2;
  --green: #e6eddd;
  --muted: #59645d;
  --line: #d6d9cc;
  --copper: #a6452c;
  --terracotta: #a6452c;
  --serif: 'Baskervville', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Gill Sans', system-ui, sans-serif;
  --book-frame-height: clamp(13.5rem, 21vw, 18rem);
}

body { background: var(--cream); color: var(--ink); font: 1.125rem/1.6 var(--sans); }
.wrap { width: min(1280px, calc(100% - 5rem)); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h2 { font-size: clamp(2.4rem, 4.1vw, 3.7rem); line-height: 1.1; }
h3 { line-height: 1.2; }
.label { color: var(--terracotta); font: 600 .875rem/1.4 var(--sans); letter-spacing: .13em; }
a { text-decoration-thickness: .065em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .11em; }
:where(a, button, input, select):focus-visible { outline: 3px solid #943c29; outline-offset: 5px; }
.skip { z-index: 20; }
.top { background: var(--cream); color: var(--ink); border-bottom: 1px solid var(--line); }
.top .wrap { width: min(1280px, calc(100% - 5rem)); max-width: none; padding-block: 1.15rem; border: 0; gap: 1.5rem; }
.top .brand { font: 400 clamp(1.65rem, 2.4vw, 2rem)/1.15 var(--serif); letter-spacing: -.04em; white-space: nowrap; }
.top .nav { gap: .2rem 1.35rem; align-items: center; }
.top .nav a { display: flex; align-items: center; min-height: 2.75rem; font-size: 1rem; }
.top .nav a:first-child { color: var(--terracotta); font-weight: 600; }
.button, .hero .button, .series-band .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem;
  padding: .62rem 1.15rem; border: 1px solid var(--terracotta); border-radius: 4px;
  background: var(--terracotta); color: #fffdf8; font: 600 1rem/1.35 var(--sans);
  text-align: center; text-decoration: none; transition: background-color .18s ease;
}
.button:hover { background: #8d3724; border-color: #8d3724; }
.button-outline { background: transparent; color: var(--terracotta); }
.button-outline:hover { background: #f8e6db; color: #82331f; }
.section { padding-block: clamp(3.5rem, 6.5vw, 6rem); }
.section-head { margin-bottom: 2.25rem; gap: 1.75rem; }
.section-head h2 { margin-bottom: .22em; }
.section-head .label { margin-bottom: .65rem; }
.section-head p { max-width: 42rem; }
.section-link { flex-shrink: 0; color: var(--terracotta); font-weight: 600; padding-bottom: .4rem; }

.bookshop-hero { overflow: hidden; background: var(--cream); }
.bookshop-hero-layout { display: grid; grid-template-columns: 1fr 1.04fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3.3rem, 6.5vw, 6.2rem); }
.bookshop-intro .label { margin-bottom: 1.05rem; }
.bookshop-intro h1 { font-size: clamp(3.4rem, 5.25vw, 5.1rem); line-height: 1.04; margin: 0 0 1.25rem; letter-spacing: -.052em; }
.bookshop-intro h1 em { color: var(--terracotta); font-weight: 400; }
.bookshop-intro > p:not(.label) { max-width: 36rem; font-size: 1.2rem; line-height: 1.6; }
.bookshop-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.8rem; }
.bookshop-hero-actions > a:not(.button) { font-size: 1rem; }
.bookshop-display { align-self: center; position: relative; min-width: 0; }
.bookshop-display::before { content: ''; position: absolute; inset: -1.5rem 2% 2rem; border-radius: 50%; background: #e7eddc; }
.bookshop-display-covers { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; max-width: 34rem; margin-inline: auto; padding: 2.25rem .7rem 1.5rem; }
.bookshop-display-covers a { display: block; box-shadow: .45rem .85rem 1.15rem #3844302b; transition: translate .2s ease; }
.bookshop-display-covers a:hover { translate: 0 -.4rem; }
.bookshop-display-covers img { width: 100%; height: auto; aspect-ratio: 5 / 8; object-fit: contain; }
.bookshop-display > p { position: relative; margin: .85rem 0 0; text-align: center; font: italic 1.22rem/1.35 var(--serif); }
.bookshop-browse { background: #edf1e6; border-block: 1px solid #d9e1d1; }
.bookshop-browse .wrap { display: flex; flex-wrap: wrap; gap: .6rem 2rem; align-items: center; padding-block: .85rem; }
.bookshop-browse span { margin-right: auto; font-family: var(--serif); font-size: 1.1rem; }
.bookshop-browse a { min-height: 2.5rem; display: inline-flex; align-items: center; font-size: 1rem; font-weight: 600; text-decoration: none; }
.bookshop-browse a:hover { text-decoration: underline; }

.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.shop-book { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding-bottom: 0; border-bottom: 0; }
.shop-jacket, .catalogue-card .cover, .featured .cover {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  height: var(--book-frame-height);
  padding: clamp(.75rem, 1.75vw, 1.25rem);
  border-radius: 5px;
  text-decoration: none;
  overflow: hidden;
}
.catalogue-card .cover, .featured .cover { aspect-ratio: auto; }
.catalogue-card .cover img, .featured .cover img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.shop-jacket img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(.35rem .6rem .55rem #303a302e); transition: transform .2s ease; }
.shop-jacket:hover img { transform: translateY(-.35rem); }
.jacket-clay { background: #f4dfd3; }
.jacket-sage { background: #e1e9d9; }
.jacket-honey { background: #f7e6b7; }
.jacket-rose { background: #f2dde1; }
.jacket-sky { background: #dfebec; }
.shop-book-copy { display: flex; flex: 1; flex-direction: column; padding-top: 1.2rem; }
.shop-category { margin: 0 0 .45rem; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.shop-book h3 { margin: 0 0 .7rem; font-size: clamp(1.8rem, 2.5vw, 2.2rem); }
.shop-book h3 a { text-decoration: none; }
.shop-book h3 a:hover { text-decoration: underline; }
.shop-hook { font-weight: 600; font-size: 1.125rem; line-height: 1.4; margin: 0 0 .65rem; }
.shop-description { font-size: 1.0625rem; line-height: 1.6; margin: 0 0 1.2rem; }
.shop-editions { margin: auto 0 .85rem; padding-top: .4rem; color: var(--muted); font-size: .875rem; }
.shop-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.shop-actions .button { flex: 1; padding-inline: .7rem; white-space: nowrap; }
.shop-preview { margin-top: .85rem; font-size: 1rem; font-weight: 600; }
.shop-preview a { display: inline-flex; align-items: center; min-height: 2.5rem; }
.shop-retailer-note { margin: 2.1rem 0 0; color: var(--muted); font-size: .875rem; }
.coming-soon-band { background: #fbecdf; border-block: 1px solid #ead7c7; }
.shop-grid-soon { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop-grid-soon .shop-jacket { background: #fff9f2; }
.shop-book-soon h3 { font-size: clamp(1.55rem, 2.1vw, 1.95rem); }
.shop-book-soon .shop-hook { font-size: 1.0625rem; }
.shop-book-soon .shop-description { font-size: 1rem; }
.shop-book-soon .shop-editions { font-weight: 600; color: #81502d; margin-bottom: 0; }
.shop-book-soon .shop-preview { margin-top: .25rem; }
.coming-soon-updates { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid #ddc8b6; }
.coming-soon-updates p { margin: 0; font: 400 1.5rem/1.3 var(--serif); }

.thesis-section { background: #edf1e6; color: var(--ink); }
.thesis-section h2 { max-width: 19ch; }
.thesis-map { column-gap: 4rem; }
.thesis-map article { border-color: #bccbb6; padding-block: 1.35rem; }
.thesis-map h3 { font-size: 1.75rem; }
.thesis-format { color: #51674a; }
.manifesto h2 { margin-bottom: .6rem; }
.manifesto-copy { font-size: 1.125rem; }
.research-band { background: #e3ebde; color: var(--ink); box-shadow: none; }
.research-layout h2 { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.6rem); }
.series-band { background: #f4dfd3; color: var(--ink); }
.series-band .label, .series-feature .label { color: var(--terracotta); }
.children-band { background: #f7e8bd; color: var(--ink); }
.reading-thread { padding-bottom: clamp(3rem, 5vw, 5rem); }
.release-panel h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.posts h3 { font-size: 1.75rem; }
.posts a { padding-block: 1.5rem; }
.posts time { font-size: .875rem; }
.foot { background: #edf1e6; }
.foot .wrap { padding-block: 1.6rem; }
.foot .nav { font-size: 1rem; }
.analytics-panel { background: var(--paper); color: var(--ink); border-color: var(--line); }
.analytics-panel h2 { font-family: var(--sans); }
.analytics-actions button { background: var(--pine); color: #fffdf8; border-color: var(--pine); min-height: 2.75rem; }

.cover, .featured .cover, .series-feature .cover, .detail > .edition-title { background: #e9eddf; border: 0; border-radius: 5px; }
.catalogue-card:nth-child(3n + 2) .cover { background: #f5e5c2; }
.catalogue-card:nth-child(3n + 3) .cover { background: #f2e0d6; }
.edition-title { color: var(--ink); }
.catalogue-card h3 { font-size: 1.8rem; }
.catalogue-card h3 a { text-decoration: none; }
.catalogue-card h3 a:hover { text-decoration: underline; }
.catalogue-card .catalogue-actions { padding-top: .4rem; }
.catalogue-meta, .card .label { font-size: .875rem; color: var(--muted); }
.filters input, .filters select { background: #fffdf8; border-color: #7d8d7d; color: var(--ink); border-radius: 3px; }
.filters select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%); background-position: right 1.1rem center,right .8rem center; background-size: .32rem .32rem; background-repeat: no-repeat; }
.map-book-themes { color: #8b422b; }
.detail h1, .inner h1 { font-size: clamp(2.8rem, 5.1vw, 4.6rem); }
.detail > img { max-height: 640px; filter: drop-shadow(.4rem .6rem .7rem #243d3726); }
.author-detail {
  grid-template-columns: minmax(0, 11rem) minmax(0, 44rem);
  justify-content: center;
  align-items: start;
  gap: clamp(1.2rem, 5vw, 3.5rem);
}
.author-detail > img {
  width: 100%;
  max-width: 11rem;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 31%;
  border-radius: 5px;
  filter: none;
}
.detail-formats .button { margin-bottom: .2rem; }
.detail .prose { min-width: 0; }
.book-detail-art { background: #e6eddd; border-radius: 5px; }
.book-detail-art img { filter: drop-shadow(.35rem .6rem .55rem #303a302e); }
@media (min-width: 651px) {
  .book-detail-art img { max-height: 25rem; }
}
.shop-author-band { background: #e6eddd; }
.shop-news-actions .button { background: var(--terracotta); border-color: var(--terracotta); color: #fffdf8; }
.catalogue-actions { align-items: center; }
.catalogue-actions a { overflow-wrap: normal; }
.upcoming-intro { max-width: 44rem; margin-bottom: 2.5rem; font-size: 1.2rem; }
.upcoming-more { margin-top: 4rem; }
.upcoming-more > p { max-width: 46rem; color: var(--muted); }
#new-releases, #coming-soon, #book-updates { scroll-margin-top: 1.5rem; }

@media (min-width: 1021px) {
  .shop-grid:not(.shop-grid-soon) .shop-hook { min-height: 3.2em; }
  .shop-grid-soon h3 { min-height: 2.4em; }
  .shop-grid-soon .shop-hook { min-height: 2.8em; }
}
@media (max-width: 1020px) {
  .wrap, .top .wrap { width: calc(100% - 3rem); }
  .top .wrap { flex-wrap: wrap; gap: .4rem 1.5rem; }
  .top .nav { gap: .15rem 1.1rem; }
  .bookshop-hero-layout { gap: 2.25rem; }
  .bookshop-intro h1 { font-size: clamp(3.2rem, 5.7vw, 4.2rem); }
  .bookshop-display-covers { gap: .4rem; padding-inline: .3rem; }
  .bookshop-browse .wrap { gap: .25rem 1.4rem; }
  .bookshop-browse span { flex-basis: 100%; }
  .shop-grid { gap: 1.35rem; }
  .shop-grid-soon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-actions .button { flex-basis: 100%; }
  .shop-book h3 { font-size: 1.8rem; }
}
@media (max-width: 760px) {
  .wrap, .top .wrap { width: calc(100% - 2rem); }
  .top .wrap { padding-block: .85rem; gap: .4rem; }
  .top .nav { gap: .05rem 1.15rem; }
  .top .nav a { font-size: .9375rem; min-height: 2.45rem; }
  .bookshop-hero-layout { grid-template-columns: 1fr; padding-block: 2.8rem 2.5rem; gap: 2.2rem; }
  .bookshop-intro h1 { font-size: clamp(3.1rem, 9.2vw, 4.5rem); }
  .bookshop-intro > p:not(.label) { font-size: 1.125rem; }
  .bookshop-hero-actions { margin-top: 1.4rem; gap: .9rem 1.2rem; }
  .bookshop-display { width: min(100%, 31rem); margin-inline: auto; }
  .bookshop-display-covers { padding: 1.6rem .8rem 1.2rem; gap: .75rem; }
  .bookshop-display::before { inset: -.5rem 3% 1rem; }
  .bookshop-display > p { font-size: 1.1rem; }
  .bookshop-browse .wrap { column-gap: 1.2rem; }
  .bookshop-browse span { font-size: 1.0625rem; }
  .bookshop-browse a { font-size: .9375rem; }
  .section-head { align-items: start; flex-direction: column; gap: .8rem; }
  .section-head h2 { font-size: 2.65rem; }
  .shop-grid, .shop-grid-soon { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .shop-book {
    display: grid;
    grid-template-columns: clamp(5.5rem, 29vw, 10rem) minmax(0, 1fr);
    align-items: start;
    gap: .65rem clamp(.75rem, 3vw, 1.4rem);
    padding-bottom: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .shop-jacket { height: auto; aspect-ratio: 5 / 6; padding: clamp(.4rem, 2vw, .75rem); }
  .shop-book-copy { display: contents; }
  .shop-book-title { min-width: 0; align-self: center; }
  .shop-book :is(.shop-description, .shop-editions, .shop-actions, .shop-preview) { grid-column: 1 / -1; margin: 0; }
  .catalogue-card .cover, .featured .cover { height: clamp(10rem, 48vw, 14.25rem); }
  .shop-book h3 { font-size: clamp(1.45rem, 4.65vw, 1.8rem); }
  .shop-actions .button { flex-basis: auto; }
  .shop-grid-soon .shop-hook { font-size: 1rem; }
  .shop-category { font-size: .875rem; }
  .coming-soon-updates { justify-content: start; }
  .thesis-map { column-gap: 2rem; }
  .manifesto { gap: 1.75rem; }
  .detail { padding-block: 2.25rem; }
  .detail > img { height: auto; max-height: 24rem; }
  .author-detail { grid-template-columns: minmax(0, 1fr); }
  .author-detail > img { max-width: 8rem; }
  .book-detail-heading .label { font-size: .875rem; }
  .foot .wrap { gap: 1rem; }
}
@media (max-width: 540px) {
  .shop-grid-soon .shop-editions { padding-top: .3rem; }
  .coming-soon-updates p { font-size: 1.4rem; }
  .shop-retailer-note { margin-top: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .bookshop-display-covers a, .shop-jacket img { transition: none; }
}
