@font-face {
  font-family: Hand;
  src: url("art/hand.ttf") format("truetype");
  font-display: swap;
}
:root {
  --ink: #24258a;
  --paper: #fff9e6;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", Georgia, serif;
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 2px dashed currentColor; outline-offset: 4px; }
.skip { position: absolute; top: 8px; left: 12px; z-index: 5; padding: 9px; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: none; }
.night { color: var(--paper); background: #2724ad; }
.sky {
  isolation: isolate;
  overflow: hidden;
  min-height: max(570px,100svh);
  position: relative;
  display: grid;
  align-items: center;
  background: linear-gradient(#2622ae99, #2622ae60), #2724ad url("art/pigment.webp") center / cover no-repeat;
}
.scene, .trail { width: 100%; height: 100%; position: absolute; inset: 0; pointer-events: none; }
.scene { z-index: -1; }
.desk {
  position: absolute;
  right: 0; bottom: 0;
  width: min(89vw,139svh); aspect-ratio: 1.5;
  background: url("art/sketchbook.webp") right bottom / 100% 100% no-repeat;
  mask-image: linear-gradient(to right, transparent, black 22%), linear-gradient(to bottom, transparent, black 25%);
  mask-composite: intersect;
}
.aircraft {
  position: absolute; left: 61%; top: 27%; width: clamp(150px,16vw,280px);
  aspect-ratio: 1.5; transform-origin: center;
  transform: rotate(-15deg);
}
.aircraft img { width: 100%; height: 100%; display: block; clip-path: polygon(.8% 1%,99.25% 50.6%,87% 56.5%,76.3% 98.2%,58.8% 79.4%,53.9% 88.7%,52.2% 86.6%,50.9% 94.8%); }
.spark { position: absolute; width: 15px; height: 20px; background: #ffedbc; clip-path: polygon(52% 0,60% 38%,100% 48%,62% 58%,45% 100%,39% 60%,0 53%,39% 42%); }
.first { left: 50%; top: 21%; transform: rotate(9deg); }
.second { right: 11%; top: 17%; scale: .56; }
.third { left: 44%; top: 69%; scale: .46; }
.intro { margin: 0 0 5svh clamp(26px,10vw,180px); width: max-content; max-width: 90%; }
.hello { font: 500 clamp(15px,1.35vw,21px)/1.6 var(--serif); letter-spacing: .17em; margin: 0 0 21px; }
.intro h1 { margin: 0 0 0 -.055em; font: italic 500 clamp(98px,11.5vw,178px)/.98 Baskerville,Georgia,serif; letter-spacing: -.07em; }
.signature { width: fit-content; margin: .22em 0 0 .10em; color: #ffe6ad; font: 400 clamp(17px,1.6vw,24px)/1.55 var(--serif); letter-spacing: -.035em; }
.menu { display: grid; justify-items: start; gap: 3px; margin-top: clamp(34px,6svh,72px); }
.menu a { display: flex; width: max-content; min-height: 48px; align-items: center; gap: 16px; position: relative; padding: 5px 12px 5px 0; text-decoration: none; }
.menu i { display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid currentColor; border-radius: 43% 56% 52% 42%; transform: rotate(-7deg); font: italic 15px Georgia,serif; }
.menu a:nth-child(2) i { transform: rotate(6deg); }
.menu strong { font: 400 clamp(28px,2.7vw,44px)/1.15 Hand,var(--serif); }
.menu em { font: italic clamp(16px,1.35vw,21px)/1.3 Georgia,serif; }
.menu a, .section-nav a { isolation:isolate; }
.menu a::after, .section-nav a::before {
  content:""; position:absolute; z-index:-1; pointer-events:none;
  background:currentColor; mask:url("art/ink-swatch.svg") center / 100% 100% no-repeat;
  opacity:0; transform:scaleX(.94); transition:opacity .18s, transform .2s;
}
.menu a::after { inset:0 -4px 0 36px; color:var(--paper); }
.menu a:is(:hover,:focus-visible)::after,
.section-nav a:is(:hover,:focus-visible,[aria-current])::before { opacity:1; transform:scaleX(1); }
.menu a:is(:hover,:focus-visible) :is(strong,em) { color:var(--ink); }
.menu a:is(:hover,:focus-visible) i { background:var(--paper); color:var(--ink); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.intro, .reader { animation: enter .45s ease-out; }

/* The same stock is used on the opening sheet and the reading surface. */
.paper, .paper-turn { background: #faf9f6 url("art/paper.png") repeat; color:#252499; }
.paper { min-height:100svh; display:flex; flex-direction:column; }
.paper footer { margin-top:auto; }
.paper-turn { position:fixed; inset:0; z-index:20; pointer-events:none; }
header, footer, .reader { width:min(calc(100% - 48px), 880px); margin-inline:auto; }
header, footer { display:flex; align-items:center; justify-content:space-between; gap:16px; }
header { position:relative; padding:12px 0; }
header::after, footer::before, .entry-list > li::before, .entry-list::after {
  content:""; position:absolute; inset:auto 0 0; height:4px; background:currentColor;
  opacity:.65; mask:url("art/ink-rule.svg") left center / 230px 4px repeat-x; pointer-events:none;
}
.brand { font:italic 600 28px/1 Georgia,serif; text-decoration:none; }
.section-nav { display:flex; align-items:center; gap:clamp(4px,1.2vw,18px); }
.section-nav a, .brand, .reader nav a, footer a { min-height:44px; display:inline-flex; align-items:center; }
.section-nav a { position:relative; padding:0 12px; justify-content:center; text-decoration:none; }
.section-nav a::before { inset:5px -1px; color:var(--ink); }
.section-nav a:is(:hover,:focus-visible,[aria-current]) { color:var(--paper); }
.section-nav a:focus-visible { outline-color:var(--ink); }
.reader { padding:clamp(24px,5vh,58px) 0 72px; min-height:75svh; }
.reader nav, .reader .meta, .when { color:#575684; font-size:15px; }
.page-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:20px 0 42px; }
.page-head h1 { font:600 clamp(38px,5.5vw,76px)/1.12 var(--serif); letter-spacing:-.05em; margin:.14em 0 .2em; }
.page-head .section-title { font-family:Hand,var(--serif); font-weight:400; }
.page-art { height:auto; width:clamp(98px,17vw,200px); mix-blend-mode:multiply; }
.section-en { font:italic 21px Georgia,serif; }
.reader p { max-width:36em; line-height:1.9; font-size:18px; }
.reader h2 { margin:1.6em 0 .45em; }
.entry-list { position:relative; list-style:none; padding:0; margin:0; }
.entry-list > li { position:relative; }
.entry-list > li::before { top:0; bottom:auto; }
.entry { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px;
  padding:clamp(24px,4vw,44px) 4px; text-decoration:none; overflow-wrap:anywhere; }
.item-description { flex:1 1 220px; min-width:0; }
.item-meta { font-size:14px; color:#575684; }
.reader .entry h2 { font-size:clamp(24px,3.2vw,46px); line-height:1.22; margin:.2em 0; }
.entry p { margin:.6em 0; font-size:17px; max-width:27em; }
.item-link { display:inline-flex; align-items:center; gap:.4em; margin-top:1em; position:relative; padding-bottom:3px; }
.item-link::after { content:""; position:absolute; inset:auto 0 0; height:3px; background:currentColor;
  mask:url("art/ink-rule.svg") center / 100% 100% no-repeat; }
.item-link b { transition:transform .18s; }
.entry:is(:hover,:focus-visible) .item-link b { transform:translate(2px,-2px); }
.proof { position:relative; width:min(42%,350px); padding:8px; border:1px solid #3432928c;
  border-radius:3px 7px 4px 6px; background:#fffdf7 url("art/paper.png");
  box-shadow:3px 4px 0 -1px #f6f3e8, 3px 4px 0 0 #38368758; }
.proof img { display:block; width:100%; height:auto; border-radius:2px 3px 2px 1px; }
.writing-entry .item-description { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:18px; }
.writing-entry .item-link { margin:0; }
.reader > p a, .reader nav a, footer a { text-decoration-style:wavy; text-decoration-thickness:1px; }
footer { position:relative; padding:16px 0; font-size:14px; }
footer::before { top:0; bottom:auto; }
footer em { font:italic 19px Georgia,serif; }
.route { position:relative; list-style:none; padding:0; margin:0; --axis:50%; }
/* Each stroke runs pin to pin. Both layers share the same nib outline. */
.stop:not(:last-child)::before, .stop:not(:last-child)::after {
  content: ""; position:absolute; pointer-events:none;
  left:var(--axis); top:50%; height:var(--span,100%); width:32px;
  transform:translateX(-50%) scaleX(var(--direction,1));
  mask:url("art/route-ink.svg") center / 100% 100% no-repeat;
}
.stop:nth-child(even) { --direction:-1; }
.stop:not(:last-child)::before { background:#3026a344; }
.stop:not(:last-child)::after {
  background:#37349e;
  clip-path:inset(0 0 calc(100% - var(--ink,100%)) 0);
}
.stop { display:grid; grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr); column-gap:clamp(12px,3vw,42px); align-items:center; position:relative; min-height:clamp(300px,49svh,530px); }
.stop-art { height:auto; grid-column:1; grid-row:1; width:90%; justify-self:center; mix-blend-mode:multiply; }
.pin { grid-column:2; grid-row:1; z-index:1; justify-self:center; width:17px; height:17px; border:2px solid #3935a9; background:#faf9f6; border-radius:47% 53% 45% 55%; }
.reached .pin { background:#3935a9; }
.memory { grid-column:3; grid-row:1; }
.memory h2 { font-size:clamp(25px,2.6vw,40px); line-height:1.25; margin:.22em 0; }
.memory p { font-size:16px; white-space:pre-line; margin:.55em 0; }
.stop:nth-child(even) .memory { grid-column:1; text-align:right; }
.stop:nth-child(even) .stop-art { grid-column:3; }
@media(max-width:600px) {
  .work-entry { flex-direction:column; align-items:stretch; }
  .work-entry .item-description { flex:auto; }
  .proof { width:min(100%,380px); }
  .route { --axis:10px; }
  .stop:not(:last-child)::before, .stop:not(:last-child)::after { width:22px; }
  .stop { grid-template-columns:20px minmax(0,1fr); gap:0 20px; padding:24px 0; min-height:320px; align-content:center; }
  .stop .stop-art,.stop:nth-child(even) .stop-art { grid-area:1/2; width:min(64%,190px); justify-self:start; }
  .stop .memory,.stop:nth-child(even) .memory { grid-area:2/2; text-align:left; }
  .pin { position:absolute; top:50%; left:10px; grid-area:auto; transform:translate(-50%,-50%); }
  header,footer,.reader { width:calc(100% - 32px); }
  .section-nav { gap:0; } .section-nav a { padding:0 6px; min-width:44px; }
  .page-head { gap:8px; margin:12px 0 22px; }
  .page-art { width:27%; }
}
@media (max-width: 700px) {
  .sky { align-items: start; min-height: max(610px,100svh); }
  .intro { margin: clamp(32px,8svh,82px) 0 0 9vw; }
  .intro h1 { font-size: clamp(85px,21vw,122px); }
  .hello { margin-bottom: 12px; }
  .signature { font-size: 18px; }
  .menu { margin-top: 24px; gap: 0; }
  .menu a { gap: 12px; }
  .desk { width: min(117vw,82svh); right: -7vw; }
  .aircraft { width: clamp(80px,26vw,160px); left: 65%; top: 49%; }
  .first { left: 81%; top: 13%; }
  .second { right: 16%; top: 34%; }
  .third { left: 27%; top: 63%; }
  .reader p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { *, *::after { animation: none !important; transition: none !important; } }

/* Public website registration */
.filing { font-size: 12px; text-align: center; }
footer.filing { display: block; width: 100%; margin: 0; padding: 20px 16px; max-width: none; border: 0; color: #fff9e6; background: #2724ad; }
footer .filing { display: block; flex-basis: 100%; margin-top: 12px; }
.filing a { color: inherit; }
footer:has(.filing) { flex-wrap: wrap; }
footer.filing::before { content: none; }
