:root { --edge:clamp(32px,4.45vw,80px); --ease:cubic-bezier(.16,1,.3,1); }
[hidden] { display:none !important; }
.homepage { min-height:100svh; padding:var(--edge); padding-bottom:clamp(88px,13.5vh,156px); display:flex; align-items:flex-end; }
.composition { display:grid;grid-template-columns:minmax(290px,1fr) minmax(400px,560px);gap:clamp(80px,9vw,144px);width:100%;max-width:1720px;margin:auto auto 0;align-items:start; }
.hero h1 { margin:0;font-size:34px;line-height:1.28;letter-spacing:-.025em;font-weight:400; }
.hero h1 span { display:block; }.secondary{color:var(--muted)}
.about { display:inline-flex;align-items:center;min-height:44px;margin-top:24px;font-size:13px;color:var(--muted); }
.paired-index { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(28px,3vw,44px); }
h2 { font-size:14px;line-height:1.45;font-weight:500;margin:0 0 21px; }
ul { list-style:none;padding:0;margin:0; }
.entry + .entry {border-top:1px solid var(--line)}
.entry-main {display:flex;align-items:center;gap:12px;min-height:64px;position:relative;}
.entry-link {text-decoration:none;font-size:15px;line-height:1.45;display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;padding:12px 0;overflow-wrap:anywhere;}
.entry-attribute{font-size:12px;color:var(--muted);line-height:1.5;}
.entry-link{transition:color 240ms var(--ease)}
.entry-link:hover,.entry.active .entry-link{color:var(--focus)}
button {background:none;border:0;padding:0;}
.all-link {font-size:13px;color:var(--muted);display:flex;align-items:center;gap:12px;min-height:44px;margin-top:15px;}
.all-link span{font-size:16px}.all-link,.close{transition:color 240ms var(--ease)}.all-link:hover,.close:hover{color:var(--ink)}
.study-note{position:absolute;top:20px;right:var(--edge);display:flex;gap:18px;font-size:12px;color:var(--muted);z-index:1}
html[data-embedded] .study-note{display:none}
.preview{width:clamp(290px,29vw,420px);color:var(--ink);}
.preview h3{font-weight:400;font-size:27px;letter-spacing:-.02em;line-height:1.25;margin:0 0 16px;}
.preview .description{font-size:16px;line-height:1.65;margin:0;color:var(--muted);max-width:42ch;}
.preview .excerpt{font-size:20px;line-height:1.55;margin:24px 0 0;max-width:34ch;}
.preview .preview-meta{display:flex;justify-content:space-between;gap:16px;margin:22px 0 0;color:var(--muted);font-size:12px;}
.preview figure{margin:0 0 25px;}.preview canvas{display:block;width:100%;aspect-ratio:1.6;}
.preview figcaption{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:10px;min-height:24px;}
.preview-prompt{font-size:16px;line-height:1.6;color:var(--muted);margin-top:24px}
.preview{position:relative}.preview-content{position:relative;z-index:1;background:var(--background)}.preview .leaving{position:absolute;z-index:0;left:0;top:0;pointer-events:none}
.preview-content,.preview-prompt{will-change:opacity,transform,filter}
dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--ink);overflow:hidden;}
dialog::backdrop{background:transparent}
.scrim{position:fixed;inset:0;background:color-mix(in srgb,var(--background) 70%,transparent);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);}
body.collection-open{overflow:hidden}
/* Bottom sheets: the panel's bottom edge stays where its section ends. The body clips, the content inside lifts,
   and anything below the original rows is revealed from under that edge. Metrics match the homepage exactly. */
