:root {
  color-scheme: light;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: #13213a;
  background: #f4f1ea;
  --ink: #13213a;
  --navy: #0a1730;
  --paper: #f4f1ea;
  --surface: #fffdf8;
  --blue: #2458d3;
  --blue-dark: #1744ad;
  --orange: #a93618;
  --line: #d2cbbc;
  --muted: #5d6878;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 0; margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
.shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; transform: translateY(-160%); padding: 11px 15px; border: 2px solid var(--blue); border-radius: 6px; background: #fff; color: #111827; font-weight: 800; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid #263653; background: var(--navy); color: #f7f9ff; }
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; text-decoration: none; font-size: 17px; font-weight: 800; letter-spacing: -.035em; }
.brand-mark { display: grid; place-items: center; overflow: hidden; width: 34px; height: 34px; border-radius: 8px; background: #fff; color: var(--navy); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nav nav { display: flex; align-items: center; gap: 25px; }
.nav nav a { display: inline-flex; align-items: center; min-height: 44px; color: #bac8df; text-decoration: none; font-size: 12px; font-weight: 700; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: #fff; }
.nav nav a[aria-current="page"] { box-shadow: inset 0 -2px #79a2ff; }

main { min-height: calc(100vh - 156px); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; padding-block: 24px 10px; overflow: hidden; color: #5f6c80; font-size: 11px; }
.breadcrumbs a { color: #314e86; }
.breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.book-detail { display: grid; grid-template-columns: minmax(390px, .92fr) minmax(0, 1.08fr); align-items: start; gap: clamp(44px, 6vw, 82px); padding-block: 28px 96px; }
.book-cover { position: sticky; top: 106px; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; padding: clamp(30px, 4vw, 52px); border: 1px solid #c5bcac; border-radius: 14px; background: #e5ded1; box-shadow: 0 24px 58px rgba(19, 33, 58, .18); color: var(--navy); font-size: 48px; font-weight: 800; letter-spacing: -.07em; }
.book-cover::after { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(19, 33, 58, .14); border-radius: 7px; pointer-events: none; }
.book-cover img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(10, 23, 48, .26)); transition: transform .24s ease, filter .24s ease; }
.book-cover:hover img { transform: translateY(-3px) scale(1.012); filter: drop-shadow(0 27px 25px rgba(10, 23, 48, .32)); }
.cover-edition { position: absolute; z-index: 2; top: 15px; left: 15px; min-height: 30px; display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 5px; background: var(--navy); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .05em; }

.book-copy { min-width: 0; padding-top: 8px; }
.book-copy h1, .missing h1 { max-width: 760px; margin: 18px 0 26px; font-size: clamp(34px, 4.3vw, 56px); line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
.purchase { padding: 24px; border: 1px solid #cbc3b5; border-radius: 12px; background: var(--surface); box-shadow: 0 14px 34px rgba(19, 33, 58, .1); }
.purchase small { display: block; color: #5e6979; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 20px; padding-inline: 24px; border: 1px solid var(--blue); border-radius: 8px; background: var(--blue); color: #fff; text-decoration: none; font-size: 13px; font-weight: 800; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-1px); border-color: var(--blue-dark); background: var(--blue-dark); }
.purchase-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; padding: 17px 0 0; border-top: 1px solid #ddd6ca; list-style: none; }
.purchase-facts li { position: relative; padding-left: 17px; color: #46536a; font-size: 10px; font-weight: 700; line-height: 1.55; }
.purchase-facts li::before { content: ""; position: absolute; top: .42em; left: 0; width: 7px; height: 7px; border: 2px solid var(--blue); border-radius: 2px; }
.assurance { margin: 14px 0 0; color: #637084; font-size: 10px; line-height: 1.6; }

.description-panel { margin-top: 34px; padding-top: 28px; border-top: 1px solid #cec7bb; }
.description-panel h2 { margin: 0 0 14px; font-size: 23px; line-height: 1.25; letter-spacing: -.035em; }
.description { max-width: 760px; margin: 0; color: #48566d; font-size: 15px; line-height: 1.85; }
.description > :first-child { margin-top: 0; }
.description > :last-child { margin-bottom: 0; }
.description p, .description ul, .description ol, .description blockquote { margin: 0 0 1em; }
.description h2, .description h3, .description h4 { margin: 1.4em 0 .45em; color: #172b45; line-height: 1.35; }
.description h2 { font-size: 1.35em; }
.description h3 { font-size: 1.18em; }
.description h4 { font-size: 1.06em; }
.description ul, .description ol { padding-left: 1.5em; }
.description li + li { margin-top: .3em; }
.description blockquote { padding: .25em 0 .25em 1em; border-left: 3px solid #4b6ea7; color: #344760; }
.description a { color: #17469a; font-weight: 650; text-decoration: underline; text-underline-offset: .16em; overflow-wrap: anywhere; }
.description a:hover { color: #0d3276; }
.description :focus-visible { outline: 3px solid #17469a; outline-offset: 3px; }

.missing { min-height: 68vh; padding-block: 100px; }
.missing p { margin-bottom: 30px; color: var(--muted); }
.missing .button { width: auto; }
footer { border-top: 1px solid #cec8bc; background: #e9e5dc; color: #4e596a; font-size: 11px; }
footer .shell { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
footer a { color: #26344b; font-weight: 700; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 5px var(--surface); }
.site-header :focus-visible { outline-color: #ffd27d; box-shadow: 0 0 0 5px #061027; }

@media (max-width: 900px) {
  .book-detail { grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); gap: 34px; }
  .book-copy h1 { font-size: clamp(31px, 5vw, 45px); }
  .purchase-facts { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1240px); }
  .nav { min-height: 66px; }
  .nav nav { gap: 14px; }
  .nav nav a:first-child { display: none; }
  .breadcrumbs { padding-block: 18px 8px; }
  .book-detail { grid-template-columns: 1fr; gap: 34px; padding-block: 18px 70px; }
  .book-cover { position: relative; top: auto; width: min(100%, 540px); margin-inline: auto; padding: clamp(26px, 9vw, 48px); }
  .book-copy { padding-top: 0; }
  .book-copy h1 { margin-top: 15px; font-size: clamp(31px, 9vw, 45px); }
  .purchase { padding: 20px; }
  .purchase-facts { grid-template-columns: 1fr; gap: 8px; }
  .description { font-size: 14px; line-height: 1.8; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
