/* =========================
   Notes @ 1:37 AM (Neocities)
   ========================= */

:root{
  --bg: #0b0c10;
  --bg2:#0f1118;
  --paper:#10131c;

  --ink:#e9e7df;
  --muted:#a8a6a0;
  --faint:#7b7a76;

  --accent:#c9b7ff;
  --accent2:#7ee5ff;

  --border: rgba(233,231,223,.14);
  --border2: rgba(233,231,223,.22);

  --shadow: rgba(0,0,0,.55);

  --radius: 18px;
  --radius2: 26px;

  --pad: 18px;
  --pad2: 26px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 70% 10%, rgba(201,183,255,.20), transparent 55%),
    radial-gradient(900px 550px at 20% 20%, rgba(126,229,255,.14), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height:100vh;
}

a{ color: rgba(233,231,223,.92); text-decoration:none; }
a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
  color: rgba(233,231,223,.98);
}

code{
  font-family: var(--mono);
  background: rgba(233,231,223,.07);
  border: 1px solid rgba(233,231,223,.14);
  padding: 0.1em 0.35em;
  border-radius: 8px;
}

/* Accessibility */
.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background: var(--ink);
  color: var(--bg);
  padding:10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left:10px; }

/* Background texture */
.grain{
  pointer-events:none;
  position: fixed;
  inset: 0;
  opacity: .14;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.glow{
  pointer-events:none;
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(900px 600px at 60% 20%, rgba(201,183,255,.22), transparent 60%),
    radial-gradient(800px 520px at 30% 70%, rgba(126,229,255,.12), transparent 60%);
  filter: blur(10px);
  opacity: .58;
}

/* Utility */
.hidden{ display: none !important; }

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index: 100;
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(11,12,16,.62);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar__left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 220px;
}

.status-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent2));
  box-shadow: 0 0 18px rgba(126,229,255,.38);
}

.topbar__title{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .2px;
}

.topbar__nav{
  display:flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.topbar__nav a{
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(233,231,223,.90);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.topbar__nav a:hover{
  text-decoration:none;
  border-color: rgba(201,183,255,.22);
  background: rgba(201,183,255,.07);
  box-shadow: 0 0 0 3px rgba(201,183,255,.06);
}

/* Layout */
.wrap{
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 56px;
}

.hero{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 18px;
  align-items:start;
}

.hero__card{
  border: 1px solid var(--border);
  background: rgba(16,19,28,.66);
  border-radius: var(--radius2);
  padding: var(--pad2);
  box-shadow: 0 18px 60px var(--shadow);
}

.hero__title{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.4px;
}

.hero__desc{
  margin: 0 0 18px;
  color: rgba(233,231,223,.78);
  line-height: 1.6;
  max-width: 64ch;
}

/* Line of the night */
.linebox{
  border: 1px solid var(--border2);
  background: rgba(11,12,16,.55);
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.20);
}

.linebox__top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
  margin-bottom: 10px;
}

.linebox__label{
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(233,231,223,.74);
  letter-spacing: .25px;
}

.linebox__line{
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(233,231,223,.95);
}

.linebox__sub{
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(233,231,223,.62);
}

.ghost-btn{
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(233,231,223,.14);
  background: rgba(233,231,223,.03);
  color: rgba(233,231,223,.86);
  cursor: pointer;
}
.ghost-btn:hover{
  border-color: rgba(126,229,255,.22);
  background: rgba(126,229,255,.08);
}

.hero__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(201,183,255,.42);
  background: linear-gradient(180deg, rgba(201,183,255,.22), rgba(201,183,255,.08));
  color: rgba(233,231,223,.96);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .25px;
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
}
.btn:hover{
  text-decoration:none;
  border-color: rgba(126,229,255,.44);
  background: linear-gradient(180deg, rgba(126,229,255,.18), rgba(201,183,255,.08));
  box-shadow: 0 18px 44px rgba(0,0,0,.38);
}
.btn--soft{
  border-color: rgba(233,231,223,.16);
  background: rgba(233,231,223,.03);
}

/* Sidebar */
.sidebar{
  display:flex;
  flex-direction: column;
  gap: 14px;
}

.note-card{
  border: 1px solid var(--border);
  background: rgba(16,19,28,.50);
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
}

.note-card__title{
  margin: 0 0 10px;
  font-size: 14px;
  font-family: var(--mono);
  color: rgba(233,231,223,.90);
}

