:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --color-light-bg: #ffffff;
  --color-light-text: #333333;
  --color-light-accent: #d9534f;
  --color-dark-bg: #121212;
  --color-dark-text: #e0e0e0;
  --color-dark-accent: #d9534f;

  --color-code-inline-bg: #f0f0f0;
  --color-code-inline-text: #333333;

  --color-code-block-bg: #f5f5f5;
  --color-code-block-text: #333333;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: var(--color-dark-bg);
    --color-text: var(--color-dark-text);
    --color-accent: var(--color-dark-accent);

    --color-code-inline-bg: #2d2d2d;
    --color-code-inline-text: #e0e0e0;

    --color-code-block-bg: #1e1e1e;
    --color-code-block-text: #e0e0e0;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --color-bg: var(--color-light-bg);
    --color-text: var(--color-light-text);
    --color-accent: var(--color-light-accent);

    --color-code-inline-bg: #f0f0f0;
    --color-code-inline-text: #333333;

    --color-code-block-bg: #f5f5f5;
    --color-code-block-text: #333333;
  }
}

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

html {
  font-family: var(--font-family);
  line-height: 1.6;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
}

body {
  margin: 0;
  padding: 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-text);
}

p,
ul,
ol {
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

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

a:hover {
  text-decoration: underline;
}

ul,
ol {
  padding-left: 2rem;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

.container {
  padding: 1rem;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  background-color: var(--color-accent);
  border: none;
  color: var(--color-light-bg);
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
}

button:hover {
  background-color: #c43e3a;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

@media (min-width: 768px) {
  body {
    padding: 2rem;
    font-size: 1.125rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 1200px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.875rem;
  }

  body {
    padding: 3rem;
    font-size: 1.25rem;
  }
}

@media (min-width: 1600px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  h3 {
    font-size: 2.25rem;
  }

  body {
    padding: 4rem;
    font-size: 1.375rem;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-bg);
  margin-bottom: 1rem;
}

thead {
  border-bottom: 2px solid var(--color-accent);
  color: var(--color-accent);
}

th,
td {
  padding: 0.75rem;
  text-align: left;
}

tbody tr {
  border-bottom: 1px solid #ccc;
}

pre {
  background-color: var(--color-code-block-bg);
  color: var(--color-code-block-text);
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0rem;
  padding-right: 1rem;
}
