/* Yuki: ink on warm paper, one blue seal. */

:root {
  --paper: #f3eee3;
  --ink: #1c1b19;
  --grey: #67625a;
  --faint: #9b958a;
  --seal: #2b54a3;
  --gutter: clamp(20px, 5vw, 64px);
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --kanji: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
}
* { box-sizing: border-box; }
html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  color: var(--ink);
  font: 400 18px/1.6 var(--serif);
  font-optical-sizing: auto;
  background-color: var(--paper);
  /* paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .33 0 0 0 0 .25 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
.pp { fill: var(--paper); }
.defs { position: absolute; width: 0; height: 0; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(28, 27, 25, .32); transition: text-decoration-color .2s ease-out; }
@media (hover: hover) { a:hover { text-decoration-color: var(--ink); } }
a:focus-visible, button:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 2px; }
.ext::after { content: "\2197"; font: 400 .78em/1 system-ui, sans-serif; margin-left: 3px; color: var(--grey); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 30; padding: 6px 12px; background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
p { margin: 0 0 .8em; }
h1, h2, h3 { font-weight: 400; margin: 0; letter-spacing: -.01em; }
.kj { font-family: var(--kanji); font-weight: 700; letter-spacing: 0; }

/* the seal: blue, carved, the only colour */
.seal { display: block; width: 32px; height: 32px; flex: none; }
.seal rect { fill: var(--seal); }
.seal .sl { fill: none; stroke: var(--paper); stroke-width: 2.6; }
.seal text { fill: var(--paper); font: 800 35px var(--kanji); text-anchor: middle; }

/* ---------- header and footer ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: 20px var(--gutter);
  position: relative; z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 20px; letter-spacing: .01em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 17px; }
.nav a { position: relative; text-decoration: none; color: var(--grey); padding: 4px 0; transition: color .2s ease-out; }
@media (hover: hover) { .nav a:hover { color: var(--ink); } }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: 50%; bottom: -3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--seal); }

.foot { padding: 56px var(--gutter) 48px; text-align: center; color: var(--grey); font-size: 16px; }
.foot .rule { display: block; width: min(420px, 70%); height: 22px; margin: 0 auto 26px; }
.foot .nav { justify-content: center; margin-bottom: 14px; }
.foot p { margin: 0; }
.foot .seal { width: 44px; height: 44px; margin: 0 auto 16px; }

/* ---------- the walk: stacked on narrow screens ---------- */
.walk { position: relative; }
.scene { position: relative; display: flex; flex-direction: column; padding: 0 var(--gutter) 40px; }
.scene .art { display: block; order: 1; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); height: auto; }
.scene .blk { order: 2; max-width: 34rem; }
.scene .blk.first { order: 0; }
.scene .art.wide-only { display: none; }
.scene .cap { order: 2; }

.cap { margin: 10px auto 0; max-width: 32ch; text-align: center; font-size: 20px; line-height: 1.5; }
.title h1 { font-size: clamp(46px, 13vw, 86px); line-height: .95; letter-spacing: -.02em; margin: 12px 0 14px; }
.title .tag { font-size: 21px; font-style: italic; color: var(--ink); margin-bottom: 14px; }
.hint { color: var(--grey); font-size: 16px; }
.hint .pan-only { display: none; }

