/* ChapterHop: a picture-book page, with lettering on unpainted paper. */
@font-face {
  font-family: 'Caveat';
  src: url("../fonts/Caveat-Variable.29189204ffa5.woff2") format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Alegreya';
  src: url("../fonts/Alegreya-Variable.d3a297831374.woff2") format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Alegreya';
  src: url("../fonts/Alegreya-Italic-Variable.de8927ad4ef0.woff2") format('woff2');
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --paper: #fcf9f0;
  --paper-light: #fffdf6;
  --ink: #304857;
  --ink-deep: #213b4b;
  --muted: #56656a;
  --sage: #dce4d3;
  --sage-deep: #466053;
  --butter: #ead8a7;
  --coral: #ae624b;
  --lavender: #ddd8e3;
  --line: #c7cec5;
  --line-dark: #8c9b99;
  --font-body: 'Alegreya', Georgia, serif;
  --font-story: 'Alegreya', Georgia, serif;
  --font-hand: 'Alegreya', Georgia, serif;
  --shadow: none;
  --radius: 0;
}

html { scroll-behavior: auto; scroll-padding-top: 28px; }
body {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.55;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.62' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%2387785c' opacity='.052' filter='url(%23paper)' d='M0 0h280v280H0z'/%3E%3C/svg%3E");
  background-size: 280px 280px;
  text-rendering: optimizeLegibility;
}
::selection { background: #e8d89b; color: #213b4b; }
.container { width: min(1220px, calc(100% - 96px)); }
h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-story);
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: balance;
}
h1 { font-size: 66px; line-height: 1.05; }
h2 { font-size: 45px; line-height: 1.12; }
h3 { font-size: 31px; line-height: 1.15; }
p { text-wrap: pretty; }
.text-muted { color: var(--muted); }
small, .text-small { font-size: 16px; }
.icon { stroke-width: 1.35; }
hr { border-top-color: var(--line); }
.handwritten, .text-hand { font-family: var(--font-hand); font-size: 25px; color: #5a6e60; transform: none; line-height: 1.2; }
.eyebrow, .section-kicker {
  font: 500 22px/1.2 var(--font-hand);
  letter-spacing: 0;
  text-transform: none;
  color: #657668;
}
.eyebrow::before, .heading-star { display: none; }
.eyebrow { margin-bottom: 12px; }
:focus-visible { outline: 2px solid #956034; outline-offset: 5px; }

/* The masthead is lettering in the margin rather than a navigation bar. */
.site-header { border: 0; background: transparent; }
.header-inner { min-height: 116px; gap: 24px; }
.brand { gap: 9px; }
.brand-mark { width: 53px; height: 53px; }
.brand-name { font-family: var(--font-hand); font-size: 49px; font-weight: 700; letter-spacing: -1px; line-height: .95; }
.brand-tagline { font: 400 17px/1.3 var(--font-body); letter-spacing: .01em; color: var(--muted); margin: 3px 0 0 4px; }
.brand-dot { color: var(--coral); }
.main-nav { gap: 30px; }
.nav-link { font: 500 25px/1.15 var(--font-hand); padding: 12px 0; color: var(--ink); }
.nav-link.active::after, .nav-link[aria-current='page']::after {
  height: 2px;
  bottom: 4px;
  left: 1px;
  right: -1px;
  background: #b97660;
  border-radius: 40%;
  transform: rotate(-1deg);
}
.header-actions { gap: 17px; }
.avatar { font: 600 26px/1 var(--font-hand); background: transparent; border: 1px solid #8da19c; width: 42px; height: 42px; }
.avatar:hover { background: #e4e9dc; }

/* Real paint provides the edges. The lettering remains selectable HTML. */
.button, button[type='submit'] {
  position: relative;
  isolation: isolate;
  min-height: 49px;
  padding: 10px 25px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 600 25px/1.15 var(--font-hand);
  box-shadow: none;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}
.button:hover, button[type='submit']:hover { transform: none; box-shadow: none; }
.button:active, button[type='submit']:active { transform: scale(.98); }
.button-primary, button[type='submit'] { color: #fffdf7; background: transparent; }
.button-primary::before, button[type='submit']::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -4px -9px -3px;
  background-color: #3c6170;
  -webkit-mask: url("../images/watercolour-wash.599df55cde51.png") center / 100% 100% no-repeat;
  mask: url("../images/watercolour-wash.599df55cde51.png") center / 100% 100% no-repeat;
}
.button-primary:hover, button[type='submit']:hover { background: transparent; color: white; }
.button-primary:hover::before, button[type='submit']:hover::before { background-color: #2b5364; }
.button.button-secondary, .button-secondary, .button.button-ghost, .button-ghost {
  color: var(--ink);
  border: 0;
  background: transparent;
  padding-inline: 7px;
  text-decoration: underline;
  text-decoration-color: #a5b0a7;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}
.button.button-secondary:hover, .button-secondary:hover, .button.button-ghost:hover, .button-ghost:hover {
  background: transparent;
  color: #995b42;
  box-shadow: none;
  text-decoration-color: #b3775d;
}
.button.button-secondary::before, .button.button-ghost::before { display: none; }
.button-small { min-height: 44px; padding: 9px 20px 11px; font-size: 23px; }
.button.button-danger { color: #914b37; background: transparent; border: 1px solid #bc9886; }
.button.button-danger:hover { background: #f3e7dc; }
.button svg, button svg { width: 18px; height: 18px; }
.icon-button { min-width: 44px; min-height: 44px; border: 1px solid #aebbb1; border-radius: 4px; background: transparent; }
.icon-button:hover { background: #e7eadf; }
.text-button, .text-link { font-size: 19px; }

/* One opening spread: words have a quiet part of the paper of their own. */
.story-opening {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.2fr;
  align-items: center;
  gap: 0;
  min-height: 540px;
  padding: 20px 0 42px;
  margin-bottom: 20px;
}
.story-copy { position: relative; z-index: 2; padding: 12px 0 30px; max-width: 520px; }
.story-chapter { margin: 0 0 15px; font: 400 23px/1.15 var(--font-hand); color: #657463; }
.story-headline {
  font-size: clamp(69px, 6.5vw, 88px);
  line-height: .99;
  letter-spacing: -1.1px;
  font-weight: 600;
  margin: 0 0 23px;
  max-width: 550px;
  text-wrap: initial;
}
.story-headline em { color: #986149; font-style: normal; font-weight: 500; }
.story-description { max-width: 420px; color: #4d6268; font-size: 21px; line-height: 1.55; margin: 0 0 24px; }
.story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.story-text-link { font: 500 25px/1.2 var(--font-hand); text-decoration-thickness: 1px; text-decoration-color: #99aaa2; text-underline-offset: 7px; min-height: 44px; display: inline-flex; align-items: center; }
.story-text-link:hover { color: #965d45; text-decoration-color: #b17c63; }
.story-pencil-note { font: 400 25px/1.2 var(--font-hand); color: #69765e; margin-top: 24px; }
.story-landscape { position: relative; z-index: 1; min-width: 0; margin: 0 -25px 0 -37px; }
.story-landscape img { display: block; width: 100%; max-width: none; height: auto; max-height: 550px; object-fit: contain; }
.story-landscape figcaption { font: 400 23px/1.2 var(--font-hand); color: #5f7167; text-align: right; padding-right: 25px; margin-top: -20px; }
.garden-caption { position: absolute; right: 1px; bottom: 4px; color: #5e7366; font: 400 26px/1.08 var(--font-hand); text-align: center; transform: rotate(-5deg); }

/* Chapter one is a collection of books, not a collection of cards. */
.explore-section { padding-top: 22px; }
.shelf-introduction { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; margin-bottom: 20px; }
.shelf-introduction h2 { font: 600 53px/1.05 var(--font-hand); margin: 0 0 7px; }
.shelf-introduction p { font-size: 20px; line-height: 1.4; color: #54666b; margin: 0; }
.shelf-introduction .story-chapter, .chapter-number { font: 400 22px/1.2 var(--font-hand); color: #7c715a; margin-bottom: 7px; }
.shelf-introduction > .handwritten { max-width: 200px; font-size: 26px; text-align: right; padding-bottom: 2px; }
.shelf-introduction .shelf-margin-note { max-width: 240px; color: #6c775e; font: 400 28px/1.12 var(--font-hand); text-align: center; padding-right: 16px; padding-bottom: 6px; transform: rotate(-3deg); }
.section-heading { align-items: flex-end; gap: 30px; margin-bottom: 22px; }
.section-heading p { font-size: 18px; }
.section-title { font-size: 49px; }
.age-tabs { margin: 23px 0 15px; gap: 12px; }
.chip {
  position: relative;
  isolation: isolate;
  min-height: 46px;
  padding: 8px 18px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #485e65;
  font: 500 25px/1.12 var(--font-hand);
  transition: color 160ms ease;
}
.chip.active, .chip[aria-current='true'], .chip[aria-pressed='true'] { background: transparent; color: #263f4c; }
.chip.active::before, .chip[aria-current='true']::before, .chip[aria-pressed='true']::before {
  content: '';
  position: absolute;
  inset: 2px -5px 0;
  z-index: -1;
  background-color: #d8e2c8;
  -webkit-mask: url("../images/watercolour-wash.599df55cde51.png") center / 100% 100% no-repeat;
  mask: url("../images/watercolour-wash.599df55cde51.png") center / 100% 100% no-repeat;
}
.chip:hover { color: #92583f; background: transparent; transform: none; }
.filter-bar { padding: 9px 0 18px; gap: 24px; margin-bottom: 6px; border: 0; }
.search-field { min-width: 220px; }
.search-field svg { left: 0; width: 18px; height: 18px; color: #697d80; }
.search-field input {
  border: 0 !important;
  border-bottom: 1px solid #a7b5ac !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding-left: 29px !important;
  min-height: 48px;
  font-size: 19px !important;
  box-shadow: none;
}
.search-field input:focus { box-shadow: none !important; }
.filter-bar input, .filter-bar select { font-family: var(--font-body); font-size: 18px; min-height: 45px; background: transparent; }
.filter-bar select { border: 0; border-bottom: 1px solid #a7b5ac; border-radius: 0; padding-inline: 6px 22px; max-width: 185px; }
.filters { gap: 17px; }
.filter-bar .button { font-size: 23px; white-space: nowrap; }
.results-summary, .results-caption { font-size: 17px; color: #596b70; margin-bottom: 26px; }
.results-summary > .text-muted { font-style: italic; }
.book-grid { column-gap: 35px; row-gap: 43px; }
.book-card, .book-card:nth-child(n) { animation: none; animation-delay: 0s; }
.book-card .cover-stage, .book-card:nth-child(n) .cover-stage, .cover-stage {
  isolation: isolate;
  position: relative;
  height: 249px;
  min-height: 0;
  padding: 15px 15px 14px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}
.cover-stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 45%;
  background: url("../images/watercolour-wash.599df55cde51.png") center / 100% 100% no-repeat;
  opacity: .28;
}
.book-cover, .book-card:nth-child(n) .book-cover {
  width: auto;
  height: 219px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0 2px 2px 0;
  box-shadow: 1px 3px 2px rgba(0, 0, 0, .11), 4px 7px 9px rgba(0, 0, 0, .055);
  transform: none;
  transition: transform 160ms ease;
}
.book-image-link:hover .book-cover { transform: translateY(-3px); }
.cover-placeholder, .book-card .cover-placeholder { width: 153px; padding: 17px 13px 13px; object-fit: initial; }
.cover-placeholder::after { display: none; }
.cover-title { font-size: 26px; font-weight: 600; line-height: 1.06; }
.cover-author { font: 400 13px/1.2 var(--font-body); text-transform: none; letter-spacing: 0; }
.cover-placeholder .cover-star { display: none; }
.cover-placeholder .cover-book-icon { width: 35px; height: 30px; }
.condition-badge, .book-copy-note {
  position: static;
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #77704f;
  font: 400 22px/1.15 var(--font-hand);
  margin: 0;
}
.book-info { padding: 12px 4px 0; }
.book-meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 2px; margin-bottom: 4px; }
.book-copy-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 13px; margin-bottom: 5px; }
.book-age { display: inline-block; margin-bottom: 5px; font: 400 16px/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: #5a6a6d; }
.book-title { font: 600 31px/1.06 var(--font-hand); letter-spacing: 0; margin-bottom: 5px; }
.book-title a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.book-author { font: 400 18px/1.3 var(--font-body); color: #52666c; margin-bottom: 9px; }
.card-footer { border: 0; padding-top: 0; margin-top: 10px; color: #5a6b6d; font-size: 16px; gap: 8px 14px; }
.book-card .card-footer { justify-content: flex-start; }
.owner-row { font: 400 16px/1.3 var(--font-body); color: #576b6d; }
.owner-row .owner-avatar { display: none; }
.delivery-label { font: 400 17px/1.3 var(--font-hand); color: #546c60; gap: 6px; flex-wrap: wrap; }
.delivery-label .icon { width: 14px; height: 14px; }
.pagination { font-size: 19px; margin-top: 47px; }
.pagination .button { font-size: 24px; }
.empty-state { background: transparent; border: 0; border-radius: 0; padding: 52px 20px; }
.empty-state h2, .empty-state h3 { font-size: 43px; }
.empty-state p { font-size: 20px; max-width: 520px; }

.chapter-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 65px; margin-top: 76px; padding: 44px 0 37px; border-top: 1px solid #c4cec1; }
.chapter-note { position: relative; }
.chapter-note .chapter-number, .chapter-note > span:first-child { font: 400 28px/1 var(--font-hand); color: #9c654b; }
.chapter-note h3 { font-size: 36px; margin: 10px 0 9px; }
.chapter-note p { font-size: 20px; line-height: 1.45; color: #50646b; }
.storybook-ending { padding: 45px 0 12px; text-align: center; }
.storybook-ending h2 { font-size: 53px; margin-bottom: 10px; }
.storybook-ending p { font-size: 20px; color: #51676c; margin-inline: auto; max-width: 620px; }
.storybook-ending .icon { width: 33px; height: 33px; margin-bottom: 12px; color: #7d9077; }
.storybook-ending .button { margin-top: 5px; }

/* The same paper and lettering continue into shelves, forms and exchanges. */
.page-heading { padding-top: 43px; margin-bottom: 31px; align-items: flex-end; }
.page-heading h1 { font-size: 67px; line-height: 1.05; margin-bottom: 12px; }
.page-intro { max-width: 660px; font-size: 21px; line-height: 1.45; color: #52686f; }
.panel, .form-panel {
  border: 0;
  border-top: 1px solid #bdc9c0;
  border-radius: 0;
  padding: 27px 0;
  background: transparent;
  box-shadow: none;
}
.panel h2 { font-size: 39px; margin-bottom: 17px; }
.panel h3 { font-size: 31px; }
.panel p { font-size: 20px; }
.two-column { gap: 54px; }
.field label, label, .field-label { font: 500 20px/1.3 var(--font-body); color: var(--ink); margin-bottom: 8px; }
input:not([type='checkbox']):not([type='radio']):not([type='hidden']), select, textarea {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.4;
  min-height: 47px;
  padding: 10px 12px;
  background: #fffdf7;
  color: var(--ink);
  border: 1px solid #9eafa9;
  border-radius: 3px;
  box-shadow: none;
}
input::placeholder, textarea::placeholder { color: #6a7879; }
input:not([type='checkbox']):not([type='radio']):focus, select:focus, textarea:focus { border-color: #456978; box-shadow: 0 0 0 2px rgba(65, 102, 115, .12); }
input[type='file'] { font-size: 17px !important; }
input[type='file']::file-selector-button { padding: 6px 9px; font-family: var(--font-body); font-size: 17px; color: #304857; background: #e0e6d7; border-radius: 2px; }
input[type='checkbox'], input[type='radio'] { accent-color: #466d77; min-width: 19px; width: 19px; height: 19px; }
.help-text, .helptext, .errorlist { font-family: var(--font-body); font-size: 17px; line-height: 1.45; }
.help-text, .helptext { color: #566b70; }
.errorlist { color: #963e2a; }
.form-actions { margin-top: 25px; border-top: 1px solid #cad1c6; padding-top: 21px; font-size: 18px; }
.form-actions .text-muted { font-size: 17px; }
.checkbox-label { min-height: 44px; padding: 9px 0; font-size: 19px; }
.choice-card, .checkbox-grid label, .choice-options label {
  border: 0;
  border-bottom: 1px solid #c4cec5;
  border-radius: 0;
  padding: 13px 10px;
  background: transparent;
  font: 400 20px/1.4 var(--font-body);
  min-height: 49px;
}
.choice-card:has(input:checked), .checkbox-grid label:has(input:checked), .choice-options label:has(input:checked) { background: #e8ecdf; border-color: #94a99c; }
.choice-card small, .lookup-results button small { font-size: 17px; }
.choice-options label { font-family: var(--font-hand); font-size: 27px; padding-inline: 14px; }
.lookup-results button { font-family: var(--font-body); font-size: 19px; border: 0; border-bottom: 1px solid #b4c4b6; border-radius: 0; background: #eff0e3; }
.lookup-results button:hover { background: #e4e9d9; }
.lookup-status { font-size: 17px; }
.tip-panel .handwritten { font-size: 31px; }
.tip-panel > .icon { width: 27px; height: 27px; color: #b57a5b; }
.messages { margin-top: 18px; }
.message { font: 400 19px/1.4 var(--font-body); border: 0; border-left: 2px solid #849c79; border-radius: 0; background: #eaf0e2; padding: 13px 18px; }
.message.error { border-left: 2px solid #b56f52; border-radius: 0; background: #f3e8de; }
.notice { border: 0; border-left: 2px solid #9fae84; border-radius: 0; background: #ecf0e1; font: 400 19px/1.5 var(--font-body); color: #40574b; }
.notice-warning { background: #f4ecd5; border-color: #b29b64; color: #665231; }
.tabs { border-bottom: 0; gap: 12px; }
.tab { font-family: var(--font-hand); font-size: 25px; }
.tab-count { font: 400 18px var(--font-hand); background: transparent; }
.detail-layout { gap: 80px; }
.book-detail-art { background: transparent; border-radius: 0; padding: 31px; }
.book-detail-art .book-cover { height: 350px; width: auto; max-width: 100%; object-fit: contain; }
.book-detail-art .cover-placeholder { width: 245px; }
.book-detail-art .cover-title { font-size: 37px; }
.book-detail-art .cover-author { font-size: 17px; }
.book-detail-art .handwritten { font-size: 28px; margin-top: 27px; }
.book-detail-content h1 { font-size: 67px; }
.detail-author { font-family: var(--font-body); font-size: 25px; color: #61767c; }
.detail-owner, .detail-owner strong { font-size: 19px; }
.detail-owner p { font-size: 17px; color: #617276; }
.detail-owner .owner-avatar { display: inline-flex; font-family: var(--font-hand); font-size: 26px; }
.book-detail-content .detail-meta { font-size: 19px; border-block: 1px solid #c5cdc2; }
.book-detail-content h2 { font-size: 37px; }
.book-detail-content .preserve-lines { font-size: 21px; line-height: 1.55; color: #4e636a; }
.tag { padding: 0; font: 400 24px/1.3 var(--font-hand); background: transparent; border: 0; border-radius: 0; color: #627457; }
.inline > .tag + .tag { margin-left: 10px; }
.breadcrumb { padding-top: 30px; font-size: 19px; }
.report-link { font-size: 17px; color: #6c6c5a; }
.exchange-list .exchange-card, .exchange-card { background: transparent; border: 0; border-top: 1px solid #bdcac0; border-radius: 0; padding: 25px 0; box-shadow: none; }
a.exchange-card:hover { border-color: #829e9c; transform: none; background: transparent; }
.exchange-card-main h2 { font-size: 39px; }
.exchange-card p, .exchange-card-main p { font-size: 19px; }
.exchange-mode-icon { background: transparent; border-radius: 0; width: 38px; color: #69847d; }
.exchange-mode-icon .icon { width: 29px; height: 29px; }
.exchange-status { border-radius: 0; background: transparent; font: 500 25px/1.2 var(--font-hand); white-space: normal; color: #6e6546; }
.status-accepted, .status-completed { background: transparent; color: #476753; }
.status-cancelled { background: transparent; color: #69777a; }
.status-issue { background: transparent; color: #9a593d; }
.status-proposed { background: transparent; }
.exchange-book { gap: 14px; }
.exchange-book strong { font-size: 21px; }
.exchange-book p { font-size: 18px; }
.exchange-book .help-text { font-size: 17px; }
.mini-cover { border-radius: 0; }
.timeline { padding: 20px 0; }
.step, .step.current, .step.done { font: 500 23px/1.2 var(--font-hand); background: transparent; border: 0; border-radius: 0; color: #576a6e; }
.step.current { color: #925c3d; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.step.done { color: #476956; }
.thread-message { border-radius: 0; background: #f1f0e7; border: 0; border-left: 1px solid #bec9bd; }
.thread-message.mine { border-left-color: #8da8a9; background: #eaf0ea; }
.thread-message p, .thread-message strong { font-size: 20px; }
.thread-message time { font-size: 16px; }
dl.summary-list { font-size: 19px; }
.summary-list li { font-size: 19px; }
dl.summary-list dt, dl.summary-list dd { border-bottom: 1px solid #d0d6cb; }
.issue-panel summary { font: 500 30px/1.3 var(--font-hand); }
.auth-page { max-width: 1050px; gap: 70px; padding-block: 35px; }
.auth-card { padding: 30px 0; }
.auth-card h1 { font-size: 63px; }
.auth-card p { font-size: 20px; }
.auth-art .handwritten { font-size: 29px; }
.auth-art img { mix-blend-mode: multiply; }
.site-footer { border: 0; background: transparent; margin-top: 75px; padding: 31px 0 28px; }
.footer-inner { border-top: 1px solid #bdc9bf; padding-top: 27px; gap: 25px; }
.footer-brand .brand-name { font-size: 36px; }
.footer-inner p, .footer-small, .footer-small a { font: 400 17px/1.4 var(--font-body); color: #5b6c6d; }
.footer-doodle { font: 400 23px/1.2 var(--font-hand); color: #617665; }
.footer-small { padding-top: 18px; }
dialog { background: var(--paper); border: 1px solid #a7b8ad; border-radius: 3px; }
dialog h2 { font-size: 38px; }
dialog p { font-size: 19px; }

@media (max-width: 1060px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 20px; }
  .brand-name { font-size: 43px; }
  .brand-mark { width: 44px; height: 44px; }
  .main-nav { gap: 21px; }
  .nav-link { font-size: 23px; }
  .header-actions { gap: 13px; }
  .header-actions .button { padding-inline: 17px; font-size: 22px; }
  .story-opening { min-height: 490px; grid-template-columns: 1fr 1.1fr; }
  .story-headline { font-size: 73px; }
  .story-description { font-size: 20px; }
  .story-landscape { margin-right: -14px; }
  .story-actions { gap: 11px 20px; }
  .story-actions .button { font-size: 24px; }
  .filter-bar { flex-wrap: wrap; gap: 12px 24px; }
  .search-field { flex: 1 1 100%; }
  .filters { margin-left: auto; }
  .book-grid { column-gap: 25px; }
  .book-card .cover-stage, .book-card:nth-child(n) .cover-stage { height: 230px; padding: 10px 5px; }
  .book-cover, .book-card:nth-child(n) .book-cover { height: 206px; }
  .book-title { font-size: 29px; }
  .book-author { font-size: 17px; }
  .chapter-notes { gap: 38px; }
  .two-column { gap: 37px; }
  .detail-layout { gap: 45px; }
  .book-detail-content h1 { font-size: 59px; }
}

@media (max-width: 800px) {
  .header-inner { min-height: 130px; flex-wrap: wrap; align-content: center; gap: 5px 20px; padding-block: 16px 6px; }
  .brand-name { font-size: 43px; }
  .brand-tagline { font-size: 16px; }
  .header-actions { margin-left: auto; }
  .main-nav { order: 3; width: 100%; justify-content: center; gap: 45px; }
  .nav-link { font-size: 25px; }
  .story-opening { min-height: 0; grid-template-columns: 1fr; padding: 31px 0 28px; margin-bottom: 0; }
  .story-copy { max-width: 580px; padding-bottom: 0; }
  .story-chapter { font-size: 23px; margin-bottom: 13px; }
  .story-headline { font-size: 79px; max-width: 560px; }
  .story-description { font-size: 21px; max-width: 500px; }
  .story-actions .button { font-size: 26px; }
  .story-pencil-note { font-size: 25px; margin-top: 20px; }
  .story-landscape { width: 100%; margin: 6px 0 0; }
  .story-landscape img { max-height: 420px; }
  .story-landscape figcaption { font-size: 23px; padding-right: 15px; }
  .garden-caption { right: 4px; bottom: 0; font-size: 24px; }
  .shelf-introduction h2 { font-size: 51px; }
  .shelf-introduction > .handwritten { font-size: 25px; max-width: 160px; }
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 22px; }
  .book-title { font-size: 30px; }
  .book-age { font-size: 16px; }
  .book-author { font-size: 18px; }
  .chapter-notes { gap: 26px; margin-top: 52px; padding-top: 35px; }
  .chapter-note h3 { font-size: 32px; }
  .chapter-note p { font-size: 19px; }
  .page-heading h1 { font-size: 61px; }
  .two-column { grid-template-columns: 1fr; }
  .offer-columns, .two-column.exchange-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-detail-art .book-cover { max-height: 330px; }
  .auth-page { gap: 30px; }
}

@media (max-width: 620px) {
  body { font-size: 19px; line-height: 1.5; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 117px; display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-block: 15px 8px; gap: 7px 9px; }
  .brand { gap: 6px; min-width: 0; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-name { font-size: 31px; line-height: .95; white-space: nowrap; }
  .brand-tagline { display: none; }
  .header-actions { gap: 10px; }
  .header-actions .nav-link { font-size: 22px; }
  .header-actions .button { min-height: 44px; padding: 10px; font-size: 21px; gap: 5px; }
  .header-actions .button svg { width: 15px; height: 15px; }
  .main-nav { grid-column: 1 / -1; justify-content: space-between; gap: 0; padding-top: 4px; }
  .main-nav .nav-link { font-size: 24px; padding: 10px 5px; }
  .nav-link.active::after { bottom: 5px; }
  .story-opening { padding-top: 30px; padding-bottom: 20px; }
  .story-copy { display: contents; }
  .story-opening .story-chapter { grid-column: 1; grid-row: 1; font-size: 22px; margin-bottom: 13px; }
  .story-headline { grid-column: 1; grid-row: 2; font-size: 58px; line-height: 1; letter-spacing: -.4px; max-width: 420px; margin-bottom: 8px; }
  .story-description { grid-column: 1; grid-row: 4; font-size: 19px; line-height: 1.5; margin-bottom: 21px; max-width: 100%; }
  .story-actions { grid-column: 1; grid-row: 5; gap: 8px 18px; align-items: center; }
  .story-actions .button { font-size: 24px; padding-inline: 19px; }
  .story-actions .button-secondary { padding-inline: 4px; }
  .story-text-link { font-size: 24px; }
  .story-pencil-note { grid-column: 1; grid-row: 6; font-size: 23px; line-height: 1.2; margin: 17px 0 0; }
  .story-landscape { grid-column: 1; grid-row: 3; margin: -6px 0 5px; }
  .story-landscape img { max-height: 230px; }
  .story-landscape figcaption { font-size: 22px; margin-top: -7px; padding-right: 6px; }
  .garden-caption { display: none; }
  .explore-section { padding-top: 31px; }
  .shelf-introduction { margin-bottom: 18px; align-items: flex-start; gap: 17px; }
  .shelf-introduction h2 { font-size: 47px; line-height: 1.02; }
  .shelf-introduction p { font-size: 19px; }
  .shelf-introduction > .handwritten { display: none; }
  .shelf-introduction .shelf-margin-note { display: none; }
  .shelf-introduction .story-chapter, .chapter-number { font-size: 21px; }
  .section-heading { align-items: flex-start; gap: 12px; }
  .section-title { font-size: 45px; }
  .section-heading .handwritten { display: none; }
  .age-tabs { gap: 4px 8px; margin-top: 22px; margin-bottom: 12px; }
  .chip, .age-tabs .chip { min-height: 44px; padding: 8px 13px 10px; font-size: 23px; }
  .filter-bar { gap: 13px; padding-top: 7px; margin-bottom: 4px; }
  .search-field { flex: 1 1 100%; min-width: 0; }
  .search-field input { min-height: 48px; font-size: 18px !important; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; gap: 14px 15px; }
  .filter-bar select { max-width: none; width: 100%; min-width: 0; font-size: 18px; padding-left: 2px; }
  .filter-bar .button { grid-column: 1 / -1; justify-self: end; margin-left: 0; font-size: 23px; padding: 10px 23px; }
  .results-summary, .results-caption { font-size: 16px; margin: 10px 0 18px; }
  .results-summary .text-muted { display: none; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 23px; }
  .book-card .cover-stage, .book-card:nth-child(n) .cover-stage { height: 215px; padding: 12px 5px 9px; }
  .book-cover, .book-card:nth-child(n) .book-cover { height: 187px; max-width: 100%; width: auto; }
  .cover-placeholder, .book-card .cover-placeholder { width: 133px; padding: 16px 10px 12px; }
  .cover-title { font-size: 24px; }
  .cover-author { font-size: 12px; }
  .cover-placeholder .cover-book-icon { width: 28px; height: 27px; }
  .book-info { padding: 9px 0 0; }
  .book-meta { gap: 3px 9px; }
  .book-age { font-size: 15px; margin-bottom: 4px; }
  .condition-badge, .book-copy-note { font-size: 20px; }
  .book-title { font-size: 29px; line-height: 1.07; margin-bottom: 4px; }
  .book-author { font-size: 17px; margin-bottom: 9px; }
  .card-footer { gap: 4px 10px; margin-top: 8px; padding: 0; font-size: 16px; }
  .book-card .card-footer { display: flex; align-items: flex-start; flex-direction: column; }
  .owner-row { font-size: 16px; }
  .delivery-label { font-size: 17px; }
  .pagination { margin-top: 35px; gap: 20px; font-size: 18px; }
  .chapter-notes { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; margin-top: 52px; }
  .chapter-note { padding-left: 42px; }
  .chapter-note .chapter-number, .chapter-note > span:first-child { position: absolute; left: 0; top: 10px; font-size: 28px; }
  .chapter-note h3 { font-size: 35px; margin-top: 0; }
  .chapter-note p { font-size: 20px; margin-bottom: 0; }
  .storybook-ending { padding-top: 35px; }
  .storybook-ending h2 { font-size: 47px; }
  .storybook-ending p { font-size: 20px; }
  .page-heading { padding-top: 34px; margin-bottom: 25px; gap: 16px; }
  .page-heading h1 { font-size: 57px; }
  .page-intro { font-size: 20px; }
  .page-heading .eyebrow { font-size: 22px; }
  .panel, .form-panel { padding: 23px 0; }
  .panel h2 { font-size: 37px; }
  .panel h3 { font-size: 31px; }
  .panel p { font-size: 19px; }
  .two-column { gap: 27px; }
  .offer-columns, .two-column.exchange-grid { grid-template-columns: 1fr; }
  .field label, label, .field-label { font-size: 20px; }
  input:not([type='checkbox']):not([type='radio']):not([type='hidden']), select, textarea { min-height: 48px; font-size: 19px; border-radius: 2px; }
  .help-text, .helptext, .errorlist { font-size: 17px; }
  .form-actions { gap: 17px; font-size: 18px; }
  .form-actions .button { flex: initial; }
  .button, button[type='submit'] { min-height: 48px; font-size: 25px; }
  .button-small { font-size: 23px; }
  .lookup-controls { gap: 11px; }
  .lookup-controls input { flex-basis: 100%; }
  .lookup-results button { font-size: 19px; }
  .choice-card, .book-choices .choice-card { font-size: 20px; min-height: 49px; }
  .choice-card small { font-size: 17px; }
  .choice-options label { font-size: 25px; }
  .notice { font-size: 19px; }
  .message { font-size: 19px; }
  .detail-layout { gap: 24px; padding-top: 26px; }
  .book-detail-art { max-width: 350px; padding: 19px; }
  .book-detail-art .book-cover { height: 300px; width: auto; }
  .book-detail-art .cover-placeholder { width: 210px; }
  .book-detail-art .handwritten { font-size: 27px; margin-top: 20px; }
  .book-detail-content h1 { font-size: 59px; }
  .book-detail-content h2 { font-size: 37px; }
  .book-detail-content .preserve-lines { font-size: 20px; }
  .detail-author { font-size: 24px; }
  .detail-owner, .detail-owner strong { font-size: 19px; }
  .detail-owner p { font-size: 17px; }
  .book-detail-content .detail-meta { font-size: 19px; }
  .breadcrumb, .report-link { font-size: 17px; }
  .tag { font-size: 24px; }
  .timeline { gap: 7px 10px; flex-wrap: wrap; }
  .step, .step.current, .step.done { font-size: 23px; }
  .exchange-list .exchange-card { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .exchange-card-main { flex: 1 1 calc(100% - 60px); }
  .exchange-card-main h2 { font-size: 36px; }
  .exchange-card-main p { font-size: 18px; }
  .exchange-status { font-size: 25px; }
  .exchange-list .exchange-status { margin-left: 50px; }
  .exchange-list .exchange-card > .icon:last-child { display: none; }
  .exchange-book strong { font-size: 20px; }
  .exchange-book p { font-size: 18px; }
  .exchange-book .help-text { font-size: 17px; }
  .thread-message { max-width: 100%; }
  .thread-message p, .thread-message strong { font-size: 19px; }
  .thread-message time { font-size: 16px; }
  dl.summary-list, .summary-list li { font-size: 18px; }
  .auth-page { margin: 27px auto; padding-top: 0; gap: 25px; }
  .auth-card { padding: 25px 0; }
  .auth-card h1 { font-size: 57px; }
  .auth-card p { font-size: 19px; }
  .auth-art { max-width: 340px; }
  .auth-art .handwritten { font-size: 28px; }
  .site-footer { margin-top: 52px; padding-top: 18px; }
  .footer-inner { padding-top: 23px; gap: 16px; }
  .footer-inner p, .footer-small, .footer-small a { font-size: 17px; }
  .footer-brand .brand-name { font-size: 38px; }
  .footer-doodle { font-size: 24px; }
  .footer-small { gap: 10px; }
}

@media (max-width: 370px) {
  .container { width: calc(100% - 32px); }
  .brand-name { font-size: 30px; }
  .brand-mark { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .nav-link { font-size: 21px; }
  .header-actions .button { padding-inline: 10px; font-size: 21px; }
  .main-nav .nav-link { font-size: 23px; padding-inline: 2px; }
  .story-headline { font-size: 56px; }
  .story-actions { gap: 4px 16px; }
  .story-actions .button { padding-inline: 16px; font-size: 23px; }
  .story-actions .button-secondary { padding-inline: 3px; }
  .book-grid { column-gap: 18px; }
  .book-card .cover-stage, .book-card:nth-child(n) .cover-stage { height: 203px; }
  .book-cover, .book-card:nth-child(n) .book-cover { height: 177px; }
  .book-card .cover-placeholder { width: 126px; }
  .book-title { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The illustration supplies the decoration; text and controls stay direct. */
.cover-placeholder::before, .cover-placeholder::after { content: none; }
.shelf-introduction > .section-title { margin: 0; }
.footer-inner { justify-content: space-between; }
@media (max-width: 620px) {
  .story-opening .story-headline { grid-row: 1; }
  .story-opening .story-landscape { grid-row: 2; }
  .story-opening .story-description { grid-row: 3; }
  .story-opening .story-actions { grid-row: 4; }
}

/* Lettering is a personal note in the margin; the page itself is typeset. */
h1 { font-size: 54px; }
h2 { font-size: 36px; }
h3 { font-size: 26px; }
.brand-name, .footer-brand .brand-name {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.footer-brand .brand-name { font-size: 26px; }
.handwritten, .text-hand, .story-pencil-note, .garden-caption {
  font-family: 'Caveat', cursive;
  font-weight: 400;
}
.brand-tagline { font-size: 15px; }
.main-nav .nav-link, .header-actions .nav-link, .nav-link {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}
.button, button[type='submit'], .header-actions .button,
.story-actions .button, .filter-bar .button, .pagination .button {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  padding: 12px 23px;
}
.button-small, .header-actions .button { font-size: 17px; padding: 10px 20px; }
.story-opening { min-height: 500px; padding-top: 10px; }
.story-headline {
  font-family: var(--font-body);
  font-size: clamp(48px, 4.5vw, 60px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.035em;
}
.story-chapter, .shelf-introduction .story-chapter,
.eyebrow, .section-kicker { font-family: var(--font-body); font-size: 16px; line-height: 1.4; font-style: italic; font-weight: 400; }
.story-text-link { font-family: var(--font-body); font-size: 18px; font-weight: 500; }
.story-pencil-note { font-size: 22px; }
.garden-caption { font-size: 23px; }
.shelf-introduction h2, .section-title { font-family: var(--font-body); font-size: 38px; line-height: 1.15; letter-spacing: -.02em; }
.shelf-introduction .shelf-margin-note { font-family: var(--font-body); font-size: 18px; font-style: italic; line-height: 1.45; transform: none; }
.chip, .age-tabs .chip { font-family: var(--font-body); font-size: 18px; font-weight: 500; }
.book-title { font-family: var(--font-body); font-size: 25px; font-weight: 600; line-height: 1.18; }
.condition-badge, .book-copy-note { font-family: var(--font-body); font-size: 16px; font-style: italic; }
.delivery-label { font-family: var(--font-body); font-size: 16px; }
.chapter-note h3 { font-family: var(--font-body); font-size: 27px; margin-top: 8px; }
.chapter-note .chapter-number, .chapter-note > span:first-child { font-family: var(--font-body); font-size: 18px; }
.storybook-ending h2 { font-family: var(--font-body); font-size: 38px; }
.page-heading h1, .auth-card h1, .book-detail-content h1 { font-family: var(--font-body); font-size: 51px; line-height: 1.1; }
.panel h2, .book-detail-content h2 { font-family: var(--font-body); font-size: 30px; }
.panel h3 { font-size: 25px; }
.choice-options label, .tab { font-family: var(--font-body); font-size: 20px; }
.tab-count, .tag, .exchange-status { font-family: var(--font-body); font-size: 18px; }
.step, .step.current, .step.done { font-family: var(--font-body); font-size: 19px; }
.issue-panel summary { font-family: var(--font-body); font-size: 23px; }
.exchange-card-main h2 { font-family: var(--font-body); font-size: 29px; }
.detail-owner .owner-avatar, .avatar { font-family: var(--font-body); font-size: 22px; }
.footer-doodle { font-family: var(--font-body); font-size: 17px; font-style: italic; }
@media (max-width: 800px) {
  .story-headline { max-width: 530px; font-size: 58px; }
}
@media (max-width: 620px) {
  .brand-name { font-size: 28px; }
  .main-nav .nav-link { font-size: 17px; }
  .header-actions .nav-link { font-size: 16px; }
  .header-actions .button { font-size: 16px; padding: 11px 12px; }
  .story-opening { padding-top: 23px; }
  .story-headline { font-size: 43px; line-height: 1.1; letter-spacing: -.025em; margin-bottom: 12px; }
  .story-chapter, .shelf-introduction .story-chapter { font-size: 16px; }
  .story-description { font-size: 19px; }
  .story-actions .button, .button, button[type='submit'] { font-size: 18px; }
  .story-text-link { font-size: 18px; }
  .story-pencil-note { font-size: 22px; }
  .shelf-introduction h2, .section-title { font-size: 33px; }
  .chip, .age-tabs .chip { font-size: 18px; padding-inline: 13px; }
  .filter-bar .button { font-size: 18px; }
  .book-title { font-size: 23px; line-height: 1.2; }
  .condition-badge, .book-copy-note, .delivery-label { font-size: 16px; }
  .chapter-note { padding-left: 34px; }
  .chapter-note h3 { font-size: 25px; }
  .chapter-note .chapter-number, .chapter-note > span:first-child { font-size: 18px; }
  .storybook-ending h2 { font-size: 33px; }
  .page-heading h1, .auth-card h1, .book-detail-content h1 { font-size: 41px; }
  .panel h2, .book-detail-content h2 { font-size: 28px; }
  .panel h3 { font-size: 24px; }
  .exchange-card-main h2 { font-size: 26px; }
  .choice-options label, .tab { font-size: 20px; }
  .exchange-status, .tag { font-size: 18px; }
  .step, .step.current, .step.done { font-size: 18px; }
}

/* Parcel updates stay quiet and readable beside the exchange details. */
.parcel-reference { overflow-wrap: anywhere; }
.parcel-tracking-status { margin-bottom: 6px; }
.parcel-tracking-checked { font-variant-numeric: tabular-nums; }
.parcel-tracking-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin: 18px 0; }
.parcel-tracking-actions > a { display: inline-flex; align-items: center; min-height: 40px; text-underline-offset: 3px; }
.parcel-tracking-actions form { margin: 0; }
.parcel-tracking-history { margin: 20px 0; }
.parcel-tracking-history summary { cursor: pointer; min-height: 40px; padding-block: 8px; }
.parcel-tracking-events { list-style: none; margin: 8px 0 0; padding: 0 0 0 18px; border-left: 1px solid var(--line, #d6d8c8); }
.parcel-tracking-events li { padding: 0 0 18px; overflow-wrap: anywhere; }
.parcel-tracking-events li:last-child { padding-bottom: 0; }
.parcel-tracking-events p { margin: 0 0 4px; }
.parcel-tracking-events time { font-variant-numeric: tabular-nums; }

/* The new apple illustration keeps the name in ordinary book typography. */
.brand-illustration { display: block; width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; }
.policy-page { max-width: 72ch; margin: 12px auto 72px; }
.policy-page h2 { margin-top: 32px; font-size: 29px; line-height: 1.2; }
.policy-page p { line-height: 1.65; }
.footer-links { align-items: center; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; }
@media (max-width: 620px) {
  .brand-illustration { width: 32px; height: 32px; flex-basis: 32px; }
  .policy-page { margin-bottom: 48px; }
  .policy-page h2 { font-size: 26px; }
}
@media (max-width: 420px) {
  .header-inner { grid-template-columns: auto auto; column-gap: 8px; }
  .brand-name { font-size: 26px; }
  .brand-illustration { width: 28px; height: 28px; flex-basis: 28px; }
  .header-actions { gap: 8px; }
  .header-actions .nav-link { font-size: 15px; }
  .header-actions .button { font-size: 15px; padding-inline: 8px; }
}
@media (max-width: 360px) {
  .header-inner { grid-template-columns: 1fr; }
  .header-inner > .brand { justify-self: center; }
  .header-actions { margin-inline: auto; }
}

/* Reputation describes real exchanges without decorative scores or tiers. */
.parent-reference { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; }
.parent-reference a, .parent-reputation-detail a { text-underline-offset: 3px; }
.verified-swapper { display: inline-block; color: #365c47; font-size: 15px; font-weight: 600; line-height: 1.4; }
.verified-swapper::before { content: '✓'; margin-right: 5px; }
.parent-reputation-detail { margin: 0 0 22px; }
.parent-reputation-detail p { margin: 0 0 5px; }
.parent-profile-heading .verified-swapper { margin-top: 12px; }
.reputation-facts { display: flex; flex-wrap: wrap; gap: 20px 36px; margin: 20px 0; }
.reputation-facts div { display: flex; flex-direction: column; gap: 2px; }
.reputation-facts dt { font-size: 17px; }
.reputation-facts dd { margin: 0; font-size: 27px; font-weight: 600; font-variant-numeric: tabular-nums; }
.reputation-rating { margin-bottom: 0; }
.parent-reviews { margin: 38px 0; }
.parent-review { padding: 20px 0; border-bottom: 1px solid var(--line, #d6d8c8); overflow-wrap: anywhere; }
.parent-review:first-of-type { border-top: 1px solid var(--line, #d6d8c8); }
.parent-review-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 20px; }
.parent-review-heading p { margin: 0; }
.parent-review-heading time { font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  .reputation-facts { gap: 18px 28px; }
  .reputation-facts div { flex-basis: calc(50% - 28px); }
  .parent-review-heading { display: block; }
}
.form-panel #id_stars label {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 6px;
}
