@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --paper-deep: #e9e4d9;
  --ink: #252822;
  --muted: #6e7168;
  --line: #d6d6c9;
  --orange: #c74724;
  --orange-dark: #a9381b;
  --white: #fffefa;
  --body-font: 'Barlow', 'Leelawadee UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body-font); font-size: 16px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-underline-offset: 5px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
::selection { background: #eac4ad; }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 10; padding: 12px 20px; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 12px; }
.preview-banner { padding: 10px 20px; text-align: center; font-size: 12px; line-height: 1.6; background: #e8dfcf; color: #5d513e; }
.site-header { height: 105px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: baseline; color: var(--ink); text-decoration: none; font-size: 31px; line-height: 1; font-weight: 800; letter-spacing: -1.6px; }
.brand > span:first-child { font-weight: 500; }
.brand-dot { width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: var(--orange); }
nav { display: flex; align-items: center; gap: 35px; }
nav a { padding-block: 12px; font-size: 14px; text-decoration: none; color: var(--muted); }
nav a:hover, nav a.nav-current { color: var(--ink); }
.nav-current { box-shadow: 0 1px 0 var(--orange); }
.catalog-section { padding-block: 73px 96px; }
.catalog-heading { margin-bottom: 44px; max-width: 820px; }
.catalog-heading h1 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.35; margin-bottom: 20px; }
.catalog-heading .hero-intro { font-size: 17px; margin-bottom: 0; }
.catalog-message { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 26px; }
.catalog-message:empty { display: none; }
.catalog-message.is-error { color: #a0311e; }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 52px; }
.book-card { min-width: 0; }
.book-card-visual { display: grid; place-items: center; min-height: 370px; background: #eae7df; border: 1px solid #e1ded4; text-decoration: none; overflow: hidden; perspective: 1000px; }
.catalog-book { display: flex; flex-direction: column; position: relative; width: 210px; height: 280px; padding: 25px 23px 20px; color: #26221d; background: #f2eee7; border: 1px solid #ded8cd; border-left: 14px solid #d7d0c4; box-shadow: 12px 18px 17px rgb(35 36 29 / 13%); transform: rotate(-8deg) rotateY(-14deg); transition: transform 350ms ease; }
.book-card-visual:hover .catalog-book { transform: rotate(-5deg) rotateY(-8deg) translateY(-4px); }
.catalog-cover-brand { font-size: 14px; font-weight: 600; letter-spacing: -.3px; }
.catalog-cover-title { display: block; margin-top: 32px; font-size: 23px; font-weight: 600; line-height: 1.45; letter-spacing: -.6px; overflow-wrap: anywhere; }
.catalog-cover-format { margin-top: auto; padding-top: 13px; border-top: 1px solid #c7bbab; width: 40px; color: #827667; font-size: 8px; letter-spacing: 2px; }
.catalog-cover-image { display: none; }
.catalog-book.has-cover { padding: 0; }
.catalog-book.has-cover > span { display: none; }
.catalog-book.has-cover .catalog-cover-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.book-card-info { padding-top: 24px; }
.book-card-info h2 { margin-bottom: 10px; font-size: 25px; line-height: 1.4; letter-spacing: -.5px; }
.book-card-info h2 a { text-decoration: none; }
.book-card-info h2 a:hover { color: var(--orange); }
.book-card-subtitle { margin-bottom: 13px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.book-card-price { font-size: 22px; font-weight: 500; margin-bottom: 18px; }
.book-card-info .text-link { font-size: 13px; }
.book-placeholder { min-height: 370px; border: 1px dashed #bdb8ac; background: rgb(233 228 217 / 30%); }
.is-coming-soon .book-card-info { color: #6e7168; }
.book-breadcrumb { padding-top: 30px; }
.book-breadcrumb a { font-size: 13px; color: var(--muted); text-decoration: none; }
.book-breadcrumb a:hover { color: var(--ink); }
.book-empty { min-height: 430px; padding-block: 100px; }
.book-empty h1 { font-size: 40px; line-height: 1.4; }
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; align-items: center; padding-block: 65px 90px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 23px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 600; letter-spacing: -1.6px; }
.hero h1 { margin-bottom: 28px; font-size: clamp(52px, 5.25vw, 76px); line-height: 1.28; }
.accent-word { color: var(--orange); }
.hero-intro { font-size: 18px; line-height: 1.85; color: var(--muted); margin-bottom: 35px; }
.text-link { display: inline-flex; align-items: center; gap: 30px; padding-block: 7px; border: none; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 14px; text-decoration: none; }
.text-link:hover { color: var(--orange); border-color: var(--orange); }
.text-link span { font-family: sans-serif; font-size: 20px; }
.book-scene { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 15px; perspective: 1000px; }
.book-object { position: relative; display: flex; width: 296px; height: 396px; transform: rotate(-8deg) rotateY(-14deg); filter: drop-shadow(14px 20px 12px rgb(35 36 29 / 13%)); transition: transform 600ms ease; }
.book-object::after { content: ''; position: absolute; height: 98%; width: 8px; right: -5px; top: 1%; background: repeating-linear-gradient(to right, #e9e4d8, #e9e4d8 1px, #cfcabd 1px, #f5f0e6 2px); transform: skewY(21deg); z-index: -1; }
.book-object:hover { transform: rotate(-5deg) rotateY(-8deg) translateY(-4px); }
.book-spine { display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); width: 23px; flex-shrink: 0; background: #d7d0c4; color: #35332f; font-size: 9px; letter-spacing: 3px; border-left: 1px solid #c4b9a8; }
.book-face { position: relative; display: flex; flex-direction: column; flex: 1; padding: 28px 28px 20px; background: #f2eee7; color: #26221d; overflow: hidden; border: 1px solid #e6e1d8; border-left: 0; }
.book-face::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgb(0 0 0 / 12%), transparent 6%, rgb(255 255 255 / 4%) 7%, transparent 8%); }
.cover-brand { font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.cover-title { margin-top: 39px; font-size: 32px; font-weight: 600; line-height: 1.5; letter-spacing: -.9px; overflow-wrap: anywhere; }
.cover-rule { height: 1px; width: 40px; background: #c7bbab; margin-top: auto; }
.cover-caption { font-size: 10px; letter-spacing: 2px; margin: 16px 0 20px; }
.cover-draft { font-size: 8px; margin: 0; color: #827667; }
.book-face.has-cover { padding: 0; }
.book-face.has-cover > * { display: none; }
.book-face.has-cover .cover-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.book-shadow { position: absolute; width: 350px; height: 48px; top: 396px; background: rgb(53 49 37 / 12%); filter: blur(20px); border-radius: 50%; transform: rotate(-8deg); }
.scene-caption { font-size: 11px; color: var(--muted); margin-top: 42px; margin-bottom: 0; line-height: 1.7; }
.scene-caption span { margin-inline: 8px; color: #a5a69a; }
.product-section { display: grid; grid-template-columns: 1.15fr 1fr; gap: 105px; padding-block: 95px 100px; }
.product-details h2 { font-size: 32px; line-height: 1.5; margin-bottom: 18px; }
.product-subtitle { font-size: 18px; line-height: 1.7; }
.body-copy { color: var(--muted); line-height: 1.9; font-size: 15px; }
.product-details .body-copy { margin-bottom: 30px; max-width: 520px; }
.sample-button { margin-top: 6px; }
.chapters-block { margin-block: 32px; }
.chapters-block h3 { font-size: 16px; font-weight: 600; }
.chapters-list { padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.purchase-panel { border: 1px solid var(--line); padding: 32px; align-self: start; background: rgb(255 254 250 / 35%); }
.purchase-format { font-size: 13px; color: var(--muted); margin-bottom: 17px; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 15px; margin-bottom: 24px; }
.price { font-size: 27px; font-weight: 600; letter-spacing: -.7px; }
.price.is-number { font-size: 42px; }
.price-note { color: var(--muted); font-size: 12px; }
.button { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 55px; padding: 14px 22px; border: 1px solid transparent; border-radius: 2px; font-weight: 500; font-size: 15px; line-height: 1.5; text-decoration: none; transition: background 180ms ease, color 180ms ease; }
.button span { font-family: sans-serif; font-size: 20px; }
.button-primary { background: var(--orange); color: var(--white); }
.button-primary:hover:enabled, a.button-primary:hover { background: var(--orange-dark); }
.button-primary:disabled { background: #dddcd1; color: #73756b; }
.button-secondary { background: transparent; border-color: var(--line); }
.button-secondary:hover { background: var(--paper-deep); }
.action-message { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 12px 0 0; min-height: 20px; }
.action-message.is-error { color: #a0311e; }
.action-message.is-success { color: #466744; }
.purchase-facts { margin: 30px 0 0; }
.purchase-facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; font-size: 11px; line-height: 1.75; }
.purchase-facts dt { color: var(--muted); }
.purchase-facts dd { margin: 0; }
.delivery-section { background: var(--paper-deep); padding-block: 76px 80px; }
.section-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 47px; }
.section-heading .eyebrow { padding-top: 9px; }
.section-heading h2 { font-size: 33px; line-height: 1.5; width: 47%; margin-bottom: 0; }
.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.delivery-grid article { border-top: 1px solid #c8c9bc; padding-top: 23px; }
.step-icon { display: block; color: var(--orange); font-family: sans-serif; font-size: 28px; line-height: 1; margin-bottom: 26px; }
.delivery-grid h3 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.delivery-grid p { font-size: 14px; line-height: 1.9; color: #62665b; margin-bottom: 0; }
.faq-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; padding-block: 100px 110px; }
.faq-section h2 { font-size: 32px; margin-bottom: 30px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { padding-block: 23px; border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; list-style: none; font-size: 15px; font-weight: 500; line-height: 1.7; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--muted); font-size: 21px; font-weight: 400; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { padding-right: 30px; color: var(--muted); font-size: 14px; line-height: 1.9; margin: 17px 0 0; }
.site-footer { display: flex; align-items: center; gap: 30px; padding-block: 37px; border-top: 1px solid var(--line); }
.site-footer .brand { font-size: 25px; }
.site-footer p { font-size: 12px; color: var(--muted); margin: 0; }
.footer-links { display: flex; gap: 24px; margin-left: auto; }
.site-footer a:not(.brand) { font-size: 12px; color: var(--muted); text-decoration: none; }
.site-footer > a:last-child:not(.brand) { margin-left: auto; }
dialog { width: min(480px, calc(100% - 40px)); margin: auto; padding: 35px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / 18%); }
dialog::backdrop { background: rgb(30 33 26 / 55%); backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; }
.dialog-heading .eyebrow { margin-bottom: 32px; }
.close-button { border: none; background: transparent; font-family: sans-serif; font-size: 27px; line-height: 1; padding: 0 3px; }
dialog h2 { font-size: 24px; line-height: 1.5; }
dialog .button { margin-top: 28px; }
.help-main { display: grid; grid-template-columns: 1fr 1fr; gap: 80px 95px; padding-block: 84px 100px; }
.help-intro h1 { font-size: clamp(46px, 4.4vw, 62px); line-height: 1.4; margin-bottom: 25px; }
.help-intro .hero-intro { font-size: 16px; }
.recovery-panel { padding: 34px; border: 1px solid var(--line); background: rgb(255 254 250 / 35%); }
.recovery-panel h2 { font-size: 25px; margin-bottom: 15px; }
.recovery-panel .body-copy { font-size: 14px; margin-bottom: 27px; }
form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 9px; }
form input, form select { display: block; width: 100%; height: 49px; border: 1px solid #c6c9bb; border-radius: 2px; background: var(--white); color: var(--ink); padding: 10px 13px; font-size: 14px; }
form select { margin-bottom: 24px; }
form input::placeholder { color: #96998d; }
.field-note { color: var(--muted); font-size: 11px; margin: 8px 0 26px; }
.help-details { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 95px; padding-top: 20px; }
.help-details h2 { font-size: 28px; line-height: 1.5; }
.contact-link { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--orange); }
.support-pending { font-style: italic; }
.download-main { padding-block: 70px 90px; }
.download-panel { text-align: center; max-width: 550px; margin: auto; padding: 36px 25px; }
.download-mark { display: inline-grid; place-items: center; width: 70px; height: 70px; border: 1px solid var(--line); border-radius: 50%; color: var(--orange); font-family: sans-serif; font-size: 30px; margin-bottom: 32px; }
.download-panel h1 { font-size: clamp(30px, 3.5vw, 43px); line-height: 1.5; margin-bottom: 24px; }
.download-panel .body-copy { margin-bottom: 28px; }
.download-panel .button { margin-top: 13px; }
.download-meta { font-size: 13px; line-height: 1.8; color: var(--muted); }
.back-store-link { margin-top: 28px; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 72px); }
  .book-grid { gap: 48px 32px; }
  .book-card-visual, .book-placeholder { min-height: 335px; }
  .hero { min-height: 600px; }
  .hero h1 { font-size: 58px; }
  .book-object { width: 260px; height: 355px; }
  .cover-title { font-size: 27px; margin-top: 30px; }
  .book-face { padding: 23px; }
  .book-shadow { top: 355px; width: 290px; }
  .product-section, .faq-section, .help-main { gap: 55px; }
  .purchase-panel { padding: 25px; }
  .purchase-facts > div { grid-template-columns: 80px 1fr; gap: 10px; }
  .delivery-grid { gap: 32px; }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 40px); }
  .catalog-section { padding-block: 43px 58px; }
  .catalog-heading { margin-bottom: 30px; }
  .catalog-heading h1 { font-size: 35px; letter-spacing: -.8px; margin-bottom: 16px; }
  .catalog-heading .hero-intro { font-size: 15px; line-height: 1.85; }
  .book-grid { grid-template-columns: 1fr; gap: 44px; }
  .book-card-visual, .book-placeholder { min-height: 340px; }
  .book-card-info { padding-top: 21px; }
  .book-card-info h2 { font-size: 23px; }
  .book-card-subtitle { font-size: 13px; }
  .book-card-price { font-size: 21px; }
  .book-breadcrumb { padding-top: 24px; }
  .book-empty { min-height: 360px; padding-block: 65px; }
  .book-empty h1 { font-size: 32px; }
  .preview-banner { font-size: 10px; padding-inline: 16px; }
  .site-header { height: 82px; }
  .brand { font-size: 27px; }
  nav { gap: 19px; }
  nav a { font-size: 11px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 49px 74px; }
  .eyebrow { font-size: 12px; margin-bottom: 19px; }
  .hero h1 { font-size: clamp(45px, 10vw, 66px); line-height: 1.35; margin-bottom: 22px; }
  .hero-intro { font-size: 16px; line-height: 1.85; margin-bottom: 24px; }
  .hero-copy { max-width: 440px; }
  .text-link { font-size: 12px; gap: 24px; }
  .book-scene { padding-top: 58px; padding-bottom: 24px; }
  .book-object { width: 250px; height: 336px; transform: rotate(-7deg) rotateY(-12deg); }
  .book-face { padding: 22px; }
  .cover-title { font-size: 27px; margin-top: 25px; }
  .cover-brand { font-size: 17px; }
  .cover-caption { font-size: 9px; margin-bottom: 17px; }
  .book-shadow { top: 377px; width: 270px; }
  .scene-caption { font-size: 10px; margin-top: 30px; }
  .product-section { grid-template-columns: 1fr; gap: 36px; padding-block: 55px 60px; }
  .product-details h2 { font-size: 27px; }
  .product-subtitle { font-size: 16px; }
  .product-details .body-copy { font-size: 14px; margin-bottom: 20px; }
  .purchase-panel { padding: 25px; }
  .price { font-size: 25px; }
  .purchase-facts > div { grid-template-columns: 90px 1fr; font-size: 11px; }
  .delivery-section { padding-block: 46px 49px; }
  .section-heading { display: block; margin-bottom: 31px; }
  .section-heading .eyebrow { padding-top: 0; }
  .section-heading h2 { width: auto; font-size: 28px; }
  .delivery-grid { grid-template-columns: 1fr; gap: 26px; }
  .delivery-grid article { display: grid; grid-template-columns: 35px 1fr; gap: 0 15px; padding-top: 22px; }
  .delivery-grid h3 { font-size: 16px; margin-bottom: 9px; }
  .step-icon { grid-row: 1 / 3; margin-top: 4px; font-size: 25px; }
  .delivery-grid p { font-size: 13px; grid-column: 2; }
  .faq-section { grid-template-columns: 1fr; padding-block: 56px 65px; gap: 30px; }
  .faq-section h2 { font-size: 28px; margin-bottom: 17px; }
  .faq-list details { padding-block: 21px; }
  .faq-list summary { font-size: 14px; }
  .faq-list details p { font-size: 13px; padding-right: 15px; }
  .site-footer { padding-block: 29px; flex-wrap: wrap; gap: 19px 24px; }
  .site-footer .brand { font-size: 24px; }
  .site-footer p { font-size: 10px; }
  .footer-links { width: 100%; margin-left: 0; }
  .site-footer a:not(.brand) { font-size: 11px; }
  .help-main { grid-template-columns: 1fr; padding-block: 49px 60px; gap: 36px; }
  .help-intro h1 { font-size: 47px; }
  .help-intro .hero-intro { font-size: 15px; }
  .recovery-panel { padding: 25px 22px; }
  .recovery-panel h2 { font-size: 23px; }
  .help-details { grid-template-columns: 1fr; gap: 12px; padding-top: 15px; }
  .help-details h2 { font-size: 25px; }
  .download-main { padding-block: 40px 55px; }
  .download-panel { padding: 20px 3px; }
  .download-mark { margin-bottom: 27px; }
  .download-panel h1 { font-size: 32px; }
}

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