/* =========================================================
   cut.neocities.org — black/white + blood red
   angelic victorian + gothic lolita + cursed early-2000s
   - sharper edges
   - lace frames
   - stained-glass panels
   ========================================================= */

:root{
  --bg:#000000;
  --panel: rgba(8,8,10,0.92);
  --panel2: rgba(12,12,14,0.92);

  --text:#f8f8f8;
  --muted:#cfcfcf;

  --line: rgba(255,255,255,0.22);
  --line2: rgba(255,255,255,0.10);

  --blood:#b30000;

  --shadow: 0 18px 45px rgba(0,0,0,0.62);

  /* edges */
  --radius: 6px;      /* less rounded */
  --radius2: 4px;     /* even sharper */
}

*{ box-sizing:border-box; }

body{
  margin:0;
  color:var(--text);
  background:
    url("../assets/img/tile.svg") repeat,
    radial-gradient(900px 650px at 20% 10%, rgba(255,255,255,0.06), transparent 58%),
    radial-gradient(900px 650px at 80% 25%, rgba(179,0,0,0.05), transparent 58%),
    radial-gradient(850px 700px at 45% 95%, rgba(255,255,255,0.04), transparent 58%),
    var(--bg);
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  font-family: "MS PGothic","MS Gothic","Verdana","Tahoma", ui-sans-serif, system-ui, Arial, sans-serif;
  line-height:1.62;
}

/* scanlines overlay (soft) */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background: repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.030) 0px,
      rgba(255,255,255,0.030) 1px,
      rgba(0,0,0,0) 3px,
      rgba(0,0,0,0) 7px
    );
  mix-blend-mode: overlay;
  opacity:0.38;
}

a{ color: rgba(255,255,255,0.92); text-decoration:none; border-bottom: 1px dotted rgba(255,255,255,0.30); }
a:hover{ border-bottom-color: rgba(179,0,0,0.75); text-shadow: 0 0 12px rgba(179,0,0,0.22); }

h1,h2,h3{ font-family: "Georgia","Times New Roman",serif; letter-spacing:0.2px; }
h1{ font-size:1.7rem; margin: 6px 0 10px; }
h2{ font-size:1.25rem; margin: 10px 0 10px; }
h3{ font-size:1.06rem; margin: 10px 0 8px; }

.wrap{ width:min(980px, 96vw); margin:16px auto 28px; padding:10px; }

.window{
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.titlebar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(179,0,0,0.04), rgba(255,255,255,0.08));
  border-bottom:1px solid var(--line);
}

.titlebar .left{ display:flex; align-items:center; gap:10px; }
.dots{ display:flex; gap:6px; }
.dot{
  width:10px; height:10px; border-radius:999px;
  background: rgba(255,255,255,0.18);
  border:1px solid rgba(0,0,0,0.40);
}

.logo{
  display:flex; align-items:center; gap:10px;
  font-weight:700;
  letter-spacing:0.35px;
  text-shadow: 0 0 14px rgba(255,255,255,0.10);
}
.logo img{ width:30px; height:30px; filter: grayscale(1) contrast(1.1); }

.topnav{ display:flex; flex-wrap:wrap; gap:8px; }
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
}
.pill img{ width:16px; height:16px; filter: grayscale(1) contrast(1.1); }
.pill:hover{ border-color: rgba(179,0,0,0.65); }

/* banner area */
.banner{ padding:10px 12px 0; background: rgba(255,255,255,0.01); }
.banner-inner{
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,0.22);
  overflow:hidden;
  position:relative;
}
.banner-inner img{
  display:block; width:100%;
  height:150px;
  object-fit: cover;
  object-position:center;
  filter: contrast(1.05);
}
.banner-caption{
  position:absolute;
  left:12px;
  bottom:10px;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.90);
  font-size:0.92rem;
  font-family: "Georgia","Times New Roman",serif;
}
.banner-caption b{ color: rgba(179,0,0,0.90); }

/* layout */
.shell{
  display:grid;
  grid-template-columns: 270px 1fr 230px;
  gap:12px;
  padding:12px;
}
@media (max-width: 980px){
  .shell{ grid-template-columns: 260px 1fr; }
  .right{ display:none; }
}
@media (max-width: 740px){
  .shell{ grid-template-columns: 1fr; }
  .banner-inner img{ height:140px; }
}

.panel{
  background: var(--panel2);
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding:12px;
  position:relative;
}

/* LACE FRAME (applies to panels you want framed) */
.laceframe{
  border:1px solid rgba(255,255,255,0.22);
  outline:1px dashed rgba(255,255,255,0.10);
  outline-offset:-6px;
  box-shadow: inset 0 0 0 1px rgba(179,0,0,0.10);
}
.laceframe::before,
.laceframe::after{
  content:"";
  position:absolute;
  width:64px; height:64px;
  background: url("../assets/img/lace-corner.svg") no-repeat center/contain;
  opacity:0.85;
  pointer-events:none;
}
.laceframe::before{ left:-6px; top:-6px; }
.laceframe::after{ right:-6px; bottom:-6px; transform: rotate(180deg); }

/* Extra corners using pseudo elements on inner wrapper */
.lace-corners{
  position:relative;
}
.lace-corners span.corner{
  position:absolute;
  width:64px; height:64px;
  background: url("../assets/img/lace-corner.svg") no-repeat center/contain;
  opacity:0.85;
  pointer-events:none;
}
.lace-corners .tr{ right:-6px; top:-6px; transform: rotate(90deg); }
.lace-corners .bl{ left:-6px; bottom:-6px; transform: rotate(270deg); }

/* Stained glass panel */
.glass{
  position:relative;
  border:1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius2);
  padding:12px;
  background:
    url("../assets/img/glass-pattern.svg") repeat,
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.30));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 12px 35px rgba(0,0,0,0.45);
}
.glass::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(500px 160px at 20% 20%, rgba(255,255,255,0.10), transparent 60%);
  pointer-events:none;
}
.glass b{ color: rgba(179,0,0,0.92); }
.glass .sigil{
  font-family: "Georgia","Times New Roman",serif;
  letter-spacing:0.6px;
  color: rgba(255,255,255,0.75);
}

/* text bits */
.section-title{ font-weight:700; margin:4px 0 8px; font-family: "Georgia","Times New Roman",serif; }
.small{ color:var(--muted); font-size:0.92rem; }
.hr{ border:0; height:1px; background: rgba(255,255,255,0.14); margin:12px 0; }

.badge{
  display:inline-block;
  padding:2px 10px;
  border:1px solid rgba(255,255,255,0.16);
  border-radius:999px;
  font-size:0.85rem;
  color:var(--muted);
  background: rgba(255,255,255,0.02);
}
.badge.seed{ border-color: rgba(179,0,0,0.55); }
.badge.evergreen{ border-color: rgba(255,255,255,0.24); }
.badge.yurei{ border-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.70); }

.marquee{
  border:1px dashed rgba(255,255,255,0.18);
  border-radius: var(--radius2);
  padding:6px 10px;
  background: rgba(255,255,255,0.02);
}

.entry{
  border:1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius2);
  padding:12px;
  background: rgba(255,255,255,0.02);
  margin: 10px 0 14px;
}
.entry .meta{
  display:flex; flex-wrap:wrap;
  gap:8px 10px;
  align-items:center;
  margin-bottom:8px;
  color: var(--muted);
}
.entry .meta .date{ font-weight:700; color: rgba(255,255,255,0.88); }
.entry .meta .mood{ color: rgba(255,255,255,0.70); }

.imggrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:8px;
  margin-top:10px;
}
@media (max-width: 560px){ .imggrid{ grid-template-columns: 1fr; } }
.imggrid img{
  width:100%;
  height:auto;
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.02);
  filter: grayscale(0.25) contrast(1.05);
}

.wall{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:8px;
}
.wall img{
  width:100%;
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.02);
}

.buttons{
  display:grid;
  grid-template-columns: repeat(2, 88px);
  gap:8px;
  justify-content:flex-start;
}
.buttons img{
  width:88px; height:31px;
  border:1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius2);
  background: rgba(255,255,255,0.02);
  filter: grayscale(1) contrast(1.1);
}

.corrupt{
  color: rgba(255,255,255,0.84);
  text-shadow: 1px 0 rgba(179,0,0,0.25), -1px 0 rgba(255,255,255,0.10);
  letter-spacing:0.2px;
}
.ghostlink{ color: rgba(255,255,255,0.10); border-bottom: none; }
.ghostlink:hover{
  color: rgba(179,0,0,0.85);
  text-decoration:none;
  text-shadow: 0 0 14px rgba(179,0,0,0.24);
}

.footer{
  text-align:center;
  color: rgba(255,255,255,0.65);
  padding:10px 12px 14px;
}
.footer .blood{ color: rgba(179,0,0,0.85); }

/* respect motion prefs */
@media (prefers-reduced-motion: reduce){
  marquee{ display:none; }
}
