﻿:root {
  --ink: #f3f4f6;
  --blue: #86a8d6;
  --panel: rgba(6, 6, 8, 0.9);
  --line: rgba(255, 255, 255, 0.16);
}

@font-face {
  font-family: "Fiolex Mephisto Dingbats";
  src: url("https://1033.wtf/fonts/Fiolex_Mephisto_Dingbats.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Fiolex_Mephisto_Dingbats";
  src: url("https://1033.wtf/fonts/Fiolex_Mephisto_Dingbats.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Leander";
  src: url("https://1033.wtf/fonts/Leander.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Ghostz";
  src: url("https://1033.wtf/fonts/Ghostz.ttf") format("truetype");
  font-display: swap;
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Newspaper";
  src: url("https://1033.wtf/fonts/Newspaper.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "OwreKynge";
  src: url("https://1033.wtf/fonts/OwreKynge.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Swordskull";
  src: url("https://1033.wtf/fonts/swordskull.ttf") format("truetype");
  font-display: swap;
}
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background: #020203;
}

button,
a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

.home-page,
.members-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  isolation: isolate;
}

.home-page__backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.home-page__backdrop {
  background: url("../img/giphy.gif") center center / cover no-repeat;
  filter: grayscale(1) brightness(0.22) contrast(1.08);
  opacity: 0.8;
}

.home-page {
  display: grid;
  place-items: center;
  padding: 0;
}

.home-page__hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.4vw, 12px);
  text-align: center;
}

h1.site-mark {
  position: static;
  margin: 0;
  width: 100%;
  font-family: "OwreKynge", serif;
  color: var(--blue);
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  letter-spacing: 0.03em;
  line-height: 0.9;
  font-weight: 400;
  text-align: center;
  transform: none;
  margin-bottom: 0;
}

.site-sub-wrap {
  display: block;
  margin: 0;
  min-height: 1em;
}

.site-sub {
  font-family: "Newspaper", monospace;
  font-size: clamp(1.2rem, 2.15vw, 1.55rem);
  line-height: 1;
  color: rgba(243,244,246,0.9);
  letter-spacing: 0.03em;
  text-align: center;
}

.home-link {
  font-family: "Leander", serif;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(145, 180, 231, 0.82);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.24em;
  transition: color 160ms ease, opacity 160ms ease;
}

.home-link:hover,
.home-link:focus-visible {
  color: var(--blue);
  opacity: 1;
}

.home-link--enter,
.home-link--members {
  margin-top: 0;
}

.home-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: -2px;
}

.separator {
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  margin: 0 0.25rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
}

.modal-content {
  background: rgba(12, 12, 14, 0.38);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  padding: 28px 32px;
  border-radius: 14px;
  color: var(--ink);
  display: inline-block;
  width: auto;
  max-width: 90vw;
  text-align: center;
  font-family: "Leander", serif;
  line-height: 1.45;
  font-size: 1rem;
}

.modal-close {
  margin-top: 20px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.home-link:focus-visible,
.members-top__home:focus-visible,
.player-btn:focus-visible,
.members-card:focus-visible {
  outline: 2px solid rgba(185, 220, 255, 0.92);
  outline-offset: 4px;
}

.members-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px 18px 16px;
}

.members-environment {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: #020203;
}

.members-storm {
  position: absolute;
  inset: 0;
  background: url("../img/storm.gif") center center / cover no-repeat;
  filter: grayscale(1) brightness(0.24) contrast(1.06);
  opacity: 1;
}

.members-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 8;
}

.members-top__home {
  font-family: "Ghostz", monospace !important;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1;
  color: white;
}

/* for the link under 1033 at the top. redirects to doxbin */
.db-link {
    margin-top: 4px;
    font-family: "Newspaper", monospace !important;
    font-size: 24px;
    line-height: 1;
    color: grey;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.db-link:hover,
.db-link:focus-visible {
  color: white;
}

.members-carousel-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  z-index: 2;
}

/* left off here */

