@font-face {
  font-family: "dinkie9px";
  src: url("assets/spacehey/DinkieBitmap-9px.woff2") format("woff2");
}

@font-face {
  font-family: "pixelmplus10";
  src: url("assets/spacehey/PixelMplus10-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

:root {
  --panel-bg: #fdf8fd;
  --panel-head: #efcfef;
  --panel-head-muted: #e2e2e1;
  --line: #4d23cd;
  --text: #4d21cb;
  --aqua: #90f3e1;
  --ink: #252525;
  --shadow: 4px 4px #4e23cd48;
}

* {
  box-sizing: border-box;
  cursor: url("assets/spacehey/cursor.png"), auto;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "dinkie9px", monospace;
  font-weight: normal;
  background-color: #f7e0fa;
  image-rendering: pixelated;
}

a {
  color: var(--text);
}

a:hover {
  color: #000;
}

p,
li,
a,
h2,
h3,
.status-value,
.comment p:last-child {
  font-size: 18px;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1;
  font-weight: normal;
}

h2,
h3,
h4,
strong,
b {
  font-weight: normal;
}

.stars {
  display: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 24px));
  margin: 18px auto 28px;
}

.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

.sidebar,
.content-column {
  display: grid;
  gap: 18px;
}

.hero-window,
.panel {
  border: 2px solid var(--line);
  box-shadow: inset 0 0 0 4px var(--aqua), inset 0 0 0 6px var(--line), var(--shadow);
  background-color: var(--panel-bg);
}

.hero-window {
  margin-bottom: 18px;
}

.hero-grid,
.panel-body {
  padding: 12px;
}

.window-heading,
.panel h2 {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 2px solid var(--line);
  background-color: var(--panel-head);
  background-image: url("assets/spacehey/navbuttons.png");
  background-position: right center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 4px var(--aqua), inset 0 0 0 6px var(--line);
  letter-spacing: 0.045em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
  align-items: end;
  background-image: url("assets/spacehey/nsotilebg.png");
  background-repeat: repeat;
}

.hero-toolbar {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 0;
}

.time-menu {
  position: relative;
}

.time-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  list-style: none;
  border: 2px solid var(--line);
  background: #f7e0fa;
  box-shadow: inset 2px 2px #815cda, 2px 2px #fdfdfd;
  color: var(--line);
  font-size: 20px;
  cursor: pointer;
}

.time-menu summary::-webkit-details-marker {
  display: none;
}

.time-menu[open] summary {
  background: #efcfef;
}

.hero-copy {
  min-width: 0;
}

.hero-song {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  background: transparent;
  box-shadow: none;
}

