@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;

  --bg-color: #242424;
  --text-color: rgba(255, 255, 255, 0.87);
  --link-color: #646cff;
  --link-hover-color: #535bf2;
  --button-bg: #1a1a1a;
  --button-text: #ffffff;
  --border-color: #ccc;
  --processed-bg: #333;
  --tag-bg: #4a5568;
  --tag-text: #ffffff;
  --tag-border: #6b7280;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.theme-light {
  --bg-color: #ffffff;
  --text-color: #213547;
  --link-color: #646cff;
  --link-hover-color: #747bff;
  --button-bg: #0d6efd;
  --button-text: #ffffff;
  --border-color: #ccc;
  --processed-bg: #f2f2f2;
  --tag-bg: #e2e8f0;
  --tag-text: #2d3748;
  --tag-border: #cbd5e0;
}

.theme-dark {
  --bg-color: #242424;
  --text-color: rgba(255, 255, 255, 0.87);
  --link-color: #646cff;
  --link-hover-color: #535bf2;
  --button-bg: #1a1a1a;
  --button-text: #ffffff;
  --border-color: #ccc;
  --processed-bg: #333;
  --tag-bg: #4a5568;
  --tag-text: #ffffff;
  --tag-border: #6b7280;
}

a {
  font-weight: 500;
  color: var(--link-color);
  text-decoration: inherit;
}
a:hover {
  color: var(--link-hover-color);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: var(--link-hover-color);
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

