@font-face { font-family: 'Archivo Black'; src: url('fonts/heading.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Zen Kaku Gothic New'; src: url('fonts/body.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Zen Kaku Gothic New'; src: url('fonts/body-bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'DotGothic16'; src: url('fonts/labels.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Noto Sans JP'; src: url('fonts/name.woff') format('woff'); font-weight: 700; font-display: swap; }

:root {
  --paper-lapis-ink: #FFFFFF;
  --paper-teal-ink: #0B2530;
  --paper-aqua-ink: #152030;
  --paper-white-ink: #152030;
  --shape-sky: #069EF6;
  --shape-teal: #0BCDC4;
  --stamp-red: #832A1D;
  --stamp-blue: #04408A;
  --stamp-size: 76px;
  --logo-tile: #FEFEFE;
  --sns-tile: #000000;
  --sns-mark: #FFFFFF;
  --sns-tile-paper: #000000;
  --sns-mark-paper: #FFFFFF;
  --badge-light: block;
  --status-wip-yellow: #F5C400;
  --status-wip-black: #141414;
  --shadow-paper: 0 1px 1px #1520301F, 0 14px 28px -10px #15203047;
  --shadow-sheet: 0 1px 2px #1520301A, 0 10px 24px -14px #1520303D;
  --grain-opacity: 0.10;
  --note-mix: 8%;
  --note-a: color-mix(in srgb, var(--ground-paper) 30%, var(--sheet));
  --note-b: color-mix(in srgb, var(--sashi) var(--note-mix), var(--sheet));
  --note-c: color-mix(in srgb, var(--shape-sky) var(--note-mix), var(--sheet));
  --finder-light-edge: #0000001A;
  --shadow-glyph: 0 6px 12px -8px #00000066;
  --shadow-tape: 0 1px 2px #0000001F;
  --font-display: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --name-weight: 700;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-pixel: "DotGothic16", ui-monospace, monospace;
  --font-heavy: "Archivo Black", "Arial Black", "Helvetica Neue", sans-serif;
  --fs-name-sm: 56px;
  --fs-label: 48px;
  --fs-title: 20px;
  --fs-body: 15px;
  --fs-sm: 13px;
  --fs-xs: 12px;
  --fs-year: 34px;
  --lh-body: 1.85;
  --lh-tight: 1.25;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --tap: 44px;
  --app-icon: 64px;
  --chip-logo: 20px;
  --feed-mark: 30px;
  --xlink-mark: 32px;
  --badge-h: 40px;
  --wip-tape-h: 30px;
  --wip-tile: 20px;
  --tl-rail: 32px;
  --tl-line: 2px;
  --tl-ring: 14px;
  --tl-ring-now: 22px;
  --tl-dot-y: calc(var(--sp-3) + 10px);
  --finder-bar-h: 44px;
  --finder-light: 12px;
  --finder-tag: 10px;
  --tree-mark: 30px;
  --tree-row: 60px;
  --tree-indent: 28px;
  --note-tape-w: 88px;
  --note-tape-h: 22px;
  --note-tilt-k: 0.4;
  --r-paper: 14px;
  --r-md: 12px;
  --r-pill: 999px;
  --r-app: 22.5%;
  --ease-std: cubic-bezier(0.4, 0.4, 0, 1);
  --t-hover: 300ms;
  --panel: #F6F4EE;
  --panel-2: #ECE8DD;
  --line: #D6D0C2;
  --ink: #152030;
  --ink-2: #444C5C;
  --ink-3: #474F60;
  --accent: #064B9F;
  --paper-white: #FFFFFF;
  --paper-aqua: #C9EEF0;
  --paper-lapis: #0655B8;
  --paper-teal: #2EC4C9;
  --stamp-ink: #952512;
  --sashi: #EF4C35;
  --sashi-ink: #A42A18;
  --sheet: #FFFFFF;
  --focus: var(--accent);
  --coral: #EF4C35;
  --mark: var(--coral);
  --reel-ground: #0655B8;
  --reel-ink: #FFFDF8;
}
html[data-season="autumn"] { --sashi: #DE6A2E; --sashi-ink: #833312; }
html[data-season="winter"] { --sashi: #5D8ED3; --sashi-ink: #2B4F8C; }
html[data-season="spring"] { --sashi: #E9799A; --sashi-ink: #8C2847; }
html[data-season="summer"] { --sashi: #19B3C6; --sashi-ink: #08535E; }
:root[data-time="morning"] {
  --panel: #FBF8F1;
  --panel-2: #F2ECDF;
  --line: #E0D7C6;
  --ink: #172436;
  --ink-2: #434C5E;
  --ink-3: #464F62;
  --accent: #0A4E9C;
  --paper-white: #FFFEFA;
  --paper-aqua: #D2F1F1;
  --paper-lapis: #1D62BC;
  --paper-teal: #4ACDCE;
  --stamp-ink: #952512;
  --sheet: #FFFEFA;
}
:root[data-time="evening"] {
  --panel: #F9EEE2;
  --panel-2: #F0DDC9;
  --line: #DDC4AC;
  --ink: #2A1C17;
  --ink-2: #4E3C33;
  --ink-3: #523F37;
  --accent: #20447F;
  --paper-white: #FFFAF3;
  --paper-aqua: #D5ECE5;
  --paper-lapis: #2A4D9C;
  --paper-teal: #3FC2BD;
  --stamp-ink: #8E2412;
  --sheet: #FFFAF3;
}
:root[data-time="night"] {
  --panel: #E9EDF7;
  --panel-2: #DCE1F0;
  --line: #C0C8DD;
  --ink: #131A33;
  --ink-2: #384160;
  --ink-3: #3C4566;
  --accent: #2A3B9C;
  --paper-white: #F8F9FE;
  --paper-aqua: #C6E3EE;
  --paper-lapis: #2C3E96;
  --paper-teal: #34B9C5;
  --stamp-ink: #8E2219;
  --sheet: #F8F9FE;
}
/* The paper behind the objects takes the seasonal tint and weather wash
   used on the original reading surface. The foreground stays opaque. */
:root {
  --season-paper: var(--sky-paper,#f6f4ee);
  --ground-paper: var(--season-paper);
  --lapis-shore: color-mix(in srgb,var(--sea-lapis) 83%,var(--paper-lapis));
}
:root[data-season="autumn"] { --season-paper: color-mix(in srgb,var(--sky-paper) 84%,#edbf92); }
:root[data-season="spring"] { --season-paper: color-mix(in srgb,var(--sky-paper) 86%,#f7bfd0); }
:root[data-season="summer"] { --season-paper: color-mix(in srgb,var(--sky-paper) 86%,#a8e2ee); }
:root[data-season="winter"] { --season-paper: color-mix(in srgb,var(--sky-paper) 82%,#c9daf0); }
:root[data-weather="cloudy"] { --ground-paper: color-mix(in srgb,var(--season-paper) 90%,#bda98c); }
:root[data-weather="rain"] { --ground-paper: color-mix(in srgb,var(--season-paper) 84%,#7d8da3); }
:root[data-weather="snow"] { --ground-paper: color-mix(in srgb,var(--season-paper) 83%,#8e9fb8); }
:root[data-weather="sunny"] { --ground-paper: color-mix(in srgb,var(--season-paper) 75%,#fff4d6); }
* { box-sizing: border-box; }
body { margin: 0; font: 400 var(--fs-body)/var(--lh-body) var(--font-body); color: var(--ink); }
h1,h2,h3,p,ol,ul,dl,dd { margin: 0; }
ol,ul { padding: 0; list-style: none; }
img { display: block; }
a { color: inherit; }
.wb { display: inline-block; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Headings and surfaces */
.label { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin-bottom: var(--sp-7); }
.label .en { font-family: var(--font-heavy); font-weight: 400; font-size: calc(var(--fs-label) * 0.8); line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }
.label .ja { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
.label .count { font-family: var(--font-pixel); font-size: var(--fs-sm); color: var(--sashi-ink); }


.paper { --p-bg: var(--paper-white); --p-ink: var(--paper-white-ink); background: var(--p-bg); color: var(--p-ink); border-radius: var(--r-paper); box-shadow: var(--shadow-paper); padding: var(--sp-5); transform: rotate(var(--tilt, 0deg)); }
.paper:not(.work--wip)::before { content: ""; position: absolute; z-index: 3; top: -9px; left: var(--sp-5); width: 56px; height: 18px; border-radius: 2px; background: var(--sashi); opacity: 0.8; rotate: -4deg; pointer-events: none; }
.paper--lapis { --p-bg: var(--paper-lapis); --p-ink: var(--paper-lapis-ink); }
.paper--teal { --p-bg: color-mix(in srgb,var(--paper-teal) 13%,var(--paper-white)); --p-ink: var(--paper-teal-ink); }
.paper--teal:not(.work--wip)::before { background: var(--paper-teal); }
.paper--aqua { --p-bg: var(--paper-aqua); --p-ink: var(--paper-aqua-ink); }
.sheet { --panel: var(--sheet); position: relative; margin-inline: calc(var(--sp-3) * -1); padding: var(--sp-5) var(--sp-4); border-radius: var(--r-paper); background: var(--sheet); box-shadow: var(--shadow-sheet); }
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  opacity: var(--grain-opacity); mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.label .ring-mark { flex: none; align-self: center; font-size: var(--fs-label); width: 0.4em; height: 0.4em; margin-right: calc(var(--sp-2) * -1); border: max(2px, 0.07em) solid var(--mark); border-radius: 50%; }

/* Finder */
.finder { position: relative; margin-inline: calc(var(--sp-3) * -1); border-radius: var(--r-paper); background: var(--sheet); box-shadow: var(--shadow-sheet); --panel: var(--sheet); }
.finder-bar { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--finder-bar-h); padding: 0 var(--sp-4); border-bottom: 1px solid var(--line); border-radius: var(--r-paper) var(--r-paper) 0 0; background: var(--panel-2); }
.finder-lights { display: flex; flex: none; gap: 8px; }
.finder-lights i { width: var(--finder-light); height: var(--finder-light); border-radius: 50%; background: var(--sashi); box-shadow: inset 0 0 0 1px var(--finder-light-edge); }
.finder-lights i:nth-child(2) { background: color-mix(in srgb, var(--sashi) 55%, var(--panel-2)); }
.finder-lights i:nth-child(3) { background: color-mix(in srgb, var(--sashi) 25%, var(--panel-2)); }
.finder-path { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; font-family: var(--font-pixel); font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--ink-2); }
.finder-path .icon { width: 16px; height: 16px; }
.finder-sep { color: var(--ink-3); }
.finder-body { position: relative; display: grid; padding: var(--sp-5) var(--sp-2); }
.finder-body > * { grid-area: 1 / 1; }
.finder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-1); align-content: start; }

.finder-icon {
  display: grid; justify-items: center; align-content: start; gap: var(--sp-2); width: 100%; min-height: var(--tap); padding: var(--sp-3) var(--sp-1);
  border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink); font: inherit; text-align: center; cursor: pointer;
  transition: background-color var(--t-hover) var(--ease-std);
}
.finder-icon:hover { background: var(--panel-2); }
.finder-glyph { display: grid; place-items: center; width: var(--app-icon); height: var(--app-icon); }
.finder-glyph > .work-icon { box-shadow: var(--shadow-glyph); }
.finder-glyph > .work-icon--edge { box-shadow: 0 0 0 1px var(--line), var(--shadow-glyph); }

.finder-glyph--set .work-icons { --set-icon: calc(var(--app-icon) * 0.55); --set-ring: var(--sheet); position: relative; display: block; width: var(--app-icon); height: var(--app-icon); }
.finder-glyph--set .work-icons .work-icon { position: absolute; width: var(--set-icon); height: var(--set-icon); margin: 0; box-shadow: 0 0 0 1px var(--line), 0 0 0 3px var(--set-ring); transition: box-shadow var(--t-hover) var(--ease-std); }
.finder-glyph--set .work-icons .work-icon:nth-child(1) { top: 0; left: 0; }
.finder-glyph--set .work-icons .work-icon:nth-child(2) { top: 0; right: 0; }
.finder-glyph--set .work-icons .work-icon:nth-child(3) { bottom: 0; left: calc(50% - var(--set-icon) / 2); }
.finder-icon:hover .work-icons { --set-ring: var(--panel-2); }
.finder-name { font-size: var(--fs-sm); font-weight: 700; line-height: var(--lh-tight); }
.finder-info { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-pixel); font-size: var(--fs-xs); letter-spacing: 0.04em; color: var(--ink-3); }

.finder-tag { flex: none; width: var(--finder-tag); height: var(--finder-tag); border: 2px solid var(--mark); border-radius: 50%; }
.finder-status { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-2) var(--sp-4); border-top: 1px solid var(--line); font-family: var(--font-pixel); font-size: var(--fs-xs); letter-spacing: 0.04em; color: var(--ink-3); }

/* Work sheets and their publication marks */
.work { position: relative; display: flex; flex-direction: column; gap: var(--sp-4); }
.work-top { display: flex; align-items: center; gap: var(--sp-4); }
.work-icon { width: var(--app-icon); height: var(--app-icon); flex: none; border-radius: var(--r-app); }
.work-icon--edge { box-shadow: 0 0 0 1px var(--line); }

.work-top--set { flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--sp-2); min-height: var(--app-icon); }
.work-top--set .work-meta { line-height: var(--lh-tight); }
.work-icons { --set-icon: calc(var(--app-icon) * 0.625); display: flex; flex: none; }
.work-icons .work-icon { width: var(--set-icon); height: var(--set-icon); box-shadow: 0 0 0 2px var(--set-ring); }
.work-icons .work-icon + .work-icon { margin-inline-start: calc(var(--set-icon) * -0.22); }
.paper .work-icons { --set-ring: var(--p-bg); }
.work-meta { font-family: var(--font-pixel); font-size: var(--fs-xs); letter-spacing: 0.06em; }
.work :is(h2,h3) { font-size: var(--fs-title); font-weight: 700; line-height: var(--lh-tight); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chips li { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--sp-3); border-radius: var(--r-pill); border: 1px solid currentColor; font-family: var(--font-pixel); font-size: var(--fs-xs); letter-spacing: 0.04em; }
.stamp {
  --stamp-rot: 10deg;
  position: absolute; top: calc(var(--sp-4) * -1); right: var(--sp-4); z-index: 2;
  display: grid; place-items: center; width: var(--stamp-size); height: var(--stamp-size); border-radius: 50%;
  background: var(--paper-white); color: var(--stamp-red); box-shadow: 0 1px 2px #0000001F, 0 4px 10px -6px #00000040;
  transform: rotate(var(--stamp-rot));
}
.stamp--self { --stamp-rot: -8deg; color: var(--stamp-blue); }
.stamp::before, .stamp::after { content: ""; position: absolute; border: 0 solid currentColor; border-radius: 50%; filter: url(#stamp-ring); }
.stamp::before { inset: 3px; border-width: 3px; }
.stamp::after { inset: 9px; border-width: 1px; }
.stamp-ink { display: grid; justify-items: center; margin-top: 1px; filter: url(#stamp-ink); font-weight: 700; font-size: 14px; line-height: 1.2; letter-spacing: 0.04em; text-align: center; }
.stamp-ink small { width: 46px; margin-top: 2px; padding-top: 2px; border-top: 1px solid currentColor; font-family: var(--font-pixel); font-weight: 400; font-size: 10px; line-height: 1.3; letter-spacing: 0.02em; }
.wip-stripes {
  background-color: var(--status-wip-yellow);
  background-image: linear-gradient(-45deg, var(--status-wip-black) 25%, var(--status-wip-yellow) 25% 50%, var(--status-wip-black) 50% 75%, var(--status-wip-yellow) 75%);
  background-size: var(--wip-tile) var(--wip-tile);
}
.work--wip { padding-top: calc(var(--sp-5) + var(--wip-tape-h)); }
.wip-tape {
  position: absolute; z-index: 2; top: calc(var(--wip-tape-h) / -2); left: calc(var(--sp-3) * -1); right: calc(var(--sp-3) * -1);
  display: flex; align-items: center; justify-content: center; height: var(--wip-tape-h);
  box-shadow: var(--shadow-paper); transform: rotate(-3deg);
}
.wip-label { display: inline-flex; align-items: center; gap: var(--sp-2); height: calc(var(--wip-tape-h) - var(--sp-2)); padding: 0 var(--sp-3); background: var(--status-wip-yellow); color: var(--status-wip-black); font-weight: 700; font-size: var(--fs-xs); line-height: 1; white-space: nowrap; }
.wip-label .en { font-family: var(--font-pixel); font-weight: 400; letter-spacing: 0.08em; }
.work-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-5); }
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: var(--tap); padding: 0 var(--sp-5); border-radius: var(--r-pill);
  background: var(--p-ink); color: var(--p-bg); font-weight: 700; text-decoration: none;
  transition: opacity var(--t-hover) var(--ease-std);
}
.btn:hover { opacity: 0.86; }
.btn .icon, .xlink .icon { width: 18px; height: 18px; transition: transform var(--t-hover) var(--ease-std); }
.btn:hover .icon, .xlink:hover .icon { transform: translate(3px, -3px); }

.xlink { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); padding: 0 var(--sp-4) 0 5px; border: 1.5px solid currentColor; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; text-decoration: none; transition: background-color var(--t-hover) var(--ease-std); }
.xlink:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.xlink .icon { width: 16px; height: 16px; }
.xlink-mark { display: inline-grid; place-items: center; flex: none; width: var(--xlink-mark); height: var(--xlink-mark); border-radius: var(--r-pill); background: var(--sns-tile-paper); color: var(--sns-mark-paper); }
.xlink-mark svg { width: 40%; height: 40%; fill: currentColor; }

.store-badge { display: inline-flex; align-items: center; min-height: var(--tap); padding-block: calc(var(--badge-h) / 4); border-radius: var(--r-md); rotate: calc(var(--tilt, 0deg) * -1); }
.store-badge img { width: auto; height: var(--badge-h); }
.store-badge .badge-light { display: var(--badge-light); }
.chips li.chip--logo { gap: 6px; padding-left: 4px; }
.chip-logo { display: inline-grid; place-items: center; flex: none; width: var(--chip-logo); height: var(--chip-logo); border-radius: 5px; background: var(--logo-tile); box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent); }
.chip-logo img { display: block; width: 70%; height: 70%; object-fit: contain; }

/* Posts */
.feed-card {
  display: flex; flex-direction: column; gap: var(--sp-2); width: 100%; height: 100%; padding: var(--sp-3); overflow: hidden;
  border-radius: var(--r-paper); background: var(--paper-white); color: var(--paper-white-ink); box-shadow: var(--shadow-paper);
  text-decoration: none; -webkit-user-drag: none; transition: box-shadow var(--t-hover) var(--ease-std);
}
.feed-card:hover { box-shadow: 0 0 0 3px var(--accent), var(--shadow-paper); }
.feed-card img { -webkit-user-drag: none; pointer-events: none; }
.feed-head { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--feed-mark); font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; }
.feed-mark { display: inline-grid; place-items: center; flex: none; width: var(--feed-mark); height: var(--feed-mark); color: var(--sns-tile-paper); }
.feed-mark svg { width: 100%; height: 100%; fill: currentColor; }
.feed-mark--note { border-radius: var(--r-pill); background: var(--sns-tile-paper); color: var(--sns-mark-paper); }
.feed-mark--note svg { width: 40%; height: 40%; }
.feed-mark--x svg { width: 80%; height: 80%; }
.feed-go { width: 16px; height: 16px; margin-left: auto; transition: transform var(--t-hover) var(--ease-std); }
.feed-card:hover .feed-go { transform: translate(3px, -3px); }
.feed-media { flex: none; width: 100%; height: auto; border-radius: var(--r-md); background: var(--paper-aqua); }
.feed-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; font-size: var(--fs-sm); font-weight: 700; line-height: 1.5; }
.feed-card--instagram .feed-title { -webkit-line-clamp: 2; }

.feed-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--ex-lines, 2); overflow: hidden; flex: none; font-size: var(--fs-xs); line-height: 1.6; color: color-mix(in srgb, var(--paper-white-ink) 74%, var(--paper-white)); }
.feed-excerpt[hidden] { display: none; }
.feed-date { margin-top: auto; font-family: var(--font-pixel); font-size: var(--fs-xs); letter-spacing: 0.04em; }
.feed-x { display: grid; place-items: center; flex: 1; min-height: 0; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper-white-ink) 16%, transparent); }
.feed-x svg { width: 34%; height: auto; aspect-ratio: 1200 / 1227; fill: var(--sns-tile-paper); }

/* Profile directory */
.tree.sheet { padding: var(--sp-2) var(--sp-2) var(--sp-3); font-family: var(--font-pixel); }
.tree-row {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: var(--tap); padding: var(--sp-2) var(--sp-3);
  border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-body); line-height: 1.4; text-align: start; text-decoration: none; cursor: pointer;
  transition: background-color var(--t-hover) var(--ease-std);
}
.tree-file:hover { background: var(--panel-2); }
.tree-row:focus-visible { outline-offset: -2px; }
.tree-caret { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-3); }
.tree-folder { cursor: default; }
.tree-folder .tree-caret { rotate: 90deg; }
.tree-folder-icon { width: 20px; height: 20px; color: var(--sashi-ink); }
.tree-list { position: relative; padding-inline-start: var(--tree-indent); }
.tree-list[hidden] { display: none; }
.tree-list::before { content: ""; position: absolute; left: calc(var(--sp-3) + 7px); top: 0; bottom: var(--sp-2); width: 1px; background: var(--line); }
.tree-file { display: grid; grid-template-columns: var(--tree-mark) minmax(0, 1fr) auto; grid-template-areas: "mark name go" "mark dest go" "mark note go"; column-gap: var(--sp-4); row-gap: 2px; min-height: var(--tree-row); padding-block: var(--sp-3); }
.tree-mark { grid-area: mark; display: grid; place-items: center; width: var(--tree-mark); height: var(--tree-mark); color: var(--sns-tile); }
.tree-mark svg { width: 100%; height: 100%; fill: currentColor; }
.tree-mark--x svg { width: 86%; height: 86%; }
.tree-mark--note { border-radius: var(--r-pill); background: var(--sns-tile); color: var(--sns-mark); }
.tree-mark--note svg { width: 40%; height: 40%; }
.tree-name { grid-area: name; font-size: var(--fs-body); }
.tree-dest { grid-area: dest; display: inline-flex; gap: 6px; min-width: 0; font-size: var(--fs-sm); color: var(--accent); overflow-wrap: anywhere; }
.tree-arrow { color: var(--ink-3); }
.tree-note { grid-area: note; font-size: var(--fs-xs); color: var(--ink-3); text-wrap: pretty; }
.tree-go { grid-area: go; width: 18px; height: 18px; color: var(--ink-3); transition: color var(--t-hover) var(--ease-std), transform var(--t-hover) var(--ease-std); }
.tree-file:hover .tree-name, .tree-file:hover .tree-go { color: var(--accent); }
.tree-file:hover .tree-go { transform: translate(3px, -3px); }
.links li + li { border-top: 1px solid var(--line); }

/* Notes */
.note {
  --note-rot: calc(var(--tilt, 0deg) * var(--note-tilt-k));
  position: relative; padding: calc(var(--sp-5) + var(--sp-2)) var(--sp-4) var(--sp-5); border-radius: 3px 3px 6px 6px;
  background: var(--note-bg); color: var(--ink); box-shadow: var(--shadow-paper); transform: rotate(var(--note-rot));
}
.note--a { --note-bg: var(--note-a); }
.note--b { --note-bg: var(--note-b); }
.note--c { --note-bg: var(--note-c); }
.note::before, .note--c::after { content: ""; position: absolute; pointer-events: none; }
.note--a::before, .note--c::before, .note--c::after {
  width: var(--note-tape-w); height: var(--note-tape-h); top: calc(var(--note-tape-h) / -2);
  background: repeating-linear-gradient(90deg, transparent 0 5px, #FFFFFF35 5px 6px), color-mix(in srgb, var(--sashi) 42%, var(--paper-white));
  opacity: .82; box-shadow: var(--shadow-tape);
  clip-path: polygon(0 4%, 6% 12%, 2% 26%, 5% 40%, 0 56%, 5% 73%, 1% 94%, 22% 97%, 51% 93%, 77% 98%, 100% 94%, 96% 79%, 100% 64%, 96% 46%, 100% 27%, 96% 13%, 100% 2%, 70% 5%, 43% 1%, 20% 6%);
}
.note--a::before { left: calc(50% - var(--note-tape-w) / 2); rotate: -5deg; }
.note--b { transform-origin: 50% 0; }
.note--b::before { width: 18px; height: 18px; top: -9px; left: calc(50% - 9px); border-radius: 50%; border: 1px solid color-mix(in srgb, var(--mark) 72%, var(--ink));
  background: radial-gradient(circle at 31% 26%, #FFFFFFCB 0 10%, transparent 14%), radial-gradient(circle at 40% 35%, var(--mark) 35%, color-mix(in srgb, var(--mark) 76%, #152030) 100%);
  box-shadow: 2px 4px 3px #15203042, 0 1px 0 #FFFFFF55 inset;
}
.note--c::before, .note--c::after { width: 46px; height: 19px; top: -6px; background: repeating-linear-gradient(0deg, transparent 0 4px, #FFFFFF44 4px 5px), color-mix(in srgb, var(--reel-ground) 28%, var(--paper-white)); }
.note--c::before { left: -10px; rotate: -34deg; }
.note--c::after { right: -10px; rotate: 32deg; }
.note .marker { --marker-color: var(--coral); --marker-i: 0; padding-inline: .08em; margin-inline: -.08em; color: inherit; font-weight: 700; background-image: var(--marker-image, var(--marker-default)); background-size: 100% 100%; background-repeat: no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.note--b .marker { --marker-color: var(--shape-sky); }
.note .marker { --marker-default: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22ink%22%3E%3Cstop%20stop-color%3D%22%23EF4C35%22%20stop-opacity%3D%22.40%22/%3E%3Cstop%20offset%3D%22.16%22%20stop-color%3D%22%23EF4C35%22%20stop-opacity%3D%22.34%22/%3E%3Cstop%20offset%3D%22.82%22%20stop-color%3D%22%23EF4C35%22%20stop-opacity%3D%22.29%22/%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23EF4C35%22%20stop-opacity%3D%22.12%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d%3D%22M0%2035Q16%2029%2034%2033T67%2031L99%2027L100%2078Q83%2089%2065%2088T31%2092L1%2094Z%22%20fill%3D%22url%28%23ink%29%22/%3E%3C/svg%3E"); }
.note--b .marker { --marker-default: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22ink%22%3E%3Cstop%20stop-color%3D%22%23069EF6%22%20stop-opacity%3D%22.40%22/%3E%3Cstop%20offset%3D%22.16%22%20stop-color%3D%22%23069EF6%22%20stop-opacity%3D%22.34%22/%3E%3Cstop%20offset%3D%22.82%22%20stop-color%3D%22%23069EF6%22%20stop-opacity%3D%22.29%22/%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23069EF6%22%20stop-opacity%3D%22.12%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d%3D%22M1%2029Q21%2034%2038%2030T72%2034L99%2035L97%2083Q75%2087%2057%2083T20%2090L0%2086Z%22%20fill%3D%22url%28%23ink%29%22/%3E%3C/svg%3E"); }
@media (forced-colors: active) { .note .marker { background: none !important; animation: none !important; text-decoration: underline 2px; text-underline-offset: .15em; } .note::before, .note::after { border: 1px solid CanvasText; } }
.note .doing div { border-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.note .xlink-mark { background: var(--sns-tile); color: var(--sns-mark); }
.note.next { margin-top: 0; }
.note h2 { font-size: var(--fs-body); font-weight: 700; margin-bottom: var(--sp-4); }
.doing div { display: grid; grid-template-columns: 76px 1fr; gap: var(--sp-4); padding: var(--sp-4) 0; border-top: 1px solid var(--line); }
.doing div:last-child { border-bottom: 1px solid var(--line); }
.doing dt { font-weight: 700; }
.doing dt small { display: block; font-family: var(--font-pixel); font-weight: 400; font-size: var(--fs-xs); letter-spacing: 0.04em; color: var(--ink-3); }
.next-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.next-head :is(h2,h3) { margin-bottom: 0; }
.mark-later { display: inline-flex; align-items: center; height: 26px; padding: 0 var(--sp-3); border-radius: var(--r-pill); border: 1.5px solid currentColor; color: var(--stamp-ink); font-size: var(--fs-xs); font-weight: 700; }
.next p + p, .origin p + p { margin-top: var(--sp-3); }
.origin { --tilt: 1.2deg; }
.note--c :is(h2,h3) { font-size: var(--fs-title); line-height: var(--lh-tight); }
.note--c :is(h2,h3) small { display: block; margin-top: var(--sp-1); font-family: var(--font-pixel); font-weight: 400; font-size: var(--fs-xs); letter-spacing: 0.08em; }
.origin p { font-size: var(--fs-sm); line-height: 1.8; }
.origin .xlink { margin-top: var(--sp-3); }

/* Operator and dates */
.operator { --tilt: -1deg; display: grid; justify-items: start; gap: var(--sp-4); max-width: 640px; }
.operator-kicker { font-family: var(--font-pixel); font-size: var(--fs-xs); letter-spacing: 0.06em; }
.operator-name { font-family: var(--font-display); font-weight: var(--name-weight); font-size: var(--fs-name-sm); line-height: 1; }
.op-career { --tl-x: calc(var(--tl-rail) / 2); }

.tl--short { --tl-dot-y: calc(var(--sp-1) + 11px); }
.tl--short .tl-year-label { padding: var(--sp-4) 0 var(--sp-2) var(--tl-rail); font-size: var(--fs-title); }
.tl--short .tl-year:first-child .tl-year-label { padding-top: 0; }
.tl--short .tl-event { gap: 0; padding: var(--sp-1) 0 var(--sp-3) var(--tl-rail); }

.operator-more { justify-self: end; margin-top: var(--sp-2); }
.tl { --tl-x: calc(var(--tl-rail) / 2); }
.tl-year-label { position: relative; padding: var(--sp-6) 0 var(--sp-3) var(--tl-rail); font-family: var(--font-pixel); font-weight: 400; font-size: var(--fs-year); line-height: 1; letter-spacing: 0.02em; }
.tl-year:first-child .tl-year-label { padding-top: 0; }
.tl-event { position: relative; display: grid; gap: var(--sp-1); padding: var(--sp-3) 0 var(--sp-5) var(--tl-rail); }

.tl-event::before, .tl-year:not(:first-child) .tl-year-label::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--tl-x) - var(--tl-line) / 2); width: var(--tl-line);
  background: var(--ink-3); transform-origin: top;
}
.tl-year:first-child .tl-event:first-child::before { top: var(--tl-dot-y); }
.tl-year:last-child .tl-event:last-child::before { bottom: auto; height: var(--tl-dot-y); }

.tl-event::after {
  content: ""; position: absolute; left: calc(var(--tl-x) - var(--tl-ring) / 2); top: calc(var(--tl-dot-y) - var(--tl-ring) / 2);
  width: var(--tl-ring); height: var(--tl-ring); border-radius: 50%; border: 2px solid var(--mark); background: var(--panel);
}
.tl-event--latest::after {
  left: calc(var(--tl-x) - var(--tl-ring-now) / 2); top: calc(var(--tl-dot-y) - var(--tl-ring-now) / 2);
  width: var(--tl-ring-now); height: var(--tl-ring-now); border-width: 3px;
}
.tl-when { font-family: var(--font-pixel); font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-3); letter-spacing: 0.04em; }
.tl-event--latest .tl-when { color: var(--accent); }

.tl-now { display: inline-flex; align-items: center; height: 20px; padding: 0 var(--sp-2); border: 1px solid var(--accent); border-radius: var(--r-pill); color: var(--accent); font-size: var(--fs-xs); line-height: 1; vertical-align: 1px; }
.tl .what { display: block; font-weight: 700; line-height: 1.6; text-wrap: balance; }
.tl .detail { display: block; margin-top: var(--sp-1); font-size: var(--fs-sm); color: var(--ink-2); }

.work .desc strong { --hl: color-mix(in srgb,var(--shape-teal) 32%,transparent); }
.paper--teal .desc strong { --hl: color-mix(in srgb,var(--paper-aqua) 85%,transparent); }
