:root {
  --bg-main:        #1e1e1e;
  --bg-sidebar:     #252526;
  --bg-tab-active:  #1e1e1e;
  --bg-tab-inactive:#2d2d2d;
  --bg-statusbar:   #007acc;
  --bg-hover:       #2a2d2e;

  --border:         #333333;
  --border-tab:     #252526;

  --accent-cyan:    #4fc3f7;
  --accent-magenta: #e91e8c;
  --accent-green:   #4ec9b0;
  --accent-yellow:  #f0db4f;

  --icon-tsx:  #4fc3f7;
  --icon-html: #e37933;
  --icon-js:   #f0db4f;
  --icon-json: #f0db4f;
  --icon-ts:   #4fc3f7;
  --icon-css:  #42a5f5;
  --icon-md:   #519aba;

  --text:           #d4d4d4;
  --text-dim:       #858585;
  --text-bright:    #ffffff;

  --syntax-comment: #6a9955;
  --syntax-keyword: #569cd6;
  --syntax-string:  #ce9178;
  --syntax-func:    #dcdcaa;
  --syntax-var:     #9cdcfe;

  --font-mono:    'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  --font-display: 'Space Grotesk', 'Syne', system-ui, sans-serif;

  --sidebar-width: 200px;
  --tabbar-height: 36px;
  --statusbar-height: 24px;
}

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

html,
body {
  height: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

code,
.mono {
  font-family: var(--font-mono);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #424242;
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #4f4f4f;
  border: 3px solid transparent;
  background-clip: padding-box;
}
