@import url('./tokens.css');
@import url('./fonts.css');

*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:calc(var(--header-height) + 32px); background:var(--cloud); }
body { margin:0; color:var(--body); background:var(--cloud); font-family:var(--font-body); font-size:18px; line-height:1.8; -webkit-font-smoothing:antialiased; }
body.modal-open { overflow:hidden; }
button,input,select,textarea { font:inherit; }
button,a,input { -webkit-tap-highlight-color:transparent; }
button { color:inherit; }
button:not(:disabled),summary { cursor:pointer; }
button:disabled,input:disabled { cursor:default; }
a { color:inherit; text-decoration:none; }
a,button,input { touch-action:manipulation; }
button { border:0; }
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline:3px solid var(--blue); outline-offset:5px; }
main[tabindex='-1']:focus { outline:none; }
::selection { background:var(--accent); color:var(--night); }
img,svg,canvas { display:block; }
img { max-width:100%; height:auto; }
svg { flex-shrink:0; }
button svg { width:22px; height:22px; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { color:var(--heading); font-weight:700; line-height:1.35; letter-spacing:-.035em; text-wrap:pretty; }
h1 { font-size:52px; }
h2 { font-size:36px; }
h3 { font-size:26px; }
p { margin-bottom:1.2em; }
ul { padding-left:1.5em; }
[hidden] { display:none!important; }
.sr-only,.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.container { width:calc(100% - var(--gutter)*2); max-width:var(--content-width); margin-inline:auto; }
.section { margin-block:var(--section-space); }
.section-heading { display:flex; justify-content:space-between; align-items:baseline; gap:24px; margin-bottom:36px; }
.section-heading h2 { margin-bottom:0; }
.section-heading>a { flex-shrink:0; }
.section-intro { max-width:700px; color:var(--muted); margin-top:-16px; margin-bottom:42px; }
.page-heading { padding-top:72px; padding-bottom:48px; }
.page-heading h1 { margin-bottom:16px; }
.page-heading p { margin:0; color:var(--muted); }
.button,.copy-button { display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:10px 24px; border-radius:var(--radius-button); font-size:18px; font-weight:600; line-height:1.5; gap:12px; border:1px solid transparent; transition:background var(--motion-fast),border-color var(--motion-fast),color var(--motion-fast),transform var(--motion-fast) var(--ease); }
.button-primary { color:var(--night); background:var(--blue); }
.button-secondary,.copy-button { color:var(--ink); background:transparent; border-color:var(--line); }
.button:hover,.copy-button:hover { transform:translateY(-2px); }
.button-primary:hover { background:var(--heading); }
.button-secondary:hover,.copy-button:hover { background:var(--surface); border-color:var(--accent); }
.text-link,.back-link { min-height:44px; display:inline-flex; align-items:center; color:var(--blue); font-size:18px; font-weight:600; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:6px; }
.text-link:hover,.back-link:hover { text-decoration-thickness:2px; }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:16px 20px; }
.meta { display:flex; flex-wrap:wrap; gap:8px 20px; align-items:center; font-size:16px; color:var(--muted); }
.category { font-size:16px; font-weight:600; color:var(--blue); }
a.category { min-height:44px; display:inline-flex; align-items:center; }
.empty-state { padding:64px 24px; border-block:1px solid var(--line); text-align:center; }
.empty-state h2 { font-size:28px; }
.status { font-size:16px; color:var(--blue); margin:12px 0 0; min-height:0; }
.status:empty { display:none; }
.skip-link { position:fixed; top:8px; left:16px; transform:translateY(-160%); z-index:100; background:var(--surface); color:var(--blue); padding:8px 18px; border-radius:8px; }
.skip-link:focus { transform:translateY(0); }

/* The navigation is quiet enough to leave the island in charge. */
.site-header { position:sticky; top:0; z-index:30; height:var(--header-height); background:var(--cloud); border-bottom:1px solid transparent; transition:border-color 200ms,background 200ms; }
.site-header.is-scrolled { border-bottom-color:var(--line); }
.nav-shell { height:100%; display:flex; align-items:center; gap:40px; }
.brand { display:inline-flex; align-items:center; gap:10px; min-height:44px; font-size:25px; font-weight:750; letter-spacing:-.04em; margin-right:auto; white-space:nowrap; }
.brand svg { width:34px; height:34px; color:var(--blue); }
.desktop-nav { position:relative; height:100%; display:flex; align-items:center; gap:34px; }
.desktop-nav a { position:relative; display:flex; align-items:center; height:100%; font-size:17px; font-weight:600; }
.desktop-nav a::after { content:''; position:absolute; height:2px; left:0; right:0; bottom:15px; background:var(--blue); transform:scaleX(0); transform-origin:center; transition:transform 200ms var(--ease); }
.desktop-nav a[aria-current='page'] { color:var(--blue); }
.desktop-nav a[aria-current='page']::after,.desktop-nav a:hover::after { transform:scaleX(1); }
.desktop-nav.nav-motion-ready a::after { display:none; }
.desktop-nav [data-motion='nav-indicator'] { position:absolute; left:0; bottom:15px; height:2px; background:var(--blue); pointer-events:none; transition:transform 200ms var(--ease),width 200ms var(--ease); }
.nav-actions { display:flex; gap:12px; align-items:center; }
.icon-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; gap:8px; padding:7px 6px; background:transparent; border-radius:8px; font-size:16px; }
.icon-button:hover { background:var(--surface); }
[data-ui='menu-trigger'] { display:none; }
.site-footer { margin-top:var(--section-space); border-top:1px solid var(--line); }
.footer-inner { display:flex; justify-content:space-between; gap:32px; padding-block:48px 54px; }
.footer-brand { color:var(--muted); }
.footer-brand .brand { color:var(--ink); }
.footer-brand p { font-size:16px; margin:6px 0 0; }
.footer-nav { display:flex; flex-wrap:wrap; align-content:flex-start; gap:8px 30px; padding-top:7px; }
.footer-nav a { display:inline-flex; align-items:center; min-height:44px; font-size:16px; }
.footer-nav a:hover { color:var(--blue); }
.back-to-top { position:fixed; right:24px; bottom:24px; z-index:20; padding:10px 18px; min-height:44px; border:1px solid var(--line); background:var(--cloud); color:var(--ink); border-radius:12px; box-shadow:0 8px 24px var(--shadow); font-size:16px; display:flex; gap:8px; align-items:center; }

