/* blog2027ai — public styles
   Design: warm Anthropic-ish home bg + crisp white article page.
   Responsive + optimized for 27" 2560/3840-wide desktops. */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0}
img,svg,video{max-width:100%;height:auto;display:block}
a{color:inherit}
button{font:inherit}

/* Home ----------------------------------------------------------------- */
body.home{
  background:var(--home-bg,#F5EFE6);
  color:var(--home-fg,#2b2a28);
  font-family:var(--home-font);
  font-size:var(--home-size,18px);
  font-weight:var(--home-weight,400);
  line-height:1.65;
  min-height:100vh;
  display:flex;flex-direction:column;
}
body.home main{flex:1}

.container{
  width:100%;
  max-width:1120px;
  margin:0 auto;
  padding:0 1.5rem;
}

/* 27" desktop (≥1600px) – bigger type, comfortable max-width */
@media (min-width:1600px){
  .container{max-width:1280px}
  body.home{font-size:calc(var(--home-size,18px) + 1px)}
}
/* 27" 4K / 5K */
@media (min-width:2400px){
  .container{max-width:1440px;padding:0 2rem}
  body.home{font-size:calc(var(--home-size,18px) + 3px)}
}

/* Skip link */
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:1rem;top:1rem;background:#fff;padding:.5rem .75rem;border-radius:6px;z-index:10}

/* Header */
.site-header{
  padding:1.25rem 0;
  border-bottom:1px solid rgba(0,0,0,.06);
  background:transparent;
  backdrop-filter:saturate(120%);
}
.site-header.subtle{background:transparent;border-bottom:none}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand{display:inline-flex;align-items:center;gap:.6rem;text-decoration:none;color:inherit}
.brand-dot{
  width:14px;height:14px;border-radius:50%;
  background:var(--home-accent,#C96442);
  box-shadow:0 0 0 3px rgba(201,100,66,.12);
}
.brand-name{font-weight:700;letter-spacing:.2px;font-size:1.05em}
.back-home{color:#555;text-decoration:none;font-size:.95em}
.back-home:hover{color:var(--home-accent,#C96442)}

.search input{
  border:1px solid rgba(0,0,0,.1);
  background:rgba(255,255,255,.6);
  border-radius:999px;
  padding:.55rem 1rem;
  width:min(320px,40vw);
  font:inherit;
  color:inherit;
  outline:none;
  transition:border-color .15s,background .15s;
}
.search input:focus{border-color:var(--home-accent,#C96442);background:#fff}

/* Hero */
.hero{padding:4rem 0 2.5rem;text-align:left}
.hero-title{
  font-size:clamp(2rem,4vw,3.6rem);
  line-height:1.1;margin:0 0 .6rem;
  font-weight:700;letter-spacing:-.01em;
}
.hero-sub{color:rgba(0,0,0,.62);margin:0;max-width:58ch;font-size:1.06em}

/* Posts grid */
.posts{
  display:grid;
  grid-template-columns:1fr;
  gap:1.5rem;
  padding:1rem 0 3rem;
}
@media (min-width:780px){.posts{grid-template-columns:repeat(2,1fr);gap:1.75rem}}
@media (min-width:1200px){.posts{grid-template-columns:repeat(3,1fr);gap:2rem}}
@media (min-width:1900px){.posts{grid-template-columns:repeat(3,1fr);gap:2.5rem}}

.post-card{
  background:rgba(255,255,255,.55);
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  overflow:hidden;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
  display:flex;flex-direction:column;
}
.post-card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 32px -12px rgba(0,0,0,.12);
  background:rgba(255,255,255,.8);
}
.post-cover{display:block;aspect-ratio:16/9;overflow:hidden;background:#eee}
.post-cover img{width:100%;height:100%;object-fit:cover}
.post-body{padding:1.1rem 1.2rem 1.2rem}
.post-title{margin:.1rem 0 .5rem;font-size:1.25em;line-height:1.3}
.post-title a{text-decoration:none;color:inherit}
.post-title a:hover{color:var(--home-accent,#C96442)}
.post-excerpt{margin:0 0 .8rem;color:rgba(0,0,0,.68);font-size:.97em;line-height:1.55}
.post-meta{color:rgba(0,0,0,.5);font-size:.85em;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.dot{opacity:.5}
.tag{display:inline-block;background:rgba(201,100,66,.12);color:var(--home-accent,#C96442);
  padding:2px 8px;border-radius:999px;font-size:.78em;margin-right:.3rem}

.empty{padding:3rem 0;color:rgba(0,0,0,.55)}

.pager{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0 3rem}
.pager a{text-decoration:none;color:var(--home-accent,#C96442);font-weight:600}
.pager-info{color:rgba(0,0,0,.55);font-size:.9em}

/* Footer */
.site-footer{
  margin-top:auto;padding:2rem 0 2.5rem;
  border-top:1px solid rgba(0,0,0,.06);
  color:rgba(0,0,0,.55);font-size:.9em;
}
.footer-inner{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between}
.footer-brand{display:inline-flex;align-items:center;gap:.5rem;font-weight:600;color:rgba(0,0,0,.7)}
.footer-nav{display:flex;flex-wrap:wrap;gap:1rem}
.footer-nav a{color:inherit;text-decoration:none}
.footer-nav a:hover{color:var(--home-accent,#C96442)}
.admin-link{font-weight:500}
.footer-copy{width:100%;text-align:left;margin-top:.25rem;opacity:.75;font-size:.85em}

/* Article ---------------------------------------------------------------- */
body.article-page{
  background:var(--article-bg,#fff);
  color:var(--article-fg,#1f2328);
  font-family:var(--article-font);
  font-size:var(--article-size,18px);
  font-weight:var(--article-weight,400);
  line-height:1.78;
  margin:0;
  min-height:100vh;
}
body.article-page .site-header{border-bottom-color:rgba(0,0,0,.05)}
.article-container{
  max-width:780px;margin:0 auto;padding:2rem 1.5rem 4rem;
}
@media (min-width:1600px){
  .article-container{max-width:820px}
  body.article-page{font-size:calc(var(--article-size,18px) + 1px)}
}
@media (min-width:2400px){
  .article-container{max-width:880px}
  body.article-page{font-size:calc(var(--article-size,18px) + 2px)}
}

.article-header{margin-bottom:2rem}
.article-title{
  font-size:clamp(1.8rem,3vw,2.6rem);line-height:1.2;margin:.2rem 0 .8rem;
  font-weight:700;letter-spacing:-.005em;
}
.article-meta{color:rgba(0,0,0,.55);font-size:.92em;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin:0}
.article-cover{margin:1.5rem 0 0}
.article-cover img{width:100%;border-radius:10px;max-height:60vh;object-fit:cover}

/* Article body typography */
.article-body{color:var(--article-fg)}
.article-body > *{margin:0 0 1.1em}
.article-body > *:last-child{margin-bottom:0}
.article-body p{line-height:1.85}
.article-body h2{font-size:1.55em;line-height:1.3;margin:2em 0 .6em;font-weight:700;letter-spacing:-.005em}
.article-body h3{font-size:1.25em;line-height:1.35;margin:1.8em 0 .5em;font-weight:700}
.article-body h4{font-size:1.08em;margin:1.5em 0 .4em;font-weight:700}
.article-body ul,.article-body ol{padding-left:1.6em}
.article-body li{margin:.25em 0}
.article-body blockquote{
  margin:1.25em 0;padding:.4em 1.1em;border-left:3px solid rgba(201,100,66,.45);
  color:rgba(0,0,0,.7);background:rgba(201,100,66,.05);border-radius:0 8px 8px 0;
}
.article-body a{color:#9a4a30;text-decoration:underline;text-underline-offset:3px}
.article-body a:hover{color:#C96442}
.article-body img{border-radius:8px;margin:1em auto}
.article-body hr{border:0;border-top:1px solid rgba(0,0,0,.08);margin:2em 0}

/* Inline code */
.article-body code{
  background:rgba(0,0,0,.05);padding:1px 6px;border-radius:4px;
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.92em;
}
/* Code blocks — shown as plain preformatted text (NOT executed). */
.article-body pre{
  background:#0e1116;color:#e6edf3;padding:1rem 1.1rem;border-radius:10px;
  overflow:auto;font-size:.9em;line-height:1.6;
}
.article-body pre code{background:transparent;padding:0;color:inherit;font-size:inherit}

.article-body table{width:100%;border-collapse:collapse;margin:1.25em 0;font-size:.95em}
.article-body th,.article-body td{border-bottom:1px solid rgba(0,0,0,.1);padding:.55em .8em;text-align:left}
.article-body th{background:rgba(0,0,0,.03)}

.related{margin-top:3rem;padding-top:1.5rem;border-top:1px solid rgba(0,0,0,.08)}
.related h3{margin:0 0 .75rem;font-size:1em;color:rgba(0,0,0,.55);font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.related ul{list-style:none;padding:0;margin:0}
.related li{margin:.35em 0}
.related a{color:inherit;text-decoration:none;border-bottom:1px solid rgba(0,0,0,.15)}
.related a:hover{color:#C96442;border-bottom-color:#C96442}

/* Accessibility & print ------------------------------------------------- */
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media print{
  body{background:#fff;color:#000}
  .site-header,.site-footer,.search,.pager,.related{display:none}
}
