/* Koko — a little garden of words. */
@font-face {
  font-family: KokoRounded;
  src: url('/assets/fonts/koko-rounded.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* 1. Palette, typography, and shared geometry */
:root {
  --paper: oklch(97.7% 0.024 85);
  --cream: oklch(99% 0.012 85);
  --ink: oklch(34% 0.05 151);
  --muted: oklch(46% 0.036 137);
  --green: oklch(42% 0.075 151);
  --green-hover: oklch(36% 0.065 151);
  --sage: oklch(91% 0.045 132);
  --peach: oklch(93% 0.045 61);
  --pink: oklch(94% 0.037 30);
  --yellow: oklch(94% 0.077 89);
  --line: oklch(82% 0.037 125);
  --rounded: KokoRounded, 'Hiragino Maru Gothic ProN', 'PingFang TC', sans-serif;
  --body: 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --page-width: 1120px;
  --space-section: clamp(52px, 7vw, 88px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.85; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid oklch(49% 0.12 55); outline-offset: 5px; }
button { font: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, .brand { font-family: var(--rounded); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(40px, 4.7vw, 62px); line-height: 1.42; font-weight: 700; letter-spacing: .015em; }
h2 { margin-bottom: 0; font-size: clamp(29px, 3.1vw, 39px); line-height: 1.5; font-weight: 700; }
h3 { font-size: 23px; font-weight: 700; line-height: 1.65; }
.wrap { width: min(var(--page-width), calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 14px 20px; background: var(--cream); border-radius: 15px; }
.skip:focus { top: 10px; }
#main:focus { outline: none; }

/* 2. Navigation, actions, and footer */
.nav { display: flex; justify-content: space-between; align-items: center; min-height: 104px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 700; min-height: 44px; text-decoration: none; white-space: nowrap; }
.brand img { width: 43px; height: 43px; border-radius: 15px; }
.brand small { margin-left: 4px; font-size: 23px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav-links a:hover, .nav-links [aria-current] { text-decoration: underline; }
.nav-links .nav-cta { padding: 7px 18px; border: 1px solid var(--line); border-radius: 99px; gap: 8px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 54px; padding: 13px 24px; border-radius: 20px; background: var(--green); color: var(--cream); text-decoration: none; font-size: 15px; font-weight: 600; box-shadow: 0 3px 0 oklch(31% 0.052 149); transition: background .16s ease, box-shadow .16s ease; }
.button:hover { background: var(--green-hover); box-shadow: 0 1px 0 oklch(31% 0.052 149); }
.button:active { box-shadow: none; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 7px 0; font-size: 14px; text-decoration-thickness: 1px; }
.fine { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 19px 0 0; max-width: 390px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px 25px; padding: 28px 0 34px; color: var(--muted); font-size: 13px; }
.footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* 3. Hero: Koko brings a small note into a garden scene */
.hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 24px; padding: 58px 0 76px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 16px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.tiny-leaf { display: inline-block; flex-shrink: 0; width: 18px; height: 11px; border-radius: 80% 10% 80% 10%; background: oklch(63% 0.095 135); transform: rotate(-25deg); }
.hero h1 { margin-bottom: 23px; }
.hero h1 span { color: oklch(47% 0.083 145); }
.hero-lead { color: var(--muted); font-size: 17px; line-height: 1.95; margin-bottom: 29px; }
.hero-art { min-width: 0; }
.garden-scene { position: relative; height: 490px; isolation: isolate; }
.scene-cloud { position: absolute; inset: 105px 0 5px 8px; border-radius: 48% 52% 35% 65% / 46% 55% 45% 54%; background: var(--sage); z-index: -1; }
.scene-character { position: absolute; width: 93%; height: 93%; object-fit: contain; right: -15px; bottom: -14px; transform-origin: 50% 90%; }
.speech-note { position: absolute; top: 0; left: -12px; z-index: 2; width: 305px; padding: 25px 27px 23px; background: var(--cream); border: 1px solid oklch(87% 0.044 90); border-radius: 29px 34px 28px 8px; box-shadow: 0 7px 0 oklch(84% 0.047 110 / .25); }
.speech-note::after { content: ''; position: absolute; width: 25px; height: 25px; bottom: -11px; right: 44px; background: var(--cream); transform: rotate(45deg); border-right: 1px solid oklch(87% 0.044 90); border-bottom: 1px solid oklch(87% 0.044 90); }
.note-label { color: var(--muted); font-size: 13px; }
.speech-note blockquote { font-family: var(--rounded); font-size: 23px; font-weight: 600; line-height: 1.75; margin: 12px 0 0; }
.note-heart { position: absolute; right: 24px; top: 14px; font-size: 25px; color: oklch(59% 0.10 36); }
.scene-leaf { position: absolute; width: 30px; height: 17px; background: oklch(65% 0.09 135); border-radius: 80% 8% 80% 8%; transform-origin: 10% 90%; }
.leaf-one { top: 75px; right: 28px; transform: rotate(18deg); }
.leaf-two { bottom: 79px; left: 15px; width: 20px; height: 12px; transform: rotate(-35deg); background: oklch(74% 0.10 113); }
.scene-caption { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 15px; margin-top: 4px; }
.scene-caption p { margin: 0; font-size: 12px; color: var(--muted); }
.motion-toggle { min-height: 44px; padding: 6px 10px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 14px; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.motion-toggle:hover { background: var(--sage); }
.motion-toggle:disabled { cursor: default; text-decoration: none; }
.motion-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.footer .motion-controls { flex-basis: 100%; justify-content: flex-start; }
.motion-status { flex-basis: 100%; text-align: center; font-size: 12px; color: var(--muted); }

/* Motion starts only after the external script enables the controls. */
html[data-motion='playing'] .garden-scene .scene-character { animation: koko-breathe 6s ease-in-out infinite; }
html[data-motion='playing'] .garden-scene .leaf-one { animation: leaf-sway 5s ease-in-out infinite; }
html[data-motion='playing'] .garden-scene .leaf-two { animation: leaf-sway 6s ease-in-out -2s infinite reverse; }
@keyframes koko-breathe { 0%, 100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-5px) rotate(.5deg); } }
@keyframes leaf-sway { 0%, 100% { transform: rotate(-9deg); opacity: .82; } 50% { transform: rotate(7deg); opacity: 1; } }

/* 4. Three different moments, with the daily phrase taking the lead */
.feature-garden { padding: 30px 0 var(--space-section); }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; margin-bottom: 38px; }
.intro p { max-width: 460px; margin: 0; color: var(--muted); font-size: 17px; }
.feature-scenes { display: grid; grid-template-columns: 1.12fr .88fr; gap: 24px; }
.feature-copy p { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.feature-copy h3 { margin: 5px 0 0; }
.feature-label { font-size: 13px; color: var(--muted); }
.daily-scene { padding: 35px 40px; background: var(--peach); border-radius: 43px 34px 55px 31px; }
.quote-vignette { position: relative; padding-bottom: 15px; }
.koko-art { object-fit: contain; }
.quote-character { position: absolute; width: 200px; height: 200px; bottom: -25px; left: -23px; z-index: 2; }
.daily-paper { position: relative; background: var(--cream); margin: 34px 0 0 150px; padding: 29px 18px 22px 27px; min-height: 193px; border-radius: 4px 8px 17px 5px; transform: rotate(-2deg); box-shadow: 0 7px 0 oklch(75% 0.06 70 / .12); }
.daily-paper p { font-family: var(--rounded); font-size: 21px; line-height: 1.8; margin: 0 0 12px; }
.paper-tape { position: absolute; top: -12px; left: 35%; width: 92px; height: 23px; background: oklch(88% 0.07 92 / .8); transform: rotate(4deg); }
.paper-caption { display: block; text-align: right; color: var(--muted); font-size: 11px; }
.widget-scene { grid-column: 2; grid-row: 1 / 3; overflow: hidden; padding: 38px 36px 0; background: var(--sage); border-radius: 45px 65px 32px 39px; }
.widget-vignette { position: relative; padding-bottom: 34px; }
.widget-character { position: absolute; width: 200px; height: 200px; bottom: -7px; left: -34px; z-index: 2; }
.phone-example { position: relative; max-width: 255px; min-height: 332px; margin: 34px 0 0 auto; padding: 56px 15px 26px; border: 7px solid oklch(52% 0.045 143); border-bottom: 0; border-radius: 39px 39px 0 0; background: oklch(95% 0.033 103); transform: rotate(4deg); }
.phone-speaker { position: absolute; top: 13px; width: 64px; height: 15px; border-radius: 12px; background: oklch(52% 0.045 143); left: calc(50% - 32px); }
.widget-example { background: var(--cream); padding: 20px 16px; border-radius: 21px; }
.widget-example>span:first-child { color: var(--muted); font-size: 11px; }
.widget-example p { font-family: var(--rounded); font-size: 17px; line-height: 1.8; margin: 12px 0 15px; }
.phone-apps { display: flex; justify-content: space-between; gap: 10px; margin: 20px 4px; }
.phone-apps i { width: 37px; height: 37px; border-radius: 13px; background: oklch(84% 0.06 106); }
.phone-apps i:nth-child(2) { background: var(--peach); }
.phone-apps i:nth-child(3) { background: var(--yellow); }
.phone-apps i:nth-child(4) { background: oklch(84% 0.04 164); }
.phone-caption { margin: 0; font-size: 11px; text-align: center; color: var(--muted); }
.mark-scene { display: grid; grid-template-columns: 1fr 145px; align-items: center; gap: 24px; padding: 26px 27px; background: var(--pink); border-radius: 31px 45px 35px 44px; }
.mark-scene h3 { font-size: 21px; }
.mood-vignette { position: relative; text-align: center; }
.mood-character { width: 155px; height: 155px; }
.mood-caption { display: inline-block; margin-top: -7px; padding: 3px 14px; font-family: var(--rounded); font-size: 12px; background: var(--cream); border-radius: 40% 15% 30% 10%; transform: rotate(-4deg); }

/* Most supporting poses stay still. A few respond when their scene is explored. */
html[data-motion='playing'] .art-soft-motion { animation: reading-breathe 8s ease-in-out infinite; }
html[data-motion='playing'] :is(.section-character,.card-character,.closing-character) { transition: transform .45s ease; }
html[data-motion='playing'] .feature-scenes article:hover .section-character { transform: translateY(-3px) rotate(-1deg); }
html[data-motion='playing'] .post-card:is(:hover,:focus-within) .card-character { transform: translateY(-4px); }
html[data-motion='playing'] .closing:hover .closing-character { transform: rotate(1deg); }
@keyframes reading-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* 5. Articles, purchase information, and questions */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 31px; }
.section-head .text-link { flex-shrink: 0; }
.section-label { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.journal { padding: 0 0 var(--space-section); }
.journal-head { display: grid; grid-template-columns: 220px 1fr auto; gap: 26px; align-items: center; }
.journal-character { width: 220px; height: 220px; }
.journal-head .text-link { align-self: end; }
.journal-intro { max-width: 570px; color: var(--muted); font-size: 16px; margin: 18px 0 0; }
.post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.post-card { padding: 26px 26px 19px; background: var(--cream); border-radius: 26px 31px 22px 26px; border: 1px solid oklch(90% 0.025 91); }
.post-art { display: flex; justify-content: center; align-items: end; height: 150px; margin: -6px -6px 20px; border-radius: 40% 50% 35% 45%; background: var(--peach); }
.post-art-widget { background: var(--sage); }
.post-art-mood { background: var(--pink); }
.card-character { width: 156px; height: 156px; }
.post-card:nth-child(2) { border-radius: 32px 22px 31px 23px; }
.post-card:nth-child(3) { border-radius: 22px 32px 24px 34px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 12px; }
.category { background: var(--sage); border-radius: 99px; padding: 3px 10px; }
.post-card :is(h2,h3) { font-size: 22px; line-height: 1.75; margin: 19px 0 13px; }
.post-card :is(h2,h3) a { text-decoration: none; }
.post-card :is(h2,h3) a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.read-link { display: inline-flex; align-items: center; min-height: 44px; gap: 14px; font-size: 14px; text-decoration: none; }
.read-link:hover { text-decoration: underline; }
.note-strip { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; margin: 0 0 var(--space-section); padding: 45px 51px; background: var(--yellow); border-radius: 50px 29px 54px 31px; }
.note-strip h2 { font-size: 33px; }
.note-strip>p { font-size: 16px; color: var(--muted); margin: 0; }
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 55px; padding-bottom: var(--space-section); }
.faq-character { width: 155px; height: 155px; margin: 13px auto 0 35px; }
.faq h2 { font-size: 33px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; position: relative; padding: 21px 40px 21px 2px; font-size: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '＋'; position: absolute; right: 5px; top: 19px; font-size: 20px; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); font-size: 15px; margin: 0; padding: 0 28px 23px 2px; }
.closing { display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: 26px; padding: 30px 35px; margin-bottom: 20px; background: var(--sage); border-radius: 39px 56px 34px 48px; }
.closing-character { width: 200px; height: 220px; }
.closing h2 { font-size: 29px; }
.closing p:not(.fine) { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.closing .fine { margin-top: 13px; }
.closing .button { flex-shrink: 0; }

/* 6. Blog and reading surfaces */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; color: var(--muted); font-size: 12px; margin: 22px 0 0; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.page-head { display: grid; grid-template-columns: 1fr 240px; align-items: center; gap: 30px; padding: 40px 0 45px; }
.blog-head-character { width: 240px; height: 240px; }
.page-head h1 { font-size: 48px; margin-bottom: 20px; }
.page-head-copy>p:last-child { max-width: 620px; color: var(--muted); font-size: 17px; margin-bottom: 0; }
.blog-list { padding-bottom: var(--space-section); }
.article-head { max-width: 900px; padding: 38px 0 34px; margin: 0 auto; }
.article-head h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.6; margin: 22px 0; }
.dek { max-width: 680px; color: var(--muted); font-size: 17px; margin-bottom: 22px; }
.author { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; }
.article-body { max-width: 680px; margin: 12px auto 50px; font-size: 18px; line-height: 1.95; overflow-wrap: anywhere; }
.article-body h2 { font-size: 28px; margin: 40px 0 20px; line-height: 1.6; }
.article-body h3 { font-size: 22px; margin-top: 30px; }
.article-body p { margin-bottom: 25px; }
.article-body :is(ul,ol) { padding-left: 1.4em; margin-bottom: 25px; }
.article-body li { padding-left: 4px; margin-bottom: 9px; }
.article-body blockquote { margin: 30px 0; padding: 22px 27px; background: var(--sage); border-radius: 23px 30px 20px 28px; }
.article-body blockquote p:last-child { margin: 0; }
.article-body a { color: var(--green); text-decoration-thickness: 1px; }
.article-body pre { overflow: auto; padding: 20px; background: var(--sage); }
.article-body table { display: block; overflow: auto; border-collapse: collapse; }
.article-body :is(th,td) { padding: 10px; border: 1px solid var(--line); }
.article-tags { display: flex; flex-wrap: wrap; gap: 10px; max-width: 680px; margin: 0 auto 55px; }
.article-tags span { font-size: 12px; padding: 5px 13px; background: var(--sage); border-radius: 99px; }
.related { padding: 20px 0 var(--space-section); }
.related .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.legal-body { max-width: 760px; margin: 38px auto 70px; overflow-wrap: anywhere; }
.legal-body h1 { font-size: 38px; }
.legal-body h2 { font-size: 25px; margin: 33px 0 15px; }
.legal-body :is(p,li) { font-size: 16px; }
.legal-body ul { padding-left: 1.3em; }
.languages { display: flex; flex-wrap: wrap; gap: 16px; }
.languages a { display: inline-flex; align-items: center; min-height: 44px; }
.empty { padding: 50px 0 90px; }
.empty h1 { font-size: 40px; }
.empty p { max-width: 520px; color: var(--muted); }

/* 7. Responsive layouts */
@media (max-width: 960px) {
  .wrap { width: calc(100% - 56px); }
  .hero { gap: 8px; padding-top: 45px; }
  .garden-scene { height: 440px; }
  .speech-note { width: 260px; padding: 20px; left: 0; }
  .speech-note blockquote { font-size: 20px; }
  .scene-character { width: 105%; height: 90%; right: -20px; }
  .nav-links { gap: 19px; }
  .intro { gap: 35px; }
  .feature-scenes { gap: 19px; }
  .daily-scene { padding: 28px; }
  .widget-scene { padding: 28px 25px 0; }
  .mark-scene { grid-template-columns: 1fr 110px; gap: 16px; padding: 25px; }
  .mood-character { width: 120px; height: 130px; }
  .quote-character { width: 160px; height: 170px; left: -23px; }
  .daily-paper { margin-left: 130px; padding-left: 20px; }
  .daily-paper p { font-size: 19px; }
  .widget-character { width: 170px; height: 175px; left: -24px; }
  .journal-head { grid-template-columns: 160px 1fr; gap: 20px; }
  .journal-character { width: 160px; height: 180px; grid-row: 1 / 3; }
  .journal-head .text-link { justify-self: start; grid-column: 2; }
  .closing { grid-template-columns: 150px 1fr; gap: 16px 25px; }
  .closing-character { width: 150px; height: 180px; grid-row: 1 / 3; }
  .closing>.button { grid-column: 2; justify-self: start; }
  .post-grid { gap: 17px; }
  .post-card { padding: 22px 20px 17px; }
  .post-card :is(h2,h3) { font-size: 21px; }
  .note-strip { gap: 35px; padding: 37px; }
  .faq { gap: 30px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .nav { min-height: 86px; gap: 12px; padding: 13px 0; }
  .brand { gap: 7px; font-size: 13px; }
  .brand img { width: 34px; height: 34px; border-radius: 12px; }
  .brand small { font-size: 18px; margin-left: 2px; }
  .nav-links { gap: 12px; font-size: 12px; }
  .nav-features { display: none !important; }
  .nav-links .nav-cta { border: 0; padding: 0; gap: 3px; }
  .hero { grid-template-columns: 1fr; padding: 29px 0 45px; gap: 25px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: 43px; margin-bottom: 18px; }
  .hero-lead { font-size: 17px; line-height: 1.8; margin-bottom: 23px; }
  .eyebrow { font-size: 13px; margin-bottom: 14px; }
  .actions { gap: 12px 21px; }
  .button { min-height: 52px; font-size: 14px; padding: 12px 20px; border-radius: 18px; }
  .fine { font-size: 13px; margin-top: 15px; max-width: 330px; }
  .hero-art { max-width: 440px; width: 100%; justify-self: center; }
  .garden-scene { height: 365px; }
  .scene-cloud { inset: 72px 0 2px 7px; }
  .speech-note { width: 245px; top: 0; left: 0; padding: 18px 21px; }
  .speech-note blockquote { font-size: 20px; margin-top: 9px; }
  .note-label { font-size: 12px; }
  .scene-character { width: 89%; height: 94%; right: -12px; bottom: -17px; }
  .leaf-one { top: 49px; right: 6px; width: 23px; height: 14px; }
  .leaf-two { left: 7px; bottom: 44px; }
  .scene-caption { gap: 0 5px; }
  .scene-caption p { font-size: 11px; }
  .motion-toggle { font-size: 11px; padding-inline: 7px; }
  .intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .intro h2 { font-size: 31px; }
  .intro p { font-size: 17px; }
  .feature-garden { padding-top: 5px; }
  .feature-scenes { grid-template-columns: 1fr; gap: 21px; }
  .daily-scene { padding: 28px 25px; border-radius: 33px 26px 41px 28px; }
  .quote-vignette { padding-bottom: 92px; }
  .quote-character { width: 185px; height: 185px; left: -10px; bottom: -21px; }
  .daily-paper { margin-left: 34px; min-height: 171px; padding: 25px 19px 26px; }
  .daily-paper p { font-size: 20px; }
  .feature-copy h3 { font-size: 23px; }
  .widget-scene { grid-row: auto; grid-column: auto; padding: 28px 25px 0; border-radius: 33px 45px 26px 31px; }
  .phone-example { min-height: 310px; max-width: 228px; margin: 29px 0 0 auto; }
  .widget-vignette { padding-bottom: 37px; }
  .widget-character { width: 190px; height: 190px; bottom: -14px; left: -21px; }
  .mark-scene { grid-template-columns: 1fr 108px; padding: 27px 23px; gap: 15px; }
  .mark-scene h3 { font-size: 21px; }
  .feature-copy p, .mark-scene .feature-copy p { font-size: 17px; }
  .section-head { display: block; margin-bottom: 25px; }
  .journal-head { position: relative; padding-top: 0; }
  .journal-character { width: 170px; height: 170px; margin: 0 0 10px auto; }
  .journal-head .text-link { margin-top: 10px; }
  .section-head .text-link { margin-top: 12px; }
  .section-head h2 { font-size: 30px; }
  .journal-intro { font-size: 17px; }
  .post-card p { font-size: 17px; }
  .post-grid, .related .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .post-card { padding: 24px 25px 18px; }
  .post-card :is(h2,h3) { font-size: 23px; margin-top: 15px; }
  .note-strip { grid-template-columns: 1fr; gap: 22px; padding: 31px 27px; border-radius: 35px 25px 39px 27px; }
  .note-strip h2, .faq h2 { font-size: 29px; }
  .note-strip>p { font-size: 17px; }
  details p { font-size: 17px; }
  .faq { grid-template-columns: 1fr; gap: 17px; }
  .faq>div:first-child { position: relative; padding-right: 90px; min-height: 125px; }
  .faq-character { position: absolute; width: 113px; height: 113px; right: -9px; bottom: 0; margin: 0; }
  summary { font-size: 15px; padding-block: 20px; }
  .closing { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 21px 27px 31px; border-radius: 31px 43px 28px 37px; }
  .closing-character { width: 195px; height: 195px; margin: -4px auto 9px; align-self: center; }
  .closing h2 { font-size: 28px; }
  .closing .button { margin-top: 23px; }
  .footer { padding-top: 20px; gap: 3px; font-size: 12px; }
  .footer-links { gap: 2px 18px; }
  .breadcrumb { font-size: 11px; gap: 0 8px; margin-top: 10px; }
  .page-head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 13px; padding: 12px 0 34px; }
  .blog-head-character { width: 180px; height: 180px; align-self: flex-end; }
  .page-head h1 { font-size: 36px; }
  .page-head-copy>p:last-child { font-size: 16px; }
  .article-head { padding-top: 23px; padding-bottom: 23px; }
  .article-head h1 { font-size: 31px; margin: 18px 0; }
  .dek { font-size: 16px; }
  .article-body { font-size: 17px; margin: 8px auto 34px; }
  .article-body h2 { font-size: 25px; margin-top: 35px; }
  .article-body blockquote { padding: 19px 22px; }
  .article-tags { margin-bottom: 30px; }
  .legal-body { margin-top: 30px; }
  .legal-body h1 { font-size: 30px; }
}
@media (max-width: 360px) {
  .nav { flex-wrap: wrap; gap: 0; padding-block: 12px; }
  .nav-links { width: 100%; justify-content: space-between; }
  .hero { padding-top: 20px; }
  .hero h1 { font-size: 39px; }
  .hero-lead { font-size: 17px; }
  .actions { gap: 5px 17px; }
  .garden-scene { height: 330px; }
  .speech-note { width: 222px; padding: 17px 18px; }
  .speech-note blockquote { font-size: 18px; }
  .scene-character { width: 96%; }
  .leaf-one { right: 0; }
  .mark-scene { grid-template-columns: 1fr; }
  .mood-character { width: 150px; height: 150px; margin: 0 auto; }
  .quote-character { width: 155px; height: 160px; }
  .daily-paper { margin-left: 16px; padding-inline: 15px; }
  .widget-character { width: 160px; height: 170px; left: -23px; }
  .daily-paper p { font-size: 19px; }
  .article-head h1 { font-size: 29px; }
}

/* 8. System motion preferences always win, even before JavaScript runs. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 9. Reading mode: quiet typography, useful navigation, and shorter routes. */
.reading-page :is(h1,h2,h3) { font-family: var(--body); letter-spacing: 0; }
.reading-page .page-head { grid-template-columns: 1fr 80px; gap: 25px; padding: 32px 0 26px; }
.reading-page .title-phrase { white-space: nowrap; }
.reading-page .page-head h1 { font-size: 36px; line-height: 1.45; margin-bottom: 15px; }
.reading-page .page-head-copy>p { max-width: 690px; font-size: 17px; line-height: 1.8; }
.reading-page .blog-head-character { width: 80px; height: 80px; }
.category-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0 0 30px; }
.category-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration-thickness: 1px; }
.reading-page .blog-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.blog-category>h2 { font-size: 20px; margin-bottom: 16px; scroll-margin-top: 32px; }
.reading-page .post-grid { grid-template-columns: 1fr; }
.reading-page .post-card { border-radius: 16px; padding: 24px; }
.reading-page .post-art { height: 112px; margin: 0 0 18px; border-radius: 18px; }
.reading-page .card-character { width: 112px; height: 112px; }
.reading-page .post-card :is(h2,h3) { font-size: 22px; line-height: 1.5; margin: 16px 0 13px; }
.reading-page .post-card p { font-size: 16px; line-height: 1.75; }
.reading-page .post-meta { font-size: 13px; }
.article-layout { display: grid; grid-template-columns: minmax(0,680px) minmax(210px,260px); gap: 64px; max-width: 1004px; margin: 0 auto; align-items: start; }
.reading-article { min-width: 0; }
.reading-page .article-head { padding: 32px 0 24px; margin: 0; }
.reading-page .article-head h1 { font-size: 32px; line-height: 1.45; margin: 18px 0; font-weight: 650; }
.reading-page .author { font-size: 13px; line-height: 1.8; gap: 5px 17px; }
.article-summary { display: flex; gap: 18px; align-items: center; padding: 24px; border: 1px solid var(--line); background: var(--cream); border-radius: 12px; margin: 0 0 32px; }
.article-summary h2 { font-size: 17px; font-weight: 650; line-height: 1.5; margin: 0 0 10px; }
.article-summary p { font-size: 17px; line-height: 1.8; margin: 0; }
.summary-character { width: 78px; height: 78px; flex-shrink: 0; }
.article-sidebar { position: sticky; top: 32px; margin-top: 38px; }
.article-toc { border: 1px solid var(--line); border-radius: 12px; padding: 0 19px; background: var(--cream); }
.article-toc>summary { font-size: 15px; font-weight: 600; padding: 17px 30px 17px 0; }
.article-toc>summary::after { top: 13px; }
.article-toc ol { list-style: none; padding: 0; margin: 0 0 17px; }
.article-toc li { margin: 0; }
.article-toc a { display: block; padding: 10px 0; min-height: 44px; font-size: 14px; line-height: 1.7; text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }
.mobile-toc { display: none; }
.reading-page .article-body { margin: 0 0 38px; font-size: 18px; line-height: 1.85; }
.reading-page .article-body h2 { font-size: 25px; line-height: 1.55; margin: 42px 0 18px; font-weight: 650; }
.reading-page .article-body h3 { font-size: 21px; line-height: 1.6; font-weight: 600; margin: 28px 0 14px; }
.article-body :is(h2,h3,h4,h5,h6) { scroll-margin-top: 32px; }
.reading-page .article-body p { margin-bottom: 24px; }
.reading-page .article-body blockquote { border-radius: 8px; padding: 20px 24px; }
.reading-page .article-tags { margin: 0 0 45px; }
.reading-related { max-width: 1004px; margin: 0 auto 45px; padding-top: 28px; border-top: 1px solid var(--line); }
.reading-related h2 { font-size: 22px; margin: 0 0 14px; }
.reading-related ul { list-style: none; padding: 0; margin: 0; max-width: 680px; }
.reading-related li { margin-bottom: 20px; }
.reading-related li>a { display: inline-block; padding: 10px 0 6px; min-height: 44px; font-size: 18px; line-height: 1.65; }
.reading-related li>p { font-size: 15px; color: var(--muted); line-height: 1.75; margin: 0; }
.reading-cta { display: flex; justify-content: space-between; align-items: center; gap: 35px; padding: 30px; background: var(--sage); border-radius: 14px; margin-bottom: 20px; }
.reading-cta h2 { font-size: 23px; line-height: 1.5; margin: 0 0 10px; }
.reading-cta p:not(.fine) { font-size: 16px; color: var(--muted); margin: 0; }
.reading-cta .fine { margin-top: 12px; }
.reading-cta .button { flex-shrink: 0; }
@media (max-width: 960px) {
  .article-layout { display: block; max-width: 680px; }
  .desktop-toc { display: none; }
  .mobile-toc { display: block; position: static; margin: 0 0 28px; }
}
@media (max-width: 700px) {
  .reading-page .page-head { display: grid; grid-template-columns: 1fr 55px; align-items: start; gap: 13px; padding-top: 24px; }
  .reading-page .page-head h1 { font-size: 30px; }
  .reading-page .page-head-copy>p { font-size: 16px; }
  .reading-page .blog-head-character { width: 55px; height: 55px; }
  .reading-page .blog-list { grid-template-columns: 1fr; gap: 28px; }
  .reading-page .post-card { padding: 21px; }
  .reading-page .post-card :is(h2,h3) { font-size: 21px; }
  .reading-page .article-head { padding-top: 22px; }
  .reading-page .article-head h1 { font-size: 30px; line-height: 1.5; }
  .article-summary { padding: 20px; gap: 10px; }
  .summary-character { display: none; }
  .reading-page .article-body { font-size: 18px; line-height: 1.85; }
  .reading-page .article-body h2 { font-size: 24px; }
  .reading-cta { display: block; padding: 25px; }
  .reading-cta .button { margin-top: 22px; }
}
.editorial-note { padding: 24px 0 32px; max-width: 680px; scroll-margin-top: 28px; }
.editorial-note h2 { font-size: 19px; margin: 0 0 10px; }
.editorial-note p { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 0; }