.sheet-panel{position:absolute;left:var(--rail-left);width:var(--rail-width);bottom:var(--rail-bottom);max-height:var(--rail-max);display:flex;flex-direction:column;}
.sheet-body{flex:0 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:0 6px;margin:0 -6px;}
.sheet-content{flex:0 1 auto;min-height:0;display:flex;flex-direction:column;will-change:transform;}
.sheet-footer{flex:none}.sheet-footer .all-link span{font-size:inherit}
.close{display:grid;justify-items:start;align-items:center}.close>span{grid-area:1/1}
.rail-header{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:21px;flex:none;}
.rail-header h2{margin:0}.collection-caption{margin:0;font-size:12px;color:var(--muted);}
.collection-list{flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 6px;margin:0 -6px;scrollbar-width:thin;}
.expanded-preview{will-change:opacity,transform,filter;position:absolute;right:calc(100% - var(--rail-left) + 64px);top:max(116px,24vh);max-height:calc(76svh - 80px);overflow:auto;}
.detail-button,.inline-preview{display:none}
.no-script{padding:30px;}
@media(min-width:1600px){.hero h1{font-size:36px}}
@media(min-width:801px) and (max-width:1050px){.composition{grid-template-columns:minmax(245px,1fr) minmax(360px,1.35fr);gap:64px}.hero h1{font-size:30px}.entry-link{font-size:14px}.expanded-preview{right:calc(100% - var(--rail-left) + 32px);width:300px;}}
/* Rails always sit over their own column so opening travels straight up; the preview fits the space to the left. */
@media(max-width:1050px) and (min-width:801px){.expanded-preview{width:min(300px,calc(var(--rail-left) - var(--edge) - 40px));right:calc(100% - var(--rail-left) + 40px)}}
@media(max-width:800px){.homepage{display:block;padding:112px 28px 48px}.composition{grid-template-columns:minmax(0,1fr);gap:58px;max-width:520px}.paired-index{grid-template-columns:1fr;gap:48px}.hero h1{font-size:30px}.about{margin-top:17px}.study-note{right:28px}.index-group h2{margin-bottom:15px}}
@media(max-width:800px),(hover:none){.detail-button{display:block;color:var(--muted);font-size:12px;min-height:44px;min-width:60px;text-decoration:underline;text-underline-offset:4px}.inline-preview:not([hidden]){display:block;width:100%;overflow:hidden}.inline-preview .preview-content{padding:12px 0 28px}.inline-preview h3{font-size:23px}.inline-preview .excerpt{font-size:18px}.column-preview,.expanded-preview{display:none!important}}
@media(max-width:800px){.rail-header{margin-bottom:15px}.about-body .about-heading{font-size:20px}.about-body p{font-size:16px}.scrim{background:color-mix(in srgb,var(--background) 94%,transparent);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.entry-link{font-size:16px;}}
@media(max-width:360px){.homepage{padding-inline:22px;padding-top:88px}.hero h1{font-size:28px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.item-page{padding:32px var(--edge) 64px}.item-nav{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);gap:24px;align-items:center}.item-nav a{display:flex;align-items:center;min-height:44px}.item-main{max-width:1080px;margin:10vh auto 0}.item-main h1{font-size:clamp(30px,4vw,48px);font-weight:400;letter-spacing:-.025em;line-height:1.2;margin:0 0 22px}.item-main .description{font-size:18px;line-height:1.6;color:var(--muted);max-width:55ch;margin:0 0 32px}.experiment-canvas{width:100%;aspect-ratio:1.6;display:block}.experiment-controls{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:20px 0;font-size:14px}.experiment-controls input{width:180px}.experiment-controls button{text-decoration:underline;min-height:44px}.sample-disclosure{font-size:13px;line-height:1.6;color:var(--muted);margin-top:32px}.writing-item{max-width:620px}.writing-item .excerpt{font-size:23px;line-height:1.6;margin:40px 0}.item-main figure{margin:0}
/* Closed-state previews rise from their own column, bottom-anchored above its heading. */
.index-group,.hero{position:relative}
/* About is the hero section growing upward: the same two-line heading lifts, a second heading and text appear beneath it. */
.sheet-hero{margin:0;font-size:var(--hero-size,34px);line-height:1.28;letter-spacing:-.025em;font-weight:400;flex:none}.sheet-hero span{display:block}
.about-body{flex:0 1 auto;min-height:0;overflow:auto;padding-top:36px}.about-body .about-heading{font-size:22px;line-height:1.3;letter-spacing:-.015em;font-weight:400;margin:0 0 16px}.about-body p{font-size:17px;line-height:1.65;margin:0 0 16px;max-width:42ch}.about-body .about-note{font-size:12px;color:var(--muted);margin:24px 0 0}
.about{transition:color 240ms var(--ease)}.about:hover,.about.active{color:var(--ink)}.sheet-footer .about{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.column-preview{--preview-gap:40px;position:absolute;left:0;bottom:calc(100% + var(--preview-gap));width:100%;}
.column-preview .leaving{top:auto;bottom:0}
.column-preview h3{font-size:20px;margin-bottom:8px}.column-preview .description{font-size:14px;line-height:1.55}.column-preview .excerpt{font-size:15px;line-height:1.5;margin-top:12px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.column-preview .tight .excerpt{display:none}.column-preview canvas{aspect-ratio:auto;height:160px}.column-preview .description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.column-preview figure{margin-bottom:12px}.column-preview figcaption{margin-top:4px;min-height:22px}.column-preview .preview-meta{display:none}

/* The compact index sits low; section actions and item qualifiers share their rows. */
@media(min-width:1051px){
 .homepage{padding-bottom:clamp(48px,6vh,88px)}
 .composition{width:100%;max-width:1720px;margin-left:auto;margin-right:auto;grid-template-columns:minmax(290px,.9fr) minmax(580px,1.25fr);gap:clamp(72px,7vw,144px)}
 .paired-index{gap:clamp(36px,4.5vw,88px)}
}
@media(min-width:801px) and (max-width:1050px){.homepage{padding-bottom:56px}.composition{width:100%;gap:48px}}
.index-heading{display:flex;align-items:baseline;gap:16px;min-height:44px;margin-bottom:8px}
.index-heading h2{margin:0!important}
.index-heading .all-link{font-size:12px;min-height:44px;margin:0;padding:0 4px;display:inline-flex}
.entry-main{min-height:44px}
.entry-link{flex-direction:row;align-items:baseline;flex-wrap:wrap;column-gap:10px;row-gap:2px;padding:10px 0;line-height:1.4}
.entry-title{min-width:0}.entry-attribute{font-size:11px;white-space:nowrap}
.collection-rail .rail-header{align-items:baseline;min-height:44px;margin-bottom:8px}
.collection-rail .rail-header .all-link{margin:0;min-height:44px;font-size:12px}
.collection-rail .collection-caption{padding-top:16px;line-height:1.5}
@media(max-width:800px){.index-heading{margin-bottom:4px}.entry-link{column-gap:10px}.entry-attribute{font-size:11px}.composition{width:100%}}

@media(min-width:1400px){.composition{width:84%}}
/* Match the action's closed-state position so the shared flight stays vertical. */
.collection-rail .rail-header{justify-content:flex-start;gap:16px}
.collection-rail .rail-header .close{padding:0 4px}
.collection-rail .rail-header .close span{font-size:inherit}

/* Keep expanded content scrollable without visible scrollbar chrome. */
.collection-list,.expanded-preview,.about-body{scrollbar-width:none;}
.collection-list::-webkit-scrollbar,.expanded-preview::-webkit-scrollbar,.about-body::-webkit-scrollbar{display:none;}
