/* ---------- Tokens ---------- */
:root {
  --text: #fff;
  --stroke: #001338;
  --accent: #96d3ff;
  --shadow: rgba(0, 87, 255, 0.66);
  --card: rgba(27, 32, 41, 0.92);
  --display: "Bungee", sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", sans-serif;

  /* Quick knobs */
  --nav-size: 10rem;            /* size of the home navigation icons */
  --bg-size: 160% auto;           /* background photo: contain = whole image, cover = fill/crop, or e.g. 70% auto */
  --bg-position: center calc(50% + 16%);  /* background photo: e.g. top left, bottom right, center center */
  --bg-color: #000;             /* fills any space around the photo; match your photo's edge color */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { font-size: 18pt; }
@media (max-width: 980px) { html { font-size: 11pt; } }

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--text);
  font-family: var(--body);
  line-height: 1.25;
  overflow-x: hidden;
}
body::before { /* fixed background photo */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-color) url("assets/images/background.png") var(--bg-position) / var(--bg-size) no-repeat;
}

a { color: inherit; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
mark { background: rgba(0, 59, 179, 0.5); color: inherit; }
p { margin: 0 0 1rem; }

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
section { width: 100%; }

/* ---------- Home ---------- */
#home { max-width: 55rem; text-align: center; }

.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  justify-items: center;
}
.nav-grid a { display: block; width: min(var(--nav-size), 100%); transition: transform 0.3s ease; }
.nav-grid a:nth-child(odd):hover { transform: rotate(-10deg); }
.nav-grid a:nth-child(even):hover { transform: rotate(10deg); }

/* ---------- Content cards ---------- */
.card {
  max-width: 40rem;
  padding: 2.75rem 2.5rem;
  background: var(--card);
  border-radius: 0.375rem;
  box-shadow: 0.057rem 0.111rem 0 rgba(0, 16, 46, 0.66);
}
.card > * { margin-top: 0; margin-bottom: 1.5rem; }
.card > :last-child { margin-bottom: 0; }
@media (max-width: 736px) { .card { padding: 2rem 1.6rem; } }

.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-shadow: 0.113rem 0.223rem 0 var(--shadow);
  font-size: 5.125em;
  letter-spacing: -0.25rem;
  overflow-wrap: anywhere;
}
@media (max-width: 736px) { .display { font-size: 3.125em; } }

.sub {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.25em;
  letter-spacing: 0.2rem;
  text-shadow: 0.113rem 0.223rem 0 var(--shadow);
}

.back, .card button, #visualizer-overlay {
  display: inline-block;
  padding: 0 1rem 0 1.2rem;
  height: 2rem;
  line-height: calc(2rem - 2px);
  border: 1px solid #fff;
  border-radius: 0.375rem;
  background: transparent;
  color: #fff;
  font: 400 0.625em/calc(2rem - 2px) var(--display);
  letter-spacing: 0.175rem;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.back:hover, .card button:hover { color: var(--accent); border-color: var(--accent); }
.card .back { align-self: start; }

.photo {
  width: 100%;
  border-radius: 0.875rem;
  box-shadow: 0.227rem 0.446rem 0 rgba(0, 87, 255, 0.66);
}

/* ---------- Text ---------- */
.body, .lead, .quote, .reviews, .intro, .mark-list { -webkit-text-stroke: 0.01em var(--stroke); }
.body { font-size: 1.125em; line-height: 1.2; text-align: justify; }
.body p { text-indent: 3rem; }
.body.small { text-align: left; }
.lead { font-size: 1.5em; font-weight: 300; text-align: justify; text-indent: 3rem; }
.quote { font-size: 1.5em; text-align: justify; }
.reviews { font-size: 1.5em; line-height: 1.125; }
.mark-list { font-size: 1.375em; font-weight: 900; padding-left: 3rem; line-height: 1.5; }
.intro { font-size: 1.125em; text-align: center; }
@media (max-width: 736px) { .body p, .lead { text-indent: 0; } .mark-list { padding-left: 1rem; } }

/* ---------- Embeds ---------- */
.embed, .video { width: 100%; border: 0; border-radius: 12px; }
.video { aspect-ratio: 16 / 9; border-radius: 0; }
.bandcamp { height: 20rem; max-width: 20rem; margin-inline: auto; display: block; }

/* ---------- Icons ---------- */
.icons { list-style: none; margin: 2rem 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
.icons a { display: flex; align-items: center; justify-content: center; width: 2.5em; height: 2.5em; border: 1px solid #fff; border-radius: 50%; transition: border-color 0.25s; }
.icons svg { width: 60%; height: 60%; fill: #fff; transition: fill 0.25s; }
.icons a:hover { border-color: var(--accent); }
.icons a:hover svg { fill: var(--accent); }

/* ---------- Contact form ---------- */
#contact-form { display: flex; flex-direction: column; gap: 1.125rem; }
#contact-form input, #contact-form textarea {
  width: 100%;
  padding: 0 0.875rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 0.25rem;
  background: transparent;
  color: #fff;
  font: 300 1em var(--body);
}
#contact-form textarea { height: 12rem; padding: 0.6rem 0.875rem; line-height: 1.5; resize: vertical; }
#contact-form ::placeholder { color: #fff; opacity: 0.55; }
#contact-form input:focus, #contact-form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
#contact-form button { align-self: flex-start; height: 2.5rem; }
.hp { display: none; }

/* ---------- Blip-blop visualizer ---------- */
#visualizer {
  position: relative;
  overflow: hidden;
  margin: 2rem auto 0;
  border: 3px solid #333;
  border-radius: 8px;
  background: #000;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
#visualizer iframe { width: 600px; height: 400px; border: 0; transform-origin: top left; transition: transform 0.4s ease; }

#visualizer.thumb { width: 200px; height: 133px; }
#visualizer.thumb iframe { transform: scale(0.3333); pointer-events: none; }

#visualizer.active { width: 600px; max-width: 100%; height: 400px; }
#visualizer.active iframe { transform: none; }

#visualizer-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.6);
  white-space: normal;
  line-height: 1.2;
  font: 700 14px/1.2 system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  transition: opacity 0.3s;
}
#visualizer.active #visualizer-overlay { opacity: 0; pointer-events: none; }