:root {
  --bg: #151516;
  --bg-2: #1a1a1b;
  --panel: #101010;
  --line: #262626;
  --text: #ededed;
  --muted: #8f8f93;
  --accent: #8f88dc;
  --accent-2: #a39cf0;
  --font-display: "Cabinet Grotesk", "Host Grotesk", "DM Sans", sans-serif;
  --font-body: "Host Grotesk", "DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html {
  font-size: 14px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 24% -8%, rgba(255, 255, 255, 0.025), transparent 42%),
    radial-gradient(circle at 78% 8%, rgba(0, 0, 0, 0.035), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

h1,
h2,
h3,
summary {
  font-family: var(--font-display);
  font-weight: 500;
}

.prefix {
  color: var(--accent);
}

.top-nav {
  position: fixed;
  top: 16px;
  right: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 20;
}

.top-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.top-nav a::before {
  content: "[";
  margin-right: 2px;
  opacity: 0.62;
}

.top-nav a::after {
  content: "]";
  margin-left: 2px;
  opacity: 0.62;
}

.top-nav a:hover {
  color: var(--text);
}

.top-nav a[aria-current="page"] {
  color: var(--accent-2);
}

.wrap {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 70px;
}

.intro,
p,
.items li,
.entry li,
.case p,
.card p,
details p,
.date {
  color: var(--muted);
}

.card,
.block,
.entry,
.case,
details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 16, 18, 0.96), rgba(13, 13, 15, 0.96));
}

.tag,
.label {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  color: #d8d2ff;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 3000;
  padding: 0.62rem 0.9rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 56%, #ffffff);
  background: #111114;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skip-link:focus-visible {
  top: 12px;
}

.btn {
  text-decoration: none;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(16, 16, 18, 0.9);
}

.btn.primary {
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  color: #141418;
  border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 820px) {
  .top-nav {
    position: static;
    padding: 14px 14px 0;
  }

  .wrap {
    width: min(980px, calc(100% - 28px));
    padding-top: 34px;
  }
}
