/* Blog pages for ltimmins.co.uk */
:root{--brand:#F0B44C;--ink:#0E0E0D;--paper:#F3F2EE;--muted:#3E3E3A;--soft:#55554F;--line:#D6D4CC}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:'Schibsted Grotesk',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--ink);text-underline-offset:4px}
a:hover{color:#4A4A45}
img{max-width:100%;height:auto}
.mono{font-family:'IBM Plex Mono',ui-monospace,monospace}
.wrap{max-width:1280px;margin:0 auto;padding-left:24px;padding-right:24px}
.wrap.narrow{max-width:780px}

@keyframes blink{0%,49%{opacity:1}50%,100%{opacity:0}}

/* Header */
.site-header{background:#0B0B0A;color:var(--paper)}
.header-inner{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;padding-top:28px;padding-bottom:28px}
.site-header .brand{color:var(--paper);text-decoration:none;font-weight:700;font-size:17px;padding:10px 0}
.site-header nav{display:flex;flex-wrap:wrap;gap:8px;font-size:16px}
.site-header nav a{color:#D9D9D2;padding:10px 12px}
.site-header nav a[aria-current="page"]{color:var(--brand)}

/* Hero band */
.hero{background:#0B0B0A;color:var(--paper);padding:48px 0 88px}
.hero h1{margin:0;font-size:clamp(52px,8vw,120px);line-height:.9;letter-spacing:-.05em;font-weight:800}
.post-hero h1{font-size:clamp(40px,5.4vw,72px);line-height:1;letter-spacing:-.035em}
.caret::after{content:"_";color:var(--brand);animation:blink 1s step-end infinite}
.hero .lead{margin:24px 0 0;max-width:52ch;font-size:19px;line-height:1.6;color:#C4C4BC}
.hero-links{display:flex;flex-wrap:wrap;gap:24px;margin:28px 0 0;font-weight:700}
.hero-links a{color:var(--paper);padding:8px 0}
.crumbs{font-size:13px;color:#A3A39B;margin-bottom:28px}
.crumbs a{color:#D9D9D2;padding:6px 0}
.byline{margin:28px 0 0;font-size:13px;color:#A3A39B;line-height:1.8}
.byline a{color:#D9D9D2}

/* Blog list */
.list-wrap{padding-top:72px;padding-bottom:120px}
.empty{font-size:18px;color:var(--soft)}
.post-list{list-style:none;margin:0;padding:0;border-top:1.5px solid var(--ink)}
.post-list li{border-bottom:1px solid var(--line)}
.post-row{display:grid;grid-template-columns:160px minmax(0,1fr);gap:8px 40px;padding:36px 0}
.post-row time{font-size:13px;color:var(--soft);padding-top:8px}
.post-row h2{margin:0;font-size:clamp(26px,3vw,36px);line-height:1.1;letter-spacing:-.025em;font-weight:800}
.post-row h2 a{text-decoration:none}
.post-row h2 a:hover{text-decoration:underline}
.post-row p{margin:12px 0 0;font-size:17px;line-height:1.6;color:var(--muted);max-width:65ch}
.post-row .meta{font-size:12.5px;color:var(--soft)}
@media (max-width:640px){.post-row{grid-template-columns:1fr}.post-row time{padding-top:0}}

/* Post body */
.post-body{padding-top:64px;padding-bottom:88px}
.cover{margin:0 0 48px}
.cover img{display:block;width:100%;border-radius:12px}
.prose{font-size:19px;line-height:1.75;color:#1F1F1C}
.prose > *:first-child{margin-top:0}
.prose p,.prose ul,.prose ol,.prose blockquote,.prose pre,.prose table,.prose figure{margin:0 0 1.25em}
.prose h2{font-size:32px;line-height:1.15;letter-spacing:-.025em;font-weight:800;margin:2em 0 .6em}
.prose h3{font-size:24px;line-height:1.25;letter-spacing:-.015em;font-weight:700;margin:1.8em 0 .5em}
.prose h4{font-size:19px;font-weight:700;margin:1.6em 0 .4em}
.prose a{color:var(--ink);text-decoration-color:var(--brand);text-decoration-thickness:2px}
.prose strong{font-weight:700;color:var(--ink)}
.prose ul,.prose ol{padding-left:1.3em}
.prose li{margin:.35em 0}
.prose blockquote{margin-left:0;padding:4px 0 4px 22px;border-left:3px solid var(--brand);color:var(--muted);font-style:italic}
.prose img{display:block;border-radius:10px;margin:2em 0}
.prose figure{margin:2.2em 0}
.prose figure img{margin:0 auto}
.prose figure.screenshot img{max-width:min(100%,520px);border-radius:14px;box-shadow:0 18px 40px rgba(0,0,0,.18)}
.prose figcaption{margin-top:14px;font-size:14px;line-height:1.5;color:var(--soft);text-align:center}
.prose .embed{display:flex;justify-content:center;margin:2.2em 0}
.prose .embed iframe{display:block;width:100%;max-width:520px;height:720px;border:0;border-radius:14px;background:#fff;box-shadow:0 18px 40px rgba(0,0,0,.12)}
.prose .embed{margin-bottom:12px}
.prose .embed-caption{margin:0 0 2.2em;text-align:center;font-size:14px}
.prose hr{border:0;border-top:1.5px solid var(--line);margin:3em 0}
.prose code{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:.86em;background:#E6E4DD;padding:.15em .4em;border-radius:5px}
.prose pre{background:#0F0F0E;color:#D9D9D2;padding:20px 22px;border-radius:12px;overflow-x:auto;font-size:15px;line-height:1.65}
.prose pre code{background:none;padding:0;font-size:inherit;color:inherit}
.prose table{width:100%;border-collapse:collapse;font-size:16px;display:block;overflow-x:auto}
.prose th,.prose td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--line)}
.prose th{font-weight:700;border-bottom:1.5px solid var(--ink)}

.tags{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:40px 0 0}
.tags li{font-size:12.5px;padding:6px 12px;border:1px solid var(--ink);border-radius:999px}

.author{display:flex;gap:20px;align-items:flex-start;margin-top:56px;padding:28px;background:#E8E6DF;border-radius:16px}
.author img{width:72px;height:72px;border-radius:50%;object-fit:cover;object-position:62% 30%;flex-shrink:0}
.author p{margin:0 0 8px;font-size:16px;line-height:1.6;color:var(--muted)}
.author p:last-child{margin:0}
.author .author-name{font-weight:800;font-size:18px;color:var(--ink)}
.author a{font-weight:600}

/* More posts */
.more{padding-top:24px;padding-bottom:120px}
.more h2{font-size:32px;letter-spacing:-.02em;font-weight:800;margin:0 0 28px}
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px}
.post-card{display:flex;flex-direction:column;gap:12px;padding:28px;border:1.5px solid var(--ink);border-radius:16px;text-decoration:none;color:var(--ink);transition:background .2s,color .2s,transform .2s}
.post-card time{font-size:12.5px;color:var(--soft)}
.post-card h3{margin:0;font-size:24px;line-height:1.2;letter-spacing:-.02em;font-weight:800}
.post-card p{margin:0;font-size:16px;line-height:1.6;color:var(--muted)}
.post-card .read{margin-top:auto;font-weight:700;font-size:15px}
.post-card:hover{background:var(--ink);color:var(--paper);transform:translateY(-3px)}
.post-card:hover time{color:#A3A39B}
.post-card:hover p{color:#C4C4BC}
.post-card:hover .read{color:var(--brand)}

/* Footer */
.site-footer{border-top:1.5px solid var(--ink)}
.footer-inner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding-top:24px;padding-bottom:40px;font-size:14px;color:#4A4A45}
.footer-inner a{color:#4A4A45}

@media (prefers-reduced-motion: reduce){.caret::after{animation:none}.post-card{transition:none}}
