:root {
  --bg: #030006;
  --panel: rgba(9, 0, 20, 0.72);
  --panel-strong: rgba(12, 0, 25, 0.86);
  --purple: #9d28ff;
  --purple-soft: #c58cff;
  --text: #f1e8ff;
  --muted: #b59bd8;
  --border: rgba(157, 40, 255, 0.38);
}

* { box-sizing: border-box; }
html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../img/wallpaper.jpg") center / cover no-repeat fixed;
  opacity: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(157, 40, 255, 0.24), transparent 36%),
    linear-gradient(rgba(3, 0, 6, 0.68), rgba(3, 0, 6, 0.9)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.025) 0 1px, transparent 1px 5px);
}

a { color: inherit; text-decoration: none; }

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 0 34px rgba(157, 40, 255, 0.2);
  backdrop-filter: blur(8px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple-soft);
  font-size: 0.9rem;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  text-shadow: 0 0 22px rgba(157, 40, 255, 0.7);
}

.subtitle {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.menu-grid,
.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.menu-card,
.post-card {
  display: block;
  min-height: 210px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  border-radius: 20px;
  padding: 24px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  backdrop-filter: blur(8px);
}

.menu-card:hover,
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 140, 255, 0.9);
  box-shadow: 0 0 26px rgba(157, 40, 255, 0.28);
}

.menu-card span,
.post-card span {
  display: inline-block;
  color: var(--purple-soft);
  font-size: .82rem;
  margin-bottom: 20px;
}

.menu-card h2,
.post-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
}

.menu-card p,
.post-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: .92rem;
}

.category-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--purple-soft);
}

.back-link:hover { color: #fff; }

@media (max-width: 820px) {
  .menu-grid,
  .post-list { grid-template-columns: 1fr; }
  .shell { padding: 28px 0; }
  .menu-card,
  .post-card { min-height: auto; }
}
