:root{
  --bg-1:#0d0914;
  --bg-2:#161022;
  --bg-3:#1f1630;
  --panel:rgba(255,255,255,0.07);
  --panel-2:rgba(255,255,255,0.04);
  --stroke:rgba(203,168,255,0.18);
  --stroke-strong:rgba(203,168,255,0.34);

  --text:#f6f1ff;
  --muted:rgba(246,241,255,0.72);
  --soft:rgba(246,241,255,0.55);

  --lav:#d5b7ff;
  --lav-2:#b784ff;
  --lav-3:#8a52ff;
  --pink:#f0b8ff;
  --glow:0 0 0 1px rgba(213,183,255,0.08), 0 14px 40px rgba(0,0,0,0.32);

  --radius-xl:28px;
  --radius-lg:20px;
  --radius-md:14px;

  --maxw:1180px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(183,132,255,0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(240,184,255,0.12), transparent 26%),
    linear-gradient(180deg, #0b0712 0%, #120c1c 42%, #0d0914 100%);
  min-height:100vh;
}

a{
  color:var(--lav);
  text-decoration:none;
}

a:hover{
  color:#f2dcff;
}

code{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:10px;
  padding:0.2rem 0.45rem;
  color:#f8ecff;
}

.page-shell{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.site-header{
  padding:3.5rem 1.25rem 2rem;
}

.header-inner,
.site-main,
.footer-inner{
  width:min(100%, var(--maxw));
  margin:0 auto;
}

.eyebrow{
  margin:0 0 0.45rem;
  text-transform:uppercase;
  letter-spacing:0.16em;
  font-size:0.74rem;
  color:var(--lav);
}

.site-header h1{
  margin:0;
  font-size:clamp(2.4rem, 4vw, 4.4rem);
  line-height:0.95;
  letter-spacing:-0.04em;
}

.subtitle{
  margin:0.85rem 0 0;
  max-width:740px;
  color:var(--muted);
  font-size:1.02rem;
  line-height:1.7;
}

.site-main{
  flex:1;
  padding:0 1.25rem 2.5rem;
}

.panel,
.content-section{
  background:linear-gradient(180deg, var(--panel), var(--panel-2));
  border:1px solid var(--stroke);
  border-radius:var(--radius-xl);
  box-shadow:var(--glow);
  backdrop-filter:blur(16px);
}

.panel{
  padding:1.35rem;
  margin-bottom:1.1rem;
}

.panel-thin{
  padding:0.9rem 1rem;
}

.hero-panel{
  padding:1.6rem;
  position:relative;
  overflow:hidden;
}

.hero-panel::before{
  content:"";
  position:absolute;
  inset:auto -10% -35% auto;
  width:280px;
  height:280px;
  background:radial-gradient(circle, rgba(183,132,255,0.22), transparent 70%);
  pointer-events:none;
}

.hero-panel h2{
  margin:0 0 0.65rem;
  font-size:clamp(1.8rem, 3vw, 3rem);
  line-height:1;
  letter-spacing:-0.03em;
}

.hero-subline{
  margin:0.2rem 0 0.9rem;
  color:var(--muted);
  font-size:1rem;
}

.entry-label{
  margin:0 0 0.55rem;
  text-transform:uppercase;
  letter-spacing:0.16em;
  font-size:0.72rem;
  color:var(--lav);
}

.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:0.45rem;
  align-items:center;
  color:var(--soft);
  font-size:0.94rem;
}

.meta-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:0.8rem;
  margin-top:1rem;
}

.meta-item{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:16px;
  padding:0.9rem 0.95rem;
}

.meta-label{
  display:block;
  font-size:0.72rem;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:var(--soft);
  margin-bottom:0.35rem;
}

.meta-value{
  display:block;
  color:var(--text);
  font-weight:600;
}

.tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:0.55rem;
  margin-top:0.95rem;
}

.tag{
  display:inline-flex;
  align-items:center;
  padding:0.5rem 0.8rem;
  border-radius:999px;
  background:rgba(183,132,255,0.14);
  border:1px solid rgba(183,132,255,0.2);
  color:#f3e6ff;
  font-size:0.9rem;
}

.content-section{
  padding:1.25rem 1.3rem;
  margin-bottom:1.1rem;
}

.content-section h2{
  margin:0 0 0.85rem;
  font-size:1.08rem;
  letter-spacing:-0.02em;
}

.content-section p{
  margin:0;
  color:var(--muted);
  line-height:1.8;
}

.detail-list{
  margin:0;
  padding-left:1.2rem;
  color:var(--muted);
  line-height:1.8;
}

.detail-list li + li{
  margin-top:0.3rem;
}

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:1rem;
}

.entry-card{
  display:flex;
  flex-direction:column;
  gap:0.45rem;
  padding:1rem;
  border-radius:20px;
  background:rgba(255,255,255,0.045);
  border:1px solid rgba(255,255,255,0.08);
  transition:transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  min-height:132px;
}

.entry-card:hover{
  transform:translateY(-3px);
  border-color:var(--stroke-strong);
  background:rgba(255,255,255,0.07);
}

.entry-card strong{
  font-size:1.05rem;
  color:var(--text);
}

.entry-card span{
  color:var(--muted);
}

.entry-type{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  padding:0.38rem 0.65rem;
  border-radius:999px;
  background:rgba(240,184,255,0.1);
  border:1px solid rgba(240,184,255,0.16);
  color:#f6d7ff !important;
  font-size:0.78rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
}

.link-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:0.8rem;
}

.resource-link{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0.8rem 1rem;
  border-radius:16px;
  text-align:center;
  background:rgba(183,132,255,0.11);
  border:1px solid rgba(183,132,255,0.18);
  color:#f7eaff;
  font-weight:600;
  transition:transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.resource-link:hover{
  transform:translateY(-2px);
  background:rgba(183,132,255,0.17);
  border-color:rgba(213,183,255,0.35);
}

.error-panel h2{
  margin-top:0;
}

.site-footer{
  padding:0 1.25rem 2rem;
}

.footer-inner{
  border-top:1px solid rgba(255,255,255,0.08);
  padding-top:1rem;
  color:var(--soft);
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:0.75rem;
  font-size:0.92rem;
}

@media (max-width: 720px){
  .site-header{
    padding:2.25rem 1rem 1.35rem;
  }

  .site-main{
    padding:0 1rem 2rem;
  }

  .panel,
  .content-section,
  .hero-panel{
    padding:1rem;
    border-radius:22px;
  }

  .meta-grid,
  .card-grid,
  .link-grid{
    grid-template-columns:1fr;
  }

  .footer-inner{
    flex-direction:column;
  }
}