@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-from:        #071624;
  --bg-to:          #000219;
  --text:           #FAFAFA;
  --muted:          #787878;
  --prefix:         #E7CFBE;
  --user-text:      #8A9DEE;
  --user-bg:        #1A1D40;
  --time-col:       #c2e9d3;
  --code-bg:        rgba(4, 14, 34, 0.31);
  --code-border:    #0A1F30;
  --pill-idle:      rgba(231, 207, 190, 0.10);
  --pill-hover:     rgba(231, 207, 190, 0.18);
  --pill-active:    rgba(235, 215, 201, 0.31);
  --font-head:      'Inter', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-code:      'JetBrains Mono', monospace;
  --pad:            clamp(1.25rem, 5vw, 4rem);
  --pill-rail:      2.75rem;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family:        var(--font-body);
  color:              var(--text);
  background:         linear-gradient(var(--bg-from), var(--bg-to)) fixed;
  background-attachment: fixed;
  min-height:         100vh;
  overflow-x:         hidden;
  padding:            var(--pad);
  padding-right:      calc(var(--pad) + var(--pill-rail));
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.1; }

h1 { font-size: clamp(2.6rem, 11vw, 6.5rem); font-weight: 800; margin-bottom: clamp(1rem, 4vw, 2rem); }
h2 { font-size: clamp(1.8rem,  7vw, 4rem);   margin-bottom: clamp(0.5rem, 2vw, 1rem); }
h3 { font-size: clamp(1.4rem,  5vw, 2.5rem); margin-bottom: 0.5rem; }
h4 { font-size: clamp(1.1rem, 4.5vw, 2rem);  margin-bottom: 0.5rem; }
h5 { font-size: clamp(0.85rem, 2.5vw, 1.25rem); margin-bottom: 0.5rem; }
h6 { font-size: clamp(0.95rem, 2.5vw, 1.6rem); margin-top: 1rem; margin-bottom: 0.5rem; }

p {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.7;
}
.command p { margin-bottom: 1.5rem; }

ul { padding-left: clamp(1.25rem, 4vw, 2.5rem); }
li {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 600;
}

code {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 1rem;
}

.container { max-width: 650px; width: 100%; margin: 0 auto; }

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 1rem;
  border-radius: clamp(0.45rem, 2vw, 0.9rem);
  box-shadow: 0 0 1rem #000;
}

.group-of-commands { margin-bottom: clamp(15rem, 6vw, 15rem); }
.commands-section { margin-top: clamp(7.5rem, 6vw, 7.5rem); }
.command { margin-top: clamp(7.5rem, 3vw, 7.5rem); }

.example-structure {
  padding: 0.75rem 1rem;
  background-color: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 1rem;
  width: 100%;
  margin-bottom: 0.2rem;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.example-prefix                     { color: var(--prefix); }
.example-user, .example-role,
.example-channel {
  color: var(--user-text);
  background-color: var(--user-bg);
  padding: 0.1rem 0.3rem;
  border-radius: 0.3rem;
}
.example-time                        { color: var(--time-col); }
.example-reason, .example-arguments  { color: var(--muted); }

.nav-pills {
  position:   fixed;
  right:      clamp(0.6rem, 2vw, 2rem);
  top:        50%;
  transform:  translateY(-50%);
  z-index:    1000;
  display:    flex;
  flex-direction: column;
  gap:        0.4rem;
}

.nav-pill {
  width:  8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pill-idle);
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.2s, transform 0.2s, height 0.2s, border-radius 0.2s;
}
.nav-pill:hover          { background: var(--pill-hover); transform: scale(1.35); }
.nav-pill:focus-visible  { outline: 2px solid var(--prefix); outline-offset: 3px; }
.nav-pill.active         { background: var(--pill-active); height: 22px; border-radius: 4px; transform: none; }

@media (max-width: 600px) {
  body {
    padding-right: var(--pad);
    padding-bottom: 5rem;
  }

  .nav-pills {
    right:          50%;
    top:            auto;
    bottom:         0.85rem;
    transform:      translateX(50%);
    flex-direction: row;
    gap:            0.55rem;
    background:     rgba(5, 16, 32, 0.80);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border:         1px solid rgba(255,255,255,0.07);
    border-radius:  2rem;
    padding:        0.65rem 1.1rem;
  }

  .nav-pill.active { height: 8px; width: 22px; border-radius: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html          { scroll-behavior: auto; }
  .nav-pill     { transition: none; }
}