:root { color-scheme: light; --paper: #f2eadb; --ink: #1a282b; --red: #9f4335; font-family: Georgia, "Noto Serif SC", "Songti SC", SimSun, serif; background: var(--paper); color: var(--ink); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .28em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
.hero { min-height: max(680px, 100svh); position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; padding: 110px clamp(24px, 9vw, 160px) 130px; background: radial-gradient(ellipse at 73% 44%, #798e8c, #d9d4c6 36%, var(--paper) 71%); }
.wash { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.strokes { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #f2eadbf5 1%, #f2eadbcf 27%, #f2eadb00 68%); }
.hero.ink-ready::before { display: none; }
.brush-cursor { position: absolute; z-index: 2; aspect-ratio: 1; border: 1px solid #172a2eb0; border-radius: 50%; box-shadow: 0 0 0 1px #fff8; pointer-events: none; transform: translate(-50%, -50%); }
.masthead { position: absolute; z-index: 1; inset: 0 0 auto; display: flex; justify-content: space-between; padding: 24px clamp(24px, 9vw, 160px); font-size: .875rem; }
.hero-copy { position: relative; z-index: 1; max-width: 29rem; }
.signature { margin: 0 0 16px; color: #843d35; font-family: system-ui, sans-serif; font-size: .8rem; letter-spacing: .18em; }
h1, h2 { margin: 0; font-weight: 500; }
h1 { font-size: clamp(5rem, 14vw, 12.5rem); letter-spacing: -.11em; line-height: .98; }
h1 span { color: #283f43; }
.lede { margin: 21px 0; font-size: clamp(1.12rem, 2.8vw, 1.8rem); letter-spacing: .12em; }
.ink-controls p, .wash-status { margin: 31px 0 11px; font-family: system-ui, sans-serif; font-size: .82rem; color: #465359; }
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tools button { min-height: 34px; border: 1px solid #a59887; background: #f6eedf; padding: 5px 11px; border-radius: 999px; font-family: system-ui, sans-serif; font-size: .78rem; }
.tools .swatch { padding: 0; width: 31px; min-height: 31px; border: 3px solid #f2eadb; background: #31424a; }
.tools .swatch[aria-pressed="true"] { outline: 1px solid #283f43; outline-offset: 1px; }
.tools .swatch[data-color="blue"] { background: #4c6984; }
.tools .swatch[data-color="red"] { background: #9f4335; }
.tools button:not(.swatch)[aria-pressed="true"] { border-color: #4b6769; background: #dce0d3; }
.brush { display: flex; align-items: center; gap: 10px; margin-top: 13px; width: fit-content; font: .78rem system-ui, sans-serif; color: #465359; }
.brush input { width: 100px; accent-color: #4c686a; }
#wash-touch { display: none; }
.hero.brush-mode { touch-action: none; }
.hero-peak { position: absolute; z-index: -1; bottom: 0; right: 0; width: min(74vw, 1160px); pointer-events: none; }
.mountain { padding: clamp(70px, 13vw, 180px) clamp(24px, 9vw, 160px); background: #eeeadf; overflow: clip; }
.chapter { max-width: 1450px; margin: auto; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.6fr); align-items: center; gap: 5vw; }
.chapter h2, .closing h2 { font-size: clamp(2.6rem, 7.4vw, 6.5rem); letter-spacing: -.08em; line-height: 1.07; }
.chapter-copy p:not(.signature) { color: #56615c; line-height: 1.7; }
.drawing { width: 100%; overflow: visible; }
.drawing path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.drawing .sun { fill: #bd6555; opacity: .83; transform: translateY(var(--sun-drift, 0px)); }
.drawing .faint { stroke: #869892; stroke-width: 1.9; opacity: .55; }
.drawing .stroke { stroke: #253c42; stroke-width: 3.7; stroke-dasharray: 1; stroke-dashoffset: var(--remaining, 0); }
.drawing .distant { stroke: #7e9291; stroke-width: 2.1; transform: translateY(var(--ridge-drift, 0px)); }
.drawing .detail { stroke: #496367; stroke-width: 1.8; stroke-dashoffset: min(1, calc(var(--remaining, 0) * 1.23)); }
.drawing .bank { stroke: #526b69; stroke-width: 2.3; transform: translateY(var(--bank-drift, 0px)); }
.closing { position: relative; isolation: isolate; overflow: clip; background: #202e30; color: #f2eadb; padding: clamp(76px, 11vw, 155px) clamp(24px, 9vw, 160px); }
.closing::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 85% 25%, #67808388, transparent 70%), linear-gradient(125deg, transparent 40%, #2b454688);
  opacity: var(--reveal, 1); transform: translateY(var(--wash-drift, 0px));
}
.closing-inner { max-width: 1450px; margin: auto; }
.seal { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 26px; border: 2px solid #d07a68; color: #e48775; border-radius: 5px; font-size: 1.35rem; transform: rotate(-7deg); }
.routes { display: flex; flex-wrap: wrap; gap: 16px 27px; margin-top: 32px; font-family: system-ui, sans-serif; font-size: .875rem; }
@media (max-width: 740px) {
  .hero { min-height: max(630px, 100svh); padding-bottom: 140px; }
  .hero::before { background: linear-gradient(100deg, #f2eadbf1, #f2eadb66 75%); }
  .hero-peak { width: 105%; }
  .chapter { grid-template-columns: 1fr; }
}
@media (pointer: coarse) { #wash-touch { display: inline-block; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
