:root {
  --color-neutral-light-100: hsl(0, 0%, 100%);
  --color-neutral-light-500: hsl(204, 16%, 94%);
  --color-neutral-light-800: hsl(216, 2%, 48%);
  --color-neutral-dark-300: hsl(225, 3%, 75%);
  --color-neutral-dark-900: hsl(240, 2%, 9%);
  --color-primary-700: hsl(18, 92%, 55%);
  --color-primary-500: hsl(20, 86%, 68%);
  --color-primary-300: hsl(24, 81%, 86%);
  --color-tertiary: hsl(37, 64%, 94%);
  --dvh-fallback: calc(var(--vh, 1vh) * 100);
  --font-family: "InterVariable";
  --border-primary: 4px solid var(--color-primary-700);
}

/* Globals */

@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/Fonts/InterVariable.woff2") format("woff2");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-track {
  background-color: var(--color-neutral-light-100);
  border: var(--border-primary);
  margin: 20px 0;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-primary-700);
}

html,
body {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--color-primary-700);
}

h1 {
  font-size: clamp(4rem, 16vw, 16rem);
  color: var(--color-primary-700);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2dvh;
  line-height: clamp(100%, 110%, 120%);
}

h2,
summary {
  font-size: clamp(1.5rem, 1.5vw, 2rem);
}

summary {
  cursor: pointer;
  user-select: none;
}

aside p,
main p {
  font-size: clamp(1rem, 1vw, 1.15rem);
  margin-bottom: 2dvh;
}

h2,
h5 {
  margin-bottom: 1dvh;
}

a {
  text-decoration: none;
  color: var(--color-primary-700);
  text-transform: uppercase;
  font-weight: 600;
}

a:hover {
  color: var(--color-primary-500);
}

a.active {
  text-decoration: underline solid var(--color-primary-500) 4px;
  color: var(--color-primary-500);
  text-underline-offset: 5px;
}

img {
  width: 100%;
  height: clamp(10dvh, 30dvh);
  object-fit: cover;
  margin-bottom: 2dvh;
  border: 17px solid var(--color-neutral-light-100);
  border-bottom: 35px solid var(--color-neutral-light-100);
  box-shadow: 3px 4px 8px hsla(50, 5%, 75%, 25%);
  cursor: pointer;
}

img:hover {
  border-color: var(--color-primary-700);
}

.boxed {
  color: var(--color-primary-700);
  border: var(--border-primary);
  width: 90%;
  margin: auto;
  padding: 1dvh;
}

/* Globals End */

/* Header */

header {
  background-color: var(--color-neutral-light-100);
  color: var(--color-neutral-light-100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1dvh 2vw 3dvh;
}

header h1,
header p {
  margin-bottom: 0.5dvh;
}

/* Nav */

.links-container {
  display: flex;
  justify-content: space-between;
}
.links-left {
  display: flex;
  gap: 3vw;
}

.hamburger {
  display: none;
}

/* Content */

.content-section {
  background-image: linear-gradient(
      to right,
      var(--color-primary-300) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--color-primary-300) 1px, transparent 1px);
  background-size: 40px 40px;
  background-color: var(--color-tertiary);
  overflow: hidden;
  width: 100%;
  height: 100%;
  padding: 0 2vw;
}

.content-container {
  margin: auto;
  gap: 1vw;
  display: flex;
  width: 90%;
  height: 100%;
}

aside {
  flex: 0.5;
  background-color: var(--color-neutral-light-100);
  padding: 1dvh;
  border: var(--border-primary);
  height: fit-content;
  margin-top: 2dvh;
  max-width: 300px;
}

aside ul {
  list-style: none;
  cursor: pointer;
}
aside ul li:hover {
  color: var(--color-primary-300);
}

aside p {
  font-size: 1.5rem;
}
aside p span {
  font-size: 0.85rem;
}

aside ul li p.active {
  color: var(--color-primary-700);
  font-weight: bold;
}

details:open summary {
  margin-bottom: 2dvh;
}

main {
  flex: 3;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
  gap: clamp(3vw, 3vw, 5vw);
  grid-auto-flow: dense;
  padding: 2dvh 2vw 0 2vw;
}

article {
  break-inside: avoid;
  width: 100%;
  height: 100%;
}

/* Footer */

.footer {
  background-color: var(--color-neutral-light-100);
  color: var(--color-primary-700);
  padding: 1.5dvh 2vw;
  margin-top: auto;
}

.footer p {
  margin-bottom: 0;
  font-weight: 600;
  text-transform: uppercase;
}

.footer .boxed {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Image Rotations */
main article:nth-child(even) {
  rotate: 3deg;
}

main article:nth-child(odd) {
  rotate: -2deg;
}

/* Media Queries */

@media (max-width: 1100px) {
  .content-container {
    flex-direction: column;
  }
  aside {
    width: 100%;
    max-width: none;
    flex: none;
    padding: 1dvh;
    margin-top: 1dvh;
  }
  summary {
    margin-bottom: 0;
  }
  img {
    max-height: 50dvh;
  }
  header {
    padding: 1dvh 2vw 2dvh;
  }
  .content-container {
    gap: 0;
  }
  main {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(1fr, auto);
    grid-auto-flow: dense;
    padding: 2dvh 2vw 0 2vw;
    gap: 3vw;
  }
}

@media (max-width: 590px) {
  main {
    grid-template-columns: 1fr;
  }
}
