/* Science Visualized · home
   A cyanotype plate up top (Prussian ground, white line work, one live instrument),
   then six subject plates printed on cool paper. */
:root{
 --sv-prussian:#15305a;--sv-prussian-deep:#0f2343;--sv-prussian-line:#2d4a78;
 --sv-cyan:#8fe3ef;--sv-on-blue:#f4f6fa;--sv-on-blue-muted:#a9b8d0;
 --sv-paper:#f3f5f8;--sv-surface:#fff;--sv-ink:#0f1a2c;--sv-muted:#566176;--sv-line:#d6dce6;
 --sv-serif:'Source Serif 4','Noto Serif TC','Noto Serif CJK TC',Georgia,serif;
 --sv-sans:'IBM Plex Sans','Noto Sans TC','Noto Sans CJK TC',system-ui,sans-serif;
}
body.home-page{background:var(--sv-paper);background-image:none;color:var(--sv-ink);font-family:var(--sv-sans);min-height:100svh;-webkit-font-smoothing:antialiased}
body.home-page :focus-visible{outline:2px solid var(--sv-cyan);outline-offset:4px}
body.home-page ::selection{background:#cfe3f7;color:var(--sv-ink)}
body.home-page .home-main{display:block;width:100%;max-width:none;margin:0;padding:0}

/* Header sits on the plate */
body.home-page .home-header.app-header{position:relative;z-index:50;display:flex;flex-wrap:nowrap;align-items:center;gap:6px;width:100%;max-width:none;height:auto;min-height:0;margin:0;padding:22px clamp(20px,4.4vw,72px);background:var(--sv-prussian);border:0;box-shadow:none;overflow:visible}
body.home-page .home-header .home-title{flex:1 1 auto;min-width:0;margin:0 auto 0 0;font-size:inherit;letter-spacing:0}
body.home-page .home-header .brand{display:inline-flex;align-items:center;gap:12px;color:var(--sv-on-blue);text-decoration:none;letter-spacing:0}
body.home-page .home-header .brand-symbol{width:34px;height:34px;border-radius:0}
body.home-page .home-header .brand-name,body.home-page .home-header .brand-name>span{font-family:var(--sv-serif);font-size:20px;font-weight:500;letter-spacing:-.01em;line-height:1.1;color:var(--sv-on-blue)}
body.home-page .home-header :is(.language-picker,.top-back,.quiet-button){margin:0;order:initial;min-height:40px;padding:8px 12px;border:0;border-radius:999px;background:transparent;color:var(--sv-on-blue);font-size:14px;box-shadow:none}
body.home-page .home-header :is(.language-picker,.top-back,.quiet-button):hover{background:#ffffff14}
body.home-page .home-header .language-picker:focus-within{outline:2px solid var(--sv-cyan);outline-offset:2px}
body.home-page .home-more{position:relative;flex-shrink:0;z-index:45}
body.home-page .home-more>summary{display:grid;place-items:center;width:40px;height:40px;border-radius:999px;list-style:none;color:var(--sv-on-blue);font-size:22px;line-height:1;cursor:pointer}
body.home-page .home-more>summary::-webkit-details-marker{display:none}
body.home-page .home-more>summary:hover,body.home-page .home-more[open]>summary{background:#ffffff14}
body.home-page .home-more-panel{position:absolute;right:0;top:calc(100% + 8px);width:232px;padding:6px;background:var(--sv-surface);border:1px solid var(--sv-line);border-radius:10px;box-shadow:0 18px 40px #0f234333}
body.home-page .home-header .home-more-panel :is(.history-entry,.feedback-entry){display:flex;align-items:center;gap:10px;width:100%;min-height:44px;margin:0;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:var(--sv-ink);font-size:14px;text-decoration:none}
body.home-page .home-header .home-more-panel :is(.history-entry,.feedback-entry):hover{background:var(--sv-paper)}
body.home-page .home-header .home-more-panel svg{width:18px;height:18px;flex:none;color:var(--sv-prussian)}

/* The plate */
body.home-page .home-masthead{position:relative;display:block;margin:0;padding:0 clamp(20px,4.4vw,72px);min-height:0;border:0;background:var(--sv-prussian);color:var(--sv-on-blue);overflow:hidden}
body.home-page .home-introduction{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:end;gap:clamp(40px,6vw,110px);max-width:1440px;margin:0 auto;padding:clamp(48px,8vw,120px) 0 clamp(48px,6vw,88px)}
body.home-page .home-masthead-copy{min-width:0;max-width:none}
body.home-page .home-masthead h1{margin:0;font-family:var(--sv-serif);font-optical-sizing:auto;font-weight:400;font-size:clamp(52px,7.4vw,118px);line-height:.98;letter-spacing:-.025em;color:var(--sv-on-blue);text-wrap:balance}
html:is([lang^=zh],[lang=ja]) body.home-page .home-masthead h1{font-weight:600;line-height:1.12;letter-spacing:.02em;font-size:clamp(46px,6.4vw,100px)}
body.home-page .home-lead{max-width:34em;margin:clamp(24px,2.6vw,36px) 0 0;font-size:clamp(16px,1.25vw,19px);line-height:1.7;color:var(--sv-on-blue-muted);text-wrap:pretty}
body.home-page .home-start{display:inline-flex;align-items:center;gap:14px;min-height:48px;margin-top:32px;padding:0 22px 0 24px;border-radius:999px;background:var(--sv-on-blue);color:var(--sv-prussian);font-size:15px;font-weight:500;text-decoration:none;transition:background-color .2s}
body.home-page .home-start>span{font-size:17px;transition:transform .25s cubic-bezier(.22,1,.36,1)}
body.home-page .home-start:hover{background:#fff}
body.home-page .home-start:hover>span{transform:translateY(3px)}

/* The instrument: a framed figure with graph paper and one control */
body.home-page .home-wave-study{position:relative;align-self:end;max-width:560px;width:100%;margin-left:auto;padding:22px 24px 20px;border:1px solid #8fe3ef4d;color:var(--sv-cyan);background:linear-gradient(#ffffff06,#ffffff03)}
body.home-page .home-wave-study::before,body.home-page .home-wave-study::after{content:"";position:absolute;width:12px;height:12px;border-color:var(--sv-cyan);border-style:solid;pointer-events:none}
body.home-page .home-wave-study::before{top:-1px;left:-1px;border-width:2px 0 0 2px}
body.home-page .home-wave-study::after{right:-1px;bottom:-1px;border-width:0 2px 2px 0}
body.home-page .wave-study-title{display:flex;justify-content:space-between;align-items:baseline;gap:16px;color:var(--sv-on-blue);font-size:14px;line-height:1.5}
body.home-page .wave-equation{white-space:nowrap;font-family:var(--sv-serif);font-style:italic;font-size:22px;color:var(--sv-cyan)}
body.home-page .home-wave-graph{display:block;width:100%;height:auto;margin:16px 0 10px;overflow:visible}
body.home-page .home-wave-graph #home-wave-path{stroke-width:2.2;filter:drop-shadow(0 0 6px #8fe3ef55)}
body.home-page .home-wave-graph text{fill:var(--sv-on-blue-muted);font-family:var(--sv-serif);font-style:italic;font-size:14px}
body.home-page .wave-controls{display:grid;grid-template-columns:auto minmax(0,1fr) 68px;align-items:center;gap:16px;min-height:44px;color:var(--sv-on-blue);font-size:14px}
body.home-page .wave-controls input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:24px;margin:0;padding:0;background:transparent;cursor:pointer;min-width:0}
body.home-page .wave-controls input[type=range]::-webkit-slider-runnable-track{height:2px;background:linear-gradient(90deg,var(--sv-cyan),#8fe3ef55)}
body.home-page .wave-controls input[type=range]::-moz-range-track{height:2px;background:#8fe3ef55}
body.home-page .wave-controls input[type=range]::-moz-range-progress{height:2px;background:var(--sv-cyan)}
body.home-page .wave-controls input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;margin-top:-8px;border-radius:50%;background:var(--sv-prussian);border:2px solid var(--sv-cyan);box-shadow:0 0 0 4px #8fe3ef22}
body.home-page .wave-controls input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--sv-prussian);border:2px solid var(--sv-cyan)}
body.home-page .wave-controls input[type=number]{width:68px;min-width:0;min-height:36px;padding:6px 8px;border:1px solid #8fe3ef4d;border-radius:4px;background:#0f234399;color:var(--sv-cyan);font:400 14px/1.4 var(--sv-sans);font-variant-numeric:tabular-nums;text-align:right;-moz-appearance:textfield;appearance:textfield}
body.home-page .wave-controls input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}
body.home-page #home-wave-hint{margin-top:8px;font-size:13px;line-height:1.6;color:var(--sv-on-blue-muted)}

/* Specimens printed as cyanotypes: the blue ground shows through the shadows */
body.home-page .home-image-band{display:grid;grid-template-columns:1.5fr .85fr 1.2fr .8fr;gap:2px;max-width:1440px;height:clamp(140px,16vw,240px);margin:0 auto;overflow:hidden;background:var(--sv-prussian)}
body.home-page .home-image-band img{display:block;width:100%;height:100%;min-width:0;object-fit:cover;filter:grayscale(1) contrast(1.15) brightness(1.05);mix-blend-mode:screen;opacity:.92}
body.home-page .home-image-band img:nth-child(1){object-position:62% 45%}
body.home-page .home-image-band img:nth-child(2){object-position:44% 40%}
body.home-page .home-image-band img:nth-child(3){object-position:50% 62%}
body.home-page .home-image-band img:nth-child(4){object-position:60% 40%}

/* Collection heading */
body.home-page .home-collection-label{display:flex;align-items:baseline;justify-content:space-between;gap:24px 40px;flex-wrap:wrap;max-width:1440px;margin:0 auto;padding:clamp(64px,8vw,112px) clamp(20px,4.4vw,72px) 32px;box-sizing:content-box;font-family:inherit;letter-spacing:0}
body.home-page .home-collection-label h2{margin:0;font-family:var(--sv-serif);font-weight:400;font-size:clamp(34px,3.6vw,54px);line-height:1.1;letter-spacing:-.015em;color:var(--sv-ink)}
html:is([lang^=zh],[lang=ja]) body.home-page .home-collection-label h2{font-weight:600;letter-spacing:.02em}
body.home-page .home-collection-label p{margin:0;font-size:16px;line-height:1.6;color:var(--sv-muted)}

/* Six plates on one sheet: shared hairlines, no floating cards */
body.home-page .subject-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;max-width:1440px;margin:0 auto;padding:0;border:1px solid var(--sv-line);background:var(--sv-line);box-sizing:border-box;width:calc(100% - 2 * clamp(20px,4.4vw,72px))}
body.home-page .subject-card{position:relative;display:grid;grid-template-rows:auto minmax(220px,1fr) auto;gap:0;min-height:0;margin:0;padding:clamp(24px,2.4vw,36px);border:0;border-radius:0;background:var(--sv-paper);color:var(--sv-ink);box-shadow:none;transition:background-color .25s;overflow:visible;grid-column:auto!important;grid-row:auto!important}
body.home-page .subject-card::before,body.home-page .subject-card::after{display:none}
body.home-page .subject-card:hover,body.home-page .subject-card:focus-within{background:var(--sv-surface)}
body.home-page .subject-open{position:static;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;color:inherit;text-decoration:none;min-height:0;padding:0;background:none;border:0}
body.home-page .subject-open::after{content:"";position:absolute;inset:0;z-index:1}
body.home-page .subject-open:focus-visible{outline:none}
body.home-page .subject-open:focus-visible::after{outline:2px solid var(--sv-prussian);outline-offset:-4px}
body.home-page .subject-heading{display:flex;flex-direction:column-reverse;gap:8px;min-width:0}
body.home-page .subject-heading h2{margin:0;font-family:var(--sv-serif);font-weight:400;font-size:clamp(32px,2.8vw,44px);line-height:1.05;letter-spacing:-.015em;color:var(--sv-ink)}
html:is([lang^=zh],[lang=ja]) body.home-page .subject-heading h2{font-weight:600;letter-spacing:.04em}
body.home-page .subject-english{display:block;margin:0;font-size:14px;line-height:1.5;font-weight:400;letter-spacing:0;text-transform:none;color:var(--sv-muted)}
body.home-page .subject-enter{display:grid;place-items:center;flex:none;width:40px;height:40px;border:1px solid var(--sv-line);border-radius:50%;color:var(--sv-prussian);font-size:16px;background:transparent;transition:background-color .25s,color .25s,border-color .25s,transform .35s cubic-bezier(.22,1,.36,1)}
body.home-page .subject-card:hover .subject-enter{background:var(--sv-prussian);border-color:var(--sv-prussian);color:#fff;transform:rotate(45deg)}

/* Figures: every diagram is drawn in the same Prussian ink */
body.home-page .subject-visual{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:0;margin:24px 0;padding:0;color:var(--sv-prussian);background:none;border:0;border-radius:0}
body.home-page .subject-visual svg{display:block;width:100%;max-width:380px;height:auto;max-height:230px;color:var(--sv-prussian)}
body.home-page .subject-visual .math-notation,body.home-page .subject-visual text{fill:var(--sv-prussian);font-family:var(--sv-serif);font-style:italic;font-size:22px}
body.home-page .visual-note{margin:0;font-size:13px;line-height:1.5;color:var(--sv-muted);text-align:center}
body.home-page .element-study{display:flex;align-items:center;justify-content:center;gap:clamp(20px,3vw,40px);width:100%}
body.home-page .element-block{display:grid;grid-template-columns:auto;gap:2px;min-width:118px;padding:14px 16px;border:1.5px solid var(--sv-prussian);border-radius:0;background:transparent;color:var(--sv-prussian);font-family:var(--sv-sans)}
body.home-page .element-block small{font-size:13px;color:var(--sv-prussian);opacity:.8}
body.home-page .element-block strong{font-family:var(--sv-serif);font-weight:500;font-size:56px;line-height:1;margin:6px 0 2px}
body.home-page .element-block span{font-size:14px}
body.home-page .electron-study{width:min(170px,40%)}
body.home-page .electron-study svg{max-width:none}
body.home-page .electron-study circle{fill:none;stroke:var(--sv-prussian);stroke-opacity:.45;stroke-width:1.2}
body.home-page .electron-study .nucleus{fill:var(--sv-prussian);stroke:none}
body.home-page .electron-study .electrons circle{fill:var(--sv-paper);stroke:var(--sv-prussian);stroke-opacity:1;stroke-width:2}
body.home-page .subject-card:hover .electron-study .electrons circle{fill:var(--sv-surface)}
body.home-page .biology-visual{flex-direction:row;align-items:flex-start;gap:10px}
body.home-page :is(.biology-visual,.space-visual){color:var(--sv-muted)}
body.home-page .biology-visual figure{flex:1 1 0;min-width:0;margin:0}
body.home-page :is(.biology-visual figure,.space-visual)>img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;background:var(--sv-prussian);filter:grayscale(1) sepia(.2) hue-rotate(180deg) saturate(1.4) contrast(1.05);transition:filter .5s}
body.home-page .space-visual>img{aspect-ratio:2/1;max-width:420px}
body.home-page .subject-card:hover :is(.biology-visual figure,.space-visual)>img{filter:none}
body.home-page .biology-visual figcaption{margin-top:8px;font-size:13px;line-height:1.5;color:var(--sv-muted)}
body.home-page .code-visual{align-items:stretch}
body.home-page .code-visual pre{margin:0;padding:18px 20px;max-width:100%;overflow:auto;border:1px solid var(--sv-line);border-radius:0;background:var(--sv-surface);color:#34405a;font:13px/1.65 'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;tab-size:4}
body.home-page .code-visual :is(.code-key){color:var(--sv-prussian);font-weight:600}
body.home-page .code-visual .code-function{color:#2667a8}
body.home-page .code-visual .code-value{color:#9a5b1e}
body.home-page .code-visual .visual-note{text-align:left}

/* Quotations close each plate */
body.home-page .subject-quotation{position:relative;z-index:2;margin:0;padding:22px 0 0;border:0;border-top:1px solid var(--sv-line);pointer-events:none}
body.home-page .subject-quotation a{pointer-events:auto}
body.home-page .subject-quotation blockquote{margin:0;padding:0;border:0}
body.home-page .subject-quotation blockquote p{margin:0;font-family:var(--sv-serif);font-size:clamp(17px,1.35vw,20px);line-height:1.6;font-weight:400;color:var(--sv-ink);text-wrap:pretty}
body.home-page .subject-quotation blockquote p::before,body.home-page .subject-quotation blockquote p::after{content:none}
body.home-page .subject-quotation figcaption{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin-top:14px;font-size:13px;line-height:1.55;color:var(--sv-muted)}
body.home-page .quote-author{color:var(--sv-ink);font-weight:500}
body.home-page .quote-book{color:var(--sv-prussian);text-decoration:underline;text-decoration-color:#15305a55;text-underline-offset:3px}
body.home-page .quote-book:hover{text-decoration-color:currentColor}
body.home-page .quote-book cite{font-style:normal}
body.home-page .quote-book>span{margin-left:3px;text-decoration:none}
body.home-page .quote-location{flex-basis:100%}
body.home-page .quote-edition{flex-basis:100%;font-size:12px;opacity:.85}

/* Colophon */
body.home-page .home-colophon{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px 60px;max-width:1440px;margin:clamp(72px,9vw,128px) auto 0;padding:48px clamp(20px,4.4vw,72px) 56px;box-sizing:content-box;border-top:1px solid var(--sv-line);color:var(--sv-muted);background:transparent}
body.home-page .colophon-title{margin:0;font-family:var(--sv-serif);font-size:28px;line-height:1.2;color:var(--sv-ink);font-weight:400}
body.home-page #home-colophon-copy{margin:0;max-width:30em;font-size:15px;line-height:1.7}
body.home-page .home-colophon details{grid-column:1/-1;font-size:13px}
body.home-page .home-colophon summary{cursor:pointer;color:var(--sv-ink);width:max-content;min-height:32px}
body.home-page .home-credits{display:grid;gap:6px;margin-top:10px;max-width:72ch;line-height:1.7}
body.home-page .home-credits a{color:var(--sv-prussian)}

@media (max-width:1180px){
 body.home-page .subject-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
 body.home-page .home-introduction{grid-template-columns:1fr;align-items:start;gap:48px}
 body.home-page .home-wave-study{margin-left:0;max-width:none}
 body.home-page .home-image-band{grid-template-columns:1.4fr 1fr 1fr}
 body.home-page .home-image-band img:nth-child(4){display:none}
}
@media (max-width:700px){
 body.home-page .home-header.app-header{padding:14px 16px;gap:2px}
 body.home-page .home-header .brand{gap:8px}
 body.home-page .home-header .brand-symbol{width:28px;height:28px}
 body.home-page .home-header .brand-name,body.home-page .home-header .brand-name>span{font-size:17px}
 body.home-page .home-header :is(.language-picker,.top-back){padding:8px 10px;min-height:44px}
 body.home-page .home-header .top-back{font-size:0!important;width:44px;min-width:44px;padding:0;display:grid;place-items:center}
 body.home-page .home-header .top-back::before{content:'←';font-size:20px}
 body.home-page .home-more>summary{width:44px;height:44px}
 body.home-page .home-masthead{padding:0 16px}
 body.home-page .home-introduction{padding:40px 0 40px;gap:36px}
 body.home-page .home-masthead h1{font-size:clamp(44px,13vw,64px)}
 html:is([lang^=zh],[lang=ja]) body.home-page .home-masthead h1{font-size:clamp(40px,11.5vw,56px)}
 body.home-page .home-wave-study{padding:18px 16px 16px}
 body.home-page .wave-controls{grid-template-columns:auto minmax(0,1fr) 62px;gap:12px}
 body.home-page .home-image-band{grid-template-columns:1fr 1fr;height:120px}
 body.home-page .home-image-band img:nth-child(3){display:none}
 body.home-page .home-collection-label{padding:56px 16px 24px;flex-direction:column;gap:10px}
 body.home-page .subject-choices{grid-template-columns:1fr;width:calc(100% - 32px)}
 body.home-page .subject-card{grid-template-rows:auto auto auto;padding:24px 20px}
 body.home-page .subject-visual{margin:20px 0}
 body.home-page .home-colophon{grid-template-columns:1fr;padding:40px 16px 48px}
}
@media (prefers-reduced-motion:reduce){
 body.home-page *{transition:none!important}
}

/* Retire earlier decorative layers that other shared sheets still add to the home plates */
body.home-page .subject-choices .subject-card{border:0;border-radius:0;box-shadow:none;background-image:none}
body.home-page .subject-backdrop-card-art{display:none!important}
body.home-page .subject-card .subject-quotation{border-radius:0;background:none;margin-inline:0;padding:22px 0 0}
body.home-page .subject-card .subject-quotation figcaption{border-top:0;padding-top:0}
body.home-page .subject-card .subject-heading{padding-bottom:0}
body.home-page .home-image-band img:is(:nth-child(2),:nth-child(4)){object-position:50% 0;height:calc(100% + 26px)}
body.home-page .biology-visual{align-items:center}
body.home-page .biology-visual figure>img{aspect-ratio:16/10;object-position:50% 0}
body.home-page .subject-visual svg text,body.home-page .subject-visual .math-notation{font-size:30px}
body.home-page .subject-quotation :is(.quote-location,.quote-edition){color:var(--sv-muted)}
html:has(body.home-page){background:var(--sv-paper)}
