/* formating stuff */

:root {
  --sidebar-width: 160px;
}

body {
  margin: 0;
  background-color: #000;
  color: #fff;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 1px;
  transform: rotate(45deg);
  animation-name: star-twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

h1, h2 {
  color: #00a1a1;
}

.inline-icon {
  height: 1.8em;
  width: auto;
  vertical-align: middle;
  margin: 0 0.2em;
}

.panel {
  border: 8px ridge #00a1a1;
  background-color: rgba(0, 0, 20, 0.5);
  backdrop-filter: blur(1.5px);
  box-sizing: border-box;
}

.content-photo {
  display: block;
  max-width: 100%;
  width: 320px;
  height: auto;
  border: 4px ridge #00a1a1;
  margin: 1rem auto;
}

.layout {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 1.5rem;
}

.sidebar {
  flex: 0 0 var(--sidebar-width);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 1.5rem;
}

.nav-box {
  border: 3px ridge #e91e63;
  box-sizing: border-box;
}

.nav-box:has(#font-toggle) {
  border: 3px outset #00a1a1;
}

.nav-icon {
  height: 1.8rem;
  width: auto;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  color: #fff;
  text-decoration: none;
}

.sidebar a:hover {
  background-color: rgba(0, 161, 161, 0.2);
}

.content {
  flex: 1;
  min-width: 0;
  padding: 1.5rem;
  position: relative;
  backdrop-filter: none;
}

.content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(1.5px);
}

.content a {
  color: #ff4fa3;
  text-decoration: none;
  border-bottom: 1px dotted #ff4fa3;
}

.content a:hover {
  color: #00e1e1;
  border-bottom-color: #00e1e1;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
}

.link-badge {
  display: block;
  height: 2.2rem;
  width: auto;
}

.bandcamp-embed {
  display: block;
  width: 400px;
  max-width: 100%;
  margin: 1rem 0;
  border: 4px ridge #00a1a1;
  box-sizing: border-box;
}

.bandcamp-embed img {
  display: block;
  width: 100%;
  height: auto;
}

.bandcamp-embed iframe {
  display: block;
  width: 100%;
  height: 312px;
  border: 0;
  filter: invert(1) brightness(1.6);
  mix-blend-mode: screen;
}

#font-toggle {
  width: 100%;
  background-color: #012a2a;
  border: 2px outset #00a1a1;
  color: #fff;
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0.75rem;
  font-family: inherit;
  text-align: center;
}

#font-toggle:hover {
  background-color: rgba(0, 161, 161, 0.35);
}

#font-toggle:active {
  border-style: inset;
}

/* font stuff*/
@font-face {
  font-family: "OpenDyslexic";
  src: url("../fonts/OpenDyslexic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OpenDyslexic";
  src: url("../fonts/OpenDyslexic-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OpenDyslexic";
  src: url("../fonts/OpenDyslexic-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "OpenDyslexic";
  src: url("../fonts/OpenDyslexic-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Fira Code";
  src: url("../fonts/FiraCode-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Code";
  src: url("../fonts/FiraCode-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "OpenDyslexic", sans-serif;
}

body.mono-font {
  font-family: "Fira Code", monospace;
  font-size: 1.3em;
}

code, pre {
  font-family: "Fira Code", monospace;
}

/* mobile */
@media (max-width: 520px) {
  .layout {
    flex-direction: column;
    margin: 1rem;
    gap: 1rem;
  }

  .sidebar {
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
    position: static;
    order: 1;
  }

  .nav-icon,
  .link-badge {
    max-width: 100%;
  }

  .content {
    order: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
  }

  .content-photo {
    width: 100%;
  }
}
