@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap');

:root {
    --bg: #3c3836;
    --fg: #ebdbb2;
    --red: #cc221d;
    --yellow: #fabd2f;
    --green: #b8bb26;
    --tan: #d5c4a1;
    --border: #7c6f64;

    --width: 96%;
}

* {
  font-family: 'Fira Code' !important;
  scrollbar-width: none;
  font-weight: 500;
}

p {
  font-size: 1.12pc;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    margin: 0 auto;
    padding: 10px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

body:not(head) {
  display: flex;
  flex-direction: column;
}

h1 {
  color: var(--red);
}

header {
  gap: 16px;
  width: 98%;
  border-bottom: solid 2px #ebdbb2;
}

.header {
  font-size: 1.4pc;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.links {
  display: flex;
  flex-grow: 1;
}

.github-logo {
  max-width: 700px;
  max-height: 70px;
}

.title-container {
  display: flex;
  flex-shrink: 1;
}

.bruh {
  display: flex;
}

.title {
  color: var(--red) !important;
  text-decoration: none;
  margin: 0;
}

a:not(nav) {
  color: #b8bb26;
  text-decoration: none;
}

a:hover {
  color: #b8bb26d0;
  text-decoration: underline;
}

a.bruh:hover {
  text-decoration: none;
  color: inherit;
}

/* Nav */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: solid 2px #ebdbb2;
  width: var(--width);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

nav .nav a {
  color: #ebdbb2;
  font-size: 1.4pc;
  position: relative;
}

nav .nav a:hover {
  color: #ebdbb2 !important;
  text-decoration: none !important;
}

nav .nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--red);
  transition: width 0.2s ease;
}

nav .nav a:hover::after,
nav .nav a.active::after {
  background-color: var(--red);
  width: 100%;
}

main {
  width: var(--width);
}

/* Home page */

.green-link {
  color: var(--green);
}

.button-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: solid 2px #ebdbb2;
  margin-bottom: 1rem;
}

.big-button {
  color: var(--green);
  font-size: 1.3rem;
  border: 2px solid var(--border);
  padding: 0.4rem 1rem;
  display: inline-block;
  text-decoration: none;
}

.big-button:hover {
  background-color: var(--border);
  text-decoration: none !important;
  color: var(--green) !important;
}

/* HR */
hr {
  border-bottom: solid 2px #ebdbb2;
}

/* Blog / project list */

.blog-list,
.projects-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-list li,
.projects-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.post-title {
  font-size: 1.25rem;
  display: block;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.post-title:hover {
  color: var(--green) !important;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--tan);
  margin: 0.2rem 0;
}

.post-desc {
  color: var(--fg);
  font-size: 1rem;
  margin: 0.3rem 0 0;
}

/* Blog / project single page */

.blog-header,
.project-header {
  margin-bottom: 1rem;
}

.blog-header h1,
.project-header h1 {
  margin-bottom: 0.2rem;
}

.date {
  color: var(--tan);
  font-size: 0.9rem;
  margin: 0;
}

/* Random article snippet */

#random-article-container {
  margin-top: 25px;
}

.random-snippet .article-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.random-snippet .article-title a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.random-snippet .article-subheader a {
  color: var(--green);
}

.random-snippet .article-excerpt {
  color: var(--fg);
  font-size: 1.1rem;
  margin-top: 15px;
  line-height: 1.4;
}
