/* Reset Default Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Initial Settings */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

a, input, textarea, button {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--gray-12);	
}

/* Customize Light/Dark Mode Colors */
:root {
  
  /* White and Black */
  --text-color: var(--gray-12);
  --scroll-bar-thumb: #666;
  --scroll-bar-thumb-hover: #444;
  --clickable-hover-bg: rgba(0, 0, 0, 0.05);
  --white-black: #fff;
  
  /* Colors */
  --gray-hl: var(--gray-4);
  --red-hl: var(--red-4);
  --orange-hl: var(--orange-4);
  --amber-hl: var(--amber-4);
  --yellow-hl: var(--yellow-4);
  --green-hl: var(--green-4);
  --blue-hl: var(--blue-4);
  --iris-hl: var(--iris-4);
  --purple-hl: var(--purple-4);
  
}

.dark {
  
  /* White and Black */
  --text-color: color-mix(in srgb, var(--gray-11), var(--gray-12));
  --scroll-bar-thumb: #ddd;
  --scroll-bar-thumb-hover: #eee;
  --clickable-hover-bg: rgba(255, 255, 255, 0.15);
  --white-black: #000;
  
  /* Colors */
  --gray-hl: var(--gray-3);
  --red-hl: var(--red-3);
  --orange-hl: var(--orange-3);
  --amber-hl: var(--amber-3);
  --yellow-hl: var(--yellow-3);
  --green-hl: var(--green-3);
  --blue-hl: var(--blue-3);
  --iris-hl: var(--iris-3);
  --purple-hl: var(--purple-3);
  
}

/* Default Margins */
p, blockquote, ul, ol, li, label, input, button, select {
  margin: 0.5rem 1.5rem;
}

/* Scroll Bar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: var(--white-black);
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-bar-thumb);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-bar-thumb-hover);
}

/* Body */
body {
  background-color: var(--white-black);
  background-image: linear-gradient(var(--yellow-1) 0%, var(--yellow-1) 100%);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6, code {
  font-family: "Roboto Mono", monospace;
}

h1 { font-size: 1.4rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.75rem; }
h6 { font-size: 0.5rem; }
p { font-size: 1rem; }
ul { list-style: square; }

blockquote {
  border-left: 3px solid var(--gray-6);
  padding-left: 1rem;
  color: var(--gray-11);
}

/* Highlights */
.hl { padding: 0 0.25rem; }
.gray.hl { background: linear-gradient(var(--gray-hl), var(--gray-hl)) no-repeat 0% 100% / 100% 50%; }
.red.hl { background: linear-gradient(var(--red-hl), var(--red-hl)) no-repeat 0% 100% / 100% 50%; }
.orange.hl { background: linear-gradient(var(--orange-hl), var(--orange-hl)) no-repeat 0% 100% / 100% 50%; }
.amber.hl { background: linear-gradient(var(--amber-hl), var(--amber-hl)) no-repeat 0% 100% / 100% 50%; }
.yellow.hl { background: linear-gradient(var(--yellow-hl), var(--yellow-hl)) no-repeat 0% 100% / 100% 50%; }
.green.hl { background: linear-gradient(var(--green-hl), var(--green-hl)) no-repeat 0% 100% / 100% 50%; }
.blue.hl { background: linear-gradient(var(--blue-hl), var(--blue-hl)) no-repeat 0% 100% / 100% 50%; }
.iris.hl { background: linear-gradient(var(--iris-hl), var(--iris-hl)) no-repeat 0% 100% / 100% 50%; }
.purple.hl { background: linear-gradient(var(--purple-hl), var(--purple-hl)) no-repeat 0% 100% / 100% 50%; }

.dark .gray.hl { border-bottom: 2px solid var(--gray-5); }
.dark .red.hl { border-bottom: 2px solid var(--red-5); }
.dark .orange.hl { border-bottom: 2px solid var(--orange-5); }
.dark .amber.hl { border-bottom: 2px solid var(--amber-5); }
.dark .yellow.hl { border-bottom: 2px solid var(--yellow-5); }
.dark .green.hl { border-bottom: 2px solid var(--green-5); }
.dark .blue.hl { border-bottom: 2px solid var(--blue-5); }
.dark .iris.hl { border-bottom: 2px solid var(--iris-5); }
.dark .purple.hl { border-bottom: 2px solid var(--purple-5); }

/* Images */
svg { display: block; }

.lg-3 { width: 3rem; height: 3rem; }
.lg-2 { width: 2.75rem; height: 2.75rem; }
.lg-1 { width: 2.5rem; height: 2.5rem; }

.md-3 { width: 2.25rem; height: 2.25rem; }
.md-2 { width: 2rem; height: 2rem; }
.md-1 { width: 1.75rem; height: 1.75rem; }

.sm-3 { width: 1.5rem; height: 1.5rem; }
.sm-2 { width: 1.25rem; height: 1.25rem; }
.sm-1 { width: 1rem; height: 1rem; }

/* Links */
a {
  color: var(--blue-11);
  text-decoration: none;
}

a:visited {
  color: var(--iris-11);
  text-decoration: none;
}

a:hover, a:active {
  color: var(--blue-12);
  text-decoration: underline;
}

a:visited:hover, a:visited:active {
  color: var(--iris-12);
  text-decoration: underline;
}

/* Fade In Effect */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease-out, transform 0.75s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { transform: none; }
  .fade-in.is-visible { transform: none; }
}
