/* hazeman.io — palette and type shared with the Choose My Chapter panel */
:root {
  /* Colours sampled from the Hazemind landscape artwork */
  --void:       #1d1628;
  --slate:      #2f2440;   /* the pine trees */
  --slate-lite: #3e3055;
  --slate-deep: #251c33;
  --teal-deep:  #4a2257;   /* deep hills */
  --teal-dark:  #2c1937;
  --mint:       #5fd3b4;   /* the meadow and the Hazemind */
  --mint-deep:  #3fae92;
  --logo-teal:  #065b50;
  --peach:      #ecc391;   /* the sky */
  --coral:      #e78a7a;
  --violet:     #b253b9;
  --bone:       #ffffff;
  --bone-dim:   #c3b8d1;
  --ink:        #140f1c;
  --chaos:      #e8564f;

  --f-chunk: Impact, "Arial Black", Haettenschweiler, "Franklin Gothic Heavy", sans-serif;
  --f-body:  "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --f-data:  ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1180px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--mint); }
a:hover { color: var(--bone); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--f-chunk);
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.4em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.4rem; }

.kicker {
  font-family: var(--f-data);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 0.6em;
}

.muted { color: var(--bone-dim); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--void) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bone);
  font-family: var(--f-chunk);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand img {
  height: 46px;
  width: auto;
  display: block;
  width: auto;
}
.brand:hover { color: var(--mint); }

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  font-family: var(--f-chunk);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--bone-dim);
  padding: 8px 14px;
  border-radius: var(--radius);
}
.nav a:hover { color: var(--bone); background: var(--slate); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--mint); }

.live-pill {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--f-data);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  background: var(--chaos);
  padding: 6px 12px;
  border-radius: 999px;
}
.live-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bone);
  animation: pulse 1.4s ease-in-out infinite;
}
body.is-live .live-pill { display: inline-flex; }
.live-pill:hover { color: var(--bone); filter: brightness(1.1); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-chunk);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  background: var(--mint);
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid var(--mint);
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { color: var(--ink); background: var(--bone); border-color: var(--bone); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--bone); border-color: var(--slate-lite); }
.btn.ghost:hover { border-color: var(--mint); color: var(--mint); background: transparent; }

.brand .brand-head { height: 44px; transition: transform 0.15s ease; }
.brand:hover .brand-head { transform: rotate(-8deg) scale(1.06); }

/* ---------- hero ---------- */

/* The bottom of the artwork ends in rolling hills over the welcome bar. The shape is
   cut out of the picture itself with a mask, and the outline is drawn on top. */
.hero-art {
  --drip-h: 80px;
  position: relative;
  /* Same purple as the welcome bar, so it shows wherever the hills dip. */
  background: var(--slate-deep);
  z-index: 2;
  margin-bottom: -58px;
  overflow: hidden;
}
.hero-art > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  background: var(--peach);
  -webkit-mask:
    linear-gradient(#000, #000) top left / 100% calc(100% - var(--drip-h) + 1px) no-repeat,
    url("../img/drip-mask.svg") bottom left / 900px var(--drip-h) repeat-x;
  mask:
    linear-gradient(#000, #000) top left / 100% calc(100% - var(--drip-h) + 1px) no-repeat,
    url("../img/drip-mask.svg") bottom left / 900px var(--drip-h) repeat-x;
}
.hero-art::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--drip-h);
  background: url("../img/drip-line.svg") bottom left / 900px var(--drip-h) repeat-x;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-top: 28px;
  padding-bottom: 106px;
}
.hero-art h1 { margin: 0; }

/* "First fashion drop soon" sign peeking in from the left edge; links to the shop.
   The logo shifts right only when the screen is too narrow for the sign to fit beside it. */
