/* import poppins font from google fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap");

/* dark mode pastel color palette */
:root {
  --background-color: #1c1c1e;
  --primary-text: #e0e0e0;
  --secondary-text: #b0b0b0;
  --accent-color: #ff6b6b; /* soft coral-red */
  --highlight-color: #a1e3d8; /* pastel teal */
  --soft-purple: #b39ddb;
  --soft-yellow: #ffdd57;
  --code-bg: #000000;
  --code-text: #e0e0e0;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
  color: var(--primary-text);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  box-sizing: border-box;
  text-align: center;
}

/* center and scale the main content */
.container {
  max-width: 800px;
  width: 90vw;
  padding: 3em;
  border-radius: 24px;
  background-color: #2c2c2e;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
}

h1,
h2 {
  color: var(--highlight-color);
  font-weight: 800;
  margin: 0.5em 0;
}

p,
ul,
ol {
  color: var(--secondary-text);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

/* list styling */
ul,
ol {
  list-style: none;
  padding: 0;
}

blockquote {
  color: var(--secondary-text);
  padding: 1em;
  border-left: 6px solid var(--soft-purple);
  background-color: #3a3a3c;
  font-style: italic;
  margin: 1em 0;
  border-radius: 16px;
}

/* code and pre styles for dark mode */
code {
  display: inline-block;
  padding: 0.3em 0.5em;
  font-family: monospace;
  background-color: var(--code-bg);
  color: var(--code-text);
  border-radius: 6px;
}

pre {
  background-color: var(--code-bg);
  color: var(--code-text);
  padding: 1em;
  border-radius: 16px;
  overflow-x: auto;
  font-size: 0.9em;
}

/* typography scaling for larger displays */
h1 {
  font-size: clamp(2em, 5vw, 3em);
}

h2 {
  font-size: clamp(1.5em, 4vw, 2.5em);
}

p,
ul,
ol,
blockquote,
pre {
  font-size: clamp(1em, 2vw, 1.25em);
}