.members-carousel {
  position: relative;
  width: min(1120px, 96vw);
  height: min(74vh, 760px);
  perspective: 1400px;
  transform-style: preserve-3d;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.members-carousel:active {
  cursor: grabbing;
}

.members-ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.members-card {
  position: absolute;
  left: 50%;
  top: 50%;
  --card-w: clamp(132px, 13vw, 184px);
  --card-h: clamp(210px, 22vw, 276px);
  width: var(--card-w);
  height: var(--card-h);
  margin-left: calc(var(--card-w) / -2);
  margin-top: calc(var(--card-h) / -2);
  transform-style: preserve-3d;
  cursor: pointer;
  border: 0;
  padding: 0;
  transform-style: preserve-3d;
}

.members-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.members-card:hover .members-card__portrait,
.members-card:focus-visible .members-card__portrait {
  filter: grayscale(1) brightness(1.05) contrast(1.1);
}

.members-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
  border-radius: 0;
}

.members-card__face--front {
  background: transparent;
  opacity: 1;
}

.members-card__face--back {
  background: transparent;
  transform: rotateY(180deg);
}

.members-card__frame,
.members-card__back-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.members-card__frame {
  object-fit: cover;
}

.members-card__back-art {
  object-fit: cover;
}

.members-card__portrait {
  position: absolute;
  inset: 8% 10% 13% 10%;
  width: 80%;
  height: 79%;
  left: 10%;
  top: 8%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) brightness(0.82) contrast(1.08);
  transition: filter 180ms ease;
}

.members-card[data-id="jaklic"] .members-card__portrait {
  object-position: center top !important;
  inset: 6% 10% 6% 10% !important;
  height: 88% !important;
}

.members-card__name {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  padding: 0;
  width: 100%;
  font-family: "Swordskull", serif;
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  text-transform: none;
  text-align: center;
  color: #fff;
  text-shadow: none;
}

/* name badges */
.members-badges{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:auto;
  flex-wrap:nowrap;
  padding:4px 8px;
  border:1px solid var(--line);
  background:rgba(4,4,6,.94);
  border-radius:0;
}
.members-badge{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  cursor:default;
}
.members-badge img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.members-badge__tip{
  position:absolute;
  bottom:calc(100% + 8px);
  left:50%;
  transform:translateX(-50%) translateY(2px);
  background:rgba(4,4,6,.95);
  border:1px solid var(--line);
  color:#fff;
  font-family:"Leander", serif;
  font-size:0.85rem;
  letter-spacing:.02em;
  line-height:1;
  padding:6px 10px;
  border-radius:0;
  white-space:nowrap;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .15s ease,visibility .15s ease,transform .15s ease;
  z-index:60;
  box-shadow:0 4px 16px rgba(0,0,0,.45);
}
.members-badge__tip::after{
  content:"";
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  border:4px solid transparent;
  border-top-color:rgba(255,255,255,.3);
}
.members-badge:hover .members-badge__tip,
.members-badge:focus .members-badge__tip{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}
#profileName{
  display:inline-flex;
  align-items:center;
  gap:12px;
}
#profileName .members-badge{
  width:20px;
  height:20px;
}
#profileName .members-badge img{
  width:100%;
  height:100%;
}
@media (max-width:700px){
  .members-badges{
    gap:8px;
    padding:4px 6px;
  }
  .members-badge{
    width:12px;
    height:12px;
  }
  #profileName .members-badge{
    width:16px;
    height:16px;
  }
}

/* audio widg on /members side */
.player-bar {
  position: fixed;
  left: 50%;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(420px, calc(100vw - 20px));
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: translateX(-50%);
  z-index: 3;
}

.player-bar.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-rail {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  text-align: center;
}

.player-title {
  display: block;
  width: 100%;
  font-family: "OwreKynge", serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-btn {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  transition: opacity 160ms ease;
}

.player-btn:hover,
.player-btn:focus-visible {
  opacity: 0.8;
  transform: none;
}

.player-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.player-progress-fill {
  width: 0%;
  height: 100%;
  background: #f2f2f2;
}

.profile-view {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  width: min(900px, calc(100vw - 32px));
  max-height: min(72vh, 560px);
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(4, 4, 6, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.profile-view.is-open {
  pointer-events: auto;
}

.profile-media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #050505;
  position: relative;
}

.profile-media img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) brightness(0.84) contrast(1.06);
}

.profile-media img[data-profile="jaklic"] {
  object-position: center 14%;
  transform: scale(1.08);
  transform-origin: center top;
}

.profile-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 4px 10px 4px 0;
  min-height: 0;
  min-width: 0;
  font-family: "Leander", serif;
}

.profile-copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.2vw, 4.4rem);
  line-height: 0.9;
  text-transform: lowercase;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-family: "Leander", serif;
}

