/* =========================
   Z.I.N. Site Styles (Stable)
   - Blog index loads posts from posts.json
   - About is a standalone page (about.html)
========================= */
:root{
  --bg: #F4F1EC;
  --surface: #FFFFFF;
  --border: #E6E2DA;
  --text: #2E2E2C;
  --muted: #6F6E6B;
  --pill: #E7F0EE;

  --container: 1100px;
  --radius: 16px;
  --shadow: 0 10px 25px rgba(0,0,0,0.06);

  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  /* Header tuning */
  --header-height: 205px;
  --header-bg-x: 8%;
  --header-bg-y: 45%;
  --header-bg-scale: 108%;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

/* Header */
.site-header{
  position: relative;
  height: var(--header-height);
  background-image: url("/assets/images/header+channels_banner.jpg");
  background-repeat: no-repeat;
  background-position: var(--header-bg-x) var(--header-bg-y);
  background-size: var(--header-bg-scale) auto;
  background-color: #2b2b2b;

  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  padding: 0 6% 18px;
  overflow:hidden;
}
.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to right, rgba(0,0,0,0.40), rgba(0,0,0,0.14), rgba(0,0,0,0));
}
.header-content{
  position:relative;
  z-index:2;
  color:#F4F1EC;
  max-width: 620px;
}
.site-eyebrow{
  display:block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 0.35rem;
}
.site-title{
  margin: 0;
  font-family: var(--font-serif);
  font-size: 3.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.0;
}
.site-values{
  margin-top: 0.65rem;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  opacity: 0.96;
  display:flex;
  flex-wrap:wrap;
  gap: 0.45rem;
  align-items:center;
}
.site-values .dot{ opacity: 0.65; }

/* Nav */
.nav-bar-wrap{
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-bar{
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  gap: 10px;
  align-items:center;
}
.nav-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #F7F7F5;
  text-decoration:none;
  color: var(--text);
  font-size: 0.95rem;
}
.nav-pill:hover{ border-color: #D7D2C9; }
.nav-pill.active{
  background: var(--pill);
  border-color: #CFE1DD;
}

/* Layout */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px 16px 36px;
}
.section-title{
  margin: 0 0 14px 0;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Cards */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

/* Posts */
.post-card{ margin-bottom: 16px; }
.post-meta{
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 6px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.post-meta .sep{ opacity: 0.6; }
.post-title{
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}
.post-link{
  color: var(--text);
  text-decoration:none;
}
.post-link:hover{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.post-preview{
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.post-preview p{ margin: 0 0 0.9rem 0; }
.post-preview p:last-child{ margin-bottom: 0; }

/* About page */
.about-page h2.section-title{ margin-bottom: 10px; }
.about-wrap{
  display: grid;
  grid-template-columns: 1fr 420px; /* bigger thumbnail column */
  gap: 22px;
  align-items: start;
}
.about-image{
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}
.about-text p{
  margin: 0 0 14px 0;
  font-size: 0.95rem;
  line-height: 1.65;
}
.about-text p:last-child{ margin-bottom: 0; }

/* Footer */
footer{
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 26px;
}
.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px){
  :root{
    --header-height: 230px;
    --header-bg-x: 6%;
    --header-bg-y: 48%;
    --header-bg-scale: 125%;
  }
  .site-header{ padding: 0 8% 18px; }
  .site-title{ font-size: 2.5rem; }
  .about-wrap{ grid-template-columns: 1fr; }
  .about-image{ max-width: 560px; }
}
@media (max-width: 520px){
  .site-title{ font-size: 2.2rem; }
  .site-values{ font-size: 0.85rem; }
}


/* Post page typography + hero image */
.post-hero{
  width:100%;
  height:auto;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}
.post-content{
  font-size: 0.98rem;
  line-height: 1.75;
}
.post-content p{ margin: 0 0 14px 0; }
.post-content p:last-child{ margin-bottom: 0; }
.post-tag{
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}
