:root {
  --bg: #0d1117;
  --panel: #0b3c5d;
  --panel-soft: rgba(11, 60, 93, 0.72);
  --border: rgba(255, 77, 0, 0.22);
  --text: #f5f7fa;
  --muted: #b4c2cf;
  --accent: #ff4d00;
  --code-bg: #0b1320;
  --code-keyword: #ff9c66;
  --code-string: #ffb38a;
  --code-comment: #97a6b3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

header {
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  letter-spacing: -0.05em;
}

header p {
  color: var(--muted);
  margin: 0.65rem auto 0;
  max-width: 52rem;
  font-size: 0.98rem;
}

main {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem 3rem;
}

h3.category {
  margin: 2.2rem 0 1rem;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding: 0.15rem 0 0.15rem 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

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

.card {
  background: #122238;
  border: none;
  border-radius: 10px;
  padding: 1.2rem 1rem;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-2px);
  background-color: #172a44;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.18),
    0 0 10px rgba(255, 77, 0, 0.14),
    0 0 18px rgba(255, 77, 0, 0.16);
}

.card img {
  width: 54px;
  height: 54px;
  margin-bottom: 0.75rem;
}

.card h2 {
  margin: 0.5rem 0 0.2rem;
  font-size: 1.05rem;
}

.card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

#panel {
  position: fixed;
  top: 0;
  right: -460px;
  width: min(460px, 100vw);
  height: 100%;
  background: #0b3c5d;
  padding: 1.5rem;
  box-shadow: -10px 0 24px rgba(0, 0, 0, 0.28);
  transition: right 0.25s ease;
  overflow-y: auto;
  z-index: 100;
}

#panel.open {
  right: 0;
}

#panel h2 {
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
}

#panel img {
  width: 52px;
  height: 52px;
  margin-top: 0.5rem;
}

#panel pre {
  background: var(--code-bg);
  border: 1px solid rgba(255, 77, 0, 0.12);
  padding: 0.7rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: monospace;
  margin: 0.5rem 0;
}

pre code .keyword {
  color: var(--code-keyword);
  font-weight: bold;
}

pre code .string {
  color: var(--code-string);
}

pre code .comment {
  color: var(--code-comment);
  font-style: italic;
}

#panel p {
  color: var(--muted);
  line-height: 1.6;
}

.close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.9rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.copy {
  margin: 0.4rem 0 1rem;
  background: var(--accent);
  color: #fff8f4;
  border: none;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 77, 0, 0.16);
  margin: 1rem 0;
}

.dev__versions-box {
  background: #0d1117;
  border: 1px solid rgba(255, 77, 0, 0.12);
  border-radius: 8px;
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.dev__versions-box-items {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dev__versions-box-item {
  padding: 0.35rem 0.5rem;
  background: rgba(11, 60, 93, 0.42);
  border-radius: 6px;
  font-size: 0.84rem;
}

code {
  color: #ffe5d8;
}

@media (max-width: 720px) {
  header {
    padding-top: 2.4rem;
  }

  main {
    padding-inline: 1rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  #panel {
    width: 100vw;
    right: -100vw;
  }
}
