/* C.W. and the Strawberries — a small, quiet page inspired by the printed book. */
:root {
  --paper: #fbfaf6;
  --ink: #403b33;
  --book-red: #774233;
  --quiet: #7c776e;
  --line: #e8e3d9;
  --book-serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --label-serif: Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--book-serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid #7e7051; outline-offset: 5px; }
[hidden] { display: none !important; }
.container { max-width: 1120px; width: calc(100% - 64px); margin: 0 auto; }
.skip-link { position: fixed; top: -5rem; left: 1rem; background: #fff; padding: .75rem 1rem; z-index: 10; }
.skip-link:focus { top: 1rem; }
.header { width: 100%; }
.header-inner { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.author-name { text-decoration: none; font-family: var(--label-serif); color: var(--book-red); font-variant: small-caps; letter-spacing: .075em; font-size: 15px; }
.header-link { text-decoration: none; color: var(--book-red); border-bottom: 1px solid #c5b9a8; padding-bottom: 5px; font-size: 15px; }
.header-link:hover { border-color: var(--book-red); }
.header-link span { font-size: 13px; padding-left: 3px; }
.opening { text-align: center; padding: 54px 0 39px; }
.book-kind { font-size: 13px; letter-spacing: .11em; font-variant: small-caps; color: var(--quiet); margin: 0 0 26px; }
h1, h2, p { margin-top: 0; }
h1 { font-weight: 400; color: var(--book-red); letter-spacing: -.055em; line-height: 1; margin: 0; }
.book-cw { display: block; font-size: clamp(67px, 8vw, 109px); }
.book-line { display: block; font-size: clamp(42px, 5.2vw, 75px); line-height: 1.18; letter-spacing: -.05em; }
.book-line em { font-weight: 400; font-size: .65em; letter-spacing: -.025em; white-space: nowrap; }
.byline { margin: 16px 0 0; font-size: 17px; color: #74685f; font-style: italic; }
.film-wrap { width: min(1080px, calc(100% - 60px)); margin: 12px auto 0; }
.film { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #e9e7dc; }
.film video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.film-controls { position: absolute; z-index: 2; bottom: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }
.film-control { pointer-events: auto; color: #3b3a34; background: rgba(251,250,246,.85); border: 1px solid rgba(130,121,109,.18); padding: 8px 11px; font-family: var(--book-serif); font-size: 13px; border-radius: 1px; }
.film-control:hover { background: rgba(251,250,246,.98); }
.film-controls #soundControl { margin-left: auto; }
.story { text-align: center; padding: 84px 0 110px; }
.little-rule { margin: 0 0 23px; color: #ad8d73; font-size: 27px; line-height: 1; }
h2 { color: var(--book-red); font-weight: 400; font-size: clamp(28px, 3.3vw, 43px); letter-spacing: -.025em; line-height: 1.3; margin-bottom: 23px; }
.description { max-width: 600px; margin: 0 auto; font-size: 19px; line-height: 1.82; color: #5b554c; }
.purchase { margin-top: 41px; }
.order-link { display: inline-block; text-decoration: none; border: 1px solid var(--book-red); color: var(--book-red); padding: 15px 35px 16px; font-size: 17px; letter-spacing: .02em; transition: background .2s, color .2s; }
.order-link:hover { background: var(--book-red); color: var(--paper); }
.order-link span { margin-left: 15px; }
.purchase-note { font-size: 13px; color: #91877b; margin: 16px auto 0; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { padding: 23px 0 26px; display: flex; justify-content: space-between; gap: 18px; color: #8f8579; font-size: 13px; }
@media (max-width: 700px) {
  .container { width: calc(100% - 34px); }
  .header-inner { min-height: 65px; }
  .author-name { font-size: 13px; }
  .header-link { font-size: 14px; }
  .opening { padding: 49px 0 31px; }
  .book-kind { font-size: 12px; margin-bottom: 24px; }
  .book-cw { font-size: clamp(66px, 14vw, 96px); }
  .book-line { font-size: clamp(33px, 7vw, 52px); }
  .byline { font-size: 15px; }
  .film-wrap { width: 100%; margin: 4px auto 0; }
  .film-controls { bottom: 8px; left: 8px; right: 8px; }
  .film-control { padding: 6px 8px; font-size: 12px; }
  .story { padding: 69px 0 81px; }
  h2 { font-size: 32px; }
  .description { font-size: 18px; line-height: 1.7; }
  .purchase { margin-top: 34px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 12px; }
}
@media (max-width: 420px) {
  .book-line { font-size: 33px; }
  .opening { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .order-link { transition: none; }
}

/* End card and a clear, consistent purchase button. */
.cover-frame { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px 22px 52px; background: var(--paper); opacity: 0; visibility: hidden; transition: opacity 900ms ease, visibility 900ms; pointer-events: none; }
.cover-frame.is-visible { opacity: 1; visibility: visible; }
.cover-frame img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; box-shadow: 2px 5px 14px rgba(64,59,51,.16); }
.order-link { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; min-width: 180px; padding: 14px 28px; border: 1px solid var(--book-red); border-radius: 3px; background: var(--book-red); color: #fffaf3; line-height: 1.25; white-space: nowrap; text-decoration: none; -webkit-text-fill-color: currentColor; }
.order-link:hover { background: #603428; border-color: #603428; color: #fffaf3; }
@media (max-width: 700px) { .cover-frame { padding: 12px 12px 40px; } }
@media (prefers-reduced-motion: reduce) { .cover-frame { transition: none; } }

@media (max-width: 700px) {
  .header-link.order-link { min-width: 0; min-height: 44px; padding: 10px 16px; font-size: 14px; letter-spacing: 0; flex: 0 0 auto; }
}

/* Contain media overflow so Safari ends scrolling at the footer. */
.page-shell { display: flow-root; width: 100%; overflow: hidden; }
@media (max-width: 700px) {
  .story { padding-bottom: 40px; }
  .footer-inner { padding: 20px 0 24px; }
}