:root { --header-h: 65px; }
:root { --sign-w: clamp(140px, 19vw, 290px); }
.drop-sign {
  /* Pinned to the left edge under the header, so it follows you down the page.
     A little of him sits off screen, so the hover tilt never opens a gap at the edge. */
  position: fixed;
  left: calc(var(--sign-w) * -0.18);
  top: calc(var(--header-h) + 8px);
  z-index: 40;
  width: var(--sign-w);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.drop-sign img { width: 100%; height: auto; filter: drop-shadow(3px 5px 6px rgba(20, 15, 28, 0.3)); }
.drop-sign:hover, .drop-sign:focus-visible { transform: rotate(-4deg) scale(1.04); }
.hero-art h1 { padding-left: max(0px, calc(var(--sign-w) * 0.82 + 12px - max(0px, (100vw - var(--wrap)) / 2) - 20px)); }
.hero-logo {
  width: clamp(200px, 22vw, 300px);
  height: auto;
  filter: drop-shadow(0 5px 0 rgba(255, 255, 255, 0.35));
}
.hero-stream {
  margin-top: 12px;
}
.stream-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 12px;
}
.hero-stream .player-frame,
.hero-stream .chat-frame {
  border: 3px solid var(--slate);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--slate-deep);
  box-shadow: 0 18px 40px rgba(20, 15, 28, 0.45);
}
.chat-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
body.is-live .hero-stream .player-frame { border-color: var(--chaos); }
.hero-stream .status-line {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 15, 28, 0.75);
}

.intro {
  position: relative;
  z-index: 1;
  background: var(--slate-deep);
  border-bottom: 1px solid var(--slate);
}
.intro .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 52px;
  padding-bottom: 28px;
}
.intro p.lede {
  font-size: 1.15rem;
  color: var(--bone-dim);
  max-width: 52ch;
  margin: 0;
}
.intro p.lede strong { color: var(--bone); font-weight: normal; }
.intro .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sections ---------- */

section { padding: 56px 0; scroll-margin-top: 64px; }
section[hidden] { display: none; }
#posts { border-top: 0; padding-top: 0; }
section + section { border-top: 1px solid var(--slate); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.section-head h2 { margin: 0; }
.section-head .actions-row { justify-content: flex-start; }

/* ---------- stream ---------- */

.player-frame {
  background: var(--slate-deep);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  overflow: hidden;
}
.player-frame { aspect-ratio: 16 / 9; position: relative; }

/* Offline: the night lake art covers the player. It fades in after a moment so it
   never flashes up while Twitch is still reporting that the stream is live. */
.offline-art {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  text-align: center;
  opacity: 0;
  animation: offline-in 0.6s ease 1.5s forwards;
}
.offline-art picture,
.offline-art picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offline-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20, 15, 28, 0.75) 100%);
}
.offline-art > :not(picture) { position: relative; z-index: 1; margin: 0; }
.offline-art .offline-title { font-family: var(--f-chunk); font-size: clamp(1.4rem, 3vw, 2.2rem); color: #fff; text-shadow: 3px 3px 0 var(--slate); }
.offline-art .offline-when { color: var(--bone); }
body.is-live .offline-art { display: none; }
@keyframes offline-in { to { opacity: 1; } }
@media (max-width: 720px) {
  .offline-art { gap: 6px; padding: 12px; }
  .offline-art .offline-when { display: none; }
  .offline-art .btn { padding: 8px 14px; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) { .offline-art { animation-duration: 0s; } }
.player-frame > div,
.player-frame iframe { width: 100%; height: 100%; border: 0; }

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-data);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-lite);
}
body.is-live .status-dot { background: var(--chaos); animation: pulse 1.4s ease-in-out infinite; }
body.is-live .status-line { color: var(--bone); }

/* ---------- schedule ---------- */

