/* charafest site styles */

:root {
  --bg: #0b0612;
  --text: #eee8ff;
  --text-soft: #a99cc4;
  --line: rgba(255, 255, 255, 0.12);

  --accent: #b44cff;
  --accent-rgb: 180, 76, 255;
  --tint-rgb: 180, 76, 255;
  --accent-2: #39ff88;
  --on-accent: #0b0612;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-logo: "Monoton", var(--font);
  --font-title: "Zen Dots", var(--font);
  --font-head: "Unica One", var(--font);
  --font-fancy: "Cinzel Decorative", serif;
  --font-bold: "Poppins", var(--font);
}

/* album colors, picked off each cover */
.theme-2024 { --accent: #ffd319; --accent-rgb: 255, 211, 25;  --tint-rgb: 255, 154, 31; }
.theme-2025 { --accent: #ff3d6e; --accent-rgb: 255, 61, 110;  --tint-rgb: 255, 143, 158; }
.theme-2026 { --accent: #b48cff; --accent-rgb: 180, 140, 255; --tint-rgb: 255, 154, 216; }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  /* faint diagonal lines, same angle as the header stripes */
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 11px),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* blurry cover behind the album pages */
body::before {
  content: "";
  position: fixed;
  inset: -80px;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.5);
  opacity: 0.3;
}

.bg-2024::before { background-image: url("../images/2024-cover.jpg"); }
.bg-2025::before { background-image: url("../images/2025-cover.jpg"); }
.bg-2026::before { background-image: url("../images/2026-cover.jpg"); }


/* header */

.site-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 6px, transparent 6px 12px);
  opacity: 0.8;
}

.back-link {
  font-size: 0.85rem;
  color: var(--text-soft);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent-2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-bold);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

nav {
  margin-left: auto;
}

nav a {
  margin-left: 24px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

nav a:hover,
nav a.current {
  color: var(--accent-2);
}


/* text */

main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 56px auto;
  padding: 0 28px;
}

main > section + section {
  margin-top: 64px;
}

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 3rem;
  margin: 0 0 16px;
  color: var(--text);
}

h1.wordmark {
  font-family: var(--font-bold);
  font-weight: 900;
  font-size: 3.4rem;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.hero .subtitle {
  font-family: var(--font-bold);
  font-weight: 900;
}

/* unica one's lowercase is small caps already */
h2 {
  margin-top: 0;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--accent-2);
}

a {
  color: var(--accent-2);
}

.subtitle {
  font-family: var(--font-fancy);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-top: 0;
}

.callout {
  border: 2px solid var(--accent-2);
  color: var(--accent-2);
  padding: 14px 20px;
  font-family: var(--font-bold);
  font-weight: 900;
}


/* home page */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 88px;
}

.hero .text {
  flex: 1 1 300px;
}

.hero img {
  flex: 0 1 290px;
  width: 290px;
  max-width: 100%;
  margin-right: -40px;
  border: 3px solid var(--accent);
  transform: rotate(3deg);
}


/* buttons: a tile with a striped copy of itself stuck behind it */

.button,
.album-links a {
  --edge: var(--accent-2);
  --face: var(--accent-2);
  --face-text: var(--on-accent);

  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 12px 18px 0 0;
  padding: 9px 16px 9px 20px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--face-text);
  background: var(--face);
  border: 2px solid var(--edge);
  text-decoration: none;
}

.button::before,
.album-links a::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  transform: translate(7px, 7px);
  border: 2px solid var(--edge);
  background: repeating-linear-gradient(-45deg, var(--edge) 0 2px, transparent 2px 8px);
}

.button::after,
.album-links a::after {
  content: "→";
}

.button[href^="http"]::after,
.album-links a[href^="http"]::after {
  content: "↗";
}

.button:hover {
  --face: var(--text);
  --edge: var(--text);
}

.button:focus-visible,
.album-links a:focus-visible {
  outline: 2px dashed var(--edge);
  outline-offset: 8px;
}

.button.outline,
.album-links a {
  --edge: var(--accent);
  --face: var(--bg);
  --face-text: var(--text);
}

.button.outline:hover,
.album-links a:hover {
  --face: var(--edge);
  --face-text: var(--on-accent);
}

.button.back::after {
  content: none;
}


/* covers. each one is on the page twice: the blurry copy behind is the glow */

.album-art,
.cover {
  position: relative;
  display: block;
  text-decoration: none;
}

.album-art {
  align-self: start;
}

.cover {
  z-index: 0;
}

.cover-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transform: scale(1.35);
  filter: blur(60px) saturate(1.8);
  opacity: 0.9;
  pointer-events: none;
}

.cover-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}


/* past albums page */

main.album-list {
  max-width: none;
  width: 70%;
  padding: 0;
}

