:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --panel: #141414;
  --panel-strong: #1b1b1b;
  --text: #ededed;
  --muted: #b5b5b5;
  --muted-2: #8f8f8f;
  --line: #262626;
  --accent: #f8f8f8;
  --glow: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(120% 80% at 50% 0%, #191919 0%, var(--bg) 55%) fixed;
  color: var(--text);
  line-height: 1.45;
}

img {
  max-width: 100%;
  display: block;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 18px 60px;
}

.header {
  margin-bottom: 20px;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0 6px;
}

.logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #000;
  padding: 6px;
  border-radius: 12px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

.title-block h1 {
  font-size: 1.6rem;
  margin: 8px 0 4px;
  letter-spacing: 0.02em;
}

.title-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: border 0.2s ease, color 0.2s ease;
}

.nav a.active,
.nav a:hover {
  color: var(--accent);
  border-color: var(--line);
}

.nav.open {
  display: flex;
}

.nav-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle span {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span i {
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  display: block;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.subtle {
  color: var(--muted);
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.list li {
  padding: 12px 12px 12px 16px;
  border-radius: 14px;
  background: var(--panel-strong);
  border: 1px solid transparent;
  position: relative;
}

.list li.has-link {
  cursor: pointer;
}

.list-link {
  display: block;
  color: inherit;
}

.list li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 16px;
  width: 4px;
  height: calc(100% - 32px);
  background: var(--glow);
  border-radius: 999px;
}

.list strong {
  color: var(--accent);
}

.list .def-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted-2);
  border-bottom: 1px solid transparent;
}

.list .def-link:hover {
  border-color: var(--muted-2);
}

.section-grid {
  display: grid;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0f0f0f;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

.definition {
  border-left: 2px solid var(--line);
  padding-left: 12px;
  color: var(--muted);
  position: relative;
}

.definition h3 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 1rem;
}

.definition p {
  margin: 0 0 10px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-row a {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--panel-strong);
  font-size: 0.78rem;
  color: var(--muted);
}

.video-link {
  position: absolute;
  right: 12px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 26px;
  border-radius: 8px;
  background: #1a1a1a;
  border: 1px solid #2b2b2b;
  color: #ff3d3d;
}

.video-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-note {
  color: var(--muted-2);
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
}

.definition-meta {
  margin-top: 14px;
}

.video-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 10px;
}

.video-icon {
  width: 28px;
  height: 20px;
  border-radius: 6px;
  background: #1a1a1a;
  border: 1px solid #2b2b2b;
  color: #ff3d3d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

@media (min-width: 700px) {
  .page {
    padding: 30px 24px 70px;
  }

  .logo {
    width: 64px;
    height: 64px;
  }

  .title-block h1 {
    font-size: 2rem;
  }

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

  .nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
  }

  .nav-toggle {
    display: none;
  }
}
