:root { color-scheme: light; --paper: #f7f6f2; --ink: #353631; --muted: #7a7b73; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body:not(.reading), body:has(dialog[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid #687b67; outline-offset: 6px; }
button img, a > img { width: 18px; height: 18px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 20px; left: 20px; z-index: 20; background: white; padding: 10px; }
#gallery { height: 100svh; display: grid; place-items: center; padding-bottom: 100px; background: radial-gradient(ellipse at 30% 5%, #fffdf9 0, transparent 70%); }
.board { position: fixed; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.board:active { cursor: grabbing; }
.board .slot { position: absolute; top: 0; left: 0; }
.board.moving .slot { will-change: transform; }
.board .frame { --lift: 13px; }
.wall { position: relative; width: min(87vw, calc((100svh - 155px) * .66)); aspect-ratio: .66; }
.wall .slot { position: absolute; }
.wall .slot:nth-child(1) { left: 0; top: 6%; width: 47%; height: 32%; }
.wall .slot:nth-child(2) { left: 57%; top: 0; width: 43%; height: 45%; }
.wall .slot:nth-child(3) { left: 6%; top: 51%; width: 38%; height: 32%; }
.wall .slot:nth-child(4) { left: 55%; top: 60%; width: 45%; height: 35%; }
.slot:hover, .slot:focus-within { z-index: 2; }
.frame { --lift: 7px; --mat-inset: 14px; position: relative; display: block; width: 100%; height: 100%; padding: 9px; border: 0; background: #ddc7a7; box-shadow: 1px 1px 1px #b6a083, 3px 5px 6px #322a251f, 9px 15px 20px #322a251b, 18px 24px 40px #322a250c; user-select: none; transition: filter .25s; animation: bob var(--bob, 5s) ease-in-out var(--delay, 0s) infinite alternate, sway var(--sway, 7s) ease-in-out var(--delay, 0s) infinite alternate; }
.frame:hover, .frame:focus-visible { filter: brightness(1.025); }
@keyframes bob { from { translate: 0 calc(var(--lift) * -1); } to { translate: 0 var(--lift); } }
@keyframes sway { from { rotate: calc(var(--tilt, 1deg) * -1); } to { rotate: var(--tilt, 1deg); } }
body:has(dialog[open]) .frame { animation-play-state: paused; }
.mat { position: relative; display: block; width: 100%; height: 100%; background: #fbfaf6; padding: var(--mat-inset, 14px); box-shadow: inset 0 0 3px #3e312234; container-type: inline-size; }
.art-image { display: block; height: 100%; width: 100%; object-fit: cover; opacity: 0; transition: opacity .9s; }
.art-image[src] { opacity: 1; }
.pages { position: fixed; bottom: 104px; left: 50%; display: flex; transform: translateX(-50%); }
.pages button { border: 0; background: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; }
.pages span { width: 5px; height: 5px; border-radius: 50%; background: #c6c6bd; transition: background .2s, scale .2s; }
.pages [aria-current] span { background: #5f685a; scale: 1.35; }
.dock { position: fixed; z-index: 5; bottom: max(28px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 3px; padding: 5px; background: #fcfbf8ec; border: 1px solid #deded54d; border-radius: 30px; box-shadow: 0 3px 15px #393b2d09; backdrop-filter: blur(12px); }
.dock a, .dock button { border: 0; background: transparent; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; opacity: .55; }
.dock img { width: 17px; height: 17px; }
.dock [aria-current], .dock a:hover, .dock button:hover { background: #eeeee6; opacity: .95; }
.divider { height: 17px; width: 1px; background: #e1e1d8; margin: 0 4px; }
.preview { position: fixed; z-index: 4; top: 0; bottom: 0; right: 0; width: 340px; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 40px; background: var(--paper); border-left: 1px solid #e7e5dc; box-shadow: -12px 0 80px #3336290f; transform: translateX(104%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.preview.open { transform: none; }
.preview:not(.open) { pointer-events: none; }
.preview .thumb { display: none; }
.eyebrow { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.preview h2 { font: 36px/1.06 Georgia, serif; letter-spacing: -.045em; margin: 0 0 10px; font-weight: normal; }
.preview .sub { font-size: 12px; color: var(--muted); margin: 0 0 22px; }
.preview .summary { font-size: 14px; line-height: 1.7; color: #5b5c55; margin: 0 0 22px; }
.preview a { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid #e6e5dd; font-size: 12px; }
.preview a img { width: 14px; height: 14px; }
.journal { width: min(760px, calc(100% - 48px)); margin: 90px auto 160px; }
.journal header { margin-bottom: 70px; }
.journal header > p:last-child { color: var(--muted); max-width: 310px; margin-top: 25px; }
.journal h2, #reader-title { font: 56px/1.07 Georgia, serif; font-weight: normal; letter-spacing: -.055em; margin: 25px 0; }
em { font-weight: normal; color: #737c68; }
.entry { display: grid; grid-template-columns: 105px 1fr 74px 20px; align-items: center; gap: 22px; padding: 25px 0; border-top: 1px solid #deded5; }
.entry:hover h3 { color: #6b775d; }
.entry time { color: var(--muted); font-size: 11px; }
.entry h3 { margin: 0 0 5px; font-size: 16px; font-weight: 450; transition: color .2s; }
.entry p { color: var(--muted); margin: 0; font-size: 12px; }
.thumbnail { width: 74px; height: 65px; display: block; }
.entry-arrow { opacity: .35; width: 15px; }
.endnote { font-family: Georgia, serif; font-style: italic; color: var(--muted); margin-top: 50px; }
dialog { color: var(--ink); background: var(--paper); border: 0; border-left: 1px solid #e7e5dc; max-width: 100%; width: 760px; height: 100%; max-height: 100%; margin: 0 0 0 auto; padding: 75px 60px; overflow-y: auto; box-shadow: -12px 0 80px #3336290f; }
dialog::backdrop { background: #e5e4dc66; backdrop-filter: blur(3px); }
.close { position: absolute; top: 22px; right: 25px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #e0dfd6; border-radius: 50%; background: transparent; }
#reader-title { font-size: 44px; }
.subtitle { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tools li { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid #e6e5dd; border-radius: 13px; background: #fffefa; font-size: 11px; color: #5b5c55; white-space: nowrap; }
.tools img { display: block; height: 14px; width: auto; max-width: 80px; }
.chapter { margin: 40px 0 0; }
.chapter h3 { font: 23px/1.2 Georgia, serif; font-weight: normal; letter-spacing: -.035em; margin: 0 0 14px; }
.chapter .prose p { max-width: 36em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
.stats li { padding: 18px 18px 16px; background: #fffefa; border: 1px solid #e7e5dc; border-radius: 3px; }
.stats strong { display: block; font: 40px/1 Georgia, serif; font-weight: normal; letter-spacing: -.045em; margin-bottom: 9px; }
.stats span { display: block; font-size: 11px; line-height: 1.45; color: var(--muted); }
.media { margin: 36px 0; }
.media .zoom { display: block; width: 100%; padding: 0; border: 1px solid #e7e5dc; background: #fffefa; cursor: zoom-in; }
.media .zoom img { display: block; width: 100%; height: auto; max-height: 480px; object-fit: contain; }
.media video, .media.embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 3px; background: #1c1d1a; }
.media.video.portrait video { width: auto; height: min(560px, 72vh); aspect-ratio: 464 / 832; margin: 0 auto; background: #fffefa; }
.media.photos .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.media.photos .zoom { aspect-ratio: 1; overflow: hidden; border: 0; }
.media.photos .zoom img { width: 100%; height: 100%; max-height: none; object-fit: cover; transition: transform .5s; }
.media.photos .zoom:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .media.photos .grid { grid-template-columns: repeat(2, 1fr); } }
.embed-start { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 3px; overflow: hidden; background: #1c1d1a; }
.embed-start > img, .embed-start .pill { position: absolute; }
.embed-start > img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.embed-start .pill { left: 50%; top: 50%; translate: -50% -50%; }
.pill { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 18px; border: 1px solid #deded5; border-radius: 20px; background: #fcfbf8f2; box-shadow: 0 6px 24px #302e2224; font-size: 12px; color: var(--ink); transition: scale .2s; }
.pill img { width: 14px; height: 14px; }
.pill small { font-size: 11px; color: var(--muted); }
button:hover > .pill { scale: 1.04; }
.deck-stage { position: relative; aspect-ratio: var(--aspect, 16 / 9); overflow: hidden; background: #fffefa; border: 1px solid #e7e5dc; outline-offset: 5px; }
.deck-stage.loading { cursor: progress; }
.deck-poster, .deck-canvas { display: block; width: 100%; height: auto; }
.deck-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.deck-start { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: #f7f6f24d; padding: 0; transition: background .25s; }
.deck-start:hover { background: #f7f6f22b; }
.deck-play { position: absolute; z-index: 2; left: 50%; bottom: 16px; translate: -50% 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 15px; border: 1px solid #deded5; border-radius: 17px; background: #fcfbf8f2; box-shadow: 0 6px 24px #302e2224; font-size: 11px; }
.deck-play img { width: 12px; height: 12px; }
.deck-clips { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.deck-clips video { position: absolute; aspect-ratio: auto; object-fit: fill; border-radius: 0; background: none; pointer-events: auto; }
.deck-video { position: absolute; inset: 0; z-index: 3; background: #111; }
.deck-video video { display: block; width: 100%; height: 100%; border-radius: 0; }
.deck-error { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.deck-bar { display: flex; justify-content: center; align-items: center; gap: 12px; padding-top: 12px; }
.deck-bar button, .deck-bar .expand { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid #e0dfd6; border-radius: 50%; background: transparent; }
.deck-bar button img, .deck-bar .expand img { width: 14px; height: 14px; }
.deck-bar .prev img { scale: -1 1; }
.deck-bar .expand { margin-left: 14px; }
.deck-bar .count { min-width: 56px; text-align: center; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.deck .files { display: inline-flex; gap: 14px; margin-left: 14px; }
.deck .files a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.deck .files img { width: 9px; height: 9px; }
.deck.full { position: fixed; z-index: 30; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin: 0; padding: 22px 22px 16px; background: #1c1d1a; }
.deck.full .deck-stage { flex: none; width: min(100%, calc((100svh - 124px) * var(--ratio, 1.7778))); border: 0; }
.deck:not(.full) .deck-stage { width: min(100%, calc(78svh * var(--ratio, 1.7778))); margin: 0 auto; }
.deck.full .deck-bar button { border-color: #ffffff33; }
.deck.full .deck-bar button img { filter: invert(1); }
.deck.full .count, .deck.full figcaption { color: #b9bab2; }
.deck.full .files a { color: #ecece6; }
.deck.full .files img { filter: invert(1); }
dialog.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: #1c1d1aeb; cursor: zoom-out; animation: none; }
.lightbox::backdrop { background: transparent; backdrop-filter: none; }
.lightbox-track { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-track figure { box-sizing: border-box; height: 100%; margin: 0; padding: 28px; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; scroll-snap-align: start; }
.lightbox-track img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; background: #fffefa; }
.lightbox-count { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; margin: 0; font-size: 11px; color: #fcfbf8a6; font-variant-numeric: tabular-nums; pointer-events: none; }
.lightbox .close, .deck-video .close { background: #fcfbf8; z-index: 4; }
.deck-video .close { top: 12px; right: 12px; width: 34px; height: 34px; }
.formula { margin: 30px 0; }
.formula-box { padding: 24px 18px; background: #fffefa; border: 1px solid #e7e5dc; border-radius: 3px; }
.formula [data-tex] { overflow-x: auto; overflow-y: hidden; text-align: center; font: 12px/1.6 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.formula .katex-display { margin: 0; }
.formula .katex { font-size: 1.5em; color: var(--ink); }
.formula figcaption { text-align: right; margin-left: auto; max-width: 78%; }
.cv { display: flex; align-items: center; gap: 22px; margin: 34px 0 0; padding: 14px; border: 1px solid #e7e5dc; border-radius: 3px; background: #fffefa; transition: border-color .2s; }
.cv:hover { border-color: #cbcbc0; }
.cv img { width: 132px; height: auto; box-shadow: 0 1px 2px #322a2522, 0 8px 18px #322a2514; }
.cv span { font-size: 12px; color: var(--muted); }
.cv strong { display: block; font: 22px/1.2 Georgia, serif; font-weight: normal; color: var(--ink); margin-bottom: 4px; }
figcaption { color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 9px; }
.prose { font-size: 14px; line-height: 1.85; }
.prose p { margin: 0 0 21px; }
.links { display: flex; flex-wrap: wrap; gap: 15px 25px; border-top: 1px solid #deded4; padding-top: 25px; margin-top: 32px; }
.links a { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.links img { width: 14px; height: 14px; }
.no-script { position: fixed; inset: 30%; background: var(--paper); }
@media (max-width: 700px) {
  #gallery { padding-bottom: 110px; touch-action: pan-y pinch-zoom; overflow: hidden; }
  .frame { padding: 5px; --mat-inset: 8px; }
  .preview { top: auto; left: 12px; right: 12px; bottom: 88px; width: auto; height: 56px; background: #fbfaf6; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: 0 16px 0 8px; border: 1px solid #e6e5dd; border-radius: 14px; box-shadow: 0 8px 30px #302e221f; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; cursor: pointer; touch-action: pan-y pinch-zoom; }
  .preview.open { opacity: 1; transform: none; }
  .preview .thumb { display: block; flex: none; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: #eeede6; }
  .preview .thumb img { width: 100%; height: 100%; object-fit: cover; }
  .preview .text { flex: 1; min-width: 0; }
  .preview .eyebrow { font-size: 9px; margin: 0 0 1px; }
  .preview h2 { font-size: 17px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .preview .sub, .preview .summary, .preview .tools { display: none; }
  .preview a { border: 0; padding: 0; font-size: 0; }
  .preview a img { width: 18px; height: 18px; }
  body:has(.preview.open) .pages { visibility: hidden; }
  .pages { bottom: 99px; }
  .pages button { width: 30px; height: 30px; }
  .journal { margin-top: 55px; }
  .journal h2 { font-size: 44px; }
  .journal header { margin-bottom: 48px; }
  .entry { grid-template-columns: 1fr 55px; gap: 4px 18px; padding: 22px 0; }
  .entry time, .entry > span:not(.thumbnail) { grid-column: 1; }
  .entry .thumbnail { grid-column: 2; grid-row: 1 / 3; width: 55px; height: 60px; }
  .entry-arrow { display: none; }
  .entry h3 { font-size: 15px; }
  dialog { margin: auto 0 0; width: 100%; height: calc(100% - 40px); max-height: none; border-left: 0; border-radius: 18px 18px 0 0; padding: 64px 24px 40px; }
  dialog[open] { animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
  .close { top: 14px; right: 14px; }
  .cv img { width: 96px; }
  .stats { grid-template-columns: 1fr; gap: 8px; }
  .stats li { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px; padding: 12px 16px; }
  .stats strong { margin: 0; font-size: 32px; }
  .deck.full { padding: 12px 8px 12px; }
  #reader-title { font-size: 39px; }
}
@media (max-height: 500px) and (min-width: 701px) {
  .dock { left: auto; right: 12px; bottom: 12px; transform: none; }
}
@keyframes rise { from { transform: translateY(60px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .frame { animation: none; } dialog[open] { animation: none; } }
.mark { position: fixed; z-index: 3; top: 26px; left: 30px; max-width: 250px; }
.mark a { font: 18px/1.2 Georgia, serif; letter-spacing: -.03em; }
.mark p { margin: 5px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.mark .hint { font-style: italic; transition: opacity .6s; }
body.met .mark .hint { opacity: 0; }
body.reading .mark { display: none; }
.has { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.has li { display: flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 11px; background: #eeeee6; font-size: 10px; letter-spacing: .04em; color: #5b5c55; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -34px 0 40px; }
.filters button { height: 30px; padding: 0 14px; border: 1px solid #deded5; border-radius: 15px; background: transparent; font-size: 12px; color: var(--muted); transition: background .2s, color .2s; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: #353631; border-color: #353631; color: #fbfaf6; }
.entry time small { display: block; margin-top: 3px; font-size: 10px; letter-spacing: .04em; color: #9a9b92; }
@media (max-width: 700px) {
  .mark { top: 16px; left: 18px; }
  .mark a { font-size: 16px; }
  .mark p:not(.hint) { display: none; }
  .mark .hint { margin-top: 2px; }
  .preview .has { display: none; }
  .filters { margin-top: -24px; }
}
.mark { pointer-events: none; }
.mark a { pointer-events: auto; }
.peek { position: absolute; z-index: 1; inset: var(--mat-inset, 14px); overflow: hidden; background: #fbfaf6; opacity: 0; transition: opacity .35s; pointer-events: none; }
.peek.on { opacity: 1; }
.peek canvas, .peek img { display: block; width: 100%; height: 100%; }
.peek .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 6px; background: linear-gradient(#fbfaf600, #fbfaf6f2 62%); color: #5b5c55; font-size: 9px; line-height: 1.3; text-align: center; }
body.doc { background: #1c1d1a; overflow: hidden; }
.doc-top { position: fixed; z-index: 40; top: 18px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: #b9bab2; pointer-events: none; }
.doc-top a { pointer-events: auto; color: #ecece6; font: 16px/1.2 Georgia, serif; letter-spacing: -.02em; }
.doc .deck.full { padding-top: 56px; }
.doc .deck-bar .expand { display: none; }
.doc-empty { color: #b9bab2; text-align: center; padding: 30vh 24px 0; }
.chart-box svg { display: block; width: 100%; height: auto; background: #fffefa; border: 1px solid #e7e5dc; touch-action: pan-y; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 11px; color: #5b5c55; }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { display: block; width: 14px; height: 3px; border-radius: 2px; }
.legend b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 4.5em; }
.windows { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.windows button { height: 28px; padding: 0 12px; border: 1px solid #deded5; border-radius: 14px; background: transparent; font-size: 11px; color: var(--muted); }
.windows button[aria-pressed="true"] { background: #353631; border-color: #353631; color: #fbfaf6; }
.readout { margin: 8px 0 0; font-size: 12px; color: #5b5c55; }
.fig-box canvas { display: block; width: 100%; height: auto; max-width: 100%; background: #fffefa; border: 1px solid #e7e5dc; touch-action: manipulation; }
.fig-box canvas:only-of-type { image-rendering: auto; }
[data-figure="ring"] canvas { max-width: 340px; margin: 0 auto; }
[data-figure="gyroid"] canvas { max-width: 340px; margin: 0 auto; image-rendering: pixelated; }
.solar-start { position: relative; display: block; width: 100%; padding: 0; border: 1px solid #e7e5dc; background: #fffefa; cursor: pointer; }
.solar-start > img { display: block; width: 100%; height: auto; }
.solar-start .pill { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; white-space: nowrap; }
@media (max-width: 700px) { .solar-start .pill { bottom: 12px; } }
.solar-start:disabled { cursor: progress; }
.solar-stage { position: relative; border: 1px solid #e7e5dc; background: #fffefa; }
.solar-view { position: relative; min-height: 0; overflow: hidden; }
.solar-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity .6s; }
.solar-cover.gone { opacity: 0; }
.fig-box .solar-view canvas { border: 0; touch-action: none; outline: none; cursor: default; }
.solar-view canvas:focus-visible { outline: 2px solid #9a9b92; outline-offset: -2px; }
.solar-stage .solar-controls { gap: 6px; margin: 0; padding: 8px; border-top: 1px solid #e7e5dc; }
.solar-stage .solar-controls button { height: 32px; }
.solar-controls button[aria-pressed="true"] { color: #233d60; background: #e8eff8; border-color: #a7bad4; }
.solar-controls [data-a="full"] { margin-left: auto; }
.solar-stage.is-fullscreen { display: grid; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; border: 0; }
.solar-stage.is-fullscreen .solar-controls { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.solar-stage::backdrop { background: #fffefa; }
dialog.solar-expanded { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; animation: none; }
@media (max-width: 520px) {
  .solar-stage .solar-controls { gap: 4px; padding-inline: 6px; }
  .solar-stage .solar-controls button { height: 40px; padding: 0 6px; }
}
.solar-grip { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 12px; background: #fcfbf8f2; box-shadow: 0 4px 14px #302e2229; font-size: 10.5px; color: var(--ink); white-space: nowrap; pointer-events: none; translate: -50% -50%; transition: opacity .5s; }
.solar-grip img { width: 12px; height: 12px; }
.solar-grip b { font-weight: 400; }
.solar-grip::before { content: ''; position: absolute; inset: -4px; border-radius: 16px; border: 1.5px solid #35363173; opacity: 0; animation: grip 2.4s ease-out infinite; }
.solar-grip.off, .solar-grip.gone { opacity: 0; }
@keyframes grip { 0% { opacity: .95; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .solar-grip::before { animation: none; } }
.fig-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; font-size: 12px; color: #5b5c55; }
.fig-controls label { display: flex; align-items: center; gap: 8px; }
.fig-controls label b { font-weight: 500; color: var(--ink); min-width: 2.2em; font-variant-numeric: tabular-nums; }
.fig-controls input[type="range"] { width: 150px; accent-color: #353631; }
.fig-controls button { height: 28px; padding: 0 14px; border: 1px solid #deded5; border-radius: 14px; background: transparent; font-size: 11px; color: var(--ink); }
.fig-controls button:hover { background: #eeeee6; }
.share { margin: 22px 0 0; }
.share button { height: 30px; padding: 0 14px; border: 1px solid #deded5; border-radius: 15px; background: transparent; font-size: 11px; color: var(--muted); }
.share button:hover { color: var(--ink); background: #eeeee6; }
.dock [hidden] { display: none; }
.post blockquote { margin: 0 0 1em; padding-left: 16px; border-left: 2px solid #e3e1d8; color: var(--muted); font-style: italic; }
.post img { max-width: 100%; border-radius: 3px; }
.notes-box { max-height: 460px; overflow: auto; padding: 22px 26px; background: #fffefa; border: 1px solid #e7e5dc; border-radius: 3px; font-size: 14px; }
.notes-box h3, .notes-box h4 { font: 19px/1.25 Georgia, serif; letter-spacing: -.03em; margin: 22px 0 8px; }
.notes-box h4 { font-size: 16px; }
.notes-box .tex { margin: 10px 0; overflow-x: auto; }
.notes-box li.sub { margin-left: 18px; list-style: circle; }
.notes figcaption a { display: inline-flex; gap: 4px; align-items: center; margin-left: 6px; }
.notes figcaption a img { width: 10px; }
