/* Plainly Chemistry: dark green photographic topic index and reading pages. */
body.chem{--bg:#203a33;--ink:#f0f5ef;--muted:#c1d2c7;--line:#526f63;--accent:#a5dfcd;--soft:#29463c;--warm:#b9e0d0;background:radial-gradient(ellipse at 12% 8%,#314b42 0%,transparent 44%),radial-gradient(ellipse at 85% 65%,#2b453b 0%,transparent 45%),#203a33;color:var(--ink)}
.chem h1,.chem h2,.chem h3{font-family:Fraunces,Georgia,serif;font-weight:500;letter-spacing:-.035em}
.chem .top{background:rgba(28,52,44,.95);border-bottom:1px solid rgba(214,237,222,.24);box-shadow:none}
.chem .top-inner::before{display:none}
.chem .top-inner{min-height:106px}
.chem .brand{font:500 1.38rem/1 Fraunces,Georgia,serif;letter-spacing:.28em;color:#eff6ef;text-transform:uppercase;white-space:nowrap}
.chem .brand span{color:#d8ebe0}
.chem .brand-divider{display:inline-block;width:1px;height:38px;margin:0 24px -11px 15px;background:rgba(216,235,224,.57)}
.chem .top nav{gap:clamp(26px,4vw,68px);align-items:center}
.chem .top nav a{position:relative;color:#e1eee4;font:400 1rem Fraunces,Georgia,serif;letter-spacing:0;text-decoration:none;padding:11px 0}
.chem .top nav a[aria-current]{color:#f4fbf3}
.chem .top nav a[aria-current]::before{display:none}
.chem .top nav a[aria-current]::after{content:'';position:absolute;left:0;right:0;bottom:1px;height:2px;background:#9bd5bf}
.chem .top nav a:hover,.chem .top nav a:focus-visible{color:#a5dfcd}
.chem .skip:focus{background:#f0f5ef;color:#17372d}
.chem-home .wrap{width:min(1440px,calc(100% - 90px))}
.chem-topics{padding:45px 0 80px}
.chem-home .chem-topics h1{font:500 clamp(2.1rem,3vw,2.75rem)/1.15 Fraunces,Georgia,serif;margin:0 0 29px;color:#f3f6ef}
.chem-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}
.chem-tile{display:block;position:relative;isolation:isolate;aspect-ratio:1.27;min-height:270px;overflow:hidden;background:#344f44;border:1px solid rgba(219,241,227,.34);border-radius:3px;text-decoration:none;color:#f6faf5;box-shadow:0 8px 25px rgba(10,29,22,.13);transition:border-color .2s,transform .25s,box-shadow .25s}
.chem-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:grayscale(.62) saturate(.62) hue-rotate(55deg) brightness(.71) contrast(1.07);transform:scale(1.01);transition:filter .3s,transform .45s}
.chem-tile:nth-child(1) img{object-position:center 38%}
.chem-tile:nth-child(2) img{object-position:60% center}
.chem-tile:nth-child(4) img{object-position:center 42%}
.chem-tile:nth-child(9) img{object-position:center 54%}
.tile-wash{position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,37,30,.61) 0%,rgba(18,46,36,.15) 38%,rgba(12,34,27,.06) 65%,rgba(14,40,32,.22) 100%),linear-gradient(90deg,rgba(13,37,30,.23),transparent 75%)}
.tile-copy{position:absolute;inset:25px;display:flex;flex-direction:column;align-items:flex-start;z-index:1;pointer-events:none}
.tile-copy strong{font:500 clamp(1.65rem,2vw,2.1rem)/1.13 Fraunces,Georgia,serif;letter-spacing:-.025em;text-wrap:balance;max-width:90%;text-shadow:0 2px 16px rgba(0,0,0,.3)}
.tile-copy>span{font:300 2rem/1 Fraunces,Georgia,serif;margin-top:16px;text-shadow:0 2px 16px rgba(0,0,0,.3)}
.chem-tile:hover,.chem-tile:focus-visible{border-color:#d9f2e3;transform:translateY(-4px);box-shadow:0 17px 35px rgba(6,24,17,.3);outline:none}
.chem-tile:hover img,.chem-tile:focus-visible img{filter:grayscale(.45) saturate(.72) hue-rotate(55deg) brightness(.84) contrast(1.05);transform:scale(1.055)}
.chem-tile:focus-visible{outline:2px solid #c7f4df;outline-offset:4px}
.chem .footer{border-color:rgba(214,237,222,.23);background:rgba(13,38,30,.3);color:#bdcec3}
.chem .footer a{text-decoration:none;color:#e0f1e5}
.chem .footer a:hover{text-decoration:underline}
.chem-credits{font-size:.74rem;padding:0 0 24px;color:#aebfb3}
.chem-credits summary{cursor:pointer;width:max-content}
.chem-credits p{max-width:1000px;line-height:1.7}
.chem-credits a{text-decoration:underline;text-underline-offset:2px}
/* Reading pages retain their depth with the same dark green identity. */
.chem:not(.chem-home) .article-head{background:radial-gradient(circle at 83% 30%,rgba(102,156,128,.2),transparent 30%),linear-gradient(115deg,#203a33,#2a4b3e);border-color:#547467;min-height:390px;padding:64px 0 55px}
.chem:not(.chem-home) .article-head::after{display:none}
.chem:not(.chem-home) .article-head h1{font:500 clamp(3.1rem,6.8vw,6.4rem)/1.04 Fraunces,Georgia,serif;letter-spacing:-.045em;color:#f5f8f0}
.chem:not(.chem-home) .article-head .lede{color:#cfdfd3}
.chem:not(.chem-home) .article-head .eyebrow{color:#b9e1ce}
.chem:not(.chem-home) .article-grid{max-width:1200px}
.chem:not(.chem-home) .prose p{color:#d5e3d7}
.chem:not(.chem-home) .prose h2{color:#f1f8ef}
.chem:not(.chem-home) .callout{background:#2a493d;border-color:#557666;border-left-color:#a5dfcd}
.chem:not(.chem-home) .callout strong{font-family:Fraunces,Georgia,serif;font-size:1.27rem;color:#f3f8f0}
.chem:not(.chem-home) .callout p{color:#cfddd1}
.chem:not(.chem-home) .rail{background:transparent}
.chem:not(.chem-home) .rail a.active,.chem:not(.chem-home) .rail a[aria-current="location"]{background:#315343}
.chem:not(.chem-home) .reading-progress{background:linear-gradient(90deg,#a5dfcd var(--progress,0%),transparent var(--progress,0%))}
@media(max-width:1080px){.chem-home .wrap{width:min(100% - 48px,1440px)}.chem-grid{gap:16px}.chem-tile{min-height:240px}.chem .top nav{gap:23px}}
@media(max-width:850px){.chem-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chem-tile{aspect-ratio:1.22}.chem .brand{font-size:1rem;letter-spacing:.18em}.chem .brand-divider{height:26px;margin:0 12px -7px 8px}.chem .top-inner{min-height:76px}.chem-topics{padding-top:34px}}
@media(max-width:580px){.chem-home .wrap{width:min(100% - 30px,1440px)}.chem .top nav{gap:12px}.chem .top nav a{font-size:.85rem}.chem .top nav a:nth-child(2){display:none}.chem .brand{font-size:.82rem;letter-spacing:.1em}.chem .brand-divider{height:19px;margin:0 6px -5px 4px}.chem .top-inner{min-height:64px}.chem-grid{grid-template-columns:1fr;gap:14px}.chem-tile{aspect-ratio:1.3;min-height:250px}.chem-topics{padding:27px 0 52px}.chem-home .chem-topics h1{margin-bottom:19px}.tile-copy{inset:21px}.tile-copy strong{font-size:1.85rem}.chem:not(.chem-home) .article-head{min-height:unset;padding:50px 0 42px}.chem:not(.chem-home) .rail{background:#203a33;top:58px}}
@media(prefers-reduced-motion:reduce){.chem-tile,.chem-tile img{transition:none}}
.chem:not(.chem-home) .next{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:28px 0;border-top:1px solid #557666}
.chem:not(.chem-home) .next a{display:flex;align-items:center;min-height:68px;padding:15px 19px;border:1px solid #638d78;border-radius:6px;background:linear-gradient(135deg,#2d5142,#27473c);color:#e7f7ec;font:600 .9rem/1.45 'Space Grotesk',sans-serif;text-decoration:none;transition:background .2s,border-color .2s,transform .2s}
.chem:not(.chem-home) .next a:last-child{justify-content:flex-end;text-align:right}
.chem:not(.chem-home) .next a:hover,.chem:not(.chem-home) .next a:focus-visible{background:#37634d;border-color:#a5dfcd;transform:translateY(-2px);outline:none}
@media(max-width:580px){.chem:not(.chem-home) .next{grid-template-columns:1fr;gap:10px}.chem:not(.chem-home) .next span{display:none}.chem:not(.chem-home) .next a{min-height:62px;padding:13px 17px}}
@media(prefers-reduced-motion:reduce){.chem:not(.chem-home) .next a{transition:none}}
