[data-theme="light"] {
  --color-bg: hsl(0, 0%, 92%);
  --color-fg: hsl(0, 0%, 15%);
}

[data-theme="dark"] {
  --color-bg: hsl(0, 0%, 8%);
  --color-fg: hsl(0, 0%, 85%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "roboto", helvetica, arial, sans-serif;
}

body {
  font-family: system-ui;
  font-size: 1.25rem;
  line-height: 1.6;
  background-color: var(--color-bg);
  color: var(--color-fg);
}

a {
  color: var(--color-fg);
}

.site-header {
  background-image: url("assets/shootie-star.svg");
  background-position: bottom;
  background-size: cover;
  padding-bottom: 20rem;
  min-height: 60vh;
  position: relative;
}

.site-header-mask {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.5);

  -webkit-mask: url("assets/mask.png");
  -webkit-mask-position: center bottom;
  -webkit-mask-size: 100%;

  mask: url("assets/mask.png");
  mask-position: bottom;
  mask-size: cover;
}

.site-title {
  text-align: center;
  font-size: clamp(4rem, 10vw + 0.5rem, 9rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  position: fixed;
  width: 100%;
  margin-top: 10rem;
  color: hsl(0, 0%, 85%);
  text-shadow: 0px 0px 9px hsl(0, 0%, 85%);
}

/* Main */
main {
  display: grid;
  grid-auto-rows: minmax(100px, auto);
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    "n n n n n n n n n n n n"
    "p p p p p p p p p p p p"
    "b b b b b b b b b b b b"
    "d d d d d d d d d d d d"
    "r r r r r r r r r r r r"
    "c c c c c c c c c c c c"
    "f f f f f f f f f f f f";
}

/*Nav*/
nav {
  grid-area: n;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1.5rem;
}

.loga {
  font-size: 0.9rem;
  width: 9rem;
}

nav ul li {
  list-style: none;
  padding: 4px;
  position: relative;
  display: block;
  font-size: 1.6rem;
}

nav ul li a {
  text-decoration: none;
  transition: all 0.3s ease 0s;
  color: var(--color-fg);
  padding: 5px 10px;
}

nav ul a:hover {
  color: #ffaa33;
}

nav ul li ul {
  display: none;
}

nav ul li ul a {
  color: var(--color-bg);
}

nav ul li:hover ul {
  display: block;
  position: absolute;
  background-color: var(--color-fg);
  border-radius: 10px;
}

.loga {
  font-size: 1rem;
  padding: 10px;
}

/* Sections */
section {
  margin: 10rem 0;
}
.parallax {
  width: min(100% - 3rem, 55rem);
  margin-inline: auto;
  grid-area: p;
}

.dark {
  width: min(100% - 3rem, 55rem);
  margin-inline: auto;
  grid-area: d;
}

.reflection {
  width: min(100% - 3rem, 55rem);
  margin-inline: auto;
  grid-area: r;
}

.resources {
  width: min(100% - 3rem, 55rem);
  margin-inline: auto;
  grid-area: c;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 2vw + 0.5rem, 9rem);
  font-weight: 800;
  line-height: 3;
  text-transform: uppercase;
}

.section a:hover {
  color: #ffaa33;
  transition: all 0.3s ease 0s;
}

/* Button */

.toggle {
  grid-area: b;
  display: flex;
  justify-content: center;
  align-items: center;
}

button {
  font-size: 2rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease-in-out;
  border-radius: 2rem;
  cursor: pointer;
  color: var(--color-fg);
  background-color: var(--color-bg);
  border: 0.25rem solid var(--color-fg);
}

button:hover {
  color: var(--color-bg);
  background-color: var(--color-fg);
}

/*Footer*/
footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 50px;
  grid-area: f;
}

a:hover {
  color: #ffaa33;
  transition: all 0.3s ease 0s;
}

/* Responsive */

@media only screen and (max-width: 656px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    font-size: 2rem;
  }

  nav ul li:hover ul {
    display: block;
    position: absolute;
    background-color: var(--color-fg);
    border-radius: 10px;
  }

  nav ul li:hover ul a {
    color: var(--color-bg);
  }
}
