:root{--ink:#222222;--paper:#F8F6F2;--accent:#E85D35;--gold:#EABF58;--peach:#F5D9CB;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"DM Sans",Arial,sans-serif}a{color:inherit}button{font:inherit}a:focus-visible,button:focus-visible{outline:3px solid var(--ink);outline-offset:3px}[hidden]{display:none!important}.symbols{position:absolute;width:0;height:0;overflow:hidden}
.shell{width:min(100% - 32px,600px);margin:auto;padding:16px 0 24px}.site-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.wordmark{font-family:"Bricolage Grotesque",Arial,sans-serif;font-weight:800;font-size:1.65rem;letter-spacing:-.07em}.accent{color:var(--accent)}.star{width:31px;height:31px;transform:rotate(8deg)}
.hero{position:relative;display:grid;grid-template-columns:minmax(0,1.36fr) minmax(0,1fr);align-items:center;isolation:isolate;background:var(--gold);border:1.5px solid var(--ink);border-radius:12px;padding:12px 10px 12px 14px;min-height:152px;overflow:hidden}
.hero-copy{position:relative;z-index:1}h1{font-family:"Bricolage Grotesque",Arial,sans-serif;font-weight:800;line-height:.98;letter-spacing:-.065em;font-size:clamp(1.78rem,6.7vw,3.4rem);margin:0}.portrait{width:100%;height:auto;display:block;max-height:210px}.intro-copy{font-size:clamp(.93rem,2.5vw,1.05rem);line-height:1.42;margin:12px 0 0;max-width:42ch}
.directory{margin-top:12px}.section-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.section-header h2{font-size:.95rem;font-weight:700;margin:0}.section-header svg{flex:none}
.link-list{display:grid;gap:8px}.link-card{display:grid;grid-template-columns:45px minmax(0,1fr) 20px;align-items:center;gap:10px;min-height:65px;padding:8px 12px;border:1.5px solid var(--ink);border-radius:9px;text-decoration:none;background:var(--paper);transition:transform .18s ease}.link-card[data-tone="orange"]{background:var(--paper);box-shadow:inset 5px 0 0 var(--accent)}.link-card[data-tone="yellow"]{background:var(--gold)}.link-card[data-tone="peach"]{background:var(--peach)}.link-card[data-tone="white"]{background:var(--paper)}.link-card[href]:hover{transform:translateY(-2px)}.card-icon{width:45px;height:45px;display:grid;place-items:center}.card-icon svg{width:100%;height:100%}.card-copy,.card-title-row{display:block;min-width:0}.card-title{font-family:"Bricolage Grotesque",Arial,sans-serif;font-weight:800;font-size:1.06rem;line-height:1.15;letter-spacing:-.02em}.card-badge{font-size:.7rem;font-weight:700;margin-left:6px;white-space:nowrap}.card-description{display:block;font-size:.78rem;line-height:1.25;margin-top:3px}.card-arrow{align-self:start;text-align:right;font-size:1.2rem;line-height:1.2}.card-arrow svg{display:block;width:19px;height:19px;margin-left:auto}.link-card[href] .card-arrow{color:var(--accent)}.unlinked-note{display:none}.filters{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.filter-pill{border:1px solid var(--ink);background:var(--paper);border-radius:30px;padding:5px 10px}.filter-pill.active{background:var(--ink);color:var(--paper)}
.preview-notes{font-size:.72rem;line-height:1.4;margin-top:14px;color:#514842}.footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--ink);margin-top:13px;padding-top:10px;font-size:.8rem}.footer p{margin:0}.share-button{background:none;border:1px solid var(--ink);border-radius:20px;padding:5px 10px}.toast{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--paper);padding:8px 16px;border-radius:8px;opacity:0;pointer-events:none}.toast.visible{opacity:1}
.resource{margin:18px 0}.resource h1{font-size:clamp(2rem,7vw,3rem);margin:18px 0 10px}.resource p{line-height:1.5}.resource-art{display:grid;place-items:center;background:var(--gold);border:1.5px solid var(--ink);border-radius:12px;padding:20px}.resource-art svg{width:120px;height:120px}.back{font-weight:700;text-decoration:none}.notice{background:var(--peach);border:1.5px solid var(--ink);border-radius:8px;padding:12px}
@media(min-width:650px){.shell{padding:28px 0}.hero{min-height:210px;padding:18px 22px}.link-card{min-height:72px}.directory{margin-top:18px}}
@media(max-width:350px){.shell{width:calc(100% - 24px)}.hero{padding:10px 8px;min-height:132px}h1{font-size:1.68rem}.card-title{font-size:.98rem}.link-card{grid-template-columns:38px minmax(0,1fr) 16px;padding:7px 9px;gap:8px}.card-icon{width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Keep the hero first on phones; leave the resource-page navigation untouched. */
@media(max-width:649px){.hub-home .site-header{display:none}.hub-home .shell{padding-top:16px;padding-top:max(16px,env(safe-area-inset-top))}.hub-home .hero{padding-top:10px;padding-bottom:10px}.hub-home .intro-copy{margin-top:10px}.hub-home .directory{margin-top:10px}}

/* Resource detail only: the approved homepage layout remains unchanged. */
.resource-page .resource-kicker{font-size:.75rem;font-weight:700;letter-spacing:.09em;margin:16px 0 8px}.resource-page .resource h1{margin:8px 0 12px}.creator-credit{font-size:.91rem}.creator-credit a{text-underline-offset:3px}.download-panel{border:1.5px solid var(--ink);border-radius:10px;padding:16px;background:var(--peach);margin:20px 0}.resource h2{font-family:"Bricolage Grotesque",Arial,sans-serif;font-weight:800;font-size:1.4rem;letter-spacing:-.025em;line-height:1.15;margin:0 0 10px}.download-panel p{margin:8px 0 14px}.download-action{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;background:var(--ink);color:var(--paper);border-radius:8px;text-decoration:none;padding:12px 15px;font-weight:700}.download-action:hover{text-decoration:underline}.download-panel .resource-meta{font-size:.78rem;margin:9px 0 0}.resource-section{border-top:1px solid var(--ink);padding:18px 0 6px}.resource-section ol,.resource-section ul{padding-left:22px;line-height:1.55}.resource-section li{margin:0 0 8px}.resource-section code{font-size:.9em;overflow-wrap:anywhere}

/* A featured resource has more context than an ordinary navigation row. */
.hub-home .featured-card{grid-template-columns:64px minmax(0,1fr) 20px;align-items:start;gap:14px 12px;padding:16px 14px 14px 17px;min-height:0}.featured-card .card-icon{width:64px;height:64px;background:var(--peach);border:1px solid var(--ink);border-radius:10px;padding:7px;align-self:start}.featured-card .card-title{font-size:1.23rem;line-height:1.15}.featured-card .card-description{font-size:.91rem;line-height:1.4;margin-top:6px}.featured-detail{display:block;font-size:.76rem;line-height:1.35;margin-top:9px}.featured-action{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid var(--ink);border-radius:7px;background:var(--gold);font-size:.91rem;font-weight:700;min-height:42px;padding:9px 12px}.featured-action span{font-size:1.15rem;line-height:1}.featured-card:hover .featured-action{text-decoration:underline}
@media(max-width:350px){.hub-home .featured-card{grid-template-columns:52px minmax(0,1fr) 16px;gap:10px;padding:13px 10px 12px 14px}.featured-card .card-icon{width:52px;height:52px}.featured-card .card-title{font-size:1.12rem}}

/* Approved shorter resource page; strictly scoped to the resource route. */
.resource-page .resource-intro{position:relative;min-height:78px;padding-right:86px}
.resource-page .resource-intro .resource-art{position:absolute;right:0;top:0;width:72px;height:72px;padding:6px;border-radius:10px}
.resource-page .resource-intro .resource-art svg{width:100%;height:100%}
.resource-page .resource-kicker{margin:0 0 10px}
.resource-page .resource h1{line-height:1.02;margin:0 0 18px}
.resource-page .resource-story p{margin:0 0 12px}
.resource-page .download-contents{list-style:none;padding:0;margin:14px 0 18px;display:grid;gap:10px}
.resource-page .download-contents li{position:relative;padding-left:24px;line-height:1.4}
.resource-page .download-contents li::before{content:"✓";position:absolute;left:0;top:0;font-weight:700}
.resource-page .download-action{background:var(--gold);color:var(--ink);border:1.5px solid var(--ink)}
.resource-page .download-platform{text-align:center}
.resource-page .resource-caveat{font-size:.84rem;line-height:1.5}
.resource-page .resource-section p{margin:0 0 12px}
@media(max-width:350px){.resource-page .resource-intro{padding-right:62px}.resource-page .resource-intro .resource-art{width:52px;height:52px;padding:4px}.resource-page .resource h1{font-size:1.8rem}}

/* Resource story: break up reading with a compact three-step visual. */
.resource-page .resource-story p{margin:0 0 12px}
.resource-page .resource-flow{margin:18px 0 20px}
.resource-page .flow-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:0}
.resource-page .flow-steps li{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;gap:4px;padding:12px 4px;background:var(--peach);border:1px solid var(--ink);border-radius:8px}
.resource-page .flow-steps li:nth-child(2){background:var(--paper)}
.resource-page .flow-steps li:nth-child(3){background:var(--gold)}
.resource-page .flow-steps li:not(:last-child)::after{content:"";position:absolute;top:36px;right:-10px;width:6px;height:6px;border-right:2px solid var(--ink);border-top:2px solid var(--ink);transform:rotate(45deg)}
.resource-page .flow-steps svg{width:44px;height:44px;display:block;margin-bottom:4px;flex:none}
.resource-page .flow-steps strong{font-size:.88rem;line-height:1.2}
.resource-page .flow-steps span{font-size:.75rem;line-height:1.3}
.resource-page .flow-caption{font-size:.92rem;font-weight:500;margin:12px 0 0;line-height:1.45}
.resource-page .download-panel{margin:18px 0 14px}
@media(max-width:350px){.resource-page .flow-steps{gap:8px}.resource-page .flow-steps li:not(:last-child)::after{right:-7px;width:4px;height:4px}.resource-page .flow-steps strong{font-size:.8rem}.resource-page .flow-steps span{font-size:.7rem}}
