:root {
  --cf1: hsl(210, 30%, 25%);
  --cb1: hsl(45, 45%, 84%);
  --cb1t: hsla(45, 45%, 84%, 85%);
  --cb2: hsl(45, 45%, 90%);
  --cb2t: hsla(45, 45%, 90%, 90%);
  --cb3: hsl(45, 45%, 80%);
  --ca1: hsl(210, 70%, 30%);
  --ca2: hsl(210, 70%, 90%);
  --ca3: hsl(210, 70%, 38%);
  --cred: hsl(15, 50%, 75%);
  
  --font-ui: "Nunito";
  
  --base-size: clamp(18px, 1.3vw, 32px);
  font-size: var(--base-size);
}

:root.dark {  
  --cf1: hsl(45, 10%, 55%);
  --cb1: hsl(210, 15%, 10%);
  --cb1t: hsla(210, 15%, 10%, 90%);
  --cb2: hsl(210, 15%, 4%);
  --cb2t: hsl(210, 15%, 4%, 95%);
  --cb3: hsl(210, 15%, 13%);
  --ca1: hsl(45, 50%, 70%);
  --ca2: hsl(45, 50%, 10%);
  --ca3: hsl(45, 50%, 50%);
  --cred: hsl(15, 50%, 25%);
}


* {
  font-family: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  letter-spacing: 0.03rem;
}

body {
  font-family: var(--font-ui);
  color: var(--cf1);
  font-size: 1rem;
  text-align: center;
  background: var(--cb1);
  line-height: 200%;
  scroll-behavior: smooth;
}

#bg-graphics {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/bg.png');
  background-size: cover;
  background-position: center;
  z-index: -100;
}

#bg-graphics-tint {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  background: linear-gradient(to bottom, var(--cb1), var(--cb1t), var(--cb1t));
  
  z-index: -99;
}

header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  backdrop-filter: blur(8px);
  position: fixed;
  width: 100%;
  font-size: 1rem;
}

header .logo-link {
  width: auto;
  align-self: start;
}

@media (orientation: portrait) {
  header {
    grid-template-columns: 1fr auto;
  }

  header nav {
    grid-area: 2 / 1 / 3 / 3;
    justify-content: start;
    padding: 0 0.25rem;
  }
}

header .logo-link {
  text-decoration: none;
  color: var(--ca1);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

header .logo-link svg {
  height: 1.5rem;
  width: 1.5rem;
}

header .logo-link b {
  display: inline-block;
  padding-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 900;
}

header label {
  cursor: pointer;
}

header nav {
  display: inline-flex;
  gap: 1rem;
  font-size: 0.9rem;
  align-items: center;
}

header nav a {
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

header nav a svg {
  margin-top: 0.18rem;
  width: 1.3rem;
  heigth: 1.3rem;
}

main {
  text-align: left;
  display: inline-flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  width: 100%;
  max-width: 116vh;
  min-height: calc(100vh - 4.5rem);
}

footer {
  padding: 1rem;
  background: var(--cb2);
  border-radius: 0.3rem;
  border-top: 0.15rem solid var(--cb3);
  margin-top: 1rem;
}

hgroup {
  margin-top: 7rem;
  width: 100%;
  max-width: 100vh;
  align-self: center;
  text-align: center;
  padding: 1rem 0;
}

hgroup>* {
  padding: 0.5rem;
  margin: 0.75rem 0;
}

section {
  padding: 1rem;
  background: var(--cb2);
  border-radius: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

section.cards {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  background: transparent;
}

section.cards .card {
  text-decoration: none;
  background: var(--cb2);
  padding: 1rem;
  border-radius: 0.3rem;
  border: 1px solid var(--ca2);
  width: 100%;
  max-width: 50vh;
}

section.cards .card:hover {
  border-color: var(--ca1);
}

section.cards .card>div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

section.cards .card .title {
  font-size: 1.2rem;
}

section.cards .card:hover .action {
  color: var(--ca1);
}

footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  text-align: left;
}

footer section {
  padding: 1rem;
  display: inline-flex;
  width: 100%;
  max-width: 33vh;
  gap: 0.1rem;
}

footer h3 {
  color: var(--ca1);
}

footer a {
  text-decoration: none;
}


h1 {
  font-size: 1.4rem;
  color: var(--ca1);
}

h2 {
  font-size: 1.2rem;
  color: var(--ca1);
}

h2:not(:first-of-type) {
  margin-top: 1rem;
}

p {
  font-weight: 450;
}

hr {
  border: none;
  border-top: 1px solid var(--cb3);
}

ol {
  list-style-position: inside;
}

ul>li {
  display: block;
}

ul>li:before {
  content: "•";
  font-family: "Noto Emoji", sans-serif;
  display: inline-block;
  width: 1rem;
  height: 1rem;
}

li>ul>li:before {
  content: "◦";
}

li>ul>li {
  padding-left: 1rem;
}

li p {
  display: inline-block;
}


.cta {
  display: inline-block;
  background: var(--cf1);
  align-self: start;
  color: var(--cb1);
  padding: 0.06rem 0.75rem;
  border-radius: 5rem;
  text-decoration: none;
  font-weight: 700;
  border: 0.1rem solid var(--ca1);
  font-size: 0.9rem;
}

audio-button {
  display: inline-block;
}

audio-button::part(button) {
  background: none;
  color: var(--cf1);
  border-radius: 0.1rem;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0;
  vertical-align: -0.07rem;
  margin: 0 0.25rem;
}

toggle-text::part(toggle) {
  background: none;
  color: var(--cf1);
  border-radius: 0.1rem;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0;
  vertical-align: -0.07rem;
  margin: 0 0.25rem;
}

.emoji {
  font-family: "Noto Emoji", sans-serif;
}

.emoji.color {
  font-family: "Noto Color Emoji", sans-serif;
}

