:root {
  --ink: #12344c;
  --blue: #0874aa;
  --sea: #005a91;
  --muted: #426378;
  --sky: #e8f7fd;
  --line: #bdd8e6;
  --paper: #fffdf7;
  --sun: #ffe795;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  color-scheme: light;
  scrollbar-color: #8db7d0 var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
::selection { background: #ffe795; color: var(--ink); }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 4px; }
.frame { width: min(100% - 104px, 1224px); margin-inline: auto; }
.skip, .skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; transform: translateY(-140%); padding: 9px 13px; background: var(--sun); color: var(--ink); }
.skip:focus, .skip-link:focus { transform: none; }
.arrow { position: relative; display: inline-block; width: 16px; height: 16px; flex: 0 0 16px; }
.arrow::before { content: ""; position: absolute; inset: 7px 2px auto 1px; border-top: 1.5px solid currentColor; }
.arrow::after { content: ""; position: absolute; top: 4px; right: 2px; width: 6px; height: 6px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.arrow.up { transform: rotate(-45deg); }

.site-header { background: var(--paper); }
.header-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 54px); min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font: 800 25px/1.1 var(--serif); white-space: nowrap; }
.brand-mark { position: relative; display: inline-block; flex: 0 0 29px; width: 29px; height: 22px; color: var(--blue); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; top: 3px; width: 13px; height: 15px; border: 1.5px solid currentColor; border-radius: 2px 4px 2px 2px; }
.brand-mark::before { left: 0; transform: skewY(14deg); background: #e1f4fc; }
.brand-mark::after { right: 0; transform: skewY(-14deg); }
.nav { display: flex; justify-content: end; align-items: center; margin-left: auto; gap: clamp(21px, 3vw, 43px); color: var(--muted); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--sea); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav a[aria-current] { font-weight: 700; }
.header-home { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; color: var(--sea); white-space: nowrap; }
.header-home:hover { text-decoration: underline; text-underline-offset: 4px; }

.coast { background: var(--sky); padding-block: 37px 44px; }
.coast-inner { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(34px, 5vw, 73px); }
.coast-copy { padding-block: 18px; }
.coast h1 { color: var(--ink); font: 790 clamp(37px, 4.83vw, 72px)/1.19 var(--serif); letter-spacing: -.022em; }
.coast h1 span { display: inline-block; color: var(--sea); }
.coast-copy p { margin-top: 25px; color: var(--muted); font-size: clamp(15px, 1.35vw, 19px); line-height: 1.8; }
.button { display: inline-flex; align-items: center; gap: 12px; min-height: 47px; margin-top: 27px; padding: 8px 17px 9px 19px; border-radius: 100px; color: var(--ink); background: var(--sun); font-size: 15px; font-weight: 700; transition: background-color 170ms ease; }
.button:hover { background: #ffda6a; }
.coast-image { min-width: 0; overflow: hidden; border-radius: 16px; aspect-ratio: 1.46; background: #beddec; }
.coast-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }

.reading { padding-block: 61px 42px; scroll-margin-top: 22px; }
.section-title { margin-bottom: 25px; }
.section-title h2, .topic h2 { font: 780 clamp(29px, 3.7vw, 49px)/1.15 var(--serif); letter-spacing: -.018em; }
.section-title p { margin-top: 9px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.reading-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.book-feature { display: grid; grid-template-columns: minmax(145px, .91fr) minmax(0, 1.35fr); align-items: center; gap: clamp(20px, 3vw, 39px); border: 1px solid var(--line); border-radius: 16px; padding: 17px; }
.book-art { display: grid; place-items: center; min-height: 211px; align-self: stretch; border-radius: 10px; background: #d7edf8; overflow: hidden; }
.book-sample { width: 117px; height: 150px; border-radius: 2px 5px 5px 2px; position: relative; display: grid; place-items: center; color: #fff9e0; background: #1671a3; box-shadow: 6px 6px 0 #f4e9c8, 10px 13px 17px #16496355; transform: rotate(-10deg); }
.book-sample::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: #0d5883; }
.book-sample span { writing-mode: vertical-rl; font: 790 27px/1.2 var(--serif); letter-spacing: .05em; }
.book-sample i { position: absolute; inset: auto 17px 19px; border-bottom: 1px solid #bde2f4; }
.book-copy { min-width: 0; padding: 7px 9px 10px 0; }
.note-topic { font-size: 13px; font-weight: 650; color: var(--sea); }
.reading-grid h3 { margin-top: 7px; color: var(--ink); font: 780 clamp(22px, 2.2vw, 29px)/1.25 var(--serif); }
.book-copy > p:not(.note-topic), .side-note > p:not(.note-topic) { margin-top: 11px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.side-note { padding: 26px 25px 20px; border-radius: 16px; background: #fff2c5; min-height: 247px; }
.side-note .note-topic { color: #735519; }
.book-details { margin-top: 12px; }
.book-details summary { width: fit-content; min-height: 40px; padding-block: 8px 6px; cursor: pointer; color: var(--sea); font-size: 14px; font-weight: 670; }
.book-details summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.note-body { padding: 3px 0 5px; font-size: 14px; color: var(--ink); line-height: 1.8; }
.note-body p + p { margin-top: 9px; }

.topic-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 20px; padding-block: 0 65px; }
.topic { min-width: 0; border-radius: 16px; overflow: hidden; }
.topic-film { background: #d9f2ff; }
.topic-ai { background: #e2f6ef; }
.topic-link { height: 100%; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr); align-items: center; gap: 8px; }
.topic-link:focus-visible { outline-offset: -4px; }
.topic-link:hover .text-link { text-decoration: underline; text-underline-offset: 5px; }
.topic-copy { padding: 27px 0 27px 26px; }
.topic h2 { font-size: clamp(24px, 2.95vw, 39px); }
.topic p { color: var(--muted); font-size: 14px; line-height: 1.65; margin-top: 8px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--sea); font-size: 14px; font-weight: 700; margin-top: 14px; }
.film-preview { width: 100%; min-height: 181px; height: 100%; object-fit: cover; object-position: 60% 58%; }
.sample-card { align-self: center; width: calc(100% - 21px); max-width: 165px; margin: 19px auto 16px; padding: 16px 12px; border-radius: 9px; background: var(--paper); box-shadow: 1px 8px 20px #1767491b; transform: rotate(5deg); }
.sample-card span { display: block; color: #3c6d60; font-size: 11px; }
.sample-card strong { display: block; color: #194d41; font-size: 14px; line-height: 1.57; margin-top: 8px; }

.site-footer { background: #eaf6fb; border-top: 1px solid #d7eaf4; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 22px; min-height: 83px; padding-block: 13px; }
.footer-inner p, .footer-inner small, .footer-inner > span { font-size: 13px; color: var(--muted); }
.back-top { display: inline-flex; align-items: center; gap: 6px; color: var(--sea); font-size: 13px; }
.back-top:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .frame { width: calc(100% - 66px); }
  .coast-inner { gap: 33px; }
  .coast-image { aspect-ratio: 1.29; }
  .wide-break { display: none; }
}
@media (max-width: 740px) {
  .frame { width: calc(100% - 40px); }
  .header-inner { min-height: 61px; gap: 15px; }
  .wordmark { font-size: 22px; }
  .nav { gap: 23px; }
  .nav a { font-size: 14px; }
  .header-home { display: none; }
  .coast { padding-block: 27px; }
  .coast-inner { grid-template-columns: 1fr; gap: 25px; }
  .coast-copy { padding-block: 2px; }
  .coast h1 { font-size: clamp(39px, 9.6vw, 56px); }
  .coast-copy p { margin-top: 14px; }
  .button { margin-top: 20px; }
  .coast-image { aspect-ratio: 1.54; }
  .reading { padding-block: 42px 27px; }
  .reading-grid { grid-template-columns: 1fr; gap: 13px; }
  .book-feature { gap: 17px; }
  .side-note { min-height: 0; padding: 19px; }
  .side-note br { display: none; }
  .topic-grid { grid-template-columns: 1fr; gap: 13px; padding-bottom: 41px; }
  .topic-link { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); }
  .topic-copy { padding: 19px 0 19px 19px; }
}
@media (max-width: 480px) {
  .book-feature { grid-template-columns: 1fr; padding: 12px; }
  .book-art { min-height: 157px; }
  .book-sample { height: 111px; width: 86px; }
  .book-sample span { font-size: 22px; }
  .book-copy { padding: 3px 5px 4px; }
  .coast h1 { font-size: clamp(33px, 10vw, 43px); }
  .footer-inner { justify-content: flex-start; }
  .footer-inner p { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.site-account {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--sea);
  font-size: 14px;
}
.site-account:hover { background: var(--sky); }
.recite-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  margin-top: 21px;
  border: 1px solid #bbdce9;
  border-radius: 16px;
  background: var(--sky);
}
.recite-callout h3 { font: 750 25px/1.25 var(--serif); }
.recite-callout p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.recite-callout .button { margin-top: 0; white-space: nowrap; }
.cms-feed:not(:empty) { margin-block: 26px; }
.cms-feed h3 { margin-bottom: 11px; font: 750 24px/1.3 var(--serif); }
.cms-entry { border-block-end: 1px solid var(--line); }
.cms-entry:first-of-type { border-block-start: 1px solid var(--line); }
.cms-entry summary { padding: 15px 3px; color: var(--sea); font-weight: 690; cursor: pointer; }
.cms-copy { max-width: 66ch; padding: 0 3px 16px; }
.cms-copy p { margin-block: 8px; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.75; }
.cms-copy .cms-summary { color: var(--muted); }
.cms-copy a { color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 420px) {
  .header-inner:has(.site-account) { gap: 11px; }
  .header-inner:has(.site-account) .nav { gap: 12px; }
  .site-account { padding: 6px 9px; font-size: 13px; }
  .recite-callout { align-items: flex-start; flex-direction: column; padding: 18px; gap: 12px; }
}
