/*
Theme Name: Contempt Network
Theme URI: https://contempt-it.com/
Author: Contempt-IT
Description: A calm, modern network hub for the Contempt-IT multisite.
Version: 0.2.0
Text Domain: contempt-network
*/

:root { --paper:#f6f7f8; --surface:#fff; --ink:#17202a; --muted:#66717c; --line:#dce1e5; --accent:#d96720; --accent-dark:#a94612; --night:#17202a; --radius:16px; --shadow:0 18px 45px rgba(23,32,42,.08); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:16px; line-height:1.65; }
a { color:var(--accent-dark); text-decoration-thickness:.08em; text-underline-offset:.16em; }
a:hover { color:var(--accent); }
img { height:auto; max-width:100%; }
.site-shell { min-height:100vh; }
.site-header { background:var(--surface); border-bottom:1px solid var(--line); }
.header-inner,.site-main,.footer-inner { width:min(1120px,calc(100% - 40px)); margin:0 auto; }
.header-inner { align-items:center; display:flex; gap:30px; justify-content:space-between; min-height:88px; }
.brand { color:var(--ink); display:inline-flex; flex-direction:column; line-height:1.05; text-decoration:none; }
.brand-name { font-size:clamp(1.45rem,2vw,1.85rem); font-weight:760; letter-spacing:-.045em; }
.brand-mark { color:var(--accent); font-size:.72rem; font-weight:700; letter-spacing:.15em; margin-top:7px; text-transform:uppercase; }
.primary-menu { display:flex; flex-wrap:wrap; gap:5px 20px; list-style:none; margin:0; padding:0; }
.primary-menu a { color:var(--muted); font-size:.94rem; font-weight:650; text-decoration:none; }
.primary-menu a:hover,.primary-menu .current-menu-item>a { color:var(--ink); }
.hero { padding:clamp(52px,8vw,105px) 0 44px; }
.eyebrow { color:var(--accent-dark); font-size:.78rem; font-weight:800; letter-spacing:.12em; margin:0 0 12px; text-transform:uppercase; }
.hero h1,.page-heading { font-size:clamp(2.5rem,6vw,5rem); letter-spacing:-.065em; line-height:.98; margin:0; max-width:820px; }
.hero-copy { color:var(--muted); font-size:clamp(1.05rem,2vw,1.25rem); margin:25px 0 0; max-width:700px; }
.hero-content { color:var(--muted); margin-top:25px; max-width:700px; }
.hero-content p:last-child { margin-bottom:0; }
.section { padding:34px 0 64px; }
.section-heading { align-items:end; display:flex; gap:20px; justify-content:space-between; margin-bottom:23px; }
.section-heading h2 { font-size:clamp(1.55rem,3vw,2.2rem); letter-spacing:-.045em; line-height:1.1; margin:0; }
.section-heading p { color:var(--muted); margin:0; max-width:510px; }
.network-directory,.article-grid { display:grid; gap:20px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.network-site-card,.post-card,.article-panel { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.network-site-card { display:flex; flex-direction:column; min-height:220px; padding:28px; }
.card-kicker { color:var(--accent-dark); font-size:.73rem; font-weight:800; letter-spacing:.1em; margin:0 0 20px; text-transform:uppercase; }
.network-site-card h3,.post-card h2 { font-size:clamp(1.35rem,2.4vw,1.9rem); letter-spacing:-.04em; line-height:1.12; margin:0; }
.network-site-card h3 a,.post-card h2 a { color:var(--ink); text-decoration:none; }
.network-site-card h3 a:hover,.post-card h2 a:hover { color:var(--accent-dark); }
.card-copy,.post-excerpt { color:var(--muted); margin:15px 0 22px; }
.post-excerpt { -webkit-box-orient:vertical; -webkit-line-clamp:4; display:-webkit-box; overflow:hidden; }
.back-link { margin:34px 0 -31px; position:relative; z-index:1; }
.back-link a { font-size:.92rem; font-weight:800; text-decoration:none; }
.card-link { font-size:.92rem; font-weight:800; margin-top:auto; text-decoration:none; }
.post-card { display:flex; flex-direction:column; overflow:hidden; }
.post-card-image { aspect-ratio:16/9; background:#e9edf0; display:block; overflow:hidden; }
.post-card-image img { height:100%; object-fit:cover; width:100%; }
.post-card-body { display:flex; flex:1; flex-direction:column; padding:25px; }
.post-meta { color:var(--muted); font-size:.82rem; margin:0 0 12px; }
.post-card .card-link { margin-top:auto; }
.archive-hero { padding:58px 0 30px; }
.archive-hero .page-heading { font-size:clamp(2.3rem,5vw,4rem); }
.article-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.empty-state { background:var(--surface); border:1px dashed var(--line); border-radius:var(--radius); color:var(--muted); padding:30px; }
.article-panel { margin:55px auto 76px; max-width:770px; padding:clamp(27px,5vw,58px); }
.article-panel h1 { font-size:clamp(2rem,5vw,3.6rem); letter-spacing:-.055em; line-height:1.04; margin:0 0 16px; }
.entry-content>* { max-width:100%; }
.entry-content p,.entry-content li { font-size:1.06rem; }
.entry-content a { overflow-wrap:anywhere; }
.entry-content pre { overflow:auto; padding:18px; }
.pagination { display:flex; gap:8px; margin-top:35px; }
.pagination .page-numbers { background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:7px 12px; text-decoration:none; }
.pagination .current { background:var(--night); color:#fff; }
.site-footer { background:var(--night); color:#dbe1e6; padding:38px 0; }
.footer-inner { display:flex; flex-wrap:wrap; gap:15px 30px; justify-content:space-between; }
.footer-inner p { margin:0; }
.site-footer a { color:#fff; }
@media (max-width:760px) { .header-inner { align-items:flex-start; flex-direction:column; gap:16px; padding:22px 0; } .primary-menu { gap:8px 18px; } .hero { padding-top:48px; } .network-directory,.article-grid { grid-template-columns:1fr; } .section-heading { align-items:flex-start; flex-direction:column; } .article-panel { margin-top:34px; } }
