:root {
  color-scheme: light;
  --background: #a3a37a;
  --text: #fff5e7;
  --ink: #4d3b2d;
  --text-on-green: #fff5e7;
  --button: #596f57;
  --art-height: clamp(280px, 35vw, 480px);
  --display-font: "Palatino Linotype", "Book Antiqua", "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  --body-font: "Segoe UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); background-image: radial-gradient(ellipse at 15% 10%, rgba(240, 240, 225, .08), transparent 55%), radial-gradient(ellipse at 90% 60%, rgba(63, 72, 59, .08), transparent 58%); color: var(--text); font-family: var(--body-font); font-size: 17px; text-shadow: 0 1px 2px rgba(48, 47, 33, .55); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:not(:disabled), a { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.preview-bar { padding: 9px 16px; background: var(--button); color: var(--text-on-green); text-align: center; font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: .03em; }
.site-header { min-height: 122px; max-width: 1440px; margin: auto; padding: 24px clamp(24px, 7vw, 105px); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; }
.brand-logo { display: block; width: clamp(150px, 18vw, 230px); height: auto; }
.footer-brand { font-family: var(--display-font); font-weight: normal; letter-spacing: -.02em; line-height: .8; }
.accent { color: inherit; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(20px, 3.5vw, 55px); }
nav a { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; }
nav a:hover { text-decoration: underline; text-underline-offset: 7px; }
.language-menu { position: relative; }
.language-menu summary { list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { content: " ▾"; }
.language-options { position: absolute; z-index: 5; top: calc(100% + 10px); right: 0; min-width: 150px; padding: 8px; border: 1px solid #d6cec2; border-radius: 8px; background: #f6f2ec; color: var(--ink); text-shadow: none; box-shadow: 0 8px 20px rgba(20, 25, 20, .2); }
.language-options a { display: block; padding: 10px 12px; text-transform: none; letter-spacing: 0; }
.language-options a[aria-current="true"] { text-decoration: underline; text-underline-offset: 4px; }
.eyebrow { margin: 0 0 20px; font-size: 14px; font-weight: bold; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display-font); font-weight: normal; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; min-height: 50px; padding: 14px 24px; border: 0; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.button-dark { background: var(--button); color: var(--text-on-green); }
.button:hover { box-shadow: 0 0 0 3px rgba(255, 238, 226, .28); }
.section { max-width: 1440px; margin: auto; padding: 90px clamp(24px, 9vw, 140px); }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.section-heading h1, .section-heading h2 { margin-bottom: 0; font-size: clamp(36px, 4.2vw, 56px); letter-spacing: -.02em; line-height: 1.15; }
.notice { color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.6; }
.books-section > .notice { margin: 26px 0 20px; }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.book-art { height: var(--art-height); padding: clamp(22px, 3vw, 40px); display: grid; place-items: center; }
.image-zoom { display: block; cursor: zoom-in; }
.book-art .image-zoom { width: 100%; height: 100%; }
.book-cover { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(54, 72, 50, .18)); }
.book-details { display: flex; justify-content: space-between; gap: 12px; padding: 24px 4px 0; }
.book-kicker { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.book-details h3 { font-size: clamp(23px, 2.2vw, 29px); margin-bottom: 9px; }
.price { font-size: 17px; font-weight: bold; }
.book-meta { font-size: 15px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.book-synopsis { margin: 0 4px; font-size: 15px; line-height: 1.75; }
.book-synopsis summary { cursor: pointer; width: fit-content; padding: 6px 0; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.book-synopsis summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.synopsis-text { padding-top: 12px; }
.synopsis-text p { margin-bottom: 14px; }
.purchase-action { margin-top: 32px; text-align: center; }
.buy-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 28px; border: 1px solid var(--text-on-green); border-radius: 999px; color: var(--text-on-green); background: var(--button); font-size: 15px; font-weight: 500; text-decoration: none; }
.buy-button:disabled { cursor: not-allowed; }
.merch-section { padding-top: 20px; }
.merch-section .section-heading { margin-bottom: 30px; }
.merch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.merch-card .image-zoom { width: min(100%, calc(var(--art-height) * .75)); aspect-ratio: 3 / 4; margin: auto; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 20px rgba(54, 72, 50, .14); }
.merch-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.merch-grid.is-carousel { --merch-width: min(72%, calc(var(--art-height) * .75)); --merch-gap: clamp(14px, 2vw, 28px); display: flex; gap: var(--merch-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding: 14px 0 12px; }
.merch-grid.is-carousel::before, .merch-grid.is-carousel::after { content: ""; flex: 0 0 calc((100% - var(--merch-width)) / 2 - var(--merch-gap)); }
.merch-grid.is-carousel::-webkit-scrollbar { display: none; }
.merch-grid.is-carousel.is-dragging { scroll-snap-type: none; }
.is-carousel .image-zoom { touch-action: pan-y pinch-zoom; }
.is-carousel .merch-card { flex: 0 0 var(--merch-width); scroll-snap-align: center; }
.is-carousel .merch-card .image-zoom { width: 100%; }
.is-carousel .merch-card:not(.is-current) .image-zoom { transform: scale(.88); opacity: .76; }
.is-carousel .merch-card .image-zoom { transition: transform .45s ease, opacity .45s ease; }
.merch-controls:not([hidden]) { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 16px; }
.merch-controls button { border: 1px solid var(--text); color: var(--text); background: transparent; cursor: pointer; }
.merch-prev, .merch-next { width: 42px; height: 42px; border-radius: 50%; font-size: 20px; }
.merch-rotation { border-radius: 999px; padding: 10px 15px; font-size: 15px; font-weight: 600; }
.merch-rotation:disabled { opacity: .6; cursor: not-allowed; }
.image-dialog { max-width: 94vw; max-height: 94vh; padding: 0; overflow: visible; border: 0; background: transparent; color: var(--ink); text-shadow: none; }
.image-dialog::backdrop { background: rgba(30, 35, 30, .76); }
.image-dialog-close { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.image-dialog-close:focus-visible { position: static; width: auto; height: auto; padding: 8px 18px; clip-path: none; border: 1px solid #806c5d; border-radius: 999px; background: #f6f2ec; color: var(--ink); }
.viewer-stage { position: relative; perspective: 1400px; }
.viewer-stage.is-book { width: min(72vw, 410px, calc(71.26vh - 68.24px)); aspect-ratio: 470 / 620; }
.viewer-cover { display: block; position: relative; z-index: 1; width: 100%; padding: 0; border: 0; background: transparent; }
.viewer-cover:disabled { cursor: default; }
.viewer-stage.is-book .viewer-cover { height: 100%; transform-origin: left center; backface-visibility: hidden; }
.viewer-stage.is-book.is-open .viewer-cover { pointer-events: none; animation: cover-turn 1.1s cubic-bezier(.45, 0, .3, 1) forwards; }
.image-dialog img { display: block; max-width: 100%; max-height: calc(94vh - 145px); width: auto; height: auto; object-fit: contain; margin: auto; }
/* Both supplied cover images have the same transparent padding. */
.viewer-stage.is-book .viewer-cover > img { position: absolute; top: -10.32%; left: -31.28%; width: 163.41%; max-width: none; max-height: none; clip-path: inset(8.33% 19.14% 10.94% 19.14%); }
@keyframes cover-turn {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(-90deg); }
}
.viewer-paper:not([hidden]) { position: absolute; inset: 0; display: flex; flex-direction: column; padding: clamp(14px, 3vw, 30px); background: linear-gradient(90deg, #d6c6ab, #f8f2e7 8%, #f5ecdc); border: 1px solid #d0bea5; box-shadow: 0 8px 18px rgba(62, 49, 32, .18); overflow: hidden; }
.viewer-story { min-height: 0; flex: 1; overflow-y: auto; overflow-anchor: none; outline: none; color: #493729; font-family: var(--display-font); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.75; }
.viewer-written p { margin: 0 0 1em; }
.viewer-screen-reader { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.viewer-skip { align-self: flex-end; margin-top: 8px; padding: 6px 10px; border: 1px solid #806c5d; border-radius: 999px; background: #f6f2ec; color: var(--ink); font-size: 13px; }
.viewer-hint, .viewer-dismiss-hint { margin: 8px 0 0; text-align: center; color: #fff5e7; font-size: 13px; text-shadow: 0 1px 3px #1e231e; }
.viewer-stage.is-open + .viewer-hint[hidden] { display: block; visibility: hidden; }
.merch-card h3 { font-size: clamp(23px, 2.2vw, 29px); margin: 20px 4px; text-align: center; }
.merch-section > .notice { margin-top: 22px; }
.site-footer { padding: 48px clamp(24px, 9vw, 140px); background: var(--button); color: var(--text-on-green); }
.footer-brand { display: inline-block; margin-bottom: 20px; color: inherit; text-decoration: none; font-size: 27px; }
.site-footer :focus-visible { outline-color: var(--text-on-green); }
.site-footer p { max-width: 600px; margin-bottom: 8px; font-size: 15px; font-weight: 500; line-height: 1.6; }
.about-page { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 115px); align-items: center; }
.portrait { width: 100%; height: auto; display: block; padding: clamp(8px, 1.2vw, 16px); background: var(--text-on-green); border: 1px solid rgba(107, 132, 102, .45); border-radius: 4px; box-shadow: 0 16px 35px rgba(54, 72, 50, .22); }
.about-content h1 { font-size: clamp(48px, 6vw, 76px); letter-spacing: -.02em; margin-bottom: 18px; }
.section-heading h1:lang(ja), .section-heading h2:lang(ja), .about-content h1:lang(ja) { letter-spacing: .02em; }
.about-content h2 { font-size: 30px; }
.about-content > p:not(.eyebrow) { line-height: 1.8; max-width: 480px; }
.social-links a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.about-content .button { margin-top: 18px; }
.divider { width: 60px; height: 1px; margin: 30px 0; background: var(--text); }
@media (max-width: 700px) {
  .site-header { align-items: flex-start; flex-direction: column; padding-top: 25px; padding-bottom: 25px; }
  nav { position: relative; width: 100%; justify-content: space-between; gap: 10px; }
  nav a, .language-menu summary { font-size: 13px; }
  .language-menu { position: static; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .book-grid, .merch-grid { gap: 15px; }
  :root { --art-height: 250px; }
  .book-details { flex-direction: column; }
  .about-page { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .book-grid, .merch-grid { grid-template-columns: 1fr; }
  :root { --art-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-carousel .merch-card .image-zoom { transition: none; }
  .viewer-stage.is-book.is-open .viewer-cover { animation: none; visibility: hidden; }
}
