:root {
  color-scheme: light;
  --paper: #f7f8f2;
  --ink: #2c4035;
  --muted: #606d61;
  --line: #dbe1d5;
  --accent: #44654c;
  --hover: #eef1e7;
  --scene-sky: #eaf0e4;
  --scene-sun: #e8d8a6;
  --scene-hill: #d4dfcb;
  --scene-frame: #a5b49a;
  --scene-leaf: #8ca57d;
  --scene-pot: #c7b7a0;
  --scene-cup: #e4dfcf;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
svg { display: block; }
.page { width: min(100% - 6rem, 960px); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2.25rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; font-size: 1rem; font-weight: 550; letter-spacing: .08em; }
.brand-mark { width: 29px; height: 29px; color: var(--accent); }
.header-note { color: var(--muted); font-size: .8125rem; letter-spacing: .09em; }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: 4.5rem 3.5rem 4.5rem 0; }
.eyebrow { color: var(--accent); font-size: .875rem; letter-spacing: .18em; margin-bottom: 1.3rem; }
h1 { font-family: "Songti SC", "Noto Serif CJK SC", "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: clamp(2.8rem, 5.2vw, 4.25rem); font-weight: 500; line-height: 1.45; letter-spacing: .04em; }
.intro { color: var(--muted); margin-top: 1.5rem; font-size: 1rem; line-height: 2; }
.quiet-scene { width: 260px; height: auto; flex: 0 0 260px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
h2 { font-size: 1rem; font-weight: 500; letter-spacing: .025em; }
.section-heading p { color: var(--muted); font-size: .8125rem; }
.lesson-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.lesson-list li { border-bottom: 1px solid var(--line); }
.lesson-link { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; padding: 1.65rem .75rem; border-radius: 6px; text-decoration: none; transition: background-color 180ms ease; }
.lesson-link:hover { background: var(--hover); }
.lesson-label { color: var(--accent); font-size: .9375rem; line-height: 1.8; white-space: nowrap; }
.lesson-label > span { display: block; color: var(--muted); font-size: .8125rem; }
h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.6; letter-spacing: .035em; }
.lesson-copy p { margin-top: .3rem; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.open-label { display: flex; align-items: center; gap: .6rem; color: var(--accent); font-size: .875rem; white-space: nowrap; }
.open-label svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.site-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 2.5rem 0 2.75rem; color: var(--muted); font-size: .8125rem; line-height: 1.8; }
.site-footer p { letter-spacing: .08em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 1; padding: .75rem 1rem; color: var(--paper); background: var(--ink); border-radius: 4px; }
.skip-link:focus { top: 1rem; }

@media (max-width: 680px) {
  .page { width: min(100% - 2.5rem, 480px); }
  .site-header { padding: 1.5rem 0; }
  .header-note { display: none; }
  .welcome { position: relative; gap: 0; padding: 3rem 0 3.25rem; }
  .welcome-copy { position: relative; z-index: 1; }
  .quiet-scene { position: absolute; width: 145px; right: -8px; top: 5rem; }
  h1 { font-size: 3rem; }
  .intro { margin-top: 1.25rem; }
  .section-heading { display: block; margin-bottom: 1.1rem; }
  .section-heading p { margin-top: .5rem; }
  .lesson-link { grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; padding: 1.4rem .25rem; }
  .lesson-label { grid-column: 1; display: flex; flex-wrap: wrap; gap: .75rem; align-items: baseline; font-size: .875rem; }
  .lesson-label > span { display: inline; }
  .lesson-copy { grid-column: 1; }
  h3 { font-size: 1.1875rem; }
  .open-label { grid-column: 2; grid-row: 1 / 3; font-size: 0; gap: 0; padding: .6rem 0 .6rem .4rem; }
  .open-label svg { width: 20px; height: 20px; }
  .site-footer { display: block; padding: 2rem 0; }
  .site-footer span { display: block; margin-top: .35rem; }
}

@media (max-width: 360px) {
  .quiet-scene { width: 113px; right: -5px; top: 5.8rem; }
  h1 { font-size: 2.75rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #202920;
    --ink: #e3e9db;
    --muted: #b0baaa;
    --line: #3d4939;
    --accent: #b9cfac;
    --hover: #2b3529;
    --scene-sky: #303c2d;
    --scene-sun: #b6a878;
    --scene-hill: #414f39;
    --scene-frame: #829475;
    --scene-leaf: #95ae82;
    --scene-pot: #938471;
    --scene-cup: #9f9d87;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lesson-link { transition: none; }
}
