/* Readability theme. Layout remains in style.css; colours and typography can evolve here. */
:root {
  --sans: "BIZ UDPGothic", Meiryo, sans-serif;
  --serif: "Yu Gothic", "Hiragino Sans", sans-serif;
  --muted: #42564e;
}
body { font-size: 16px; line-height: 1.9; }
.site-header { flex-wrap: wrap; row-gap: 20px; }
.brand { font-size: 21px; line-height: 1.6; letter-spacing: 0; }
.brand-title { display: block; font-family: var(--serif); }
.brand-title > span { display: inline-block; }
.brand small { font-family: var(--sans); font-size: 12px; margin-top: 4px; }
.site-header nav { font-size: 14px; gap: 24px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(42px, 4.2vw, 58px); }
.hero h1, .page-lead h1 { font-weight: 500; letter-spacing: .045em; line-height: 1.46; }
.hero-copy, .intro { font-size: 16px; }
.hero-figure { transform: none; }
.figure-top { font-size: 13px; }
.figure-top span:last-child { font-size: 11px; }
.figure-note, .inquiry-steps { font-size: 14px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; }
.brand-title, h2 { font-weight: 500; letter-spacing: .03em; }
.subject-link strong { font-weight: 700; }
.subject-link span, .card-meta { font-size: 13px; }
.resource-card h3 { font-size: 19px; }
.resource-card > p { font-size: 15px; line-height: 1.85; }
.card-bottom { font-size: 12px; flex-wrap: wrap; }
.button, .text-link, .subtle-link { font-size: 15px; }
.button { padding: 14px 20px; }
.section-heading > p { font-size: 14px; }
.research-feature p, .reading p { font-size: 15px; }
.research-index > span, .research-index small { font-size: 14px; }
.research-summary { font-size: 14px; }
.prose, .detail-body { font-size: 16px; line-height: 2; }
.fine, .source-note, .back { font-size: 14px; }
.filters label, .filters input, .filters select, .reset { font-size: 15px; }
.filters input, .filters select { height: 48px; }
.results-meta p, .results-meta span { font-size: 14px; }
footer p, footer small, .footer-links { font-size: 13px; }
.inquiry-entry {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #edf1e7; padding: 36px; margin-bottom: 16px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center;
}
.inquiry-entry h2 { font-size: 25px; }
.inquiry-entry p { margin: 12px 0 0; }
.inquiry-entry .eyebrow { margin: 0 0 12px; }
.entry-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.draft-note { border-left: 3px solid var(--orange); background: #f3eee2; padding: 16px 20px; font-size: 14px; }
.inquiry-prose { max-width: 800px; }
.page-lead:has(+ .inquiry-prose) { padding-bottom: 24px; }
.page-lead:has(+ .inquiry-prose) .intro { margin-bottom: 0; }
.inquiry-prose > section:first-child > h2 { margin-top: 0; padding-top: 16px; }
.inquiry-prose li { margin-bottom: 16px; }
.inquiry-example { background: #f1f3eb; padding: 26px; margin: 24px 0; }
.inquiry-example h3 { margin: 0; font-size: 21px; }
.inquiry-example .eyebrow { margin: 0 0 10px; }
.note-guide { padding-bottom: 20px; }
.publications-showcase { scroll-margin-top: 25px; }
.featured-book { display: grid; grid-template-columns: 12px 1fr; background: #e9eee3; border: 1px solid #c9d4c3; margin-bottom: 24px; }
.book-spine { background: var(--green); color: transparent; font-size: 0; }
.featured-book > div:last-child { padding: 32px 38px; }
.featured-book h3, .reading-book h3 { font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1.7; margin: 0 0 15px; max-width: 850px; }
.featured-book p { max-width: 780px; }
.featured-book .button { margin-top: 8px; }
.book-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.book-card { padding: 26px; border: 1px solid var(--line); background: #fffefa; display: flex; flex-direction: column; }
.book-card .eyebrow { margin-bottom: 10px; }
.book-card h3 { margin: 0 0 12px; font-size: 19px; }
.book-card h3 a { text-decoration: none; }
.book-card h3 a:hover { text-decoration: underline; }
.book-card > p:not(.eyebrow) { font-size: 15px; color: var(--muted); margin: 0 0 20px; }
.book-card > .text-link { margin-top: auto; }
.books-page { padding-bottom: 65px; }
.home-note { border-top: 1px solid var(--line); padding: 35px 0 65px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.home-note .eyebrow { margin-bottom: 12px; }
.home-note h2 { font-size: 25px; }
.home-note > a { flex-shrink: 0; }
.reading-book { padding: 28px; background: #e9eee3; border-left: 5px solid var(--green); margin-top: 24px; }
.reading-book h3 { margin-top: 0; }
.reading-note { padding: 25px 0; display: flex; align-items: center; gap: 25px; border-bottom: 1px solid var(--line); }
.reading-note h3 { margin: 0; font-size: 18px; }
.reading-note p { margin-bottom: 0; font-size: 15px; }
.reading-note > a { flex-shrink: 0; }
.research-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.research-nav a { padding: 9px 18px; border: 1px solid var(--line); background: #fffefa; font-size: 14px; text-decoration: none; }
.research-nav a:hover { background: #e9eee3; }
.research-section { scroll-margin-top: 24px; }
.section-intro { margin: -8px 0 26px; color: var(--muted); }
.publication-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.publication-card { display: flex; flex-direction: column; padding: 27px; background: #fffefa; border: 1px solid var(--line); }
.publication-kind { margin: 0 0 15px; font-size: 12px; color: var(--green); }
.publication-card h3 { font-size: 19px; line-height: 1.8; margin: 0 0 18px; font-weight: 600; overflow-wrap: anywhere; }
.publication-card h3 a { text-decoration: none; }
.publication-card h3 a:hover { text-decoration: underline; }
.publication-author { margin: 0 0 8px; font-size: 14px; }
.publication-venue { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.publication-action { margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); }
.citation-only { color: var(--muted); font-size: 13px; }
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 26px; }
.project-card { background: #edf0e6; padding: 30px; }
.project-card h3 { font-size: 20px; margin: 0 0 16px; }
.project-card p:not(.eyebrow) { font-size: 15px; }
@media (max-width: 1000px) {
  .site-header nav { width: 100%; }
  .hero { gap: 32px; }
  .hero h1 { font-size: 45px; }
  .inquiry-entry { grid-template-columns: 1fr; }
  .reading-note, .home-note { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand { font-size: 19px; }
  .brand small { font-size: 11px; }
  .site-header nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; font-size: 14px; }
  .site-header nav a { padding: 6px 0; }
  .hero h1 { font-size: 42px; }
  .hero-copy, .intro { font-size: 16px; }
  .figure-top { flex-wrap: wrap; }
  .figure-note, .inquiry-steps { font-size: 13px; }
  .resource-card > p { font-size: 15px; }
  .resource-card h3 { font-size: 19px; }
  .prose, .detail-body { font-size: 16px; }
  .eyebrow { font-size: 11px; }
  .filters input, .filters select { font-size: 16px; }
  .filters { grid-template-columns: 1fr; }
  .inquiry-entry { padding: 25px 20px; }
  .inquiry-entry h2 { font-size: 22px; }
  .inquiry-entry p { font-size: 15px; }
  .entry-actions .text-link { font-size: 14px; }
  .book-grid, .publication-grid, .project-grid { grid-template-columns: 1fr; }
  .featured-book > div:last-child { padding: 25px 20px; }
  .featured-book h3, .reading-book h3 { font-size: 23px; }
  .book-card, .publication-card, .project-card { padding: 23px; }
  .reading-book { padding: 23px 20px; }
  .publication-card h3 { font-size: 18px; }
  .research-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .research-nav a { padding: 9px 12px; }
}
@media print {
  .publication-card, .book-card, .project-card { break-inside: avoid; }
  .publication-grid, .book-grid, .project-grid { display: block; }
  .publication-card, .book-card, .project-card { margin-bottom: 18px; }
}


/* Image links: actual book cover and the author's existing note header. */
.featured-book { grid-template-columns: 190px minmax(0,1fr); align-items: center; padding: 28px; gap: 30px; }
.featured-book > div:last-child { padding: 0; }
.book-cover-link { display: block; width: 100%; max-width: 190px; justify-self: center; }
.book-cover-link img { display: block; width: 100%; height: auto; box-shadow: 0 5px 16px #233b3520; }
.reading-book { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 28px; align-items: center; }
.reading-book > div, .reading-note > div { min-width: 0; }
.reading-book h3 { font-size: 23px; }
.reading-routes .eyebrow { margin: 0 0 10px; }
.reading-note { display: grid; grid-template-columns: minmax(0,240px) minmax(0,1fr); align-items: center; gap: 26px; margin-top: 10px; }
.note-image-link { display: block; }
.note-image-link img { display: block; width: 100%; height: auto; }
.reading-note p { margin: 12px 0 18px; }
.book-cover-link:hover, .note-image-link:hover { opacity: .88; }
@media (max-width: 640px) {
  .featured-book, .reading-book { grid-template-columns: minmax(0,1fr); padding: 24px 20px; gap: 24px; }
  .featured-book > div:last-child { padding: 0; }
  .book-cover-link { max-width: 160px; }
  .reading-note { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .note-image-link { width: 100%; max-width: 400px; }
}
