/* Back in the Shed — public site styles (house style shared with drawings / MAK Sports) */
:root{
  --bg:#ffffff;--card:#fff;--card2:#fafafa;--border:#e4e4e4;
  --text:#161616;--sub:#6b6b6b;--rule:#161616;--danger:#c0392b;
  --r:10px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{background:var(--bg);color:var(--text);font-family:'Inter',sans-serif;min-height:100vh;line-height:1.5}
a{color:inherit}
button{font-family:inherit}

/* Header: banner → nav, 2px rule */
header.site{padding:20px 16px 0;text-align:center;border-bottom:2px solid var(--rule)}
.site-banner{display:block;max-width:420px;margin:0 auto 10px}
.site-banner img{display:block;width:100%;height:auto}
.site-nav{display:flex;justify-content:center;flex-wrap:wrap}
.site-nav a{
  font-size:.86rem;font-weight:600;color:var(--sub);text-decoration:none;
  padding:10px 16px;border-bottom:2px solid transparent;margin-bottom:-2px;
}
.site-nav a:hover{color:var(--text)}
.site-nav a.on{color:var(--text);border-bottom-color:var(--rule)}
.owner-bar{background:var(--card2);border-bottom:1px solid var(--border);text-align:center;font-size:.78rem;color:var(--sub);padding:7px 16px}
.owner-bar a{color:var(--text);font-weight:600;text-decoration:none}

main{max-width:960px;margin:0 auto;padding:30px 16px 0}
main.narrow{max-width:720px}
.page-head{text-align:center;margin-bottom:30px}
.page-head h1{font-family:'Amatic SC',cursive;font-weight:700;font-size:clamp(44px,8vw,64px);letter-spacing:.03em;line-height:1}
.tagline{color:var(--sub);font-size:.92rem;margin-top:6px;font-style:italic;font-family:'Playfair Display',serif}
.back-link{text-align:center;margin:-16px 0 26px;font-size:.84rem}
.back-link a{color:var(--sub)}
.empty{text-align:center;color:var(--sub);font-style:italic;padding:40px 0}
.section-title{
  font-family:'Playfair Display',serif;font-style:italic;font-size:1.05rem;
  margin-bottom:14px;padding-bottom:6px;border-bottom:1px solid var(--border);
}
.btn{
  display:inline-block;background:var(--card);border:1px solid var(--rule);color:var(--text);border-radius:999px;
  font-size:.8rem;font-weight:600;padding:7px 14px;cursor:pointer;white-space:nowrap;text-decoration:none;
}
.btn.solid{background:var(--rule);color:#fff}
.btn:disabled{opacity:.4;cursor:default}
.link-btn{background:none;border:none;color:var(--sub);font-size:.76rem;cursor:pointer;text-decoration:underline;padding:0}
.link-btn.danger{color:var(--danger)}

.tag-row{display:flex;flex-wrap:wrap;gap:6px}
.tag{
  border:1px solid var(--border);border-radius:999px;font-size:.74rem;font-weight:500;
  color:var(--sub);padding:3px 10px;text-decoration:none;
}
.tag:hover{border-color:var(--rule);color:var(--text)}
.tag.on{background:var(--rule);border-color:var(--rule);color:#fff}
.tag .n{opacity:.6;margin-left:4px}

/* Post list */
.post-list{display:flex;flex-direction:column;gap:34px}
.post-item{display:grid;grid-template-columns:260px minmax(0,1fr);gap:26px;align-items:start}
.post-item .cover{display:block;aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:var(--card2)}
.post-item .cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}
.post-item .cover:hover img{transform:scale(1.03)}
.post-item .text{grid-column:2}
.post-item .date{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--sub)}
.post-item h2{font-family:'Playfair Display',serif;font-weight:500;font-size:1.45rem;line-height:1.25;margin:4px 0 8px}
.post-item h2 a{text-decoration:none}
.post-item h2 a:hover{text-decoration:underline;text-underline-offset:3px}
.post-item .excerpt{color:#333;font-size:.92rem;margin-bottom:10px}
.pager{display:flex;justify-content:space-between;align-items:center;margin:40px 0 0;padding-top:18px;border-top:1px solid var(--border);font-size:.86rem;font-weight:600}
.pager a{text-decoration:none}
.pager .where{color:var(--sub);font-weight:500;font-size:.8rem}
.tag-cloud{margin-top:48px}

/* Single post (post-body rules also style the editor's .ed-body) */
.draft-note{background:#fff8e1;border:1px solid #ffe082;color:#7a5c00;border-radius:8px;padding:8px 12px;font-size:.84rem;margin-bottom:20px;text-align:center}
.post-head{text-align:center;margin-bottom:28px}
.post-head .date{font-size:.74rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--sub)}
.post-head h1{font-family:'Playfair Display',serif;font-weight:500;font-size:clamp(1.8rem,5vw,2.6rem);line-height:1.15;margin:8px 0 14px}
.post-head .tag-row{justify-content:center}
.post-body,.ed-body{font-size:1.04rem;line-height:1.75}
.post-body > * + *,.ed-body > * + *{margin-top:1.1em}
.post-body h2,.post-body h3,.post-body h4,.ed-body h2,.ed-body h3,.ed-body h4{font-family:'Playfair Display',serif;font-weight:500;line-height:1.3;margin-top:1.6em}
.post-body h2,.ed-body h2{font-size:1.5rem}
.post-body h3,.ed-body h3{font-size:1.25rem}
.post-body a,.ed-body a{text-underline-offset:3px}
.post-body ul,.post-body ol,.ed-body ul,.ed-body ol{padding-left:1.4em}
.post-body li + li,.ed-body li + li{margin-top:.3em}
.post-body li > ul,.post-body li > ol,.ed-body li > ul,.ed-body li > ol{margin-top:.3em}
.post-body blockquote,.ed-body blockquote{border-left:3px solid var(--rule);padding:2px 0 2px 18px;font-family:'Playfair Display',serif;font-style:italic;font-size:1.1rem;color:#333}
.post-body hr,.ed-body hr{border:none;border-top:1px solid var(--border);margin:2em 0}
.post-body pre,.ed-body pre{background:var(--card2);padding:12px;border-radius:8px;overflow-x:auto;font-size:.88rem}
.post-body img,.ed-body img{display:block;max-width:100%;height:auto;border-radius:6px;cursor:zoom-in}
.post-body figure.img img,.ed-body figure.img img{margin:0 auto;max-height:85vh;width:auto}
.post-body figcaption,.ed-body figcaption{text-align:center;color:var(--sub);font-size:.84rem;margin-top:8px;font-style:italic}
.post-body figure.gallery,.ed-body figure.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
.post-body figure.gallery img,.ed-body figure.gallery img{width:100%;height:100%;aspect-ratio:1;object-fit:cover}
.post-body figure.gallery figcaption,.ed-body figure.gallery figcaption{grid-column:1/-1}
.post-body figure.video,.ed-body figure.video{position:relative;aspect-ratio:16/9;background:#000;border-radius:8px;overflow:hidden}
.post-body figure.video iframe,.ed-body figure.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.post-actions{margin-top:30px;text-align:center}

.post-nav{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:40px;padding-top:18px;border-top:2px solid var(--rule)}
.post-nav a{text-decoration:none;font-family:'Playfair Display',serif;font-size:1rem;line-height:1.3}
.post-nav a span{display:block;font-family:'Inter',sans-serif;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--sub);margin-bottom:3px}
.post-nav a:hover{text-decoration:underline;text-underline-offset:3px}
.post-nav .newer{text-align:right}

.comments{margin-top:40px}
.comment{padding:14px 0;border-bottom:1px solid var(--border)}
.comment .who{font-size:.8rem;color:var(--sub);margin-bottom:4px}
.comment .who b{color:var(--text)}
.comment .what{font-size:.92rem}
.comment .what p + p{margin-top:.6em}
.comment .link-btn{margin-top:6px}

/* Sign in */
.login{display:flex;flex-direction:column;gap:10px;max-width:300px;margin:0 auto}
.login input{font:inherit;padding:10px 12px;border:1px solid var(--border);border-radius:8px}
.login input:focus{outline:none;border-color:var(--rule)}
.status{font-size:.8rem;color:var(--sub);min-height:1.2em}
.status.err{color:var(--danger)}

footer.site{text-align:center;color:var(--sub);font-size:.76rem;margin:60px 0 40px}
footer.site a{color:var(--sub)}

/* Image lightbox (post pages) */
.lightbox{position:fixed;inset:0;background:rgba(10,10,10,.95);z-index:50;display:flex;align-items:center;justify-content:center}
.lightbox img{max-width:calc(100% - 32px);max-height:calc(100vh - 80px);object-fit:contain}
.lightbox .lb-btn{
  position:absolute;background:rgba(0,0,0,.45);border:1px solid #444;color:#fff;
  width:42px;height:42px;border-radius:50%;font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;
}
.lightbox .lb-close{top:12px;right:12px}
.lightbox .lb-prev{left:12px;top:50%;transform:translateY(-50%)}
.lightbox .lb-next{right:12px;top:50%;transform:translateY(-50%)}
.lightbox .lb-count{position:absolute;bottom:16px;color:#aaa;font-size:.8rem}

@media (max-width:700px){
  .post-item{grid-template-columns:1fr;gap:12px}
  .post-item .text{grid-column:1}
  .post-body{font-size:1rem}
  .post-body figure.gallery{grid-template-columns:repeat(2,1fr)}
  .post-nav{grid-template-columns:1fr}
  .post-nav .newer{text-align:left}
}
