/* Press StaticGen — Light Mode Only */
:root{
  --bg: #ffffff;
  --text: #0b1220;
  --muted:#5c667a;
  --card:#ffffff;
  --border:#e7ebf2;
  --accent:#0b2a6f;
  --accent2:#0a3a9a;
  --shadow: 0 10px 30px rgba(11,18,32,.08);
  --radius: 16px;
  --max: 1120px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";

  /* Dark navbar specific colors */
  --navbar-bg: #0b1220;
  --navbar-text: #ffffff;
  --navbar-border: #1e2938;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:var(--sans);
  background: radial-gradient(1200px 500px at 20% -10%, rgba(11,42,111,.12), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(10,58,154,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}
a{color:inherit; text-decoration:none}
a:hover{color:var(--accent)}
.container{max-width:var(--max); margin:0 auto; padding: 20px;}
.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: var(--navbar-bg);
  border-bottom:1px solid var(--navbar-border);
}
.header-inner{
  max-width:var(--max); margin:0 auto; padding:14px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.brand{
  display:flex; flex-direction:column; line-height:1.1;
  color: var(--navbar-text);
}
.brand .name{font-weight:800; letter-spacing:.2px; color: var(--navbar-text);}
.brand .tag{font-size:12px; color: rgba(255,255,255,0.7); margin-top:4px}
.brand:hover{color: var(--navbar-text); opacity: 0.9;}
.header-actions{display:flex; align-items:center; gap:10px}
.header .btn{
  color: var(--navbar-text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}
.header .btn:hover{
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  color: var(--navbar-text);
}
.header .btn-primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-color: transparent;
}
.header .btn-primary:hover{
  filter: brightness(1.1);
  color: #fff;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--border);
  background: var(--card);
  padding:10px 16px;
  border-radius: 999px;
  font-weight:600;
  font-size: 14px;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn:hover{
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--card));
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(11,18,32,.1);
}
.btn-primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#fff;
  border-color: transparent;
}
.btn-primary:hover{
  filter:brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11,42,111,.25);
}
.icon-btn{
  width:40px; height:40px; padding:0;
}
.main{
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  padding: 28px 0 44px;
}
@media (max-width: 1080px){
  .main{
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-title{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin:0 0 12px;
}
.section-title h2{margin:0; font-size:18px}
.section-title .hint{color:var(--muted); font-size:13px}

.feed{display:flex; flex-direction:column; gap:14px}
.featured{
  overflow:hidden;
}
.featured .img{
  aspect-ratio: 16/9;
  width:100%;
  background: linear-gradient(135deg, rgba(11,42,111,.25), rgba(103,212,255,.15));
  border-bottom:1px solid var(--border);
}
.featured .body{padding:16px 16px 18px}
.meta{display:flex; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:12px; align-items:center;}
.meta .pill{
  border:1px solid var(--border);
  padding:5px 10px; border-radius:999px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  font-weight: 500;
  transition: all 0.2s ease;
}
.meta .pill:hover{
  transform: translateY(-1px);
}
.featured h1{margin:10px 0 8px; font-size:26px; line-height:1.2}
.excerpt{color:var(--muted); line-height:1.6; margin:0}

.list .item{
  display:grid; grid-template-columns: 140px 1fr;
  gap:14px; padding:14px;
  border-radius: 14px;
  transition: background 0.2s ease;
}
.list .item:hover{
  background: color-mix(in srgb, var(--card) 96%, var(--accent));
}
@media (max-width: 640px){
  .list .item{grid-template-columns: 1fr;}
}
.thumb{
  border-radius: 12px;
  border:1px solid var(--border);
  overflow:hidden;
  background: linear-gradient(135deg, rgba(11,42,111,.25), rgba(103,212,255,.12));
  aspect-ratio: 16/10;
}
.thumb img{width:100%; height:100%; object-fit:cover; display:block}
.item h3{margin:2px 0 6px; font-size:16px; line-height:1.25}
.item .excerpt{font-size:13px}

.sidebar .box{padding:14px}
.sidebar .box h3{margin:0 0 8px; font-size:15px}
.sidebar .box p{margin:0 0 12px; color:var(--muted); line-height:1.55; font-size:13px}
.field{
  display:flex; gap:8px; align-items:center;
  margin-top:10px;
}
.input{
  flex:1;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  color: var(--text);
  outline:none;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
select.input{
  cursor: pointer;
}
textarea.input{
  resize: vertical;
  min-height: 100px;
}
.small{font-size:12px; color:var(--muted); margin-top:8px}
.pagination{
  display:flex; justify-content:space-between; gap:10px;
  margin-top:14px;
}
.footer{
  border-top:1px solid var(--border);
  padding: 22px 0;
  color: var(--muted);
  font-size: 13px;
  margin-top: 40px;
}
.footer a{color:var(--muted); transition: color 0.2s ease;}
.footer a:hover{color:var(--accent)}
.footer-inner{
  max-width:var(--max); margin:0 auto; padding: 0 20px;
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;
  align-items: center;
}

/* Post page */
.post-header{padding:18px}
.post-cover{
  width:100%; aspect-ratio: 16/7; border-bottom:1px solid var(--border);
  background: linear-gradient(135deg, rgba(11,42,111,.25), rgba(103,212,255,.12));
}
.post-cover img{width:100%; height:100%; object-fit:cover; display:block}
.post-header h1{margin:10px 0 8px; font-size:32px; line-height:1.2; font-weight:800;}
.post-content{padding: 0 20px 26px; font-size: 16px;}
.post-content p{line-height:1.8; margin-bottom: 16px;}
.post-content h2{margin-top:32px; margin-bottom: 14px; font-size: 24px; font-weight: 700;}
.post-content h3{margin-top:24px; margin-bottom: 12px; font-size: 20px; font-weight: 700;}
.post-content ul, .post-content ol{line-height:1.8; margin-bottom: 16px; padding-left: 24px;}
.post-content li{margin-bottom: 8px;}
.post-content a{color: var(--accent); text-decoration: underline;}
.post-content a:hover{color: var(--accent2);}
.post-content pre{
  overflow:auto;
  padding:14px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  font-family:var(--mono);
  font-size:13px;
}
.post-content code{font-family:var(--mono)}
.post-content blockquote{
  margin: 14px 0;
  padding: 10px 12px;
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border-radius: 10px;
}

/* Loader */
#pageLoader{
  position:fixed; inset:0; z-index:9999;
  display:none;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px);
}
#pageLoader.on{display:flex; align-items:center; justify-content:center;}
.loaderCard{
  width:min(420px, 86vw);
  padding:14px 14px;
  border-radius: 18px;
  border:1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}
.loaderTop{display:flex; align-items:center; justify-content:space-between; gap:10px}
.loaderTitle{font-weight:800}
.dots{display:flex; gap:6px}
.dot{
  width:8px; height:8px; border-radius:999px;
  background: var(--accent);
  opacity:.25;
  animation: pulse 1s infinite;
}
.dot:nth-child(2){animation-delay:.18s}
.dot:nth-child(3){animation-delay:.36s}
@keyframes pulse{
  0%,100%{opacity:.25; transform: translateY(0)}
  50%{opacity:1; transform: translateY(-2px)}
}
