:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --ink: #30342e;
  --muted: #63675d;
  --line: #d7d8cd;
  --flower: #9c612c;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/2 var(--sans); -webkit-font-smoothing: antialiased; }
body.viewer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--flower); outline-offset: 5px; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .35; cursor: default; }
p, h1, h2, h3, figure, blockquote, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
.skip-link { position: fixed; z-index: 30; top: -80px; left: 16px; padding: 10px 20px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.review-banner { display: flex; justify-content: space-between; padding: 7px 4%; font-size: 10px; letter-spacing: .08em; background: #e9e9df; color: #5a6152; }
.site-header { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 24px 4%; background: rgba(247,246,241,.96); }
.brand { width: fit-content; font: 19px/1.5 var(--serif); letter-spacing: .16em; }
.site-header nav { display: flex; justify-content: center; gap: 24px; }
.site-header nav .profile-nav { display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.profile-nav span { font-size: 10px; }
.site-header nav a { display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 11px; letter-spacing: .1em; }
.header-credit { justify-self: end; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .2em; }
.hero { max-width: 1480px; width: 88%; margin: 38px auto 0; display: grid; grid-template-columns: 25% 69%; gap: 5% 6%; align-items: center; }
.hero-type { display: grid; grid-template-columns: auto auto auto; gap: 24px; justify-content: center; height: 425px; }
.hero-eyebrow { writing-mode: vertical-rl; margin-top: 10px; justify-self: end; }
h1 { writing-mode: vertical-rl; font: 400 clamp(54px,5.3vw,80px)/1.4 var(--serif); letter-spacing: .18em; white-space: nowrap; }
.hero-author { writing-mode: vertical-rl; align-self: end; font: 14px/1.6 var(--serif); letter-spacing: .25em; margin-bottom: 10px; }
.intro-pending { opacity: 0; transition: opacity 1.6s ease; }
.intro-pending.intro-visible { opacity: 1; }
.photograph { min-width: 0; }
.photo-link { display: block; position: relative; width: 100%; background: #e7e7dd; }
.photo-link picture { overflow: hidden; }
.photo-link img { width: 100%; }
.photo-link:hover { text-decoration: none; }
.photo-open { position: absolute; bottom: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: white; background: rgba(25,30,24,.57); font-size: 20px; line-height: 1; opacity: 0; transition: opacity 180ms; }
.photo-link:hover .photo-open, .photo-link:focus-visible .photo-open { opacity: 1; }
.photograph figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 11px; color: var(--muted); font-size: 10px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.count-divider { padding: 0 6px; opacity: .6; }
.photograph figcaption > span:last-child { font-family: var(--serif); letter-spacing: .15em; }
.hero-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 4px 0 0 3%; }
.hero-bottom p { font: 13px/2 var(--serif); letter-spacing: .08em; }
.hero-bottom a { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--muted); font-size: 10px; }
.hero-bottom a span { color: var(--flower); font-size: 18px; }
.introduction { padding: 170px 24px 160px; text-align: center; }
.intro-quote { font: 400 clamp(26px,2.7vw,39px)/1.95 var(--serif); letter-spacing: .13em; margin: 38px 0 35px; }
.intro-body { font: 15px/2.5 var(--serif); letter-spacing: .06em; }
.quote-source { display: block; color: var(--muted); font-size: 9px; letter-spacing: .12em; margin-top: 28px; }
.photographic-sequence { width: 82%; max-width: 1280px; margin: 0 auto; }
.chapter { padding-top: 40px; margin-bottom: 170px; }
.chapter-label { border-top: 1px solid var(--line); padding-top: 20px; display: flex; gap: 24px; align-items: baseline; }
.chapter-label > span { color: var(--flower); font-size: 10px; font-variant-numeric: tabular-nums; }
.chapter-label h2 { font: 400 17px/1.8 var(--serif); letter-spacing: .16em; }
.book-quote { font: 15px/2.5 var(--serif); letter-spacing: .07em; }
.beginning-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); column-gap: 24px; align-items: start; margin-top: 80px; }
.curtain { grid-column: 1/6; margin-top: 120px; }
.library { grid-column: 7/13; }
.beginning-quote { grid-column: 7/13; padding: 40px 0 0; }
.distance-grid { display: grid; grid-template-columns: 8fr 3fr; gap: 8%; align-items: center; margin-top: 80px; }
.distance-quote { writing-mode: vertical-rl; justify-self: center; line-height: 2.7; min-height: 260px; }
.passage-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); column-gap: 24px; margin-top: 80px; }
.old-passage { grid-column: 2/6; }
.new-passage { grid-column: 7/13; margin-top: 150px; }
.passage-quote { grid-column: 7/13; padding-top: 38px; }
.everyday-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); column-gap: 24px; margin-top: 80px; align-items: start; }
.egg { grid-column: 1/5; margin-top: 80px; }
.room { grid-column: 6/13; }
.everyday-quote { grid-column: 6/13; padding-top: 38px; font-size: 14px; }
.flowers { width: 78%; margin: 80px auto 0; }
.flower-quote { margin-top: 40px; text-align: center; font-size: 14px; }
.osmanthus { margin-bottom: 0; }
.proposal-scene { margin-top: 120px; }
.proposal-photo { width: 78%; margin: 0 auto; }
.proposal-quote { text-align: center; margin-top: 35px; font-size: 17px; }
.epilogue { margin: 120px 24px 150px; text-align: center; }
.small-rule { display: block; width: 1px; height: 48px; margin: 0 auto 55px; background: var(--flower); }
.epilogue blockquote { font: 15px/2.5 var(--serif); letter-spacing: .08em; }
.book-section { padding: 65px 9% 80px; background: #eeeee7; }
.section-heading { text-align: center; }
.section-heading h2 { font: 400 32px/1.8 var(--serif); letter-spacing: .14em; margin-top: 14px; }
.book-grid { max-width: 960px; margin: 70px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 13%; align-items: center; }
.book-cover { width: 86%; max-width: 350px; justify-self: center; }
.book-cover img { width: 100%; }
.book-author { font: 15px/2 var(--serif); letter-spacing: .08em; }
.book-details dl { margin-top: 30px; font-size: 12px; color: #50584b; }
.book-details dl > div { display: grid; grid-template-columns: 55px 1fr; gap: 14px; padding: 8px 0; }
.book-details dt { color: var(--muted); font-size: 11px; }
.purchase-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; padding: 12px 20px; margin-top: 30px; background: var(--ink); color: var(--paper); font-size: 12px; letter-spacing: .1em; transition: background 180ms; }
.purchase-link:hover { background: #4b5443; text-decoration: none; }
.amazon-link { margin-top: 18px; }
.purchase-note { margin-top: 10px; font-size: 10px; color: var(--muted); }
.author-section { width: 72%; max-width: 850px; margin: 100px auto; display: grid; grid-template-columns: 1fr 4fr; gap: 40px; }
.author-section > .eyebrow { padding-top: 5px; }
.author-section h2 { font: 400 24px/1.5 var(--serif); letter-spacing: .15em; }
.author-section h2 span { display: block; font: 10px/1.8 var(--sans); letter-spacing: .08em; color: var(--muted); margin-top: 10px; }
.author-section p:not(.eyebrow) { font-size: 12px; line-height: 2.3; color: var(--muted); max-width: 570px; margin-top: 22px; }
.author-section p + p { margin-top: 10px; }
.author-link { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); width: 220px; min-height: 44px; font-size: 11px; margin-top: 24px; }
.site-footer { width: 92%; margin: 0 auto; padding: 35px 0 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; }
.footer-title { font: 23px/1.5 var(--serif); letter-spacing: .16em; }
.site-footer > p { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 10px; }
.footer-links { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 32px; font-size: 10px; }
.footer-links a { min-height: 44px; display: flex; align-items: center; }
.site-footer small { color: var(--muted); font-size: 9px; grid-column: 2; grid-row: 2; justify-self: end; }
.reading-progress { position: fixed; bottom: 0; left: 0; z-index: 7; height: 2px; width: 100%; appearance: none; border: none; background: transparent; color: var(--flower); pointer-events: none; }
.reading-progress::-webkit-progress-bar { background: transparent; }
.reading-progress::-webkit-progress-value { background: var(--flower); }
.reading-progress::-moz-progress-bar { background: var(--flower); }
.reveal-pending { opacity: 0; transform: translateY(8px); transition: opacity 900ms ease, transform 900ms ease; }
.reveal-visible { opacity: 1; transform: none; }
.lightbox { position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0 4%; border: none; background: #20241f; color: #f6f6ef; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: #20241f; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; flex-shrink: 0; }
.viewer-bar h2 { font: 400 15px/1.8 var(--serif); letter-spacing: .12em; }
#viewer-count { font: 10px/1 var(--sans); color: #c6cbbf; padding-left: 18px; letter-spacing: .05em; }
.viewer-close { border: none; background: none; color: inherit; padding: 8px 0 8px 16px; min-width: 90px; min-height: 44px; font-size: 11px; }
.viewer-close span { padding-left: 14px; font-size: 24px; vertical-align: middle; }
.viewer-image-area { flex: 1; min-height: 0; position: relative; }
#viewer-image { width: 100%; height: 100%; object-fit: contain; }
.viewer-loading { position: absolute; inset: 0; display: grid; place-items: center; background: #20241f; font-size: 12px; }
.viewer-loading[hidden] { display: none; }
.viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; flex-shrink: 0; }
.viewer-controls button { border: 1px solid #60695b; background: none; color: inherit; min-height: 44px; min-width: 120px; padding: 8px 16px; font-size: 11px; }
.viewer-controls p { font-size: 10px; color: #c6cbbf; }
@media (min-width: 1700px) { .hero { margin-top: 65px; } }
@media (max-width: 1050px) {
  .hero { width: 90%; grid-template-columns: 26% 70%; gap: 4%; }
  .hero-type { gap: 15px; height: 355px; }
  h1 { font-size: 57px; }
  .hero-author { font-size: 12px; }
  .photographic-sequence { width: 87%; }
  .distance-grid { gap: 5%; grid-template-columns: 8fr 2fr; }
  .passage-grid, .everyday-grid, .beginning-grid { column-gap: 18px; }
  .book-quote { font-size: 13px; }
  .everyday-quote { grid-column: 5/13; font-size: 13px; }
  .book-grid { gap: 8%; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 85px; }
  .review-banner { padding: 6px 20px; font-size: 9px; }
  .site-header { padding: 12px 20px; grid-template-columns: 1fr auto; }
  .brand { font-size: 17px; }
  .site-header nav { gap: 4px; }
  .site-header nav a { font-size: 10px; }
  .profile-nav { padding-left: 2px; }
  .profile-nav span { font-size: 9px; }
  .header-credit { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; width: auto; margin: 20px 0 0; gap: 35px; }
  .hero-type { height: 305px; gap: 18px; padding-left: 25px; }
  h1 { font-size: 50px; letter-spacing: .16em; }
  .hero-author { margin-bottom: 12px; }
  .hero-photo { width: calc(100% - 32px); margin-left: 16px; }
  .hero-photo figcaption { padding: 0 7px; }
  .hero-bottom { padding: 0 24px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-bottom p { font-size: 12px; letter-spacing: .02em; }
  .hero-bottom a { align-self: flex-end; font-size: 9px; }
  .introduction { padding: 100px 24px 85px; }
  .intro-quote { font-size: 27px; line-height: 2; letter-spacing: .04em; margin-top: 26px; margin-bottom: 28px; }
  .intro-body { font-size: 13px; letter-spacing: .02em; line-height: 2.4; }
  .quote-source { font-size: 9px; margin-top: 20px; }
  .photographic-sequence { width: auto; margin: 0 24px; }
  .chapter { padding-top: 25px; margin-bottom: 90px; }
  .chapter-label { gap: 18px; padding-top: 16px; }
  .chapter-label h2 { font-size: 15px; letter-spacing: .12em; }
  .beginning-grid, .distance-grid, .passage-grid, .everyday-grid { display: block; margin-top: 42px; }
  .curtain { width: 82%; margin: 0; }
  .library { margin-top: 55px; width: 100%; }
  .beginning-quote { padding-top: 27px; margin-left: 12px; }
  .book-quote { font-size: 13px; letter-spacing: .03em; line-height: 2.3; }
  .station { width: calc(100% + 16px); margin-left: -8px; }
  .distance-quote { writing-mode: horizontal-tb; min-height: 0; margin: 30px 12px 0; }
  .old-passage { width: 61%; margin-left: 6px; }
  .new-passage { margin: 60px 0 0; }
  .passage-quote { padding-top: 27px; margin-left: 12px; }
  .egg { width: 75%; margin: 0 0 0 auto; }
  .room { width: 100%; margin-top: 55px; }
  .everyday-quote { padding-top: 27px; font-size: 12px; margin-left: 4px; letter-spacing: .01em; }
  .everyday-quote br { display: none; }
  .flowers { width: 100%; margin-top: 42px; }
  .flower-quote { font-size: 12px; text-align: left; margin: 28px 4px 0; letter-spacing: .01em; }
  .flower-quote br { display: none; }
  .osmanthus { margin-bottom: 0; }
  .proposal-scene { margin-top: 70px; }
  .proposal-photo { width: 100%; }
  .proposal-quote { font-size: 15px; margin-top: 26px; }
  .epilogue { margin: 85px 28px 90px; }
  .small-rule { height: 35px; margin-bottom: 40px; }
  .epilogue blockquote { font-size: 13px; letter-spacing: .03em; }
  .book-section { padding: 50px 28px 55px; }
  .section-heading h2 { font-size: 28px; }
  .book-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .book-cover { width: 76%; max-width: 280px; }
  .book-details { width: 100%; max-width: 380px; margin: 0 auto; }
  .book-author { font-size: 14px; }
  .book-details dl { font-size: 12px; margin-top: 20px; }
  .book-details dl > div { grid-template-columns: 48px 1fr; padding: 7px 0; }
  .purchase-link { margin-top: 26px; }
  .author-section { width: auto; margin: 65px 28px; grid-template-columns: 1fr; gap: 22px; }
  .author-section h2 { font-size: 23px; }
  .author-section p:not(.eyebrow) { font-size: 12px; line-height: 2.2; }
  .site-footer { width: auto; margin: 0 24px; padding: 30px 0 24px; grid-template-columns: 1fr; gap: 20px; }
  .footer-title { font-size: 21px; }
  .footer-links { grid-column: 1; grid-row: 2; justify-content: space-between; gap: 20px; }
  .site-footer > p { grid-row: 3; font-size: 9px; }
  .site-footer small { grid-column: 1; grid-row: 4; justify-self: start; }
  .photo-open { opacity: 1; width: 28px; height: 28px; bottom: 8px; right: 8px; font-size: 17px; }
  .photograph figcaption { font-size: 9px; margin-top: 8px; }
  .viewer-bar { min-height: 65px; }
  .viewer-bar h2 { font-size: 13px; }
  #viewer-count { font-size: 9px; padding-left: 9px; }
  .viewer-controls { min-height: 85px; gap: 12px; }
  .viewer-controls p { display: none; }
  .viewer-controls button { min-width: 112px; }
}
@media (max-width: 360px) {
  html { scroll-padding-top: 115px; }
  .site-header { grid-template-columns: 1fr; gap: 4px; padding-top: 10px; padding-bottom: 4px; }
  .site-header nav { justify-content: flex-end; gap: 8px; }
}
@media (max-width: 350px) {
  .site-header { padding-left: 16px; padding-right: 12px; }
  .brand { font-size: 16px; }
  .hero-type { gap: 15px; }
  .intro-quote { font-size: 24px; }
  .hero-bottom p { font-size: 11px; }
  .intro-body { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-pending, .intro-pending { opacity: 1; transform: none; }
  .reading-progress { display: none; }
}
@media (forced-colors: active) {
  .photo-link, .purchase-link, .viewer-controls button { border: 1px solid ButtonText; }
  .photo-open { background: Canvas; color: CanvasText; }
}
