/* assets/style.css */

:root{
  --paper: #fbfaf6;
  --ink: #111;
  --muted: #555;
  --line: rgba(30, 90, 200, 0.12);
  --border: rgba(0,0,0,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 14px;
  --wrap: 980px;
}

/* Reset-ish */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--ink);
  background: var(--paper);

  /* Notebook lines */
  background-image:
    linear-gradient(to bottom, transparent 23px, var(--line) 24px, transparent 25px);
  background-size: 100% 26px;

  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

img{ max-width:100%; height:auto; }
a{ color:inherit; }
a:hover{ opacity:.85; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 18px;
}

/* Header / Nav */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(251,250,246,.82);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  padding: 12px 18px;
}

.brand{
  font-weight: 800;
  text-decoration:none;
  letter-spacing: .2px;
}

.nav{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

.nav a{
  text-decoration:none;
  padding: 6px 10px;
  border-radius: 10px;
}

.nav a.active{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.55);
}

/* Card */
.card{
  background: rgba(255,255,255,.70);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

/* Hero */
.hero{
  margin: 22px 0;
}

.hero h1{
  margin: 0 0 6px;
}

.lead{
  margin: 0 0 14px;
  color: var(--muted);
}

/* Chips (tags) */
.chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin: 10px 0 16px;
}

.chips span{
  font-size: 13px;
  color: var(--muted);
  border: 1px dashed var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}

/* Buttons */
.cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration:none;
  font-weight: 700;
}

.btn.ghost{
  background: transparent;
}

/* Default 3-column grid used on homepage */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0 40px;
}

/* Lists */
.list{
  margin: 10px 0 0;
  padding-left: 18px;
}

.list small{
  color: var(--muted);
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  background: rgba(251,250,246,.82);
  padding: 14px 0;
}

.site-footer small{
  color: var(--muted);
}

/* Type defaults inside cards */
h1,h2,h3{
  letter-spacing: .1px;
}

h2{ margin: 0 0 8px; }
h3{ margin: 0 0 8px; }
p{ margin: 0 0 10px; }
p:last-child{ margin-bottom: 0; }

/* Selection (nice touch) */
::selection{
  background: rgba(30, 90, 200, 0.16);
}

/* Responsive */
@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
  .site-header .wrap{ padding: 10px 12px; }
  .wrap{ padding: 0 12px; }
}

.post-hero-wrap{
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  margin: 0 0 16px 0;
}

.post-hero{
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
}

.post-hero img{
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover;
  object-position: center;
}