/* =========================================================
   GLOBAL RESET
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
   CUSTOM FONT
   ========================================================= */
@font-face {
  font-family: 'Chomsky';
  src:
    url('assets/Chomsky.woff2') format('woff2'),
    url('assets/Chomsky.woff') format('woff'),
    url('assets/Chomsky.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   BASE PAGE STYLES
   ========================================================= */
body {
  background: #000 url('assets/space-bg.webp') repeat;
  background-size: 420px;
  background-attachment: scroll;
  font-family: 'Chomsky', serif;
  color: #3E0703;
}

/* =========================================================
   HEADER / SITE TITLE
   ========================================================= */
.header {
  background: none;
  border: none;
  padding: 30px 10px 20px;
  text-align: center;
}

.header h1 {
  font-size: 56px;
  font-weight: normal;
  letter-spacing: 2px;
  color: #FFF0C4;
  text-shadow:
    0 0 4px #3E0703,
    0 0 12px rgba(62, 7, 3, 0.8);
}

/* TITLE SEPARATOR */
.header::after {
  content: "";
  display: block;
  width: 80%;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(
    to right,
    transparent,
    #660B05,
    transparent
  );
}

/* =========================================================
   MAIN GRID LAYOUT
   ========================================================= */
.container {
  display: grid;
  grid-template-columns: 200px 1fr 320px;
  gap: 10px;
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* =========================================================
   PANEL CONTAINERS
   ========================================================= */
.sidebar,
.main,
.right-sidebar {
  background: #FFF0C4;
  border: 4px solid #660B05;
  padding: 8px;
  min-width: 0;
}

/* =========================================================
   PROFILE IMAGE
   ========================================================= */
.profile-pic {
  width: 100%;
  height: 180px;
  background: #FFF0C4 url('assets/wybie-pfp.webp') center/contain no-repeat;
  margin-bottom: 10px;
}

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-title {
  background: #8C1007;
  color: #FFF0C4;
  padding: 6px 10px;
  margin: 14px 0 8px;
  font-weight: normal;
  border: 1px solid #3E0703;
  letter-spacing: 0.5px;
}

.section-title span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.section-title span::before,
.section-title span::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  min-width: 24px;
  background: linear-gradient(to right, transparent, #660B05);
}

.section-title span::after {
  background: linear-gradient(to left, transparent, #660B05);
}

.section-title .sigil {
  font-style: normal;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   RIGHT SIDEBAR BLOCKS
   ========================================================= */
.block {
  margin-bottom: 12px;
}

.block-content {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* =========================================================
   IMAGES
   ========================================================= */
.right-sidebar img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =========================================================
   SPOTIFY EMBEDS
   ========================================================= */
.block-content iframe {
  display: block;
  width: 100%;
  height: 80px;
  border: 0;
  max-width: 100%;
}

/* =========================================================
   MOBILE (iPhone) LAYOUT
   ========================================================= */
@media (max-width: 820px) {
  body {
    background-size: 300px;
  }

  .header h1 {
    font-size: 44px;
  }

  .container {
    grid-template-columns: 1fr;
    max-width: 520px;
    padding: 10px;
  }

  .sidebar,
  .main,
  .right-sidebar {
    width: 100%;
  }

  .section-title span {
    white-space: normal;
    flex-wrap: wrap;
    gap: 8px;
  }

  .right-sidebar img {
    max-width: 100%;
    height: auto;
  }

  .block-content iframe {
    width: 100%;
    height: 80px;
  }

  .right-sidebar .block-content {
    align-items: center;
  }

  .right-sidebar .block-content a {
    display: block;
    width: 100%;
    text-align: center;
  }

  .right-sidebar .block-content img {
    display: inline-block;
    margin: 0 auto;
  }
}
