:root {
  color-scheme: light;
  --paper: #fefbf6;
  --ink: #3d3a35;
  --forest: #1e3028;
  --sage: #536357;
  --mist: #dde0d5;
  --slate: #616b65;
  --honey: #c99c5a;
  --pink: #f4d6df;
  --pink-paper: #fcf0f2;
  --coral: #954c60;
  --serif: Georgia, "Times New Roman", serif;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 5px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }
.skip-link { position: absolute; top: 12px; left: 16px; z-index: 20; padding: 16px 24px; color: var(--paper); background: var(--forest); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
main:focus { outline: none; }
.section-wrap { width: min(100% - 128px, 1200px); margin-inline: auto; }
.site-header { background: var(--paper); }
.header-inner { width: min(100% - 96px, 1280px); min-height: 128px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 8px; }
.brand { width: 300px; min-width: 260px; flex-shrink: 0; }
.brand img, .footer-brand img { width: 100%; height: auto; }
.footer-brand img { clip-path: inset(5% 2%); }
.site-header nav { display: flex; gap: 40px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--sage); text-decoration: none; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.site-header nav a:hover, .site-header nav a:focus-visible { text-decoration-line: underline; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); }
.hero-picture { position: absolute; inset: 0; z-index: -1; }
.hero-art { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-inner { width: min(100% - 128px, 1200px); min-height: clamp(560px, 44vw, 760px); margin-inline: auto; display: flex; align-items: center; }
.hero-copy { width: min(46%, 535px); padding-block: 48px 96px; animation: arrive 650ms ease-out both; }
.eyebrow { margin-bottom: 20px; color: var(--sage); font-size: 12px; font-weight: 600; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--coral); border-radius: 50%; }
.hero h1 { margin-bottom: 24px; color: var(--forest); font-family: var(--serif); font-size: clamp(52px, 5.1vw, 76px); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; }
.hero-description { max-width: 360px; margin-bottom: 28px; color: var(--ink); font-size: 17px; line-height: 1.6; }
.button { display: inline-flex; min-height: 54px; align-items: center; gap: 24px; padding: 16px 24px; background: var(--sage); color: var(--paper); border: 1px solid transparent; border-radius: 5px; font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color 180ms ease; }
.button span, .text-link span { transition: transform 180ms ease; }
.button:hover { background: #435348; }
.button:hover span, .text-link:hover span { transform: translateX(4px); }
.books-section { padding-block: 80px 88px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 40px; }
.section-heading .eyebrow { margin-bottom: 12px; }
h2 { color: var(--sage); font-family: var(--serif); font-size: clamp(36px, 4vw, 48px); font-weight: 400; line-height: 1.16; letter-spacing: -.035em; }
.section-heading h2 { margin-bottom: 0; }
.section-intro { margin: 0 0 4px; color: var(--sage); font-size: 16px; line-height: 1.6; }
.books-empty { display: flex; align-items: center; gap: 32px; min-height: 208px; padding: 40px 32px; background: transparent; border-block: 1px solid var(--pink); }
.empty-rule { width: 48px; height: 3px; flex-shrink: 0; background: var(--coral); border-radius: 50%; }
.books-empty h3 { margin-bottom: 12px; color: var(--sage); font-family: var(--serif); font-size: clamp(26px, 3vw, 32px); font-weight: 400; line-height: 1.25; letter-spacing: -.025em; }
.books-empty p { margin: 0; font-size: 16px; line-height: 1.6; }
.catalogue-link { display: flex; justify-content: flex-end; margin-top: 20px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 16px; color: var(--sage); font-size: 14px; font-weight: 600; text-decoration-thickness: 1px; }
.book-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin: 0; padding: 0; list-style: none; }
.book-list > li { flex: 0 1 calc((100% - 80px) / 3); min-width: 0; }
.book-link { display: block; text-decoration: none; }
.book-image, .book-title-art { width: 100%; transition: transform 220ms ease; }
.book-image { display: block; height: auto; aspect-ratio: auto; border-radius: 3px; }
.book-title-art { display: flex; aspect-ratio: 4 / 5; align-items: flex-end; padding: 32px; color: var(--forest); background: var(--mist); border-radius: 3px; font-family: var(--serif); font-size: 30px; line-height: 1.2; overflow-wrap: anywhere; }
.book-list > li:nth-child(2) .book-title-art { background: var(--pink); }
.book-list > li:nth-child(3) .book-title-art { background: #eee5cd; }
.book-title-art-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.book-title { margin: 24px 0 12px; color: var(--forest); font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.25; overflow-wrap: anywhere; }
.book-link:hover .book-title { text-decoration: underline; text-decoration-thickness: 1px; }
/* Selection keeps the cover closed; the selected sheet follows its corner. */
.book-cover-button { display: block; width: 100%; min-height: 44px; padding: 0; border: 0; border-radius: 3px; color: inherit; background: transparent; cursor: pointer; font: inherit; text-align: left; }
 .book-cover-wrap { position: relative; }
.book-corner-handle { right: 0; bottom: 0; }
.book-image, .book-title-art { transform-origin: center; transition: transform 160ms ease, opacity 120ms ease; }
.book-cover-button > * { pointer-events: none; }
.book-cover-wrap[data-focused] .book-cover-button > * { box-shadow: 1px 0 0 #e5dccb, 3px 1px 0 #f4eddf, 0 18px 26px -18px #25392a4a, 0 4px 10px #25392a14; }
.book-interaction-help { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.book-preview-close, .book-preview-toggle { min-height: 44px; padding: 10px 16px; border: 1px solid #53635755; border-radius: 4px; color: var(--forest); background: var(--paper); font: 14px Arial, sans-serif; cursor: pointer; }
.book-preview-toggle { background: var(--sage); color: var(--paper); }
.book-reading-layer { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.book-curl-viewer { position: absolute; pointer-events: none; transform-origin: top left; }
.book-curl-canvas { position: fixed; display: block; pointer-events: none; width: 100%; height: 100%; transition: opacity 200ms ease; }
.book-reading-layer[data-state="focused"] .book-curl-canvas { visibility: hidden; }
.book-closed-preview { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.book-closed-preview > * { width: auto; height: auto; max-width: 96%; max-height: 94%; object-fit: contain; }
.book-closed-preview .book-title-art { width: min(96%, 460px); height: auto; }
.book-corner-handle { pointer-events: auto; position: absolute; z-index: 1; width: 48px; height: 48px; padding: 0; border: 0; color: var(--forest); background: transparent; touch-action: none; cursor: grab; user-select: none; }
.book-corner-handle:active { cursor: grabbing; }
.book-corner-handle span { position: relative; font-size: 17px; opacity: .65; text-shadow: 0 1px 3px #fffdf7; }
.book-drag-instruction { margin: 12px 0 20px; color: var(--sage); text-align: center; font-size: 14px; line-height: 1.5; }
.book-preview-actions { display: flex; align-items: center; justify-content: center; gap: 20px 32px; flex-wrap: wrap; }
.book-preview-detail { margin: 0; }
.book-reading-page { position: absolute; z-index: 2; overflow: auto; overscroll-behavior: contain; pointer-events: auto; color: var(--forest); background: #fffdf7; opacity: 0; transition: opacity 200ms ease; }
.book-reading-layer[data-state="reading"] .book-reading-page { opacity: 1; }
.book-reading-layer[data-state="reading"] .book-curl-canvas { opacity: 0; }
.book-reading-layer[data-state="closing"] .book-reading-page { opacity: 0; pointer-events: none; }
.book-reading-layer[data-state="closing"] .book-curl-canvas { opacity: 1; }
.book-reading-top { position: sticky; top: 0; z-index: 2; padding: max(12px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-left)); background: #fffdf7f5; }
.book-reading-back { min-width: 44px; min-height: 44px; padding: 10px 4px; color: var(--sage); background: none; border: 0; font: 16px/1.4 Arial, sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; }
.book-reading-back:disabled { cursor: default; }
.book-reading-content { max-width: 880px; margin: 0 auto; padding: 32px max(24px, env(safe-area-inset-right)) max(80px, env(safe-area-inset-bottom)); }
.book-reading-article { font: 18px/1.75 Arial, sans-serif; overflow-wrap: anywhere; }
.book-reading-article h1 { margin: 0 0 28px; color: var(--sage); font: 400 clamp(32px, 5vw, 58px)/1.15 Georgia, serif; }
.book-reading-article h2, .book-reading-article h3 { margin: 36px 0 12px; color: var(--sage); font: 400 26px/1.3 Georgia, serif; }
.book-reading-article p { margin: 0 0 24px; }
.book-reading-article .entry-meta { color: var(--sage); font-size: 14px; }
.book-reading-article .product-price { margin: 24px 0 8px; font-weight: 600; }
.book-reading-article .product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.book-reading-article .product-hero > * { min-width: 0; }
.book-reading-article .product-stock { font-size: 14px; }
.book-reading-article .add-to-cart { display: inline-flex; min-height: 48px; align-items: center; padding: 12px 24px; border: 0; border-radius: 4px; color: var(--paper); background: var(--sage); font: 600 16px Arial, sans-serif; cursor: pointer; }
.book-reading-article .add-to-cart:disabled { color: var(--slate); background: var(--mist); cursor: not-allowed; }
.book-reading-purchase-links { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 32px; }
.book-reading-purchase-links a { display: inline-flex; align-items: center; min-height: 44px; }
.book-reading-article img { display: block; width: auto; max-width: 100%; height: auto; margin: 24px auto; }
.book-reading-article a { color: var(--sage); text-decoration: underline; text-underline-offset: 4px; }
.book-reading-article pre, .book-reading-article table { display: block; max-width: 100%; overflow: auto; }
.book-reading-article blockquote { margin-inline: 0; padding-inline: 24px; border-left: 2px solid var(--pink); }
.book-reading-status { font-size: 16px; }
.book-reading-exit { position: absolute; right: max(12px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); z-index: 3; pointer-events: auto; }
@media (max-width: 700px) {
  .book-reading-article .product-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .book-preview-toolbar { align-items: flex-start; gap: 12px; }
  .book-preview-toolbar .eyebrow { padding-top: 12px; font-size: 10px; }
  .book-preview-close { flex-shrink: 0; }
  .book-reading-content { padding-top: 20px; }
  .book-reading-article { font-size: 17px; line-height: 1.65; }
}
@media (prefers-reduced-motion: reduce) {
  .book-reading-page, .book-curl-canvas { transition: none; }
}
.book-synopsis { margin-bottom: 12px; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.book-list .text-link { font-size: 14px; }
.about-section { padding-block: 32px 80px; }
.about-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-picture { display: block; }
.about-art { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.about-copy { max-width: 440px; }
.about-copy .eyebrow { margin-bottom: 20px; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy > p:not(.eyebrow) { font-size: 17px; line-height: 1.65; margin-bottom: 20px; }
.about-copy .text-link { margin-top: 8px; }
.audience-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 40px; }
.audience-resource { padding-top: 24px; border-top: 2px solid var(--pink); }
.resource-status { margin-bottom: 12px; color: var(--sage); font-size: 12px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.audience-resource h3 { margin: 0 0 12px; color: var(--forest); font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.2; }
.audience-resource > p:last-child { max-width: 460px; margin: 0; font-size: 16px; line-height: 1.6; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 40px; min-height: 176px; padding-block: 32px; border-top: 1px solid var(--pink); }
.footer-brand { width: 260px; flex-shrink: 0; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; column-gap: 32px; row-gap: 8px; }
.footer-links a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--sage); font-size: 14px; }
.footer-links p { flex-basis: 100%; margin: 0; color: var(--slate); font-size: 12px; text-align: right; }
@keyframes arrive { from { transform: translateY(10px); } to { transform: translateY(0); } }
@media (max-width: 1000px) {
  .section-wrap, .hero-inner { width: calc(100% - 64px); }
  .header-inner { width: calc(100% - 48px); }
  .hero-inner { min-height: clamp(440px, 50vw, 500px); }
  .hero-art { object-fit: cover; object-position: right center; }
  .hero-copy { width: 47%; padding-bottom: 64px; }
  .hero h1 { font-size: 52px; }
  .hero-description { font-size: 16px; }
  .desktop-break { display: none; }
  .book-list { gap: 24px; }
  .book-list > li { flex-basis: calc((100% - 48px) / 3); }
  .about-inner { gap: 32px; }
  .about-copy > p:not(.eyebrow) { font-size: 16px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 24px; }
  .section-wrap { width: calc(100% - 40px); }
  .header-inner { width: calc(100% - 32px); flex-direction: column; min-height: 0; gap: 0; padding-block: 4px; }
  .brand { width: 260px; }
  .site-header nav { gap: 32px; }
  .site-header nav a { font-size: 14px; }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { order: 1; width: calc(100% - 40px); min-height: 0; }
  .hero-copy { width: 100%; padding-block: 24px 12px; }
  .hero-eyebrow { margin-bottom: 14px; font-size: 11px; }
  .hero h1 { font-size: clamp(44px, 11.3vw, 62px); margin-bottom: 16px; }
  .hero-description { max-width: 350px; margin-bottom: 20px; font-size: 16px; }
  .hero-picture { position: relative; order: 2; z-index: 0; height: clamp(240px, 64vw, 380px); overflow: hidden; }
  .hero-art { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
  .books-section { padding-block: 48px 56px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 28px; }
  .section-intro br { display: none; }
  .books-empty { align-items: flex-start; flex-direction: column; gap: 20px; padding: 28px 24px; }
  .books-empty p br { display: none; }
  .catalogue-link { justify-content: flex-start; }
  .book-list { gap: 40px; }
  .book-list > li { flex-basis: 100%; max-width: 360px; }
  .book-title-art { max-height: 440px; }
  .book-title { margin-top: 20px; }
  .about-section { padding-block: 0 48px; }
  .about-inner { grid-template-columns: 1fr; gap: 24px; }
  .about-picture { max-width: 440px; justify-self: center; }
  .about-copy { max-width: 100%; }
  .about-copy h2 { margin-bottom: 20px; }
  .audience-resources { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 16px; padding-block: 24px; }
  .footer-links { justify-content: flex-start; column-gap: 24px; }
  .footer-links p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Non-modal bottom panel: the page stays scrollable and automatic focus stays put. */
.newsletter {
  position: fixed; z-index: 10; inset-inline: 0; bottom: var(--newsletter-bottom, 0px);
  max-height: var(--newsletter-height, 100dvh); display: flex;
  background: var(--paper); color: var(--ink); border-top: 3px solid var(--pink);
  box-shadow: 0 -6px 28px #1e30281a;
  transform: translateY(calc(100% + var(--newsletter-bottom, 0px) + 32px));
  transition: transform 250ms ease-out;
}
.newsletter[data-state="open"] { transform: translateY(0); }
.newsletter-inner { width: min(100%, 1200px); min-height: 0; margin-inline: auto; display: flex; flex-direction: column; padding-inline: max(32px, env(safe-area-inset-left)) max(32px, env(safe-area-inset-right)); }
.newsletter-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; padding-top: 12px; }
.newsletter h2 { font-size: 28px; line-height: 1.2; margin: 0; letter-spacing: -.025em; }
.newsletter-close { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #53635740; border-radius: 50%; background: var(--paper); color: var(--sage); font-size: 27px; cursor: pointer; }
.newsletter-close:hover { background: var(--pink); }
.newsletter-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px 24px; margin-inline: -6px; padding: 8px 6px max(20px, env(safe-area-inset-bottom)); }
.newsletter-description, .newsletter-success { margin: 0; font-size: 15px; line-height: 1.6; }
.newsletter form { grid-column: 1 / 3; width: min(100%, 720px); }
.newsletter-body:has(form:not([hidden])) > [data-newsletter-intro] { grid-column: 1 / -1; }
.newsletter label { display: block; margin-bottom: 8px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.newsletter input[type="email"] { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #53635788; border-radius: 3px; background: var(--paper); color: var(--ink); font: 16px Arial, sans-serif; }
.newsletter-submit { width: 100%; justify-content: space-between; min-height: 48px; font-family: Arial, sans-serif; cursor: pointer; }
.newsletter form .newsletter-submit { width: auto; margin-top: 12px; }
.newsletter-submit:disabled { opacity: .75; cursor: wait; }
.newsletter-consent { margin: 12px 0 0; color: var(--sage); font-size: 12px; line-height: 1.6; }
.newsletter-error { color: #8b3d3f; font-size: 14px; line-height: 1.5; margin: 12px 0 0; }
.newsletter-later, .newsletter-footer-link { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--sage); font: 14px Arial, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.newsletter-success { grid-column: 1 / 3; }
@media (max-width: 700px) {
  .newsletter-inner { padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
  .newsletter h2 { font-size: 24px; }
  .newsletter-body { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 12px; }
  .newsletter form, .newsletter-success { grid-column: 1; }
  .newsletter form .newsletter-submit { width: 100%; }
  .newsletter-later { justify-self: start; }
}