.profile-bio {
  margin: 0;
  max-width: 28ch;
  white-space: pre-line;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.15;
  color: rgba(243, 244, 246, 0.84);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 8px;
  justify-content: flex-start;
  width: 100%;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
  font-family: "Leander", serif;
  font-size: 1rem;
  transition: background-color 160ms ease, color 160ms ease;
}

.profile-links a:hover,
.profile-links a:focus-visible {
  background: #fff;
  color: #000;
}

.profile-scroll {
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.profile-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.profile-section {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  justify-items: start;
  width: 100%;
}

.profile-section__title {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  font-family: "Newspaper", serif !important;
  font-size: 1.2rem;
  line-height: 1;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  font-style: italic;
  font-synthesis: none;
  color: rgba(185, 185, 185, 0.78);
}

.profile-section__title span {
    font-family: "Fiolex_Mephisto_Dingbats",
}

.profile-section__title-text {
  font-synthesis: none;
  font-family: "Newspaper",
}

.profile-section__title-mark {
  font-family: "Newspaper",
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
  font-synthesis: none;
}

.profile-section__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
}

.profile-section__list--stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  align-items: flex-start;
}

.profile-site,
.profile-interest {
  font-family: "Newspaper", serif !important;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  color: rgba(185, 185, 185, 0.78);
  font-size: 1rem;
  line-height: 1.15;
  font-synthesis: none;
}

.profile-section__list a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-family: "Newspaper", serif !important;
  color: rgba(185, 185, 185, 0.78);
  text-transform: lowercase;
  width: fit-content;
  max-width: 100%;
  font-synthesis: none;
}

.profile-section__list a:hover,
.profile-section__list a:focus-visible {
  text-decoration: underline;
}

.profile-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 24px;
  height: 24px;
  color: var(--ink);
}

.profile-section__list--stack .profile-site,
.profile-section__list--stack .profile-interest {
  display: block;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 700px) {
  .home-page__hero {
    justify-content: flex-start;
    gap: 18px;
    padding: 22svh 16px 18svh;
  }

  h1.site-mark {
    transform: none;
    font-size: clamp(3.35rem, 19vw, 4.8rem);
    line-height: 0.82;
  }

  .site-sub {
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  }

  .home-links {
    gap: 0.55rem;
    margin-top: -4px;
  }

  .home-link {
    position: relative;
    z-index: 2;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
  }

  .home-link--enter {
    margin-top: 0;
  }

  .members-page {
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    padding: 12px 14px 12px;
  }

  .members-top {
    margin-bottom: 6px;
  }

  .members-carousel-shell {
    align-items: center;
    padding-top: 0;
    min-height: 0;
  }

  .members-carousel {
    width: 100%;
    height: min(62svh, 540px);
    margin: auto 0;
  }

  .members-card {
    --card-w: clamp(96px, 27vw, 150px);
    --card-h: clamp(160px, 42vw, 232px);
  }

  .profile-view {
    left: 50%;
    top: calc(50% - 6px);
    width: calc(100vw - 16px);
    max-height: calc(100svh - 120px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px;
    gap: 10px;
  }

  .profile-media {
    width: 100%;
    align-self: stretch;
    aspect-ratio: 4 / 5;
    max-height: none;
  }

  .profile-copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 2px 2px;
    gap: 4px;
  }

  .profile-copy h2 {
    font-size: clamp(1.9rem, 11vw, 2.7rem);
    line-height: 0.88;
  }

  .profile-bio {
    max-width: none;
    font-size: clamp(0.96rem, 4vw, 1.12rem);
    line-height: 1.1;
  }

  .profile-links {
    gap: 6px;
    margin: 8px 0 4px;
  }

  .profile-links a {
    min-width: 0;
    width: calc(50% - 3px);
    font-size: 0.83rem;
    padding: 7px 8px;
  }

  .profile-section {
    margin-top: 8px;
  }

  .profile-section__title {
    font-size: 0.92rem;
  }

  .profile-site,
  .profile-interest,
  .profile-section__list a {
    font-size: 0.84rem;
    line-height: 1.1;
  }

  .profile-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    max-height: none;
    padding-right: 4px;
  }

  .profile-close {
    top: 6px;
    right: 8px;
    width: 34px;
    height: 34px;
  }

  .player-bar {
    left: 50%;
    width: min(360px, calc(100vw - 18px));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-link,
  .members-card__inner,
  .player-btn {
    transition: none;
  }
}