.lbl .num { display: block; font-size: 15px; color: var(--grey); margin-bottom: 6px; }
.lbl h2 { font-size: 30px; line-height: 1.1; margin-bottom: 6px; }
.lbl .one { font-style: italic; color: var(--grey); margin-bottom: 10px; }
.links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 16px; margin: 0; }
.eyebrow { display: block; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
.blk h2.big { font-size: clamp(32px, 4vw, 44px); line-height: 1.05; margin-bottom: 14px; }
.email { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.end { display: flex; align-items: center; gap: 14px; color: var(--grey); font-size: 16px; }
.end .seal { width: 52px; height: 52px; }

/* ---------- the walk: one long handscroll on wide screens ---------- */
html.pan .top { position: fixed; inset: 0 0 auto; pointer-events: none; }
html.pan .top > * { pointer-events: auto; }
html.pan .stage { position: sticky; top: 0; height: 100vh; overflow: clip; }
html.pan .strip { display: flex; height: 100vh; width: max-content; will-change: transform; }
html.pan .scene { display: block; flex: none; width: calc(var(--w) * .1vh); height: 100vh; padding: 0; font-size: clamp(15px, 1.95vh, 20px); }
html.pan .scene .art, html.pan .scene .art.wide-only { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
html.pan .blk, html.pan .cap { position: absolute; left: calc(var(--x) * .1vh); top: calc(var(--y) * .1vh); width: calc(var(--bw) * .1vh); max-width: none; margin: 0; }
html.pan .cap { font-size: clamp(16px, 2.15vh, 21px); }
html.pan .title h1 { font-size: calc(9.6vh); }
html.pan .title .tag { font-size: clamp(18px, 2.4vh, 23px); }
html.pan .hint .pan-only { display: inline; }
html.pan .hint .flow-only { display: none; }
html.pan .lbl h2 { font-size: clamp(24px, 3.3vh, 32px); }
html.pan .links, html.pan .hint, html.pan .end { font-size: clamp(14px, 1.75vh, 17px); }
html.pan .email { font-size: clamp(22px, 3.4vh, 32px); }
.snow { position: absolute; left: 0; top: 0; width: 100%; height: 76%; pointer-events: none; }
html:not(.pan) .snow { display: none; }

/* pictures fade in once drawn */
.art, .leaf-art svg, .hut-art svg { opacity: 0; transition: opacity .6s ease-out; }
html.drawn .art, html.drawn .leaf-art svg, html.drawn .hut-art svg { opacity: 1; }

/* ---------- inner pages ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 24px var(--gutter) 24px; }
.intro { text-align: center; padding: 32px 0 8px; }
.intro h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1; margin-bottom: 14px; }
.intro p { max-width: 36ch; margin: 0 auto; font-size: 20px; color: var(--grey); font-style: italic; }
.leaf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px clamp(32px, 6vw, 88px); align-items: center; padding: clamp(40px, 7vw, 80px) 0; scroll-margin-top: 24px; }
.leaf:nth-of-type(even) .leaf-art { order: 2; }
.leaf-art { margin: 0; }
.leaf-art svg { display: block; width: 100%; max-width: 330px; height: auto; margin: 0 auto; }
.leaf-art figcaption { text-align: center; color: var(--grey); font-style: italic; margin-top: 6px; }
.leaf-art figcaption .kj { font-style: normal; margin-right: 8px; color: var(--ink); }
.leaf h2 { font-size: clamp(34px, 4vw, 46px); line-height: 1.05; margin-bottom: 10px; }
.leaf .lede { font-size: 21px; font-style: italic; line-height: 1.45; margin-bottom: 14px; }
.leaf p { color: #3d3a35; max-width: 60ch; }
.points { list-style: none; margin: 16px 0 18px; padding: 0; display: grid; gap: 8px; max-width: 62ch; }
.points li { position: relative; padding-left: 22px; color: #3d3a35; }
.points li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 10px; height: 2px; background: var(--ink); border-radius: 2px; transform: rotate(-8deg); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; margin: 0 0 18px; font-size: 16px; }
.facts dt { color: var(--grey); font-style: italic; }
.facts dd { margin: 0; }
.leaf .links { font-size: 17px; }
.divider { display: block; width: min(360px, 60%); height: 22px; margin: 0 auto; }

.hut-art { margin: 8px 0 0; }
.hut-art svg { display: block; width: 100%; height: auto; }
.hut-art .cap { margin-top: 4px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px clamp(40px, 7vw, 100px); padding: 56px 0 24px; }
.cols h2 { font-size: clamp(32px, 3.6vw, 42px); margin-bottom: 14px; }
.cols p { color: #3d3a35; max-width: 58ch; }
.tools { color: var(--grey); font-style: italic; }
.copy { font: 400 15px/1 var(--serif); color: var(--ink); background: none; border: 1px solid rgba(28, 27, 25, .3); border-radius: 999px; padding: 6px 14px; margin-left: 12px; cursor: pointer; vertical-align: middle; transition: border-color .2s ease-out, transform .12s ease-out; }
@media (hover: hover) { .copy:hover { border-color: var(--ink); } }
.copy:active { transform: scale(.97); }
.elsewhere { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: 18px; }
.elsewhere span { color: var(--grey); font-style: italic; margin-left: 8px; }

@media (max-width: 760px) {
  .leaf { grid-template-columns: 1fr; }
  .leaf:nth-of-type(even) .leaf-art { order: 0; }
  .cols { grid-template-columns: 1fr; }
  .nav { font-size: 16px; gap: 4px 16px; }
  .top { padding-top: 16px; padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .art, .leaf-art svg, .hut-art svg, a, .nav a, .copy { transition: none; }
}
.seal text.one { font-size: 62px; }
.brand .seal { width: 34px; height: 34px; }
