/*
Theme Name: Prism
Description: Themeable magazine framework - layout, palette and fonts driven by a per-site preset.
Version: 1.0
*/
*{margin:0;padding:0;box-sizing:border-box}
:root{--maxw:1180px}
body{font-family:var(--body);color:var(--ink);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 28px}
h1,h2,h3,.head{font-family:var(--head);font-weight:var(--headw);line-height:1.14}
.eyebrow{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent);font-weight:600}
.tag{display:inline-block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);font-weight:600}
.byline{color:var(--muted,#7a7276);font-size:13px}
.byline b{color:var(--ink);font-weight:600}
/* masthead */
.masthead{border-bottom:1px solid var(--line);padding:18px 0}
.masthead .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px}
.masthead.center .wrap{flex-direction:column;gap:12px}
.site-name{font-family:var(--head);font-weight:var(--headw);font-size:34px;color:var(--ink)}
.custom-logo{max-height:66px;width:auto}
@media(max-width:600px){.custom-logo{max-height:52px}}
.nav{display:flex;gap:26px;list-style:none;font-size:12.5px;letter-spacing:.13em;text-transform:uppercase;flex-wrap:wrap}
.nav a:hover{color:var(--accent)}
/* generic cards */
.cardimg{background:var(--soft);background-size:cover;background-position:center;border-radius:3px;display:block}
.card .tag{margin:14px 0 7px}
.card h3{font-size:20px;margin-bottom:8px}
.card:hover h3{color:var(--accent)}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.section-head{display:flex;align-items:baseline;justify-content:space-between;margin:52px 0 22px}
.section-head h2{font-size:25px}
.section-head a{font-size:12px;letter-spacing:.13em;text-transform:uppercase;color:var(--accent)}
/* COVER layout */
.cover-hero{position:relative;margin-top:26px;border-radius:4px;overflow:hidden;min-height:520px;display:flex;align-items:flex-end;background:var(--soft);background-size:cover;background-position:center}
.cover-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 30%,rgba(0,0,0,.72))}
.cover-hero .inner{position:relative;color:#fff;padding:46px;max-width:760px}
.cover-hero h1{font-size:52px;color:#fff;margin:14px 0 12px}
.cover-hero .eyebrow{color:#fff}
.cover-hero .byline{color:rgba(255,255,255,.85)}
.rail{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:34px}
.rail .cardimg{height:150px}
.rail h3{font-size:16px;margin-top:12px}
/* CURATOR layout */
.curator{display:grid;grid-template-columns:1.7fr 1fr;gap:40px;margin-top:30px}
.curator .lead .cardimg{height:340px}
.curator .lead h1{font-size:38px;margin:14px 0 10px}
.curator .lead p{color:var(--muted,#6b6367);margin-bottom:12px}
.rankbox{background:var(--soft);border-radius:8px;padding:24px}
.rankbox .mut{font-size:12px;letter-spacing:.15em;text-transform:uppercase;color:var(--accent);font-weight:600;margin-bottom:6px}
.rankrow{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}
.rankrow:last-child{border-bottom:0}
.rankrow .n{font-family:var(--head);font-weight:var(--headw);color:var(--accent);font-size:22px;line-height:1}
.rankrow h4{font-size:15px;font-weight:600;font-family:var(--body)}
.newsletter{margin-top:18px;background:var(--ink);color:#fff;border-radius:8px;padding:22px}
.newsletter h3{color:#fff;font-size:19px;margin-bottom:6px}
.newsletter p{color:rgba(255,255,255,.75);font-size:13px}
.listrow{display:flex;gap:18px;padding:20px 0;border-bottom:1px solid var(--line)}
.listrow .cardimg{width:150px;height:100px;flex:none}
.listrow h3{font-size:19px;margin-bottom:6px}
/* single */
.article{max-width:760px;margin:0 auto;padding:40px 28px 10px}
.article .hero{height:420px;border-radius:4px;background:var(--soft);background-size:cover;background-position:center;margin-bottom:24px}
.article h1{font-size:40px;margin:10px 0 12px}
.article .content{font-size:18px;line-height:1.75;margin-top:22px}
.article .content h2{font-family:var(--head);font-size:27px;margin:34px 0 12px}
.article .content p{margin:0 0 18px}
.article .content img{border-radius:4px;margin:20px 0}
.article .content a{color:var(--accent);text-decoration:underline}
.article .content ul,.article .content ol{margin:0 0 18px 22px}
/* single: article + sticky sidebar of related articles */
.article-wrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:52px;max-width:1140px;margin:0 auto;padding:40px 28px 10px;align-items:start}
.article-wrap .article{max-width:none;margin:0;padding:0}
.sidebar{position:sticky;top:24px;display:flex;flex-direction:column;gap:28px}
.widget h4{font-family:var(--head);font-size:14px;text-transform:uppercase;letter-spacing:.08em;padding-bottom:10px;border-bottom:2px solid var(--accent);margin-bottom:12px}
.swidget-item{display:flex;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.swidget-item:last-child{border-bottom:0}
.swidget-item .sthumb{width:64px;height:52px;flex:none;border-radius:4px;background:var(--soft);background-size:cover;background-position:center}
.swidget-item .stitle{font-size:13.5px;line-height:1.32;font-weight:500}
.swidget-item:hover .stitle{color:var(--accent)}
.widget.newsletter{margin:0}
.article .content figure{margin:24px 0}
.article .content figure img{width:100%}
.article .content figcaption{font-size:12.5px;color:var(--muted,#7a7276);margin-top:6px;text-align:center}
/* footer */
.foot{margin-top:70px;border-top:1px solid var(--line);padding:40px 0;color:var(--muted,#7a7276);font-size:13px}
.foot .wrap{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
@media(max-width:860px){.grid3,.rail{grid-template-columns:1fr 1fr}.curator,.article-wrap{grid-template-columns:1fr}.sidebar{position:static}.cover-hero h1{font-size:34px}.article h1{font-size:30px}}