/* glows go at -1, squares at 0, cover + text at 1, title at 2,
   so the glows never end up on top of anything */
.album-row {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 64px;
  align-items: stretch;
  padding: 80px 0;
}

.album-row + .album-row {
  border-top: 1px solid var(--line);
}

.album-title {
  position: absolute;
  z-index: 2;
  left: -28px;
  bottom: -28px;
  margin: 0;
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.7);
}

.album-title::before {
  content: "";
  position: absolute;
  inset: -36px -56px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--accent), rgba(var(--accent-rgb), 0.6) 50%, transparent 75%);
  filter: blur(18px);
}

/* white on yellow is unreadable */
.theme-2024 .album-title {
  color: #1b1600;
  text-shadow: none;
}

.album-details {
  position: relative;
  padding: 40px 44px;
}

.album-details > .tracklist,
.album-details > .album-links {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

/* the squares. each background layer is one square:
   color (background-image), size, then position, in the same order.
   last layer is the dark fill under the whole panel */
.mosaic,
.mosaic-glow {
  --a: 0.22;
  --b: 0.2;
  --c: 0.34;
  --d: 0.06;
  --base: 0.12;

  position: absolute;
  inset: -24px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), var(--c)) 0 0),
    linear-gradient(rgba(255, 255, 255, var(--d)) 0 0),
    linear-gradient(rgba(var(--tint-rgb), var(--b)) 0 0),
    linear-gradient(rgba(var(--accent-rgb), var(--a)) 0 0),
    linear-gradient(rgba(var(--accent-rgb), var(--c)) 0 0),
    linear-gradient(rgba(var(--tint-rgb), var(--b)) 0 0),
    linear-gradient(rgba(var(--accent-rgb), var(--a)) 0 0),
    linear-gradient(rgba(255, 255, 255, var(--d)) 0 0),
    linear-gradient(rgba(var(--tint-rgb), var(--b)) 0 0),
    linear-gradient(rgba(var(--accent-rgb), var(--a)) 0 0),
    linear-gradient(rgba(var(--accent-rgb), var(--c)) 0 0),
    linear-gradient(rgba(var(--accent-rgb), var(--base)) 0 0),
    linear-gradient(var(--bg) 0 0);
  background-size:
    56px 56px,
    90px 90px,
    110px 110px,
    80px 80px,
    140px 140px,
    170px 170px,
    120px 120px,
    210px 210px,
    240px 240px,
    190px 190px,
    260px 260px,
    calc(100% - 48px) calc(100% - 48px),
    calc(100% - 48px) calc(100% - 48px);
  background-position:
    6% 10%,
    96% 4%,
    28% 100%,
    62% 18%,
    100% 92%,
    0% 78%,
    80% 50%,
    44% 0%,
    16% 36%,
    54% 88%,
    88% 100%,
    center,
    center;
}

.mosaic {
  z-index: 0;
}

/* same squares, way brighter, blurred */
.mosaic-glow {
  --a: 0.57;
  --b: 0.52;
  --c: 0.88;
  --d: 0.16;
  --base: 0.31;
  z-index: -1;
  filter: blur(36px) saturate(1.4);
  opacity: 0.8;
}

.album-details .tracklist {
  margin-top: 0;
  columns: 2;
  column-gap: 32px;
}

.album-details .tracklist li {
  break-inside: avoid;
  padding: 4px 0;
}

.album-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  margin-top: 28px;
}

.album-links a {
  margin: 0;
  padding: 6px 12px 6px 16px;
  font-size: 1.05rem;
}


/* single album pages */

.album-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 48px;
}

.album-header .cover {
  width: 280px;
}

.tracklist {
  padding-left: 1.6em;
}

.tracklist li {
  padding: 8px 0;
}

.tracklist li::marker {
  color: var(--accent);
  font-weight: bold;
}

.tracklist .artist {
  color: var(--text-soft);
}

.player {
  width: 100%;
  border: 0;
}


@media (max-width: 900px) {
  main.album-list { width: 100%; padding: 0 36px; }
  .album-row { grid-template-columns: 1fr; gap: 56px; }
  .album-art { max-width: 380px; }
  h1.wordmark { font-size: 2.8rem; }
  .hero img { margin-right: 0; }
}

@media (max-width: 600px) {
  h1, h1.wordmark { font-size: 2rem; }
  .logo { font-size: 1.2rem; }
  nav { margin-left: 0; width: 100%; }
  nav a { margin: 0 18px 0 0; }
  .album-header .cover { width: 100%; }
  .hero img { margin: 0 auto; }
  .album-details .tracklist { columns: 1; }
  .album-details { padding: 28px 24px; }
  .album-title { font-size: 1.5rem; left: -12px; }
}