#schedule {
  /* Fur tufts hang over the sections above and below: the section grows by
     --fur-overlap at each end (pulled back with negative margins), the edge
     masks cut the fur texture to Mechy's tuft outline, and the line images
     draw the dark outline on top. */
  --fur-edge: 50px;
  --fur-overlap: 34px;
  --fur-tile: 1600px var(--fur-edge);
  position: relative;
  z-index: 2;
  margin: calc(-1 * var(--fur-overlap)) 0;
  padding: calc(56px + var(--fur-overlap)) 0;
  background: #00c4a0 url("../img/fur.webp") top left / 960px auto repeat;
  border-top: 0;
  color: var(--ink);
  -webkit-mask:
    url("../img/fur-edge-top-mask.png") top left / var(--fur-tile) repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--fur-edge) + 4px) no-repeat,
    url("../img/fur-edge-bottom-mask.png") bottom left / var(--fur-tile) repeat-x;
          mask:
    url("../img/fur-edge-top-mask.png") top left / var(--fur-tile) repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--fur-edge) + 4px) no-repeat,
    url("../img/fur-edge-bottom-mask.png") bottom left / var(--fur-tile) repeat-x;
}
#schedule::before,
#schedule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--fur-edge);
  pointer-events: none;
}
#schedule::before { top: 0; background: url("../img/fur-edge-top-line.png") top left / var(--fur-tile) repeat-x; }
#schedule::after { bottom: 0; background: url("../img/fur-edge-bottom-line.png") bottom left / var(--fur-tile) repeat-x; }
#schedule + section { border-top: 0; }
#schedule h2 { color: var(--bone); }
#schedule .day { color: var(--bone); }
.day .title {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.day .category {
  margin-top: 4px;
  font-family: var(--f-data);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--mint);
}
#schedule .muted { color: #12302b; }
#schedule .schedule-note {
  display: inline-block;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px 14px;
  border-radius: var(--radius);
}
#schedule .schedule-note a { color: var(--logo-teal); font-weight: bold; }
#schedule .section-head .muted {
  background: rgba(255, 255, 255, 0.82);
  padding: 4px 12px;
  border-radius: 999px;
}
#schedule .day { box-shadow: 0 10px 24px rgba(20, 15, 28, 0.35); }

.schedule {
  display: grid;
  grid-template-columns: repeat(var(--days, 5), 1fr);
  gap: 12px;
}
.day {
  background: var(--slate);
  border-radius: var(--radius);
  padding: 18px;
  border-top: 4px solid var(--mint-deep);
}
.day.next { border-top-color: var(--mint); background: var(--teal-deep); }
.day .name {
  font-family: var(--f-chunk);
  font-size: 1.5rem;
  text-transform: uppercase;
}
.day .time {
  font-family: var(--f-data);
  font-size: 0.9rem;
  color: var(--bone-dim);
}
.day .tag {
  font-family: var(--f-data);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  min-height: 1.2em;
}
.schedule-note { margin-top: 14px; font-size: 0.95rem; }

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--slate);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--bone);
  border: 1px solid transparent;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
a.card:hover { border-color: var(--mint); color: var(--bone); transform: translateY(-2px); }
.card p { color: var(--bone-dim); margin: 0 0 1em; }
.card .more {
  margin-top: auto;
  font-family: var(--f-data);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}

