:root{
  --blue: #2b63ff;
  --ink: #111827;
  --muted: #6b7280;
  --surface: #ffffff;
  --border: rgba(43, 99, 255, .35);
  --shadow: 0 18px 40px rgba(17, 24, 39, .12);
  --radius-lg: 32px;
  --radius-md: 18px;

  --font: IRANYekanX, IRANYekan, "IRANSansX", "IRANSans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* IranYekan (local) - drop your font files into /assets/fonts/ and keep names below */
@font-face{
  font-family: "IRANYekanX";
  src: url("../fonts/IRANYekanX-Regular.woff2") format("woff2"),
       url("../fonts/IRANYekanX-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "IRANYekanX";
  src: url("../fonts/IRANYekanX-Medium.woff2") format("woff2"),
       url("../fonts/IRANYekanX-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "IRANYekanX";
  src: url("../fonts/IRANYekanX-Bold.woff2") format("woff2"),
       url("../fonts/IRANYekanX-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(var(--blue) 0, var(--blue) 360px, #fff 360px, #fff 100%);
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

.wrap{
  width: min(1120px, 92vw);
  margin-inline:auto;
}

.site-header{
  padding: 34px 0 18px;
}
.site-nav .menu{
  list-style:none;
  display:flex;
  gap: 34px;
  justify-content:center;
  align-items:center;
  padding:0;
  margin:0;
  flex-wrap: wrap;
}
.site-nav .menu a{
  color: rgba(255,255,255,.92);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  padding: 10px 4px;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease;
}
.site-nav .menu a:hover,
.site-nav .menu .current hookup {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* White main surface (like your screenshot) */
.surface{
  padding: 28px 0 52px;
}
.surface-card{
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px 34px 28px;
}

/* Grid cards */
.grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}
.post-card{
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow:hidden;
  background:#fff;
  transition: transform .14s ease, box-shadow .14s ease;
}
.post-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(43, 99, 255, .14);
}
.post-card-link{ display:block; }

.thumb{
  aspect-ratio: 16 / 9;
  background: rgba(43, 99, 255, .08);
  overflow:hidden;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.thumb-placeholder{
  width:100%;
  height:100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.65), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, rgba(43, 99, 255, .08), rgba(43, 99, 255, .18));
}

.post-title{
  margin: 10px 12px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #111827;
  line-height: 1.7;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

/* Pagination */
.pager{
  display:flex;
  justify-content:space-between;
  margin-top: 22px;
  padding-top: 14px;
}
.pager a{
  color: var(--muted);
  font-size: 13px;
}
.pager a:hover{ color: var(--ink); }

/* Single */
.surface-card.single{
  padding: 28px 28px 34px;
}
.single-hero{
  border-radius: 22px;
  overflow:hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(17, 24, 39, .06);
}
.single-hero img{
  width:100%;
  height:auto;
}
.single-head{
  margin-bottom: 18px;
}
.single-title{
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.6;
  font-weight: 700;
}
.single-meta{
  color: var(--muted);
  font-size: 13px;
}
.entry-content{
  line-height: 2.05;
  font-size: 15px;
}
.entry-content h2, .entry-content h3{
  margin-top: 26px;
  margin-bottom: 10px;
}
.entry-content p{
  margin: 0 0 14px;
}
.entry-content a{
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty{
  color: var(--muted);
  margin: 0;
  padding: 12px 0;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, .10);
  background: #fff;
}

.site-footer{
  padding: 26px 0 40px;
  background:#fff;
}
.footer-line{
  height:1px;
  background: rgba(17, 24, 39, .25);
  margin-bottom: 12px;
}
.footer-text{
  margin:0;
  text-align:center;
  font-size: 12px;
  color: #111827;
}

/* Responsive */
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .surface-card{ padding: 26px 20px 22px; }
}
@media (max-width: 520px){
  body{ background: linear-gradient(var(--blue) 0, var(--blue) 300px, #fff 300px, #fff 100%); }
  .grid{ grid-template-columns: 1fr; }
  .site-header{ padding: 24px 0 10px; }
  .site-nav .menu{ gap: 14px; }
}
