/*
Theme Name: Step Lab
Description: A bright learning-guide theme for Pittsburgh digital skills.
Version: 1.0.0
License: GPL-2.0-or-later
*/
:root { --ink:#191f31; --blue:#1645ce; --paper:#fdfcfa; --muted:#444957; --edge:#23283b }
* { box-sizing:border-box }
html { scroll-behavior:smooth }
body { margin:0; background:var(--paper); color:var(--ink); font:1rem/1.6 system-ui,sans-serif }
a { color:inherit; text-underline-offset:.22em }
img { display:block; max-width:100%; height:auto }
:focus-visible { outline:3px solid #2360de; outline-offset:5px }
.skip { position:absolute; transform:translateY(-125%); padding:.6rem 1rem; background:#1645ce; color:white; z-index:5 }
.skip:focus { transform:none }
.wrap { width:min(1130px,calc(100% - 88px)); margin-inline:auto }
.mast { background:#fff; border-bottom:1px solid #d5d5e0 }
.mast-inner,.foot-inner { min-height:73px; display:flex; align-items:center; justify-content:space-between; gap:1rem }
.wordmark { display:flex; align-items:center; gap:.7rem; text-decoration:none; font-size:1.25rem; font-weight:850; letter-spacing:-.065em; white-space:nowrap }
.wordmark span { display:grid; place-items:center; width:34px; height:34px; border:2px solid var(--edge); border-radius:7px; background:#a6c2ff; box-shadow:2px 2px var(--edge); color:#182966; font-size:1.3rem; line-height:1 }
.mast nav,.foot-inner > div { display:flex; flex-wrap:wrap; gap:.8rem clamp(.7rem,3vw,2.4rem) }
.mast nav a,.foot a { text-decoration:none; font-size:.94rem; font-weight:690 }
.mast nav a:hover,.foot a:hover { color:var(--blue); text-decoration:underline }
.hero { display:grid; grid-template-columns:1.02fr 1fr; align-items:center; gap:clamp(2rem,6vw,5rem); padding-block:clamp(3rem,6.4vw,6.1rem) 4.2rem }
.place { color:#1a398d; font-size:.92rem; font-weight:740; margin:0 0 .8rem }
.hero h1 { margin:0; max-width:13ch; font-size:clamp(3.4rem,6.2vw,6rem); font-weight:840; letter-spacing:-.087em; line-height:.99 }
.hero h1 em { color:#153eb8; font-style:normal; background:linear-gradient(transparent 67%,#d1e0ff 67%) }
.lead { max-width:39ch; font-size:1.17rem; color:var(--muted); margin:1.3rem 0 1.5rem }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:.95rem 1.25rem }
.actions a { font-weight:720 }
.button { display:inline-flex; align-items:center; min-height:48px; padding:.55rem 1rem; color:white; background:var(--blue); border:2px solid var(--edge); border-radius:8px; box-shadow:3px 3px var(--edge); text-decoration:none }
.button:hover { background:#0e359e }
.workspace { margin:0; min-width:0; position:relative; border:2px solid var(--edge); border-radius:17px; background:#b9d9fe; box-shadow:6px 7px var(--edge) }
.workspace img { width:100%; border-radius:15px }
.workspace figcaption { border:2px solid var(--edge); border-radius:7px; padding:.48rem .7rem; position:absolute; left:.9rem; bottom:.9rem; background:#fffbe0; transform:rotate(-3deg); font-weight:720; font-size:.81rem; max-width:80% }
.paths { padding-bottom:3.2rem }
.paths h2,.guides h2 { font-size:clamp(2rem,4.35vw,3.5rem); letter-spacing:-.073em; line-height:1.05; margin:0 0 1.25rem }
.path-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.12rem }
.path-grid a { min-width:0; border:2px solid var(--edge); border-radius:11px; display:grid; grid-template-columns:39px 1fr; align-items:center; gap:.2rem .85rem; padding:1rem; background:#fff; box-shadow:4px 4px var(--edge); text-decoration:none }
.path-grid a:hover { background:#eff6ff }
.path-grid strong { line-height:1.15 }
.path-grid a > span:last-child { grid-column:2; color:var(--muted); line-height:1.3 }
.tile { grid-row:span 2; border:1px solid var(--edge); border-radius:7px; width:37px; height:37px; display:grid; place-items:center; font-weight:800 }
.tile.blue { background:#b9d7ff }.tile.orange { background:#ffdb9f }.tile.green { background:#baf3d2 }
.guides { border-top:2px solid #24293c; padding:2.35rem 0 4rem }
.stories { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)); gap:1rem }
.story { max-width:540px }
.story-link { display:grid; grid-template-rows:auto 1fr; height:100%; color:inherit; background:#fff; border:2px solid var(--edge); border-radius:11px; overflow:hidden; text-decoration:none }
.story-link:hover { box-shadow:4px 4px var(--edge) }
.story-art { aspect-ratio:2.2; border-bottom:2px solid var(--edge) }
.story-art img { width:100%; height:100%; object-fit:cover }
.story-copy { padding:1rem }
.topic,.entry-tag { margin:0; color:#1b438d; font-size:.84rem; font-weight:800 }
.story-copy h3 { margin:.4rem 0; letter-spacing:-.032em; font-size:1.22rem; line-height:1.2 }
.story-copy > p:last-child { margin:.35rem 0 0; line-height:1.45; color:var(--muted) }
.foot { background:#e8effd; border-top:1px solid #a5b8df }
.foot p { margin:0; color:#35415b }
.reading { max-width:800px; padding:clamp(2.9rem,6vw,5.2rem) 0 }
.entry-header h1,.reading > h1 { margin:.48rem 0 .9rem; font-size:clamp(2.5rem,6vw,4.55rem); line-height:1; letter-spacing:-.075em }
.dek { color:var(--muted); font-size:1.25rem; max-width:54ch }
.entry-header time { color:#46516e; font-size:.88rem }
.entry-image { margin:1.35rem 0; border:2px solid var(--edge); border-radius:12px; overflow:hidden; box-shadow:4px 4px var(--edge) }
.entry-image img { width:100% }
.entry { max-width:720px; font-size:1.08rem; line-height:1.72 }
.entry h2 { margin:1.8rem 0 .5rem; font-size:clamp(1.5rem,4vw,2.08rem); line-height:1.14; letter-spacing:-.05em }
.entry a { color:var(--blue); overflow-wrap:anywhere }
@media(max-width:830px) {
    .wrap { width:calc(100% - 52px) }
    .hero { grid-template-columns:1fr; gap:1.85rem; padding-block:2.85rem 3.7rem }
    .hero h1 { max-width:15ch }
    .workspace { max-width:600px }
    .path-grid a { grid-template-columns:1fr; align-content:start; gap:.45rem }
    .path-grid a > span { grid-column:1; grid-row:auto }
}
@media(max-width:520px) {
    .wrap { width:calc(100% - 34px) }
    .mast-inner { min-height:0; flex-wrap:wrap; padding-block:.83rem; gap:.72rem }
    .mast nav { flex-basis:100% }
    .hero h1 { font-size:clamp(2.98rem,11.7vw,3.85rem) }
    .path-grid { grid-template-columns:1fr; gap:.85rem }
    .path-grid a { grid-template-columns:39px 1fr; }
    .path-grid a > span:last-child { grid-column:2 }
    .path-grid a > .tile { grid-row:span 2 }
    .foot-inner { padding-block:1.15rem; flex-wrap:wrap }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto } }
