/* =========================================================
   wh1zze.com
   Theme tokens live in :root - change a value there and the
   whole page follows. Nothing below hardcodes a surface colour.
   ========================================================= */

:root {
  /* Brand */
  --accent:         #E8003A;

  /* Surfaces - flat dark page, panels one step lighter. No borders anywhere:
     the panels are separated from the background by fill alone. */
  --bg:             #101013;
  --panel:          #26252A;               /* profile panel + link rows */
  --panel-hover:    #303036;
  --panel-press:    #3A3941;               /* touch has no hover, so taps need their own state */
  --pill:           #1B1A1F;

  /* Text */
  --text:           #F6F5F7;
  --text-muted:     rgba(246, 245, 247, 0.62);
  --text-faint:     rgba(246, 245, 247, 0.40);

  /* Brand colours for icon tiles + pill glyphs */
  --c-youtube:      #FF0033;
  --c-tiktok:       #25F4EE;
  --c-discord:      #5865F2;
  --c-github:       #E6EDF3;

  /* Status dots */
  --live:           #2fdc7a;
  --offline:        rgba(246, 245, 247, 0.26);

  /* Type */
  --font:           'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shape + motion */
  --radius:         6px;
  --ease:           180ms cubic-bezier(0.4, 0, 0.2, 1);
  --page-width:     640px;

  /* Backdrop: height of the colour mesh and where its diagonal lands.
     --mesh-cut is how far down the LEFT edge the slice starts; it runs from
     there to the full height on the right. */
  --mesh-height:    440px;
  --mesh-cut:       62%;
}

/* ---------- Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }

/* The icon sprite itself must never render */
.sprite { display: none; }

/* Visually hidden, still read by screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Consistent focus ring for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =========================================================
   Backdrop
   A blurred colour mesh across the top of the page, sliced off
   on a diagonal so the flat background takes over underneath.
   ========================================================= */

.backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;                      /* pinned to both edges - never wider than the page */
  height: var(--mesh-height);
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 var(--mesh-cut));
  background-color: #34103A;
  background-image:
    radial-gradient(40% 60% at  6% 18%, #2A1560 0%, transparent 62%),
    radial-gradient(46% 74% at 28% 66%, #7B2FF7 0%, transparent 62%),
    radial-gradient(44% 70% at 46% 10%, #C21E6B 0%, transparent 60%),
    radial-gradient(48% 76% at 68% 52%, #E8003A 0%, transparent 62%),
    radial-gradient(42% 64% at 88% 14%, #FF4D6D 0%, transparent 60%),
    linear-gradient(105deg, #1B1145 0%, #6C1FA8 30%, #C0165C 62%, #E8003A 100%);
}

/* ---------- Share button ---------- */

.share {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}

.share:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.share:active { background: rgba(255, 255, 255, 0.32); }

.share svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  transform: translate(-50%, 12px);
  padding: 9px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
}

.toast--on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 120px 20px 48px;
}

/* =========================================================
   Profile panel
   The avatar is pulled out of the flow and hangs over the top
   edge, which is what gives the panel its silhouette.
   ========================================================= */

.profile {
  position: relative;
  margin-top: 64px;
  padding: 76px 24px 24px;
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}

.profile__avatar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
}

.profile__name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.profile__badge {
  width: 19px;
  height: 19px;
  fill: var(--accent);
  flex: none;
}

.profile__url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.profile__url svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex: none;
}

.profile__bio {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(246, 245, 247, 0.82);
}

/* Views / video count. Empty until the numbers land, but it keeps its line so
   nothing below it moves when they do. */
.profile__meta {
  margin-top: 14px;
  min-height: 1.15rem;
  font-size: 0.75rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- Live stat pills ---------- */

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  transition: background var(--ease);
}

a.pill:hover { background: var(--panel-hover); }
a.pill:active { background: var(--panel-press); }

.pill__icon {
  width: 15px;
  height: 15px;
  flex: none;
  fill: var(--text-muted);
}

.pill--youtube .pill__icon { fill: var(--c-youtube); }
.pill--tiktok  .pill__icon { fill: var(--c-tiktok); }
.pill--discord .pill__icon { fill: var(--c-discord); }

.pill__label {
  font-weight: 600;
  color: var(--text);
}

.pill__value {
  min-width: 4.2ch;              /* holds the width a count will need */
  text-align: right;
  font-weight: 500;
  color: var(--text-muted);
}

/* Status dot. Only the live one is drawn - a grey dot reads as a fault to
   anyone who has not hovered it, and hover does not exist on a phone. The space
   is held either way so pills do not resize when a number arrives. */
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  background: var(--live);
  visibility: hidden;
}

.dot--live { visibility: visible; }

/* ---------- Section headings ---------- */

.section {
  margin: 34px 0 14px;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section__emoji { color: var(--accent); }

/* Standfirst under a section heading */
.section__lead {
  margin: -4px auto 14px;
  max-width: 46ch;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Membership perks ---------- */

.perks {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--panel);
}

.perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.perk svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 3px;
  fill: var(--accent);
}

.perk b {
  font-weight: 600;
  color: var(--text);
}

/* =========================================================
   Link rows
   Two-up grid; any row can span the full width with .row--wide.
   ========================================================= */

.rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.row {
  grid-column: span 1;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px 11px 11px;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: background var(--ease);
}

.row--wide { grid-column: 1 / -1; }

a.row:hover { background: var(--panel-hover); }
a.row:active { background: var(--panel-press); }

/* Circular brand tile on the left of each row */
.row__icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.row__icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.row__icon--youtube { background: #FF0000; }
.row__icon--tiktok  { background: #0B0B0D; }
.row__icon--discord { background: #5865F2; }
.row__icon--github  { background: #16181C; }
.row__icon--accent  { background: var(--accent); }
.row__icon--mail    { background: #3A3942; }

/* ---------- Contact row ----------
   Two targets sharing one row, so the padding moves off the row and onto each
   half - that way the hover fill covers the whole of whichever one you are on. */

.row--contact {
  padding: 0;
  overflow: hidden;
  align-items: stretch;      /* .row centres its children; both halves need the full height */
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1;
  min-width: 0;
  padding: 11px 10px 11px 11px;
  color: inherit;
  text-decoration: none;
  transition: background var(--ease);
}

.contact__link:hover { background: var(--panel-hover); }
.contact__link:active { background: var(--panel-press); }

.contact__copy {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-faint);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.contact__copy:hover {
  background: var(--panel-hover);
  color: var(--text);
}

.contact__copy:active { background: var(--panel-press); }

.contact__copy svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* TikTok's mark needs its own colours to stay recognisable on the dark tile */
.row__icon--tiktok svg { fill: var(--c-tiktok); }
.row__icon--github svg { fill: var(--c-github); }

.row__text {
  display: flex;
  flex-direction: column;
  min-width: 0;          /* lets long text truncate instead of overflowing */
  flex: 1;
}

.row__title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.row__sub {
  font-size: 0.75rem;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row__arrow {
  width: 17px;
  height: 17px;
  flex: none;
  fill: var(--text-faint);
  transition: fill var(--ease), transform var(--ease);
}

a.row:hover .row__arrow {
  fill: var(--text);
  transform: translateX(3px);
}

/* ---------- Subscriber goal ---------- */

.row--static { padding: 15px 18px; }

.goal__body { width: 100%; }

.goal__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.goal__title {
  font-size: 0.9rem;
  font-weight: 600;
}

.goal__remaining {
  font-size: 0.85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.goal__remaining b {
  font-weight: 600;
  color: var(--text);
}

.goal__numbers {
  margin-top: 9px;
  text-align: right;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
}

.progress {
  margin-top: 11px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 34px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ---------- Mobile ---------- */

@media (max-width: 560px) {
  :root {
    --mesh-height: 330px;
    --mesh-cut: 72%;
  }

  .page { padding: 86px 16px 36px; }
  .profile { margin-top: 52px; padding: 64px 18px 20px; }
  .profile__avatar { width: 104px; height: 104px; }
  .profile__name { font-size: 1.45rem; }
  .rows { grid-template-columns: minmax(0, 1fr); }
  .row { grid-column: 1 / -1; }
  .section { margin: 28px 0 12px; font-size: 1.05rem; }
  .pill { padding: 6px 11px; font-size: 0.74rem; }
  .contact__copy { padding: 0 13px; }
  .contact__copy span { display: none; }
}

/* ---------- Touch ---------- */

/* Pointer, not width: a small window on a laptop still has a mouse. */
@media (pointer: coarse) {
  .pill {
    min-height: 42px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .contact__copy { min-width: 56px; justify-content: center; }
}

/* ---------- Reduced motion ---------- */

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