:root { color-scheme: only light; }
body { background: var(--ground-paper); }
/* The Journal cover continues behind the first white post and fades to the
   same reading paper as Works and About further down the page. */
.journal-reader {
  background: linear-gradient(170deg, var(--sea-lapis), var(--lapis-shore) 64%, var(--ground-paper) 98%) top / 100% max(65rem,145vh) no-repeat, var(--ground-paper);
}
.journal-reader header,.journal-reader header .ja { color: var(--reel-ink); }
body > .atmos { position: fixed; overflow: hidden; }
body > main { position: relative; max-width: 850px; margin: auto; padding: clamp(22px,5vw,60px) clamp(20px,5vw,44px) 64px; }
.home {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em;
  border: 1.5px solid var(--accent); border-radius: var(--r-pill); color: var(--accent);
  font-weight: 700; font-size: 13px; text-decoration: none; background: var(--sky-paper);
}
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--paper-white); }
a:hover { text-decoration: underline; }
header { margin: clamp(32px,6vw,68px) 0 clamp(32px,5vw,48px); }
.label { align-items: baseline; gap: 8px 16px; margin: 0 0 20px; }
.label .ring-mark { margin-right: -6px; }
.label + p { max-width: 38em; }
header .about-lead { font-weight: 700; font-size: clamp(22px,3.4vw,36px); line-height: 1.5; }
main > .home:last-child { margin-top: 44px; }
section,article,.tree-list li { scroll-margin-top: 26px; }
.work-pages,.post-pages,.notes { display: grid; gap: clamp(32px,5vw,54px); }
.work-pages { max-width: 570px; margin-inline: auto; }
.work { padding: clamp(22px,4vw,32px); }
.work--wip { padding-top: 46px; }
.work .work-top { padding-right: 56px; }
.work :is(h2,h3) { font-size: clamp(20px,3.3vw,25px); }
.work .btn { padding: 8px 20px; }
.work .desc { line-height: 1.85; }
.work .desc strong { background: linear-gradient(transparent 66%,var(--hl) 66%); }
.paper--lapis .desc strong { background: none; }
.notes .note { padding: clamp(24px,4vw,40px) clamp(18px,4vw,38px); }
.notes h2 { line-height: 1.4; }
.notes .doing dt { overflow-wrap: anywhere; }
.notes .origin-logo { width: 140px; display: grid; place-items: center; gap: 5px; margin: 0 0 16px; }
.origin-logo img { display: block; width: 100%; height: auto; }
.origin-logo img + img { width: 62%; }
.note .xlink { margin-top: 1em; }
.wx-credit { font-size: 13px; line-height: 1.8; margin-top: 36px; }
.wx-credit a { color: var(--accent); }
.post-pages { max-width: 470px; margin-inline: auto; gap: 24px; }
.post {
  display: flex; flex-direction: column; gap: 12px;
  border-radius: var(--r-paper); background: var(--paper-white); box-shadow: var(--shadow-paper);
  padding: clamp(18px,3vw,28px);
}
.post .feed-head { grid-column: 1 / -1; }
.post .feed-mark { width: 30px; height: 30px; }
.post time { margin-left: auto; font: 13px/1.4 var(--font-pixel); }
.post h2 { font-size: clamp(18px,3vw,24px); line-height: 1.5; }
.post h2 + p { margin: 10px 0; }
.post .feed-x { min-height: 105px; align-self: start; }
.post .post-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 700; }
#profiles { margin-top: 64px; }
#profiles .tree { margin-inline: 0; }
#profiles .tree-caret { rotate: 90deg; }
@media (min-width: 768px) {
  :root { --fs-label: 72px; --fs-body: 16px; --fs-sm: 14px; --app-icon: 72px; --note-tilt-k: 1; }
  .tree-file { grid-template-columns: 30px 7ch 1fr auto; grid-template-areas: "mark name dest go" "mark name note go"; }
  .notes .doing div { grid-template-columns: 102px 1fr; }
}
.post img.feed-media { width: 100%; height: auto; max-height: none; }
.post .feed-x { width: 100%; height: 145px; }
.post .feed-x svg { height: 54px; }
.post .post-link { text-underline-offset: .22em; }
