:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: rgba(17, 20, 31, 0.86);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #eef2ff;
  --muted: #94a3b8;
  --accent: #d48be9;
  --accent-strong: #b46ad7;
  --accent-soft: rgba(185, 113, 221, 0.14);
  --glow: 0 20px 45px rgba(4, 7, 17, 0.46);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 18px;
  background: #000000;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(18px);
}

.nav-group-title,
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

.nav-item {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.01);
  color: var(--text);
  text-align: left;
  padding: 13px 14px;
  border-radius: 14px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  background: var(--accent-soft);
  border-color: rgba(212, 139, 233, 0.32);
  transform: translateX(2px);
}

.content {
  padding: 48px 40px;
}

.panel {
  display: none;
  animation: fade 0.24s ease;
}

.panel.active {
  display: block;
}

.offset-shell,
.archive-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.offset-shell {
  padding: 28px 10px 72px;
  text-align: center;
}

.offset-title {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.offset-version {
  margin: 14px 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #d5d8e3;
}

.offset-group {
  margin-top: 56px;
}

.offset-group h2,
.archive-shell h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  text-transform: none;
}

.offset-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.offset-link {
  min-width: 188px;
  padding: 16px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(31, 35, 49, 0.92), rgba(19, 22, 33, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.offset-link:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 139, 233, 0.36);
  background: linear-gradient(180deg, rgba(38, 42, 58, 0.96), rgba(22, 25, 37, 0.96));
}

.offset-link::before {
  content: "⌘";
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
}

.file-label {
  font-size: 1rem;
  font-weight: 600;
  color: #f2f4fb;
}

.offset-link small {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: lowercase;
}

.archive-shell {
  padding: 40px 0;
}

.archive-copy {
  max-width: 640px;
  color: #cbd5e1;
  font-size: 1rem;
}

.archive-card {
  margin-top: 26px;
  max-width: 540px;
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--glow);
}

.archive-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-card p {
  margin: 14px 0 0;
  color: #d6dceb;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .content {
    padding: 24px 18px 40px;
  }

  .offset-shell {
    padding: 18px 0 42px;
  }

  .offset-links {
    gap: 12px;
  }

  .offset-link {
    width: 100%;
    min-width: 0;
  }
}
