:root {
  color-scheme: light;
  --ink: #242b2e;
  --muted: #697174;
  --accent: #27637a;
  --line: #dfe4e5;
  --soft: #f5f8f9;
  --page: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: #fff; color: var(--ink); font-size: 18px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(var(--page), calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 8px 16px; background: #fff; z-index: 10; }
.skip-link:focus { top: 10px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 98px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 650; letter-spacing: -.6px; text-decoration: none; white-space: nowrap; }
.brand-logo { flex: none; width: 56px; height: 56px; object-fit: contain; background: transparent; }
.wordmark-dot { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 500; }
nav a { text-decoration: none; padding-block: 8px; }
nav a:hover { text-decoration: underline; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(58px, 6.7vw, 84px); line-height: 1.06; font-weight: 500; letter-spacing: -.065em; margin-bottom: 30px; }
h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.23; font-weight: 550; letter-spacing: -.035em; margin-bottom: 25px; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.4; font-weight: 600; letter-spacing: -.025em; }
p + p { margin-top: 20px; }
strong { font-weight: 600; }
em { font-style: italic; }
img { display: block; width: 100%; height: auto; background: var(--soft); }
.opening { display: grid; grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr); align-items: start; gap: clamp(40px, 5.5vw, 80px); padding-block: 68px 90px; }
.opening-copy p:first-of-type { font-size: 20px; line-height: 1.65; }
.portrait { padding-top: 6px; }
.portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 33%; }
.reading { width: min(100%, 740px); margin-inline: auto; }
.story { padding-bottom: 48px; }
.world-view { margin-top: 5px; margin-bottom: 82px; }
.world-view img { aspect-ratio: 2.5 / 1; object-fit: cover; }
.continuation { display: block; }
.continuation .story + .story { padding-top: 15px; }
.notebook { width: min(100%, 740px); margin-inline: auto; margin-top: 5px; margin-bottom: 84px; }
.notebook img { aspect-ratio: 1.9 / 1; object-fit: cover; object-position: 50% 60%; }
.team { margin-top: 42px; }
.team img { aspect-ratio: 1.8 / 1; object-fit: cover; object-position: 50% 47%; }
.interest { margin-top: 96px; padding-top: 66px; border-top: 1px solid var(--line); }
.interest .reading { margin-inline: 0; }
.tools { margin-top: 44px; border-top: 1px solid var(--line); }
.tool-row { display: grid; grid-template-columns: minmax(0, 1fr) 318px; align-items: center; gap: 38px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.tool-copy { display: grid; grid-template-columns: 190px 138px minmax(0,1fr); align-items: center; gap: 18px; }
.tool-copy p { font-size: 15px; line-height: 1.6; color: #556064; }
.tool-note { display: block; width: 138px; aspect-ratio: 2.5; background: url('./pencil-notes.png') no-repeat; background-size: 100% 500%; opacity: .86; }
.note-0 { background-position: center 0%; }
.note-1 { background-position: center 25%; }
.note-2 { background-position: center 50%; }
.note-3 { background-position: center 75%; clip-path: inset(0 0 9% 0); }
.note-4 { background-position: center 98%; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; cursor: pointer; user-select: none; font-size: 14px; line-height: 1.2; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.choice span { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 10px 9px; border: 1px solid #bac5ca; border-radius: 4px; background: #fff; transition: background .15s, border-color .15s; }
.choice:hover span { border-color: var(--accent); background: var(--soft); }
.choice input:checked + span { color: #fff; border-color: var(--accent); background: var(--accent); }
.choice input:checked + span::before { content: "✓"; font-size: 13px; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.choice input:disabled + span { cursor: default; opacity: .48; }
.save-status { min-height: 60px; padding-top: 20px; font-size: 14px; color: var(--muted); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 70px 28px; font-size: 13px; color: var(--muted); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-identity { min-width: 0; }
.content-disclosure { max-width: 60ch; margin-top: 10px; font-size: 13px; line-height: 1.6; }
.footer-links { display: flex; flex-shrink: 0; align-items: center; gap: 18px; }
.site-footer a { text-decoration: none; }
@media (min-width: 1101px) {
  html { scroll-padding-top: 110px; }
  .site-header { position: sticky; top: 0; z-index: 5; min-height: 82px; background: #fff; }
}
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .opening { gap: 36px; grid-template-columns: minmax(0, 1.3fr) minmax(0,1fr); }
  .opening-copy p:first-of-type { font-size: 18px; }
  .tool-copy { grid-template-columns: minmax(0,1fr) 100px; gap: 5px 18px; }
  .tool-copy h3, .tool-copy p { grid-column: 1; }
  .tool-note { grid-column: 2; grid-row: 1 / 3; width: 100px; }
  .tool-row { grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; }
}
@media (max-width: 700px) {
  body { font-size: 17px; line-height: 1.7; }
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: auto; flex-wrap: wrap; padding-block: 20px 16px; gap: 8px 20px; }
  .wordmark { font-size: 21px; }
  .brand-logo { width: 44px; height: 44px; }
  .wordmark, .footer-brand { gap: 10px; }
  nav { gap: 0 22px; font-size: 13px; }
  .opening { display: flex; flex-direction: column; gap: 28px; padding-block: 38px 52px; }
  h1 { font-size: 60px; margin-bottom: 24px; }
  h2 { font-size: 29px; margin-bottom: 21px; }
  .opening-copy p:first-of-type { font-size: 18px; }
  p + p { margin-top: 18px; }
  .portrait { width: 100%; padding: 0; }
  .portrait img { aspect-ratio: 1.22 / 1; object-position: 50% 27%; }
  .story { padding-bottom: 32px; }
  .world-view { margin-top: 5px; margin-bottom: 48px; }
  .world-view img { aspect-ratio: 1.65 / 1; object-position: 64% 50%; }
  .continuation .story + .story { padding-top: 14px; }
  .notebook { width: 100%; margin-top: 6px; margin-bottom: 50px; }
  .notebook img { aspect-ratio: 1.45 / 1; }
  .team { margin-top: 28px; }
  .team img { aspect-ratio: 1.5 / 1; }
  .interest { margin-top: 54px; padding-top: 42px; }
  .tools { margin-top: 28px; }
  .tool-row { grid-template-columns: 1fr; gap: 17px; padding-block: 23px; }
  .tool-copy { grid-template-columns: minmax(0,1fr) 88px; gap: 6px 14px; }
  .tool-note { width: 88px; }
  .tool-copy p { max-width: 42ch; font-size: 15px; }
  h3 { font-size: 20px; }
  .choices { max-width: 390px; gap: 10px; }
  .choice span { min-height: 46px; }
  .site-footer { padding-top: 45px; }
  .footer-links { flex-direction: column; align-items: flex-end; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .choice span { transition: none; } }
@media print { nav, .choices, .save-status, .skip-link { display: none; } .site-header { position: static; } .wrap { width: 100%; } body { font-size: 12pt; } figure { break-inside: avoid; } }

/* Compact language links and locally available CJK fonts. */
:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif; }
.site-header { flex-wrap: wrap; gap: 8px 24px; padding-block: 14px; }
.section-nav { flex: 1; justify-content: flex-end; }
.language-nav { flex: none; flex-wrap: nowrap; gap: 10px; font-size: 12px; }
.language-nav a { white-space: nowrap; }
.language-nav [aria-current] { color: var(--accent); text-decoration: underline; font-weight: 700; }
.language-suggestion { flex-basis: 100%; margin-top: -4px; font-size: 13px; line-height: 1.6; text-align: right; color: var(--accent); text-decoration: none; }
.language-suggestion:hover { text-decoration: underline; }
@media (min-width: 1101px) { html[data-language-entry] { scroll-padding-top: 144px; } }
@media (max-width: 1100px) { .language-suggestion { order: 4; } }
@media (min-width: 701px) and (max-width: 1100px) { .section-nav { order: 3; flex-basis: 100%; justify-content: flex-start; } .language-nav { margin-left: auto; } }
@media (max-width: 700px) { .section-nav { order: 3; flex-basis: 100%; justify-content: flex-start; } .language-nav { margin-left: auto; } }
@media (max-width: 359px) { .wordmark { font-size: 19px; } .site-header { column-gap: 12px; } .language-nav { gap: 8px; } }