/* Homepage Shop and Community panels: bright, outlined like the artwork, with a hard comic shadow. */
/* Peach sky band (from the hero artwork) with wavy edges, to break up the purple. */
#more, .peach-band {
  --wave: 24px;
  position: relative;
  padding: calc(64px + var(--wave)) 0;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12 Q30 0 60 12 T120 12 V24 H0Z'/%3E%3C/svg%3E") top left / 160px var(--wave) repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--wave) + 2px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12 Q30 24 60 12 T120 12 V0 H0Z'/%3E%3C/svg%3E") bottom left / 160px var(--wave) repeat-x;
          mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12 Q30 0 60 12 T120 12 V24 H0Z'/%3E%3C/svg%3E") top left / 160px var(--wave) repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--wave) + 2px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12 Q30 24 60 12 T120 12 V0 H0Z'/%3E%3C/svg%3E") bottom left / 160px var(--wave) repeat-x;
}
#more, .peach-band {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 1.5px, transparent 2px) 0 0 / 46px 46px,
    radial-gradient(circle, rgba(255, 255, 255, 0.35) 1px, transparent 1.5px) 23px 23px / 46px 46px,
    linear-gradient(180deg, #f1cf9f 0%, var(--peach) 55%, #e9a98a 100%);
}
#more + section { border-top: 0; }
.posters { gap: 28px; }
.poster {
  --outline: var(--slate);
  display: grid;
  grid-template-columns: 1fr 42%;
  align-items: center;
  gap: 8px;
  min-height: 250px;
  padding: 26px 26px 26px 30px;
  border: 4px solid var(--outline);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(47, 36, 64, 0.2);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.poster-shop { background: var(--coral); transform: rotate(-1deg); }
.poster-community { background: var(--mint); transform: rotate(1deg); }
.poster:hover, .poster:focus-visible { color: var(--ink); transform: rotate(0) translateY(-3px); box-shadow: 0 12px 26px rgba(47, 36, 64, 0.26); }
.poster .kicker { color: var(--outline); font-weight: 700; opacity: 0.75; }
.poster h3 { font-family: var(--f-chunk); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; margin: 0 0 0.35em; color: var(--outline); }
.poster p { color: var(--outline); margin: 0 0 1.1em; }
.poster .more {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--outline);
  color: var(--bone);
  font-family: var(--f-data);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.poster-art { position: relative; display: grid; place-items: center; }
.poster-art img { transition: transform 0.25s ease; }
/* The tee photo as a taped-up polaroid. */
.poster-tee { width: 100%; max-width: 210px; height: auto; background: #fff; border: 7px solid #fff; border-bottom-width: 26px; border-radius: 3px; transform: rotate(6deg); box-shadow: 4px 6px 0 rgba(47, 36, 64, 0.35); }
.poster-fw { position: absolute; right: -8px; bottom: -4px; width: 78px; height: auto; transform: rotate(-8deg); }
.poster-eye { width: 100%; max-width: 190px; height: auto; filter: drop-shadow(4px 6px 0 rgba(47, 36, 64, 0.35)); }
.poster:hover .poster-tee { transform: rotate(-3deg) scale(1.05); }
.poster:hover .poster-eye { transform: rotate(-6deg) scale(1.06); }

.fw-logo { width: 200px; height: auto; margin-bottom: 20px; }
.card { position: relative; }
.fw-badge,
.card-badge { position: absolute; top: 20px; right: 20px; width: 92px; height: auto; }
.card-badge { width: 76px; top: 16px; transition: transform 0.2s ease; }
.card:hover .card-badge { transform: rotate(-6deg) scale(1.06); }
/* Keeps titles clear of the corner badge on narrow cards. */
.card:has(.fw-badge, .card-badge) h3 { padding-right: 96px; }

/* ---------- socials ---------- */

.socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
/* Chunky poster-style tiles in each platform's colour, outlined like the artwork. */
.socials { gap: 20px; }
.social {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 4px solid var(--slate);
  border-radius: 14px;
  background: var(--accent, var(--mint));
  box-shadow: 0 6px 16px rgba(20, 15, 28, 0.25);
  text-decoration: none;
  color: #fff;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.social:nth-child(odd) { --tilt: -1.5deg; }
.social:nth-child(even) { --tilt: 1.5deg; }
.social:hover, .social:focus-visible { color: #fff; transform: rotate(0) translateY(-3px); box-shadow: 0 10px 22px rgba(20, 15, 28, 0.3); }
.social .icon { grid-row: span 2; width: 46px; height: 46px; fill: currentColor; filter: drop-shadow(2px 2px 0 rgba(20, 15, 28, 0.35)); transition: transform 0.2s ease; }
.social:hover .icon { transform: rotate(-10deg) scale(1.1); }
.social .label { font-family: var(--f-chunk); font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.03em; text-shadow: 2px 2px 0 rgba(20, 15, 28, 0.35); }
.social .handle { font-family: var(--f-data); font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); }
.social.twitch    { --accent: #9146ff; }
.social.youtube   { --accent: #ff3b3b; }
.social.instagram { --accent: #e1306c; }
.social.discord   { --accent: #5865f2; }

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  background:
    linear-gradient(180deg, rgba(29, 22, 40, 0.55) 0%, var(--void) 100%),
    url("../img/art-1600.webp") center 35% / cover;
  border-bottom: 1px solid var(--slate);
  padding: 56px 0 40px;
}
.page-hero p { color: var(--bone-dim); max-width: 60ch; font-size: 1.1rem; margin: 0; }

.placeholder {
  background: var(--slate-deep);
  border: 2px dashed var(--slate-lite);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--bone-dim);
}
.placeholder h3 { color: var(--bone); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.split ul { padding-left: 1.2em; color: var(--bone-dim); }
.split li { margin-bottom: 0.4em; }

/* ---------- news ---------- */

/* YouTube player with the Instagram profile card beside it, laid out like the stream and chat. */
.news-media {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 12px;
}
.ig-frame {
  display: flex;
  flex-direction: column;
  background: var(--slate-deep);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  overflow: hidden;
}
.ig-frame[hidden] { display: none; }
.news-media:has(.ig-frame[hidden]) { grid-template-columns: 1fr; }
.ig-body { flex: 1; min-height: 0; overflow-y: auto; background: #fff; }
.ig-body .instagram-media { margin: 0 !important; min-width: 0 !important; max-width: 100% !important; width: 100% !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
/* Shown while the post loads, and if Instagram never fills it in. */
.ig-body blockquote.instagram-media {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px !important;
  background: var(--slate-deep) !important;
  text-align: center;
}
.ig-body blockquote.instagram-media a { color: var(--mint); font-weight: 600; }
.ig-follow {
  display: block;
  padding: 10px;
  text-align: center;
  background: var(--slate-deep);
  color: var(--bone);
  font-weight: 600;
  text-decoration: none;
}
.ig-follow:hover { color: var(--mint); }

/* The playlist card grows to fill whatever height the Instagram post leaves under the video. */
.news-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.playlist-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 120px;
  padding: 18px 22px;
  background: var(--mint);
  border: 4px solid var(--slate);
  border-radius: 14px;
  color: var(--slate);
  text-decoration: none;
  transition: transform 0.18s ease;
}
.playlist-card:hover { color: var(--slate); transform: translateY(-2px); }
.playlist-card .kicker { color: var(--slate); font-weight: 700; opacity: 0.75; }
.playlist-card h3 { font-family: var(--f-chunk); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1; margin: 0 0 0.5em; color: var(--slate); }
.playlist-card .more {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--slate);
  color: var(--bone);
  font-family: var(--f-data);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.playlist-card img { width: clamp(70px, 9vw, 110px); height: auto; flex: none; transform: rotate(8deg); transition: transform 0.2s ease; }
.playlist-card:hover img { transform: rotate(-6deg) scale(1.08); }

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--slate-deep);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.news-feed {
  max-width: 620px;
  margin: 0 auto;
}
.post {
  margin: 0 0 20px;
  background: var(--slate);
  border-radius: var(--radius);
  padding: 16px;
}
.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--f-data);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.post-kind { color: var(--mint); }
.post-instagram .post-kind { color: #f07aa3; }
.post-youtube .post-kind { color: #ff6b6b; }
.post-tiktok .post-kind { color: var(--peach); }
.post-note { margin: 0 0 12px; }
.post iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; display: block; }
.post-short iframe { aspect-ratio: 9 / 16; max-width: 340px; margin: 0 auto; }
.post blockquote { margin: 0 auto !important; max-width: 100% !important; min-width: 0 !important; }
.post-link { word-break: break-all; }

.actions-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.shop-preview {
  width: min(100%, 440px);
  height: auto;
  margin: 24px auto 0;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(20, 15, 28, 0.45);
}

/* ---------- footer ---------- */

/* The hills-and-mushrooms artwork sits on top of the footer; below it the footer
   is the same purple as the bottom of the art, so the two join seamlessly. */
.site-footer {
  --hill: #662d72;
  --art-w: max(100%, 900px);
  --art-h: calc(max(100vw, 900px) * 0.25);
  margin-top: -40px;
  background: linear-gradient(to bottom, transparent calc(var(--art-h) - 2px), var(--hill) calc(var(--art-h) - 2px));
  padding: 0 0 28px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}
.site-footer::before {
  content: "";
  display: block;
  height: var(--art-h);
  margin-bottom: 4px;
  background: url("../img/footer-hills.webp") center bottom / var(--art-w) auto no-repeat;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--mint); }

/* ---------- 404 page ---------- */

.lost { position: relative; min-height: 100vh; display: grid; align-items: start; overflow: hidden; }
.lost picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.lost-text {
  position: relative;
  max-width: 480px;
  margin: 6vh 0 0 6vw;
  padding: 26px 28px;
  background: rgba(29, 22, 40, 0.86);
  border: 4px solid var(--slate);
  border-radius: 14px;
  box-shadow: 8px 8px 0 var(--ink);
}
.lost-text h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; }
@media (max-width: 720px) { .lost-text { margin: 16px; padding: 20px; } }
.lost-text h1 { margin: 0 0 0.3em; text-shadow: 4px 4px 0 var(--slate); }
.lost-text p { color: var(--bone); font-size: 1.1rem; }
.lost-text .kicker { color: var(--mint); font-size: 1rem; }
.lost-text .actions-row { justify-content: flex-start; margin-top: 24px; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .stream-grid { grid-template-columns: 1fr; }
  .chat-frame { display: none; }
  .news-media { grid-template-columns: 1fr; }
  .ig-frame { height: 520px; max-width: 420px; width: 100%; margin: 0 auto; }
  .schedule { grid-template-columns: repeat(3, 1fr) !important; }
  .socials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; }
  .poster { grid-template-columns: 1fr 36%; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero-art > picture img { object-position: 70% 15%; }
  .hero-inner { padding-top: 20px; padding-bottom: 86px; }
  .hero-logo { width: 46%; min-width: 0; }
  .hero-stream { margin-top: 90px; }
  .brand img { height: 38px; }
  .day { padding: 14px; }
  .day .time { font-size: 0.78rem; white-space: nowrap; }
  .schedule { grid-template-columns: repeat(2, 1fr) !important; }
  .schedule .day:first-child { grid-column: 1 / -1; }
  .site-header .wrap { gap: 10px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  :root { --header-h: 108px; }
  .nav { width: 100%; margin-left: 0; justify-content: space-between; }
  .nav a { padding: 6px 10px; }
  .live-pill { margin-left: auto; }
  section { padding: 40px 0; }
  #schedule { padding: calc(40px + var(--fur-overlap)) 0; }
  .socials { gap: 16px; }
  .social { grid-template-columns: 1fr; padding: 14px 16px; }
  .social .icon { grid-row: auto; width: 38px; height: 38px; margin-bottom: 6px; }
  .social .label { font-size: 1.2rem; }
  .social .handle { overflow-wrap: anywhere; }
  .playlist-card { padding: 14px 16px; }
  .playlist-card .more { font-size: 0.68rem; letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Homepage: Find Hazeman sits low enough that its tiles overlap the tops of the footer mushrooms. */
#socials {
  position: relative;
  z-index: 1;
  padding-bottom: 0;
  margin-bottom: calc(max(100vw, 900px) * 0.25 * -0.42);
}
@media (max-width: 720px) {
  #socials { margin-bottom: -40px; }
}

/* ---------- shop page ---------- */

.shop-top { padding: 56px 0 40px; overflow: hidden; }
.shop-top-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.shop-top h1 { font-size: clamp(3rem, 8vw, 5.6rem); line-height: 0.9; margin: 0 0 0.25em; color: var(--mint); text-shadow: 5px 5px 0 var(--slate); }
.shop-top .lede { font-size: 1.15rem; color: var(--bone-dim); max-width: 46ch; margin: 0 0 22px; }
.shop-chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.shop-chips li {
  padding: 8px 14px;
  border: 3px solid var(--slate);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--f-data);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(20, 15, 28, 0.25);
}
.shop-chips li:nth-child(1) { transform: rotate(-2deg); }
.shop-chips li:nth-child(2) { transform: rotate(1.5deg); }
.shop-chips li:nth-child(3) { transform: rotate(-1deg); }
.chip-mint { background: var(--mint); }
.chip-peach { background: var(--peach); }
.chip-coral { background: var(--coral); }

.shop-top-art { position: relative; justify-self: center; width: min(100%, 360px); }
.shop-polaroid {
  width: 100%;
  height: auto;
  background: #fff;
  border: 10px solid #fff;
  border-bottom-width: 40px;
  border-radius: 4px;
  transform: rotate(4deg);
  box-shadow: 0 14px 30px rgba(20, 15, 28, 0.45);
  transition: transform 0.25s ease;
}
.shop-top-art:hover .shop-polaroid { transform: rotate(-1deg) scale(1.02); }
.shop-fw { position: absolute; right: -14px; bottom: 6px; width: 120px; height: auto; transform: rotate(-8deg); }
.shop-stamp {
  position: absolute;
  left: -26px;
  top: -18px;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 4px solid var(--slate);
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--f-chunk);
  font-size: 1.25rem;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-14deg);
  box-shadow: 0 6px 14px rgba(20, 15, 28, 0.35);
}

.shop-band { border-top: 0; }
/* The sign creature is cut off on its left and bottom, so it sits in the card's
   bottom-left corner and peeks in from there, like it does on the homepage. */
.drop-poster {
  position: relative;
  grid-template-columns: 1fr;
  min-height: 300px;
  padding-left: clamp(30px, 32%, 340px);
  background: var(--coral);
  transform: rotate(-0.6deg);
  overflow: hidden;
}
.drop-poster:hover { transform: rotate(-0.6deg); }
.drop-poster h2 { font-family: var(--f-chunk); font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 0.95; margin: 0 0 0.35em; color: var(--slate); }
.drop-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.drop-actions .more { text-decoration: none; transition: transform 0.15s ease; }
.drop-actions .more:hover { transform: translateY(-2px); color: var(--mint); }
.drop-creature {
  position: absolute;
  left: -28px;
  bottom: -34px;
  width: 29%;
  max-width: 300px;
  height: auto;
}

.band-title { margin: 64px 0 22px; color: var(--slate); text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.45); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.step {
  position: relative;
  padding: 26px 24px 22px;
  border: 4px solid var(--slate);
  border-radius: 14px;
  color: var(--slate);
  box-shadow: 0 8px 20px rgba(47, 36, 64, 0.2);
}
.step:nth-child(1) { transform: rotate(-1deg); }
.step:nth-child(2) { transform: rotate(0.8deg); }
.step:nth-child(3) { transform: rotate(-0.5deg); }
.step-mint { background: var(--mint); }
.step-coral { background: var(--coral); }
.step-bone { background: #fff4e4; }
.step h3 { font-family: var(--f-chunk); font-size: 1.6rem; line-height: 1; margin: 0 0 0.4em; color: var(--slate); }
.step p { margin: 0; color: var(--slate); }
.step-num {
  position: absolute;
  top: -20px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--slate);
  color: var(--bone);
  font-family: var(--f-chunk);
  font-size: 1.5rem;
}

.shop-fair { text-align: center; border-top: 0; padding: 48px 0 24px; }
.shop-fair .fw-logo { width: 220px; margin: 0 auto 14px; display: block; }
.shop-fair p { max-width: 52ch; margin: 0 auto; color: var(--bone-dim); font-size: 1.1rem; }

@media (max-width: 860px) {
  .shop-top-grid { grid-template-columns: 1fr; }
  .shop-top-art { width: min(80%, 320px); margin-top: 10px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  .drop-poster { padding-left: 26px; min-height: 0; }
  .drop-creature { display: none; }
  .shop-stamp { width: 84px; height: 84px; font-size: 1rem; left: -16px; }
}

/* ---------- Whack-a-Haze legal pages ---------- */

.legal-wrap { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; color: var(--mint); text-shadow: 4px 4px 0 var(--slate); margin: 0 0 0.4em; }
.legal h2 { font-size: 1.5rem; color: var(--mint); margin: 1.6em 0 0.4em; }
.legal p, .legal li { color: var(--bone-dim); }
.legal b { color: var(--bone); font-weight: 600; }
.legal a { color: var(--mint); }
.legal .kicker a { color: inherit; text-decoration: none; }
.legal-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.legal-links a {
  display: inline-block;
  padding: 10px 16px;
  border: 3px solid var(--slate);
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--f-data);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.legal-links a:hover { background: var(--peach); }
.legal { min-height: calc(100vh - 65px - max(100vw, 900px) * 0.25); }