.hero-song iframe {
  display: block;
  width: 100%;
  max-width: 320px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pixel-tag,
.status-label,
.comment-name,
.blinkie-row span {
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.pixel-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  color: #000;
  background: #f7e0fa;
  box-shadow: inset 2px 2px #815cda, 2px 2px #fdfdfd;
}

marquee {
  display: block;
  margin-top: 14px;
  padding: 10px 12px;
  color: var(--text);
  background: #f7e0fa;
  box-shadow: inset 2px 2px #815cda, 2px 2px #fdfdfd;
}

.status-box {
  min-height: 172px;
  padding: 10px 12px;
  border: 0;
  background-color: transparent;
  background-image: url("assets/spacehey/mrreow.png");
  background-size: cover;
  background-repeat: no-repeat;
}

.status-label {
  margin: 0 0 4px;
  color: #000;
}

.status-value {
  margin: 0 0 14px;
  color: var(--line);
}

.avatar {
  display: block;
  width: calc(100% - 12px);
  margin: 6px 6px 12px;
  border: 2px solid var(--line);
  box-shadow: 0 0 0 4px var(--aqua), 0 0 0 6px var(--line), 10px 10px #4e23cd48;
}

.profile-card {
  padding-bottom: 12px;
}

.profile-card::before {
  display: block;
  margin: 6px 6px 0;
  padding: 8px 12px 8px 8px;
  border: 2px solid var(--line);
  border-bottom: 0;
  color: var(--text);
  background-color: var(--panel-head);
  background-image: url("assets/spacehey/misalignednavbuttons.png");
  background-position: right center;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 4px var(--aqua), 0 0 0 6px var(--line), 10px 10px #4e23cd48;
  content: "Webcam";
  letter-spacing: 0.045em;
}

.panel > :not(h2) {
  padding-left: 12px;
  padding-right: 12px;
}

.panel > :last-child {
  padding-bottom: 12px;
}

.contact-card ul {
  margin: 0;
  padding-left: 28px;
  font-family: "pixelmplus10", sans-serif;
}

.contact-card li + li {
  margin-top: 8px;
}

.blinkie-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.blinkie-row:last-child {
  margin-bottom: 0;
}

.blinkie-row span {
  display: inline-block;
  padding: 8px 10px;
  color: var(--text);
  background: #f7e0fa;
  box-shadow: inset 2px 2px #815cda, 2px 2px #fdfdfd;
}

.bulletin p,
.interests p,
.comments p:last-child,
.profile-card p {
  color: var(--ink);
  font-family: "pixelmplus10", sans-serif;
}

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

.interest-grid article,
.comment {
  border: 2px solid var(--line);
  background-color: #f7e1fa3d;
}

.interest-grid article {
  padding: 12px;
}

.comment {
  margin: 0 12px 12px;
  padding: 12px;
  background-color: transparent;
  background-image: url("assets/spacehey/speechbubble.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.comment:last-child {
  margin-bottom: 0;
}

.comment-name {
  margin: 0 0 8px;
  color: var(--line);
}

.time-buttons {
  display: grid;
  gap: 6px;
  padding: 8px;
  min-width: 180px;
  border: 2px solid var(--line);
  background-color: var(--panel-bg);
  box-shadow: inset 0 0 0 4px var(--aqua), inset 0 0 0 6px var(--line), var(--shadow);
}

.time-menu .time-buttons {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
}

.time-buttons a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  text-decoration: none;
  color: var(--line);
  background-color: #f7e0fa;
  box-shadow: inset 2px 2px #815cda, 2px 2px #fdfdfd;
  font-family: "pixelmplus10", sans-serif;
}

.time-buttons img {
  width: 20px;
  height: 20px;
}

.fakebgthing {
  position: fixed;
  inset: 0;
  z-index: -2;
  display: block;
  background-attachment: fixed;
  background-position: left center, left center, right center, right center;
  background-repeat: repeat-y;
  image-rendering: pixelated;
}

.origbg {
  background:
    linear-gradient(to right, transparent, transparent),
    url("assets/spacehey/spaceheyleftbg.png") no-repeat,
    url("assets/spacehey/spaceheyrightbg.png") no-repeat,
    linear-gradient(to left, transparent, transparent);
}

.noonbg,
.duskbg,
.nightbg {
  visibility: hidden;
}

.noonbg {
  background:
    linear-gradient(to right, transparent, transparent),
    url("assets/spacehey/spaceheyleftbg.png") no-repeat,
    url("assets/spacehey/spaceheyrightbg.png") no-repeat,
    linear-gradient(to left, transparent, transparent);
}

.duskbg {
  background:
    linear-gradient(to right, transparent, transparent),
    url("assets/spacehey/spaceheyleftduskbg.png") no-repeat,
    url("assets/spacehey/spaceheyrightduskbg.png") no-repeat,
    linear-gradient(to left, transparent, transparent);
}

.nightbg {
  background:
    linear-gradient(to right, transparent, transparent),
    url("assets/spacehey/spaceheyleftnightbg.png") no-repeat,
    url("assets/spacehey/spaceheyrightnightbg.png") no-repeat,
    linear-gradient(to left, transparent, transparent);
}

.fakebgthing:target {
  visibility: visible;
}

@media (min-width: 1440px) {
  .fakebgthing {
    background-size: 100% 100%, calc((100% - 1120px) / 2) auto, calc((100% - 1120px) / 2) auto, 100% 100%;
  }
}

@media (max-width: 1439px) {
  .fakebgthing {
    background-size: 100% 100%, 180px 100%, 180px 100%, 100% 100%;
  }
}

@media (max-width: 980px) {
  .layout,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-song {
    justify-content: flex-start;
  }

  .hero-song iframe {
    max-width: 100%;
  }

  .status-box {
    width: 100%;
    min-height: 172px;
    background-size: contain;
    background-position: right top;
  }

  .interest-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 700px) {
  .page-shell {
    width: calc(100% - 12px);
    margin-top: 12px;
  }

  .hero-toolbar {
    top: 6px;
    right: 6px;
  }

  .hero-window,
  .panel {
    box-shadow: inset 0 0 0 4px var(--aqua), inset 0 0 0 6px var(--line), 2px 2px #4e23cd48;
  }

  .comment {
    background-image: url("assets/spacehey/speechbubblemobile.png");
    background-size: 100% 100%;
  }

  p,
  li,
  a,
  h2,
  h3,
  h4,
  .status-value,
  .comment p:last-child {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(28px, 10vw, 42px);
  }
}
