:root{
  --bg0:#070609;
  --bg1:#0b0a0d;
  --text:#f1ecea;
  --muted:rgba(241,236,234,.72);
  --muted2:rgba(241,236,234,.50);
  --panel:rgba(255,255,255,.035);
  --panel2:rgba(255,255,255,.05);
  --border:rgba(255,255,255,.12);
  --wine:#7a1f2b;
  --wine2:#b13a4b;
  --shadow:rgba(0,0,0,.62);
  --radius:18px;
  --max:980px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Georgia, "Times New Roman", serif;
  color:var(--text);
  line-height:1.85;
  background:
    radial-gradient(1200px 700px at 18% 10%, rgba(122,31,43,.26), transparent 60%),
    radial-gradient(900px 650px at 82% 22%, rgba(177,58,75,.14), transparent 55%),
    radial-gradient(1200px 900px at 50% 115%, rgba(255,255,255,.03), transparent 65%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

4
/* subtle grain */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.12;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

a{ color:var(--text); text-decoration:none; }
a:hover{ text-decoration:none; }

.container{
  max-width:var(--max);
  margin:84px auto;
  padding:0 26px;
  position:relative;
  z-index:1;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:46px;
}
.brand{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand .name{ font-weight:700; letter-spacing:.3px; }
.brand .tag{ color:var(--muted2); font-style:italic; font-size:.95rem; }

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.pill{
  display:inline-flex;
  align-items:center;
  padding:9px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  color:var(--muted);
  transition:transform .15s ease, border-color .15s ease, background .15s ease;
}
.pill:hover{
  transform:translateY(-1px);
  border-color:rgba(177,58,75,.35);
  background:rgba(122,31,43,.12);
  color:var(--text);
}

.site-title{
  font-size:clamp(2.25rem, 4vw, 3.3rem);
  margin:0 0 10px 0;
  letter-spacing:.4px;
  text-shadow:0 12px 42px rgba(0,0,0,.65);
}
.subtitle{ color:var(--muted2); font-style:italic; }
.lead{ margin-top:22px; max-width:72ch; color:var(--muted); }

hr{
  border:none;
  border-top:1px solid rgba(255,255,255,.10);
  margin:66px 0;
  position:relative;
}
hr::after{
  content:"";
  position:absolute;
  left:0;
  top:-1px;
  height:2px;
  width:160px;
  background:linear-gradient(90deg, var(--wine2), transparent);
  opacity:.95;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:22px;
}

.card{
  position:relative;
  border-radius:var(--radius);
  padding:22px 22px 18px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--border);
  box-shadow:0 20px 60px var(--shadow);
  overflow:hidden;
  transform:translateY(0);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.card::before{
  content:"";
  position:absolute;
  inset:-70px -70px auto auto;
  width:240px;
  height:240px;
  background:radial-gradient(circle at 30% 30%, rgba(122,31,43,.38), transparent 62%);
  opacity:.9;
}
.card::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:linear-gradient(180deg, rgba(177,58,75,.95), rgba(122,31,43,.45), transparent);
  opacity:.95;
}
.card:hover{
  transform:translateY(-4px);
  border-color:rgba(177,58,75,.35);
  box-shadow:0 28px 90px rgba(0,0,0,.72);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.card h2{ margin:0 0 8px 0; letter-spacing:.2px; }
.card p{ margin:0; color:var(--muted); }

.enter{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:18px;
  padding:10px 13px;
  border-radius:14px;
  border:1px solid rgba(177,58,75,.30);
  background:rgba(122,31,43,.10);
  color:var(--text);
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}
.enter:hover{
  background:rgba(122,31,43,.18);
  border-color:rgba(177,58,75,.55);
  transform:translateX(2px);
}

/* posts */
.post{
  margin-bottom:26px;
  padding:22px 22px 18px;
  border-radius:var(--radius);
  background:linear-gradient(180deg, var(--panel2), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.11);
  box-shadow:0 18px 55px rgba(0,0,0,.58);
  position:relative;
  overflow:hidden;
}
.post::before{
  content:"✶";
  position:absolute;
  right:18px;
  top:14px;
  font-size:14px;
  color:rgba(177,58,75,.35);
}
.post-date{
  display:inline-block;
  font-size:.92rem;
  color:rgba(241,236,234,.82);
  padding-bottom:10px;
  margin-bottom:14px;
  border-bottom:1px solid rgba(177,58,75,.38);
  letter-spacing:.2px;
}
.post p{ margin:0; color:var(--text); }

.poem{
  text-align:center;
  font-style:italic;
  color:rgba(241,236,234,.90);
  letter-spacing:.2px;
}

/* likes */
.likebar{
  margin-top:16px;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted2);
  user-select:none;
}
.likebtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:none;
  background:transparent;
  color:rgba(241,236,234,.80);
  cursor:pointer;
  padding:6px 8px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.08);
  transition:border-color .15s ease, background .15s ease, transform .15s ease;
}
.likebtn:hover{
  border-color:rgba(177,58,75,.35);
  background:rgba(122,31,43,.08);
  transform:translateY(-1px);
}
.likebtn .heart{
  font-size:18px;
  line-height:1;
}
.likecount{
  font-variant-numeric: tabular-nums;
  color:rgba(241,236,234,.78);
}

/* page-specific vibe */
body.page-poetry .post{
  padding:28px 22px 22px;
}
body.page-poetry .post-date{
  border-bottom-color:rgba(255,255,255,.08);
  color:rgba(241,236,234,.70);
}
body.page-poetry .post::before{
  content:"†";
  color:rgba(177,58,75,.28);
}

/* quiet footer */
footer{
  margin-top:70px;
  color:var(--muted2);
  font-size:.92rem;
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
footer .sig{ font-style:italic; }
.back{
  display:inline-block;
  color:var(--muted);
  border-bottom:1px solid rgba(177,58,75,.35);
  padding-bottom:3px;
}
.back:hover{
  color:var(--text);
  border-bottom-color:rgba(177,58,75,.60);
}

/* mobile polish */
@media (max-width: 700px){
  .container{ margin:56px auto; padding:0 18px; }
  .topbar{ margin-bottom:32px; }
  .site-title{ margin-top:8px; }
  .likebtn{ padding:10px 10px; } /* easier tap */
  .post{ padding:20px 18px 16px; }
  body.page-poetry .post{ padding:26px 18px 20px; }
  footer{ margin-top:52px; }
}

.crescent-moon{
  position: fixed;
  top: 16px;
  right: 16px;
  width: 160px;
  height: 160px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 9999;
  transform: rotate(-15deg);

}


.crescent-moon svg{
  width: 100%;
  height: 100%;
  fill: #e8e4d8;         /* off-white אלגנטי */
  filter: drop-shadow(0 14px 34px rgba(0,0,0,0.22));
}

@media (max-width: 768px){

  .container{
    padding: 20px;
  }

  .site-title{
    font-size: 2.2rem;
  }

  .subtitle{
    font-size: 1rem;
  }

  .grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post{
    padding: 16px;
  }

  .pill{
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  /* הירח */
  .crescent-moon{
    width: 90px;
    height: 90px;
    top: 12px;
    right: 12px;
    opacity: 0.75;
  }
}