.linklist{
  list-style: none;
  padding: 0;
  margin: 0;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.updates{
  list-style:none;
  padding: 0;
  margin: 0;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.updates__date{
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(233,231,223,.62);
  margin-right: 8px;
}

.updates__text{
  color: rgba(233,231,223,.80);
}

.small{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(233,231,223,.74);
}

/* Panels */
.grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.panel{
  border: 1px solid var(--border);
  background: rgba(16,19,28,.42);
  border-radius: var(--radius2);
  overflow:hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
}

.panel__header{
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(11,12,16,.38);
}

.panel__header h2{
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: .1px;
}

.panel__header p{
  margin: 0;
  color: rgba(233,231,223,.68);
  line-height: 1.6;
}

.panel__body{ padding: 18px 22px 22px; }

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}

.cards .card:nth-child(1){ transform: rotate(-0.20deg); }
.cards .card:nth-child(2){ transform: rotate(0.14deg); }
.cards .card:nth-child(3){ transform: rotate(-0.10deg); }
.cards .card:nth-child(4){ transform: rotate(0.16deg); }
.cards .card:nth-child(5){ transform: rotate(-0.14deg); }
.cards .card:nth-child(6){ transform: rotate(0.12deg); }

.card{
  position: relative;
  border: 1px solid rgba(233,231,223,.16);
  border-radius: 18px;
  padding: 14px 14px 12px;
  background:
    linear-gradient(180deg, rgba(233,231,223,.07), rgba(233,231,223,.03)),
    radial-gradient(600px 240px at 30% 20%, rgba(201,183,255,.13), transparent 55%),
    rgba(11,12,16,.40);
  box-shadow:
    0 12px 34px rgba(0,0,0,.32),
    inset 0 0 0 1px rgba(0,0,0,.22);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
  isolation: isolate;
}

.card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 18px;
  opacity: .12;
  pointer-events:none;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  z-index: 0;
}

.card::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width: 46px;
  height: 46px;
  border-top-right-radius: 18px;
  background:
    linear-gradient(225deg, rgba(233,231,223,.10), rgba(233,231,223,0) 60%);
  border-left: 1px solid rgba(233,231,223,.12);
  border-bottom: 1px solid rgba(233,231,223,.08);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  z-index: 1;
  opacity: .58;
}

.card:hover{
  text-decoration:none;
  transform: translateY(-4px) rotate(0deg);
  border-color: rgba(126,229,255,.30);
  background:
    linear-gradient(180deg, rgba(233,231,223,.08), rgba(233,231,223,.035)),
    radial-gradient(650px 280px at 30% 18%, rgba(126,229,255,.12), transparent 55%),
    rgba(11,12,16,.48);
  box-shadow:
    0 18px 52px rgba(0,0,0,.42),
    inset 0 0 0 1px rgba(0,0,0,.20);
}

.card__tag{
  display:inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(233,231,223,.82);
  margin-bottom: 8px;
  background: rgba(201,183,255,.08);
  border: 1px solid rgba(201,183,255,.22);
  padding: 6px 10px;
  border-radius: 999px;
  position: relative;
  z-index: 2;
}

.card__title{
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.15px;
  position: relative;
  z-index: 2;
  color: rgba(233,231,223,.96);
}

.card__desc{
  margin: 0;
  color: rgba(233,231,223,.74);
  line-height: 1.6;
  font-size: 13px;
  position: relative;
  z-index: 2;
}

.card__meta{
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(233,231,223,.66);
  position: relative;
  z-index: 2;
}

/* ✅ Show more button (centered + not ugly) */
.panel__actions{
  display:flex;
  justify-content:center;
  margin-top: 16px;
}

.showmore{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .25px;
  color: rgba(233,231,223,.72);
  background: rgba(233,231,223,.03);
  border: 1px solid rgba(233,231,223,.14);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.showmore:hover{
  border-color: rgba(126,229,255,.26);
  background: rgba(126,229,255,.07);
  transform: translateY(-1px);
}

.showmore:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(126,229,255,.10);
  border-color: rgba(126,229,255,.30);
}

.about{
  margin: 0 0 12px;
  color: rgba(233,231,223,.78);
  line-height: 1.7;
}

.row{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tiny-link{
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(233,231,223,.88);
  border: 1px solid rgba(233,231,223,.14);
  background: rgba(233,231,223,.03);
  padding: 8px 10px;
  border-radius: 999px;
}

.tiny-link:hover{
  text-decoration:none;
  border-color: rgba(126,229,255,.26);
  background: rgba(126,229,255,.08);
  box-shadow: 0 0 0 3px rgba(126,229,255,.05);
}

.footer{
  margin-top: 18px;
  padding: 18px 8px 0;
  text-align:center;
  color: rgba(233,231,223,.60);
}

/* ✅ Responsive */
.sidebar--mobile{ display: none; }

@media (max-width: 940px){
  .hero{ grid-template-columns: 1fr; }
  .sidebar--desktop{ display: none; }
  .sidebar--mobile{ display: flex; }
  .cards{ grid-template-columns: 1fr; }
  .topbar__left{ min-width: unset; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .card{ transition:none; }
  .showmore{ transition:none; }
}
