@import url("https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --primary-green: #b4bd5c;
  --secondary-green: #7f8928;
  --accent-cyan: #8cffce;
  --dark-cyan: #5b6d66;
}

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

html {
  font-size: 16px;
}

body {
  background-color: var(--dark-cyan);
  font-family: "Montserrat", sans-serif;
  color: #333;
  overflow-x: hidden;
}

h1,
h2 {
  font-family: "Bagel Fat One", system-ui;
  text-transform: lowercase;
}

h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
}

h1 {
  color: var(--primary-green);
}

h2,
h3,
h4,
h5,
h6 {
  color: var(--secondary-green);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-bottom: 1rem;
}

small {
  margin-bottom: 1rem;
  text-transform: uppercase;
}

a {
  font-weight: 600;
  text-decoration: none;
  color: var(--primary-green);
  transition: all ease-in-out 300ms;
}

a:hover {
  color: var(--secondary-green);
  transition: all ease-in-out 300ms;
}

a[href^="http"]::after {
  content: "🔗";
  margin-left: 0.2rem;
}

ul {
  margin-bottom: 1rem;
}

li {
  padding: 5px;
  list-style: none;
}

li:nth-child(even) {
  background-color: #eee;
}

.col2 li {
  background-color: transparent;
}

table {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 25px 25px;
  overflow: hidden;
}

td {
  padding: 5px;
}

tr:nth-child(even) {
  background-color: #eee;
}

p:last-child,
ul:last-child,
table:last-child,
.sidebar:last-child {
  margin-bottom: 0;
}

img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.nores {
  width: unset;
  height: unset;
  object-fit: unset;
}

.circle {
  width: 100px;
  border-radius: 50% 50%;
}

.center {
  text-align: center;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem;
  padding: 0 0.5rem;
  font-family: "Bagel Fat One", system-ui;
}

nav a {
  margin: 0.5rem;
  font-size: 2rem;
  border-bottom: 3px solid transparent;
}

nav a:hover {
  color: var(--accent-cyan);
  border-bottom: 3px solid var(--accent-cyan);
}

main {
  display: grid;
  grid-template-columns: 1fr 5fr;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  grid-template-rows: masonry;
  gap: 1rem;
  margin: 0 1rem;
}

.col2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 1rem;
}

h1 img {
  height: unset;
  width: unset;
}

article,
.col2 ul {
  background-color: #fff;
  height: fit-content;
  padding: 1rem;
  border-radius: 50px 50px;
}

.sidebar {
  height: fit-content;
  padding: 1rem;
  margin-bottom: 1rem;
  margin-left: 1rem;
  background-color: #fff;
  text-align: center;
  border-radius: 50px 50px;
}

.sidebar .circle {
  min-width: 250px;
  height: 250px;
}

#socials svg {
  height: 50px;
  fill: var(--secondary-green);
  transition: fill ease-in-out 300ms;
}

#socials svg:hover {
  fill: var(--primary-green);
  transition: fill ease-in-out 300ms;
}

#socials a[href^="http"]::after {
  content: unset;
  margin-left: unset;
}

/* Blog */
#posts li a {
  font-family: "Bagel Fat One", system-ui;
  font-size: 1.5rem;
  color: var(--secondary-green);
  text-decoration: none;
}

#posts li a:hover {
  color: var(--dark-cyan);
}

#posts li {
  padding: 0.5rem;
  border-radius: 50px 50px;
}

#posts li:nth-child(even) {
  background-color: #eee;
}

/* Media */

@media (max-width: 1000px) {
  .masonry {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
}

@media (max-width: 750px) {
  nav a {
    font-size: 1.25rem;
  }

  main {
    grid-template-columns: 1fr;
  }

  aside:has(.sidebar) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    order: 1;
    margin: 1rem;
  }

  .masonry {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}
