/*
Theme Name: Media Bed
Description: An engineering journal with cool technical photography and a filtration topic index.
Version: 1.3.0
*/
:root { --paper:#f1f5f8; --coal:#151e2d; --blue:#056e98; --cyan:#d7edf8; --rule:#c8d9e6; --sub:#405366; --mono:"Courier New",monospace; --gutter:clamp(1rem,4.25vw,3.8rem) }
* { box-sizing:border-box }
body { margin:0; color:var(--coal); background:var(--paper); font:1rem/1.59 system-ui,sans-serif }
a { color:inherit; text-underline-offset:.23em }
img { display:block; width:100%; height:auto }
:focus-visible { outline:3px solid #068bb8; outline-offset:4px }
.jump { position:absolute; transform:translateY(-145%); z-index:8; background:#d8f0fb; color:var(--coal); margin:.55rem; padding:.55rem .8rem }
.jump:focus { transform:none }
.bench-mast { background:#eff5f9; border-bottom:1px solid var(--rule) }
.bench-rail,.bench-footer > div { width:min(1240px,100% - var(--gutter)*2); margin:auto; min-height:74px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.62rem 1rem; padding:.65rem 0 }
.brand-bench { display:flex; align-items:center; gap:.63rem; text-decoration:none; font-weight:880; letter-spacing:-.05em; font-size:1.2rem }
.brand-bench b { display:grid; place-items:center; color:#fff; background:#152635; width:34px; height:34px; font-size:1.22rem; border-radius:4px }
.bench-rail nav { display:flex; flex-wrap:wrap; gap:.48rem clamp(.68rem,3vw,1.98rem) }
.bench-rail nav a,.bench-footer a { color:#293b50; font-size:.91rem; font-weight:740; text-decoration:none }
.bench-rail nav a:hover,.bench-footer a:hover { color:var(--blue); text-decoration:underline }
.filter-lead { background:radial-gradient(ellipse at 82% 38%,#d9edf6 0%,#eaf2f7 46%,#f0f4f7 78%); border-bottom:1px solid var(--rule) }
.filter-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.91fr); width:min(1320px,100% - var(--gutter)*2); align-items:center; gap:1rem; margin:auto; padding:clamp(1.5rem,4.6vw,4.3rem) 0 }
.filter-copy { position:relative; z-index:1 }
.technical-kicker,.note-stamp { color:var(--blue); font:700 .82rem/1.29 var(--mono); letter-spacing:.08em; text-transform:uppercase; margin:0 0 .78rem }
.filter-copy h1 { margin:0; text-transform:uppercase; font-size:clamp(3.2rem,8.05vw,8.4rem); line-height:.82; letter-spacing:-.092em; font-weight:930 }
.filter-copy h1 span { display:block; color:var(--blue) }
.filter-copy > p:not(.technical-kicker) { max-width:39ch; margin:1.28rem 0 1.24rem; color:var(--sub); font-size:clamp(.99rem,1.47vw,1.14rem) }
.filter-actions { display:flex; flex-wrap:wrap; gap:.62rem }
.bench-link,.media-link { display:inline-flex; gap:.48rem; align-items:center; min-height:42px; padding:.48rem .72rem; border-radius:1.35rem; font-size:.85rem; font-weight:780; text-decoration:none }
.bench-link { color:white; background:#076a90 }
.bench-link:hover { background:#054a6b }
.media-link { border:1px solid #9dbed2; color:#27465c; background:#f8fbfd }
.media-link:hover { border-color:var(--blue) }
.filter-module { margin:0; min-width:0; position:relative }
.filter-module picture { display:block }
.filter-module img { aspect-ratio:1.6; object-fit:cover; mix-blend-mode:multiply; mask-image:radial-gradient(ellipse 74% 74% at center,#000 50%,transparent 95%) }
.filter-module figcaption { position:absolute; right:.62rem; bottom:.2rem; color:#2e5268; background:#f2f9fdcd; border:1px solid #bdd6e5; border-radius:.35rem; padding:.2rem .46rem; font-size:.7rem }
.lab-topics { display:grid; grid-template-columns:minmax(165px,.36fr) minmax(0,1fr); align-items:start; gap:clamp(.75rem,2.8vw,2.2rem); width:min(1240px,100% - var(--gutter)*2); margin:clamp(1.7rem,3.8vw,3.1rem) auto }
.lab-topics h2 { margin:.18rem 0 0; font-size:clamp(1.72rem,3.4vw,2.85rem); line-height:1; letter-spacing:-.071em }
.lab-routes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.62rem }
.lab-routes a { display:block; position:relative; min-width:0; padding:.74rem 1.65rem .75rem .78rem; border:1px solid var(--rule); border-top:3px solid #53a4c7; border-radius:.47rem; text-decoration:none; background:#fff }
.lab-routes a:hover { background:#e7f5fd; border-color:#5b9eb9 }
.lab-routes strong { display:block; line-height:1.18; margin-bottom:.24rem }
.lab-routes span:not(.route-arrow) { display:block; font-size:.83rem; color:var(--sub); line-height:1.43 }
.route-arrow { position:absolute; top:.62rem; right:.57rem; color:var(--blue); font-weight:750 }
.technical-notes { width:min(1240px,100% - var(--gutter)*2); margin:0 auto 4.45rem }
.technical-notes header { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:.55rem 1rem; border-bottom:1px solid #9db5c7; padding-bottom:.66rem; margin-bottom:.95rem }
.technical-notes header span { color:var(--sub); font:.83rem var(--mono) }
.technical-notes h2 { font-size:clamp(2rem,4.8vw,4.05rem); line-height:.96; letter-spacing:-.075em; margin:0 }
.note-stack { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.9rem }
.note-stack a { display:grid; align-content:start; min-width:0; height:100%; background:#fff; border:1px solid var(--rule); border-radius:.58rem; overflow:hidden; text-decoration:none }
.note-stack article:not(:has(img)) a { background:#e6f2f9 }
.note-stack a:hover h3 { text-decoration:underline }
.note-stack img { aspect-ratio:2.12; object-fit:cover }
.note-copy { padding:clamp(.83rem,2.4vw,1.4rem) }
.note-stamp { margin:0 0 .44rem }
.note-stack h3 { font-size:clamp(1.19rem,2.5vw,1.75rem); line-height:1.11; letter-spacing:-.035em; margin:0 }
.note-stack p:last-child { color:var(--sub); margin:.53rem 0 0 }
.bench-footer { border-top:1px solid var(--rule); background:#e5eef5 }
.bench-footer p { margin:0 }
.bench-reading { width:min(920px,100% - var(--gutter)*2); margin:auto; padding:3.4rem 0 5rem }
.sample-register { border-bottom:1px solid var(--rule) }
.sample-register h1,.bench-reading > h1 { font:700 clamp(2.65rem,7vw,5.15rem)/.96 Georgia,serif; letter-spacing:-.065em; margin:.75rem 0 }
.article-dek { color:var(--sub); font-size:1.18rem }
.sample-reading { font-size:1.08rem; max-width:760px }
.sample-reading h2 { font-size:clamp(1.65rem,3.4vw,2.25rem); line-height:1.14 }
.sample-reading a,.reading-back { color:var(--blue) }
.feature-image { margin:1.4rem 0; border:1px solid var(--rule) }
@media(max-width:850px) {
    .lab-topics { grid-template-columns:1fr }
}
@media(max-width:680px) {
    .filter-layout,.note-stack { grid-template-columns:minmax(0,1fr) }
    .filter-copy h1 { font-size:clamp(3rem,12.1vw,6rem) }
    .filter-module img { aspect-ratio:1.8 }
}
@media(max-width:470px) {
    .bench-rail nav { flex-basis:100% }
    .lab-routes { grid-template-columns:1fr }
    .technical-notes header span { font-size:.76rem }
}