/* A spacious two-part opening: words on the shore, an island beyond it. */
.hero { display:grid; grid-template-columns:44% 56%; align-items:center; min-height:630px; padding-block:46px 40px; position:relative; isolation:isolate; }
.hero-copy { position:relative; z-index:2; }
.hero-heading { font-size:clamp(48px,4.45vw,64px); line-height:1.18; font-weight:800; letter-spacing:-.045em; margin-bottom:30px; }
.hero-heading span { display:block; white-space:nowrap; }
.hero-intro { max-width:465px; color:var(--muted); margin-bottom:32px; padding-right:20px; line-height:1.9; }
.hero-visual { position:relative; margin-left:-30px; margin-right:-48px; min-width:0; height:558px; background:var(--surface); mask-image:linear-gradient(to right,transparent,#000 10%,#000 92%,transparent); }
.hero-visual>picture { display:block; width:100%; height:100%; }
.hero-art { width:100%; height:100%; object-fit:cover; object-position:65% center; transform:translate(var(--pointer-x,0px),var(--pointer-y,0px)); }
.hero-orbit { position:absolute; inset:0; width:100%; height:100%; opacity:.48; pointer-events:none; }
[data-motion='hero-particles'] { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.page-home .hero+.section { margin-top:64px; }
.latest-grid { display:grid; grid-template-columns:1.08fr 1fr; gap:0 56px; }
.article-card { min-width:0; }
.article-card.featured { grid-row:span 2; }
.article-image { display:block; overflow:hidden; border-radius:var(--radius-image); background:var(--surface); }
.article-image img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.article-card-copy h3 { margin:8px 0 14px; }
.article-card-copy h3 a:hover { color:var(--blue); }
.article-card .excerpt { color:var(--muted); font-size:17px; margin:0; }
.article-card.featured .article-card-copy { padding-top:16px; }
.article-card.featured h3 { font-size:30px; }
.article-card.compact { display:grid; grid-template-columns:38% 1fr; align-items:start; gap:24px; padding-block:8px 26px; }
.article-card.compact+.article-card.compact { border-top:1px solid var(--line); padding-top:30px; padding-bottom:0; }
.article-card.compact .article-image img { aspect-ratio:4/5; }
.article-card.compact h3 { font-size:24px; margin-top:8px; }
.article-card.compact .meta { gap:0 12px; }
.article-card.compact .excerpt { font-size:16px; line-height:1.8; }
.creation-list { display:flex; flex-direction:column; gap:64px; }
.creation-row { display:grid; grid-template-columns:58% 1fr; align-items:center; gap:64px; }
.creation-image { display:block; border-radius:var(--radius-image); overflow:hidden; background:var(--surface); }
.creation-image img { width:100%; aspect-ratio:16/10; object-fit:cover; transition:transform 450ms var(--ease); }
.creation-row:nth-child(even) { grid-template-columns:1fr 58%; }
.creation-row:nth-child(even) .creation-image { grid-column:2; grid-row:1; }
.creation-row:nth-child(even) .creation-copy { grid-column:1; grid-row:1; }
.creation-row:nth-child(3) .creation-image img { aspect-ratio:2/1; }
.creation-copy .category { margin-bottom:12px; }
.creation-copy h2,.creation-copy h3 { font-size:32px; margin-bottom:20px; }
.creation-copy>p:not(.category) { color:var(--muted); }
.creation-copy .button { margin-top:4px; }
.roaming-section { display:grid; grid-template-columns:1.12fr 1fr; align-items:center; gap:64px; }
.roaming-image { overflow:hidden; border-radius:var(--radius-image); }
.roaming-image img { width:100%; aspect-ratio:1.2; object-fit:cover; }
.roaming-copy>p { color:var(--muted); }
.roaming-copy .actions { gap:14px 22px; }
.roaming-copy .actions .button { margin-right:100%; white-space:nowrap; }
.author-section { display:flex; align-items:center; max-width:920px; gap:56px; padding-block:16px; }
.avatar { width:240px; aspect-ratio:1; object-fit:cover; border-radius:50%; flex-shrink:0; background:var(--surface); }
.author-copy h2 { margin-bottom:20px; }
.author-copy>p { color:var(--muted); }

/* Search is a reading tool, never a second dashboard. */
.article-filters { display:block; }
.article-filters>label,.search-form>label,.music-search>label { display:block; margin-bottom:10px; font-size:16px; font-weight:600; }
.search-field { display:flex; gap:12px; max-width:720px; }
.search-input,.search-field input,.music-search input { min-height:54px; padding:12px 16px; width:100%; min-width:0; border:1px solid var(--line); color:var(--ink); background:var(--surface); border-radius:12px; font-size:17px; outline-offset:3px; }
input::placeholder { color:var(--muted); opacity:1; }
.search-field button { flex-shrink:0; }
.category-filters { display:flex; flex-wrap:wrap; gap:8px 12px; margin-top:28px; padding-bottom:30px; border-bottom:1px solid var(--line); }
.category-filters>a,.category-filters>button { min-height:44px; display:inline-flex; align-items:center; padding:7px 18px; border-radius:10px; font-size:17px; background:transparent; }
.category-filters>[aria-current='true'],.category-filters>.is-active { color:var(--night); background:var(--blue); }
.category-filters>a:not([aria-current='true']):hover { background:var(--surface); }
.results-count { font-size:16px; color:var(--muted); margin:24px 0 0; }
.article-row { display:grid; grid-template-columns:32% 1fr; gap:40px; padding-block:36px; border-bottom:1px solid var(--line); align-items:center; }
.article-row .article-image img { aspect-ratio:16/10; }
.article-row .article-card-copy { max-width:740px; }
.article-row .excerpt { margin-bottom:0; color:var(--muted); }
.article-row h2,.article-row h3 { font-size:28px; margin:10px 0 14px; }
.article-title:hover { color:var(--blue); }
.article-row .text-link { font-size:16px; margin-top:10px; }
dialog { color:var(--body); background:var(--surface); border:0; padding:0; overflow:auto; }
dialog::backdrop { background:var(--backdrop); }
.search-dialog { width:min(720px,calc(100% - 40px)); max-height:calc(100dvh - 80px); margin:80px auto auto; border-radius:20px; box-shadow:0 32px 100px var(--shadow); }
.search-panel { padding:28px 32px 32px; }
.dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.dialog-heading h2 { font-size:28px; margin:0; }
.search-results { margin-top:20px; }
.search-results>h3 { font-size:18px; margin:24px 0 4px; }
.search-result { display:block; padding:16px 8px; border-bottom:1px solid var(--line); border-radius:4px; }
.search-result:hover { background:var(--surface); }
.search-result h3 { font-size:21px; margin:6px 0; }
.search-result p { font-size:16px; margin:0; color:var(--muted); }
.search-panel>.text-link { margin-top:22px; }
.search-form>h3 { margin:24px 0 6px; font-size:18px; }
.search-form>.button { margin-top:24px; }
.mobile-menu { width:100%; max-width:none; max-height:calc(100dvh - var(--header-height)); margin:var(--header-height) 0 0; padding:24px var(--gutter) 30px; border-radius:0 0 20px 20px; }
.mobile-menu nav { display:flex; flex-direction:column; }
.mobile-menu nav a { font-size:21px; min-height:56px; display:flex; align-items:center; padding:6px 12px; border-radius:8px; }
.mobile-menu nav a[aria-current='page'] { color:var(--blue); background:var(--surface); }
.mobile-menu>.icon-button { margin-left:auto; margin-bottom:12px; display:flex; }
dialog[open] { animation:dialog-in 180ms var(--ease) both; }
dialog[open]::backdrop { animation:backdrop-in 180ms var(--ease) both; }
dialog.is-closing { animation:dialog-out 140ms ease both; }
dialog.is-closing::backdrop { animation:backdrop-out 140ms ease both; }
@keyframes dialog-in { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
@keyframes dialog-out { to { opacity:0; transform:translateY(-6px); } }
@keyframes backdrop-in { from { opacity:0; } to { opacity:1; } }
@keyframes backdrop-out { to { opacity:0; } }

/* Long-form text keeps the same open horizon but a narrower reading measure. */
.article-detail,.project-detail { padding-top:38px; }
.back-link { margin-bottom:28px; font-size:16px; }
.detail-heading { max-width:1000px; margin-bottom:36px; }
.detail-heading h1 { margin:16px 0 20px; font-size:48px; line-height:1.4; }
.detail-heading>p { max-width:760px; color:var(--muted); font-size:20px; margin-bottom:0; }
.detail-cover { width:100%; aspect-ratio:2.15; object-fit:cover; border-radius:var(--radius-image); background:var(--surface); }
.reading-layout { display:grid; grid-template-columns:minmax(0,720px) minmax(180px,1fr); gap:88px; max-width:1080px; margin:64px auto 0; align-items:start; }
.prose { width:100%; max-width:var(--reading-width); line-height:1.95; overflow-wrap:break-word; }
.prose h2 { font-size:28px; line-height:1.5; margin:54px 0 22px; scroll-margin-top:calc(var(--header-height) + 32px); }
.prose>h2:first-child,.prose>section:first-child>h2 { margin-top:0; }
.prose p { margin:0 0 1.5em; }
.prose blockquote { margin:22px 0; border-left:3px solid var(--teal); padding:10px 0 10px 26px; color:var(--sea); font-size:21px; line-height:1.9; }
.prose blockquote p { margin:0; }
.toc { position:sticky; top:calc(var(--header-height) + 32px); font-size:16px; }
.toc details { border-left:1px solid var(--line); padding-left:24px; }
.toc summary { font-size:18px; font-weight:600; margin-bottom:16px; list-style:none; cursor:default; }
.toc summary::-webkit-details-marker { display:none; }
.toc nav { display:flex; flex-direction:column; gap:4px; }
.toc a { min-height:44px; display:flex; align-items:center; color:var(--muted); line-height:1.5; padding:8px 0; }
.toc a.is-active,.toc a[aria-current='true'],.toc a[aria-current='location'] { color:var(--blue); font-weight:600; }
.article-tools { max-width:1080px; margin:36px auto 54px; padding-top:24px; }
.copy-fallback { margin-top:16px; }
.copy-fallback input { display:block; width:100%; min-height:48px; padding:8px 12px; border:1px solid var(--line); border-radius:8px; margin-bottom:12px; background:var(--surface); font-size:16px; }
.article-pagination { display:grid; grid-template-columns:1fr 1fr; gap:40px; padding-block:36px; border-top:1px solid var(--line); }
.article-pagination>a { display:block; }
.article-pagination p { font-size:16px; color:var(--muted); margin-bottom:8px; }
.article-pagination h3 { font-size:24px; margin:0; }
.article-pagination a:hover h3 { color:var(--blue); }
.reading-progress { position:fixed; top:var(--header-height); left:0; height:3px; width:100%; z-index:35; pointer-events:none; }
.reading-progress span { display:block; width:100%; height:100%; background:var(--blue); transform:scaleX(0); transform-origin:left center; }
.project-prose { margin:64px auto 0; }
.related-links { max-width:var(--reading-width); display:flex; flex-wrap:wrap; gap:20px 32px; border-top:1px solid var(--line); margin:48px auto 0; padding-top:28px; }

/* A person and their ideas, rather than a résumé. */
.about-hero { display:grid; grid-template-columns:minmax(0,1fr) 32%; gap:88px; align-items:start; padding-top:80px; }
.about-copy h1 { margin-bottom:16px; }
.identity { font-size:19px; color:var(--muted); margin-bottom:36px; }
.about-hero>.avatar { width:100%; max-width:350px; margin-top:12px; }
.about-body { margin-top:6px; }
.interests-section { margin-top:72px; }
.interest-list { display:grid; grid-template-columns:1fr 1fr; gap:0 56px; }
.interest-list>a { display:flex; align-items:center; min-height:88px; font-size:24px; padding-block:20px; border-bottom:1px solid var(--line); }
.interest-list>a:hover { color:var(--blue); }
.contact-section { margin-top:var(--section-space); padding-block:78px; background:var(--surface); color:var(--body); scroll-margin-top:var(--header-height); }
.contact-inner { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.contact-copy h2 { margin-bottom:20px; }
.contact-wave { grid-column:1/-1; width:130px; height:32px; margin-top:-50px; }
.contact-invite { color:var(--body); font-size:18px; margin-bottom:0; }
.account-text { font-size:24px; line-height:1.75; margin-bottom:24px; font-weight:600; }
.account-id { display:inline-block; font-variant-numeric:tabular-nums; white-space:nowrap; user-select:text; }
.contact-section button { background:var(--accent); color:var(--night); border-color:var(--accent); }
.contact-section button:hover { background:var(--heading); }
.contact-section .status { color:var(--teal); }
.contact-section :focus-visible { outline-color:var(--teal); }
.closing-section { margin-block:var(--section-space); }
.closing-section h2 { margin-bottom:28px; }

/* The same roaming world, after the light has turned into stars. */
body.page-music { background:var(--night); color:var(--starlight); }
.page-music .site-header { background:var(--night); }
.page-music .site-header.is-scrolled { border-bottom-color:var(--line); }
.page-music .brand svg { color:var(--galaxy); }
.page-music .desktop-nav a[aria-current='page'] { color:var(--starlight); }
.page-music .desktop-nav a::after { background:var(--accent); }
.page-music .desktop-nav [data-motion='nav-indicator'] { background:var(--accent); }
.page-music .icon-button:hover { background:var(--surface); }
.page-music .site-footer { border-color:var(--line); }
.page-music .footer-brand,.page-music .footer-brand .brand { color:var(--starlight); }
.page-music .footer-brand p { color:var(--muted); }
.page-music .footer-nav a:hover { color:var(--stardust); }
.page-music :focus-visible { outline-color:var(--stardust); }
.page-music dialog :focus-visible { outline-color:var(--blue); }
.page-music .search-dialog,.page-music .mobile-menu { color:var(--ink); }
.page-music .search-dialog .icon-button:hover,.page-music .mobile-menu .icon-button:hover { background:var(--surface); }
.music-heading { padding-top:54px; padding-bottom:24px; position:relative; z-index:2; }
.music-heading h1 { font-size:56px; margin-bottom:12px; }
.music-heading p { font-size:18px; color:var(--body); margin-bottom:0; }
.music-scene { position:relative; overflow:hidden; border-radius:24px; isolation:isolate; }
.music-scene picture { display:block; }
.music-art { width:100%; aspect-ratio:2/1; object-fit:cover; }
.shooting-star { position:absolute; top:18%; left:54%; width:120px; height:2px; background:linear-gradient(90deg,transparent,var(--starlight)); transform:rotate(27deg); opacity:0; border-radius:50%; pointer-events:none; }
.meadow-grass { position:absolute; inset:auto 0 0; height:15%; pointer-events:none; transform-origin:50% 100%; opacity:.22; background:repeating-linear-gradient(78deg,transparent 0 24px,var(--moon-grass) 25px,transparent 27px 46px); clip-path:polygon(0 30%,6% 83%,10% 52%,16% 92%,22% 47%,30% 89%,35% 38%,43% 95%,48% 46%,56% 83%,62% 58%,70% 94%,77% 36%,84% 87%,91% 60%,100% 12%,100% 100%,0 100%); }
.music-player { margin-top:24px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:30px; padding:22px 28px; border:1px solid var(--line); border-radius:16px; background:var(--surface); min-height:98px; }
.now-playing p { margin:0; font-size:18px; }
.now-playing .artist { font-size:16px; color:var(--muted); }
.player-controls { display:flex; align-items:center; justify-content:center; gap:12px; }
.player-controls button { width:48px; height:48px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:transparent; border:1px solid var(--line); color:var(--starlight); }
.player-controls button[data-ui='play'],.player-controls button[data-ui='music-play'],.player-controls button:nth-child(2) { width:52px; height:52px; background:var(--starlight); color:var(--night); }
.player-controls button:disabled { opacity:.46; }
.player-controls button:not(:disabled):hover { border-color:var(--stardust); }
.player-progress { display:flex; flex-direction:column; gap:6px; }
.player-progress input { width:100%; min-width:0; height:24px; accent-color:var(--stardust); cursor:pointer; }
.player-progress input:disabled { opacity:.5; cursor:default; }
.time-display { display:flex; gap:8px; justify-content:space-between; font-size:16px; font-variant-numeric:tabular-nums; }
.playlist-section { padding-top:58px; }
.playlist-section h2 { font-size:28px; }
.playlist-empty { color:var(--body); padding-block:16px 30px; border-bottom:1px solid var(--line); }
.track-list { list-style:none; padding:0; margin:0; }
.track-list li { border-bottom:1px solid var(--line); }
.track-list button { width:100%; text-align:left; padding:18px 12px; background:transparent; color:var(--starlight); min-height:60px; }
.track-list button[aria-current='true'],.track-list button.is-active { color:var(--stardust); }
.track-list button:hover { background:var(--surface); }
.music-search { max-width:640px; margin-bottom:24px; }
.not-found { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; min-height:65vh; padding-top:64px; }
.not-found h1 { font-size:46px; }
.not-found p { color:var(--muted); }
.not-found>img { width:100%; aspect-ratio:1; object-fit:cover; object-position:65% center; border-radius:50% 50% 24px 24px; }

@media (hover:hover) and (pointer:fine) {
  .creation-image:hover img { transform:scale(1.025); }
}
@media (min-width:1600px) {
  .hero-visual { margin-right:-100px; }
}
@media (min-width:1100px) and (max-width:1199px) {
  .hero-heading { font-size:48px; }
  .hero-visual { margin-left:-18px; margin-right:-30px; }
  .hero-intro { font-size:17px; }
}
@media (min-width:900px) {
  .page-music main { position:relative; padding-top:36px; }
  .music-heading { position:absolute; top:68px; left:50%; transform:translateX(-50%); padding:0 36px; pointer-events:none; }
  .music-heading h1,.music-heading p { max-width:640px; text-shadow:0 2px 14px var(--night); }
  .music-scene .music-art { max-height:none; aspect-ratio:2/1; }
}
@media (max-width:1099px) {
  .nav-shell { gap:24px; }
  .desktop-nav { gap:26px; }
  .hero { grid-template-columns:1fr; padding-top:52px; min-height:0; gap:24px; }
  .hero-heading { font-size:58px; line-height:1.22; margin-bottom:26px; }
  .hero-intro { max-width:650px; padding-right:0; margin-bottom:28px; }
  .hero-visual { margin:0; height:auto; aspect-ratio:16/9; width:100%; mask-image:none; border-radius:24px; overflow:hidden; }
  .hero-art { height:100%; object-position:65% center; }
  .latest-grid { gap:0 32px; }
  .article-card.compact { grid-template-columns:1fr; gap:16px; }
  .article-card.compact .article-image { display:none; }
  .article-card.featured .article-image img { aspect-ratio:4/3; }
  .creation-row { gap:36px; grid-template-columns:55% 1fr; }
  .creation-row:nth-child(even) { grid-template-columns:1fr 55%; }
  .creation-copy h2,.creation-copy h3 { font-size:28px; }
  .roaming-section { gap:36px; }
  .roaming-copy h2 { font-size:32px; }
  .reading-layout { gap:44px; grid-template-columns:minmax(0,1fr) 210px; }
  .about-hero { gap:48px; grid-template-columns:minmax(0,1fr) 30%; }
  .about-copy h1 { font-size:46px; }
  .contact-inner { gap:40px; }
  .account-text { font-size:22px; }
  .music-player { gap:20px; grid-template-columns:1fr auto; }
  .player-progress { grid-column:1/-1; }
}
@media (max-width:799px) {
  .desktop-nav { display:none; }
  [data-ui='menu-trigger'] { display:inline-flex; }
  .nav-shell { gap:16px; }
  .nav-actions { gap:12px; }
  .section { margin-block:80px; }
  .section-heading h2 { font-size:30px; }
  .page-heading { padding-top:48px; padding-bottom:36px; }
  h1 { font-size:44px; }
  .creation-row,.creation-row:nth-child(even) { grid-template-columns:1fr; gap:24px; }
  .creation-row:nth-child(even) .creation-image,.creation-row:nth-child(even) .creation-copy { grid-column:auto; grid-row:auto; }
  .creation-list { gap:56px; }
  .creation-copy { max-width:630px; }
  .creation-copy h2,.creation-copy h3 { font-size:30px; }
  .roaming-section { grid-template-columns:1fr; gap:28px; }
  .roaming-image img { aspect-ratio:16/10; }
  .roaming-copy .actions .button { margin-right:0; }
  .author-section { gap:32px; }
  .author-section .avatar { width:180px; }
  .article-row { grid-template-columns:34% 1fr; gap:26px; }
  .article-row h2,.article-row h3 { font-size:24px; }
  .article-row .article-image img { aspect-ratio:4/5; }
  .reading-layout { grid-template-columns:1fr; display:flex; flex-direction:column; gap:30px; margin-top:36px; }
  .reading-layout .prose { order:2; }
  .toc { position:static; width:100%; order:1; }
  .toc details { border:1px solid var(--line); padding:0 18px; border-radius:12px; }
  .toc summary { min-height:54px; display:flex; align-items:center; cursor:pointer; margin-bottom:0; }
  .toc summary::after { content:'+'; margin-left:auto; font-size:24px; font-weight:400; }
  .toc details[open] summary::after { content:'−'; }
  .toc nav { padding-bottom:14px; }
  .detail-heading h1 { font-size:40px; }
  .detail-cover { aspect-ratio:16/10; }
  .article-pagination { gap:28px; }
  .article-pagination h3 { font-size:21px; }
  .about-hero { padding-top:56px; gap:32px; }
  .about-copy h1 { font-size:40px; }
  .about-hero>.avatar { margin-top:12px; }
  .about-copy .prose { grid-column:1/-1; }
  .interest-list { gap:0 28px; }
  .interest-list>a { font-size:21px; }
  .contact-inner { grid-template-columns:1fr; }
  .contact-section { padding-block:56px; }
  .contact-copy,.contact-account { display:contents; }
  .contact-inner { gap:0; }
  .contact-copy h2 { order:1; margin-bottom:24px; }
  .account-text { order:2; margin-bottom:24px; }
  .contact-invite { order:3; margin-bottom:28px; }
  .contact-account button { order:4; justify-self:start; }
  .contact-account .status { order:5; }
  .contact-wave { order:6; margin-top:28px; }
  .music-heading h1 { font-size:46px; }
  .music-art { aspect-ratio:4/5; }
  .music-player { position:fixed; bottom:0; left:0; width:100%; max-width:none; margin:0; z-index:25; border-radius:16px 16px 0 0; gap:8px 16px; padding:14px var(--gutter) calc(12px + env(safe-area-inset-bottom)); grid-template-columns:1fr auto; }
  .now-playing p { font-size:16px; }
  .player-controls { gap:8px; }
  .player-controls button { width:44px; height:44px; }
  .player-controls button:nth-child(2) { width:46px; height:46px; }
  .player-progress { flex-direction:row; align-items:center; gap:12px; }
  .player-progress input { flex:1; }
  .time-display { flex-shrink:0; gap:10px; }
  .page-music { padding-bottom:140px; }
  .page-music .back-to-top { bottom:160px; }
  .playlist-section { padding-top:42px; }
  .not-found { grid-template-columns:1fr; gap:36px; }
  .not-found>img { aspect-ratio:16/9; border-radius:24px; }
}
@media (max-width:599px) {
  body { font-size:17px; }
  h1 { font-size:34px; }
  h2 { font-size:28px; }
  h3 { font-size:24px; }
  .brand { gap:7px; font-size:23px; }
  .brand svg { width:30px; height:30px; }
  .nav-shell { gap:10px; }
  .nav-actions { gap:8px; }
  .icon-button { gap:5px; padding-inline:4px; }
  .icon-button svg { width:20px; height:20px; }
  .hero { padding-top:38px; padding-bottom:0; gap:30px; }
  .hero-heading { font-size:38px; line-height:1.25; letter-spacing:-.045em; margin-bottom:24px; }
  .hero-intro { font-size:17px; line-height:1.85; margin-bottom:26px; }
  .hero-visual { aspect-ratio:4/3; border-radius:20px; }
  .hero-art { object-position:65% center; }
  .button,.copy-button { font-size:17px; min-height:50px; padding:11px 20px; }
  .actions { gap:14px; }
  .section { margin-block:64px; }
  .page-home .hero+.section { margin-top:64px; }
  .section-heading { gap:16px; margin-bottom:26px; }
  .section-heading h2 { font-size:28px; }
  .section-heading .text-link,.section-heading>a { font-size:16px; }
  .section-intro { margin-top:-10px; margin-bottom:28px; }
  .latest-grid { grid-template-columns:1fr; gap:30px; }
  .article-card.featured { grid-row:auto; }
  .article-card.featured .article-image img { aspect-ratio:16/10; }
  .article-card.featured h3 { font-size:25px; }
  .article-card.compact { display:block; padding:0; border-top:1px solid var(--line); padding-top:30px; }
  .article-card.compact .article-image { display:block; }
  .article-card.compact .article-image img { aspect-ratio:16/10; }
  .article-card.compact .article-card-copy { padding-top:16px; }
  .article-card.compact h3 { font-size:25px; }
  .article-card.compact .excerpt { font-size:17px; }
  .article-card .meta { gap:4px 16px; }
  .creation-list { gap:44px; }
  .creation-row { gap:22px; }
  .creation-copy h2,.creation-copy h3 { font-size:27px; margin-bottom:14px; }
  .creation-copy .category { margin-bottom:8px; }
  .creation-copy .button { margin-top:0; }
  .roaming-copy h2 { font-size:28px; margin-bottom:18px; }
  .roaming-copy .actions { gap:16px 20px; }
  .roaming-copy .actions .button { margin-right:100%; }
  .author-section { display:block; padding-block:0; }
  .author-section .avatar { width:140px; margin-bottom:28px; }
  .author-copy h2 { margin-bottom:18px; }
  .page-heading { padding-top:42px; padding-bottom:32px; }
  .page-heading h1 { margin-bottom:12px; }
  .search-field { gap:8px; }
  .search-field .button { padding-inline:16px; }
  .search-input,.search-field input,.music-search input { font-size:16px; padding-inline:12px; }
  .category-filters { gap:8px; margin-top:24px; padding-bottom:24px; }
  .category-filters>a,.category-filters>button { font-size:16px; padding:8px 13px; }
  .article-row { grid-template-columns:1fr; gap:18px; padding-block:28px; }
  .article-row .article-image img { aspect-ratio:16/10; }
  .article-row h2,.article-row h3 { font-size:25px; margin-top:8px; }
  .search-dialog { width:calc(100% - 24px); margin:24px auto auto; max-height:calc(100dvh - 48px); border-radius:16px; }
  .search-panel { padding:20px; }
  .dialog-heading h2 { font-size:24px; }
  .search-result { padding-inline:0; }
  .search-result h3 { font-size:20px; }
  .article-detail,.project-detail { padding-top:24px; }
  .back-link { margin-bottom:22px; }
  .detail-heading { margin-bottom:28px; }
  .detail-heading h1 { font-size:34px; margin:12px 0 18px; line-height:1.45; }
  .detail-heading>p { font-size:18px; }
  .detail-cover { border-radius:20px; }
  .reading-layout { margin-top:28px; gap:30px; }
  .prose h2 { font-size:25px; margin-top:42px; margin-bottom:18px; }
  .prose blockquote { padding-left:20px; font-size:20px; }
  .article-tools { margin-top:24px; margin-bottom:38px; padding-top:0; }
  .article-pagination { grid-template-columns:1fr; gap:28px; padding-top:28px; }
  .article-pagination h3 { font-size:22px; }
  .project-prose { margin-top:36px; }
  .related-links { gap:12px 22px; margin-top:36px; }
  .about-hero { display:flex; flex-direction:column; gap:26px; padding-top:42px; }
  .about-copy h1 { font-size:34px; }
  .about-hero>.avatar { order:-1; width:148px; margin:0; }
  .identity { font-size:17px; margin-bottom:26px; }
  .about-body { margin-top:0; }
  .interests-section { margin-top:48px; }
  .interest-list { grid-template-columns:1fr; gap:0; }
  .interest-list>a { min-height:76px; font-size:22px; }
  .contact-section { margin-top:64px; padding-block:48px; }
  .contact-copy h2 { font-size:28px; }
  .contact-invite { font-size:17px; }
  .account-text { font-size:20px; }
  .closing-section { margin-block:64px; }
  .closing-section h2 { font-size:28px; }
  .site-footer { margin-top:64px; }
  .footer-inner { flex-direction:column; gap:20px; padding-block:34px 38px; }
  .footer-nav { gap:8px 26px; padding:0; }
  .footer-brand p { margin-top:4px; }
  .back-to-top { right:16px; bottom:16px; padding-inline:14px; }
  .music-heading { padding-top:38px; padding-bottom:28px; }
  .music-heading h1 { font-size:38px; }
  .music-heading p { max-width:300px; line-height:1.8; }
  .music-scene { border-radius:20px; }
  .music-player { gap:6px 10px; }
  .now-playing { min-width:0; }
  .player-controls { gap:5px; }
  .player-controls button { width:44px; height:44px; }
  .player-controls button svg { width:20px; height:20px; }
  .player-progress { gap:8px; }
  .page-music { padding-bottom:126px; }
  .not-found { padding-top:42px; }
  .not-found h1 { font-size:34px; }
}

@media (min-width:768px) and (max-width:799px) {
  .music-art { aspect-ratio:2/1; }
  .music-player { position:static; width:calc(100% - var(--gutter)*2); margin:24px auto 0; border-radius:16px; padding:22px 28px; }
  .page-music { padding-bottom:0; }
}

@view-transition { navigation:auto; }
::view-transition-old(root),::view-transition-new(root) { animation-duration:180ms; }
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
  .hero-art { transform:none!important; }
  .hero-orbit { stroke-dashoffset:0!important; }
  [data-motion='hero-particles'],.shooting-star,.meadow-grass { display:none; }
  ::view-transition-old(root),::view-transition-new(root) { animation:none; }
}

/* The night is a frame: the artwork retains its own daylight and colors. */
.hero-heading,.section-heading h2,.story-chapter h3,.page-heading h1,.music-heading h1,.game-worlds>h2,.life-category>h2,.roaming-copy h2,.author-copy h2,.about-copy h1,.contact-copy h2,.closing-section h2,.playlist-section h2 { font-family:var(--font-display); font-weight:400; letter-spacing:0; }
.detail-heading h1,.creation-copy h2,.creation-copy h3,.article-card h3,.article-row h2,.article-row h3 { font-family:var(--font-body); font-weight:700; }
.hero-heading { line-height:1.28; }
.hero-orbit path { stroke:var(--accent); }
.brand,.desktop-nav a[aria-current='page'] { color:var(--heading); }
.meta time,.account-id,.time-display { font-family:var(--font-numeric); font-variant-numeric:tabular-nums; }
.prose { color:var(--body); }
.button-primary,.category-filters>[aria-current='true'],.category-filters>.is-active { color:var(--night); }
.skip-link { background:var(--accent); color:var(--night); }
.copy-fallback input { color:var(--body); }
.mobile-menu nav a[aria-current='page'] { border-left:3px solid var(--accent); }
.music-heading p,.playlist-empty { color:var(--body); }
.page-music .brand svg { color:var(--accent); }
.page-music .player-controls button:nth-child(2) { background:var(--accent); }
.page-music .icon-button:hover,.page-music .search-dialog .icon-button:hover,.page-music .mobile-menu .icon-button:hover { background:var(--night); }
.contact-section .copy-fallback input { background:var(--night); }
.button:disabled { opacity:.5; transform:none; }

/* Three chapters, a single changing window on wide screens. */
.story-chapters { display:block; }
.story-chapter { max-width:760px; margin-bottom:64px; }
.story-chapter:last-child { margin-bottom:0; }
.story-chapter h3 { font-size:38px; margin-bottom:20px; }
.story-chapter p { max-width:430px; color:var(--body); }
.story-mobile-image { margin-top:28px; width:100%; border-radius:var(--radius-image); }
.story-stage { display:none; }
.story-figure { margin:40px 0 48px; }
.story-figure>img { width:100%; height:auto; aspect-ratio:16/10; object-fit:cover; border-radius:18px; background:var(--surface); }
.story-figure figcaption { color:var(--muted); font-size:16px; line-height:1.75; margin-top:14px; }
.story-figure .button { min-height:44px; font-size:16px; margin-top:14px; padding:8px 18px; }
.story-figure .button[aria-pressed='true'] { background:var(--accent); border-color:var(--accent); color:var(--night); }
@media (min-width:1100px) {
  .story-chapters.story-motion-ready { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:72px; align-items:start; }
  .story-motion-ready .story-chapter { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; min-height:70vh; margin:0; padding-block:52px; }
  .story-chapter h3 { font-size:44px; }
  .story-motion-ready .story-mobile-image { display:none; }
  .story-motion-ready .story-stage { display:block; position:sticky; top:calc(var(--header-height) + 56px); margin-top:52px; aspect-ratio:16/10; border-radius:var(--radius-image); overflow:hidden; background:var(--surface); }
  .story-stage>img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; }
  .story-stage>img:first-child { opacity:1; }
}

/* Original game artwork and its external official media form one selection. */
.game-worlds>p { max-width:740px; color:var(--body); margin-bottom:36px; }
.game-stage { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:40px; align-items:center; }
.game-cover { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:var(--radius-image); background:var(--surface); }
.game-copy { min-width:0; }
.game-copy h3 { margin-bottom:18px; font-size:28px; }
.game-intro { color:var(--body); }
.game-type { color:var(--muted); font-size:16px; margin-bottom:20px; }
.game-links { display:flex; flex-wrap:wrap; gap:16px 24px; align-items:center; }
.game-links .button { padding-inline:20px; }
.game-controls { display:flex; justify-content:flex-end; gap:14px; margin-top:28px; }
.game-controls .button { font-size:16px; min-height:44px; padding:8px 16px; }
.game-tabs { display:flex; gap:16px; overflow-x:auto; overscroll-behavior-x:contain; padding:24px 4px 14px; margin-inline:-4px; scrollbar-width:thin; scrollbar-color:var(--accent) var(--night); }
.game-tab { flex:0 0 172px; width:172px; text-align:left; color:var(--body); background:transparent; border:1px solid var(--line); border-radius:12px; padding:8px; font-size:16px; line-height:1.55; }
.game-tab img { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:6px; margin-bottom:10px; }
.game-tab span { display:block; padding:0 4px 4px; }
.game-tab[aria-selected='true'] { color:var(--heading); border:2px solid var(--accent); padding:7px; background:var(--surface); }
.game-tab:hover { background:var(--surface); }

/* Four small drawings introduce a personal album with deliberately empty shelves. */
.life-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.life-tab { display:flex; align-items:center; gap:24px; padding:28px 20px; border-bottom:2px solid var(--line); min-width:0; font-weight:600; font-size:20px; }
.life-tab svg { width:52px; height:52px; color:var(--accent); }
.life-tab:hover { background:var(--surface); }
.life-tab[aria-current='true'] { color:var(--heading); background:var(--surface); border-color:var(--accent); }
.life-category { min-height:320px; margin-top:52px; padding:32px 0 48px; }
.life-category h2 { font-size:36px; margin-bottom:18px; }
.life-category>p { color:var(--body); font-size:20px; }
.life-gallery { columns:3; column-gap:24px; }
.life-photo { display:block; width:100%; margin:0 0 24px; padding:0; background:transparent; text-align:left; break-inside:avoid; }
.life-photo img { width:100%; height:auto; border-radius:16px; }
.life-photo span { display:block; margin-top:12px; color:var(--muted); font-size:16px; }
.photo-dialog { width:min(1100px,calc(100% - 32px)); max-height:calc(100dvh - 32px); padding:24px; border:1px solid var(--line); border-radius:16px; }
.photo-dialog>[data-ui='photo-close'] { display:flex; margin:0 0 18px auto; }
.photo-dialog>img { max-height:calc(100dvh - 250px); width:100%; object-fit:contain; }
.photo-dialog>p { font-size:16px; margin:16px 0; }
.photo-dialog>.actions { justify-content:space-between; }
@media (max-width:1099px) {
  .game-stage { gap:28px; grid-template-columns:1.15fr 1fr; }
  .life-tab { gap:14px; padding:24px 16px; }
  .life-tab svg { width:44px; height:44px; }
  .life-tabs { gap:16px; }
}
@media (min-width:800px) and (max-width:1099px) {
  .desktop-nav { gap:18px; }
  .nav-shell { gap:18px; }
  .brand { font-size:22px; }
  .nav-actions { gap:4px; }
}
@media (max-width:799px) {
  .game-stage { grid-template-columns:1fr; gap:24px; }
  .game-copy h3 { font-size:26px; }
  .game-controls { justify-content:space-between; }
  .life-tabs { gap:10px; }
  .life-tab { flex-direction:column; gap:12px; padding:20px 8px; font-size:18px; }
  .life-gallery { columns:2; column-gap:18px; }
}
@media (max-width:599px) {
  .story-chapter h3 { font-size:30px; }
  .story-figure { margin-block:32px 40px; }
  .story-figure>img { border-radius:14px; }
  .game-worlds>h2 { font-size:30px; }
  .game-tab { flex-basis:156px; width:156px; }
  .game-cover { border-radius:18px; }
  .game-links { gap:12px 20px; }
  .game-copy h3 { font-size:25px; }
  .life-category { margin-top:32px; min-height:300px; padding-top:24px; }
  .life-category h2 { font-size:30px; }
  .life-category>p { font-size:18px; }
  .life-tab { font-size:17px; }
  .life-tab svg { width:38px; height:38px; }
  .photo-dialog { padding:16px; }
  .photo-dialog .button { font-size:16px; padding:8px 14px; }
}
@media (max-width:389px) { .life-gallery { columns:1; } }
@media (prefers-reduced-motion:reduce) {
  .story-stage>img { transform:none!important; }
  .story-figure>img,.story-mobile-image { clip-path:none!important; }
}
.game-stage { position:relative; }
