:root {
  --bg: #090806;
  --ash: #d8d0bc;
  --faint: rgba(216, 208, 188, 0.62);
  --line: rgba(216, 208, 188, 0.16);
  --sun: #f4df91;
  --heat: #df5f2f;
  --mc-grass: #6fb04f;
  --mc-sky: #8bb8e8;
  font-family: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ash);
}

a {
  color: inherit;
}

.site-frame {
  min-height: 100svh;
  background: var(--bg);
}

.project-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: grid;
  width: 178px;
  align-content: space-between;
  border-right: 1px solid rgba(216, 208, 188, 0.13);
  padding: 24px 18px;
  background: rgba(5, 5, 4, 0.72);
  backdrop-filter: blur(20px);
}

.sidebar-logo,
.project-link,
.sidebar-note,
.topline a,
.signal,
.name,
.about,
.ticker,
.contact-rail span,
.contact-rail a,
.minecraft-kicker,
.minecraft-ip,
.minecraft-actions {
  font-family: Consolas, "Courier New", monospace;
}

.sidebar-logo {
  color: #fff5cf;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.project-nav {
  display: grid;
  gap: 10px;
}

.project-link {
  border: 1px solid rgba(216, 208, 188, 0.12);
  padding: 12px;
  color: rgba(216, 208, 188, 0.58);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.project-link:hover,
.project-link:focus-visible,
.project-link.is-active {
  border-color: rgba(244, 223, 145, 0.48);
  background: rgba(244, 223, 145, 0.08);
  color: var(--sun);
  outline: none;
  transform: translateX(4px);
}

.theme-minecraft .project-link:hover,
.theme-minecraft .project-link:focus-visible,
.theme-minecraft .project-link.is-active {
  border-color: rgba(111, 176, 79, 0.7);
  background: rgba(111, 176, 79, 0.12);
  color: #d8ffd0;
}

.sidebar-note {
  color: rgba(216, 208, 188, 0.34);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
}

.project-panel {
  position: relative;
  display: none;
  min-height: 100svh;
  margin-left: 178px;
  overflow: hidden;
}

.project-panel.is-active {
  display: grid;
  place-items: center;
}

.theme-radiosol .project-panel.is-active {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(244, 223, 145, 0.24), transparent 35rem),
    linear-gradient(180deg, #15110c 0%, #090806 44%, #050504 100%);
  background-size: 100% 4px, auto, auto;
}

.theme-radiosol .project-panel.is-active::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("./assets/radiosol/header.jpg");
  background-position: center top;
  background-size: cover;
  content: "";
  filter: grayscale(0.25) contrast(1.2) brightness(0.42);
  opacity: 0.38;
}

.theme-radiosol .project-panel.is-active::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 8, 6, 0.9), rgba(9, 8, 6, 0.25), rgba(9, 8, 6, 0.82)),
    radial-gradient(circle at 50% 42%, transparent 0 16rem, rgba(0, 0, 0, 0.3) 31rem, rgba(0, 0, 0, 0.88) 68rem);
  content: "";
}

.topline {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 5;
  display: flex;
  width: min(560px, calc(100% - 220px));
  justify-content: center;
  gap: clamp(12px, 4vw, 42px);
  transform: translateX(-50%);
}

.topline a {
  color: rgba(216, 208, 188, 0.68);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.topline a:hover,
.topline a:focus-visible {
  color: var(--sun);
  outline: none;
  text-shadow: 0 0 22px rgba(244, 223, 145, 0.55);
}

.contact-rail {
  position: absolute;
  right: 24px;
  top: 50%;
  z-index: 7;
  display: grid;
  gap: 12px;
  justify-items: end;
  transform: translateY(-50%);
}

.contact-rail span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(216, 208, 188, 0.34);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-rail span::before {
  width: 26px;
  height: 1px;
  background: rgba(244, 223, 145, 0.34);
  content: "";
}

.contact-rail a {
  display: inline-flex;
  min-width: 128px;
  justify-content: flex-end;
  border: 1px solid rgba(216, 208, 188, 0.12);
  border-right-color: rgba(244, 223, 145, 0.42);
  padding: 8px 12px;
  background: rgba(5, 5, 4, 0.28);
  color: rgba(216, 208, 188, 0.64);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.contact-rail a:hover,
.contact-rail a:focus-visible {
  border-color: var(--sun);
  background: rgba(244, 223, 145, 0.08);
  color: var(--sun);
  outline: none;
  transform: translateX(-4px);
}

.sun {
  position: absolute;
  top: 12vh;
  left: 50%;
  z-index: 2;
  width: min(46vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 247, 198, 0.95) 0 12%, rgba(244, 223, 145, 0.5) 13% 34%, rgba(223, 95, 47, 0.2) 35% 58%, transparent 61%);
  filter: blur(10px);
  opacity: 0.68;
  transform: translateX(-50%);
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  opacity: 0.2;
}

.project-center {
  position: relative;
  z-index: 6;
  width: min(880px, calc(100% - 120px));
  padding-top: 3vh;
  text-align: center;
}

.signal {
  margin: 0 0 18px;
  color: var(--sun);
  font-size: clamp(12px, 1.7vw, 16px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  letter-spacing: 0;
}

.project-center h1 {
  color: #fff5cf;
  font-size: clamp(76px, 16vw, 190px);
  font-weight: 800;
  line-height: 0.82;
  text-shadow:
    0 0 18px rgba(244, 223, 145, 0.28),
    0 0 90px rgba(223, 95, 47, 0.38);
}

.name {
  margin: 22px 0 0;
  color: rgba(216, 208, 188, 0.88);
  font-size: clamp(16px, 2.2vw, 24px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about {
  width: min(700px, 100%);
  margin: 30px auto 0;
  color: var(--faint);
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.7;
}

.ticker {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: clamp(14px, 5vw, 70px);
  padding: 0 18px;
  color: rgba(216, 208, 188, 0.38);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-gallery {
  position: absolute;
  right: 26px;
  bottom: 58px;
  z-index: 6;
  display: grid;
  width: min(430px, 34vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  opacity: 0.86;
}

.shot {
  min-height: 110px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 208, 188, 0.16);
  background: #050504;
  filter: saturate(0.82) contrast(1.08);
}

.shot--large {
  grid-row: span 2;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.project-panel--minecraft {
  background: #171f16;
  color: #f9f4dd;
}

.project-panel--minecraft.is-active {
  grid-template-areas: "stage";
}

.minecraft-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("./assets/minecraft/optimized/hospitalizer-03.jpg");
  background-position: center;
  background-size: cover;
  filter: saturate(1.04) brightness(0.82);
  transform: scale(1.01);
}

.minecraft-bg::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 210, 122, 0.08), transparent 22rem),
    linear-gradient(90deg, rgba(24, 18, 10, 0.78), rgba(20, 43, 25, 0.18), rgba(24, 18, 10, 0.74)),
    linear-gradient(180deg, rgba(139, 184, 232, 0.04), rgba(34, 22, 13, 0.74));
  content: "";
}

.minecraft-card {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  container-type: inline-size;
  grid-area: stage;
  width: min(780px, calc(100% - 72px));
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: clamp(28px, 7vw, 72px);
  background:
    linear-gradient(135deg, rgba(54, 38, 20, 0.82), rgba(33, 67, 34, 0.62)),
    rgba(17, 24, 16, 0.58);
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.4);
  text-align: center;
  backdrop-filter: blur(8px);
}

.minecraft-kicker {
  margin: 0 0 16px;
  color: #e8d0a2;
  font-size: clamp(13px, 1.8vw, 18px);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.minecraft-card h1 {
  color: #fff7dd;
  inline-size: 100%;
  max-width: 100%;
  font-size: clamp(42px, 10.5cqi, 86px);
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    5px 5px 0 rgba(72, 51, 28, 0.88),
    0 0 42px rgba(255, 174, 72, 0.38);
}

.minecraft-ip-card {
  display: grid;
  justify-items: center;
  margin: 26px 0 0;
  position: relative;
}

.minecraft-ip-card span {
  margin-bottom: 8px;
  color: rgba(216, 255, 208, 0.72);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.minecraft-ip {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.26);
  color: #d8ffd0;
  cursor: pointer;
  font: inherit;
  font-size: clamp(17px, 4cqi, 28px);
  letter-spacing: 0.14em;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.minecraft-ip:hover,
.minecraft-ip:focus-visible {
  border-color: rgba(216, 255, 208, 0.72);
  background: rgba(28, 70, 38, 0.42);
  box-shadow: 0 0 24px rgba(121, 255, 115, 0.16);
  color: #f9ffde;
  outline: none;
  transform: translateY(-1px);
}

.minecraft-ip.is-copied {
  border-color: rgba(255, 232, 156, 0.86);
  background: rgba(90, 70, 18, 0.48);
  color: #fff1b8;
}

.copy-toast {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  margin: 0;
  border: 1px solid rgba(255, 232, 156, 0.36);
  padding: 5px 9px;
  background: rgba(15, 20, 10, 0.72);
  color: #fff1b8;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translate(-50%, -4px);
}

.copy-toast.is-visible {
  animation: copyToast 1200ms ease both;
}

@keyframes copyToast {
  0% {
    opacity: 0;
    transform: translate(-50%, -4px);
  }

  18%,
  72% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 7px);
  }
}

.minecraft-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  color: rgba(249, 244, 221, 0.72);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.minecraft-actions a,
.minecraft-actions span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.22);
  text-decoration: none;
}

.minecraft-shots {
  position: absolute;
  inset: 0;
  grid-area: stage;
  z-index: 2;
  pointer-events: none;
}

.minecraft-shots img {
  position: absolute;
  display: block;
  width: clamp(130px, 12vw, 230px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.24);
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  filter: blur(1.1px) saturate(0.82) brightness(0.72);
  opacity: 0.24;
}

.minecraft-shots img:nth-child(1) {
  left: clamp(18px, 5vw, 76px);
  top: 12vh;
  transform: rotate(-4deg);
}

.minecraft-shots img:nth-child(2) {
  left: clamp(44px, 9vw, 150px);
  bottom: 9vh;
  transform: rotate(3deg);
}

.minecraft-shots img:nth-child(3) {
  right: clamp(34px, 7vw, 116px);
  top: 12vh;
  transform: rotate(4deg);
}

.minecraft-shots img:nth-child(4) {
  right: clamp(50px, 10vw, 170px);
  bottom: 9vh;
  transform: rotate(-3deg);
}

.contact-rail--minecraft a:hover,
.contact-rail--minecraft a:focus-visible {
  border-color: #d8ffd0;
  background: rgba(111, 176, 79, 0.16);
  color: #d8ffd0;
}

.project-panel--minecraft .contact-rail {
  position: relative;
  right: auto;
  top: auto;
  z-index: 6;
  display: flex;
  grid-area: stage;
  align-self: end;
  justify-self: center;
  align-items: center;
  justify-items: center;
  gap: 8px;
  margin-bottom: 24px;
  transform: none;
}

.project-panel--minecraft .contact-rail span::before {
  display: none;
}

.project-panel--minecraft .contact-rail a {
  min-width: 112px;
  justify-content: center;
  border-right-color: rgba(216, 208, 188, 0.12);
  padding: 8px 10px;
}

@media (min-width: 941px) and (max-width: 1320px) {
  .project-panel--minecraft .minecraft-card {
    width: min(700px, calc(100% - 56px));
    padding: clamp(24px, 5vw, 54px);
  }

  .project-panel--minecraft .minecraft-card h1 {
    font-size: clamp(40px, 10cqi, 78px);
  }

  .project-panel--minecraft .minecraft-shots img {
    width: clamp(112px, 11vw, 170px);
    opacity: 0.18;
  }

  .project-panel--minecraft .minecraft-shots img:nth-child(1) {
    left: 18px;
    top: 14vh;
  }

  .project-panel--minecraft .minecraft-shots img:nth-child(2) {
    left: 34px;
    bottom: 12vh;
  }

  .project-panel--minecraft .minecraft-shots img:nth-child(3) {
    right: 20px;
    top: 14vh;
  }

  .project-panel--minecraft .minecraft-shots img:nth-child(4) {
    right: 34px;
    bottom: 12vh;
  }
}

@media (min-width: 941px) and (max-width: 1120px) {
  .project-panel--minecraft .contact-rail {
    margin-bottom: 18px;
  }

  .project-panel--minecraft .minecraft-card {
    width: min(640px, calc(100% - 48px));
  }

  .project-panel--minecraft .contact-rail span {
    display: none;
  }

  .project-panel--minecraft .minecraft-shots img:nth-child(3),
  .project-panel--minecraft .minecraft-shots img:nth-child(4) {
    display: none;
  }
}

@media (max-width: 940px) {
  .project-sidebar {
    inset: 0 0 auto;
    width: auto;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 208, 188, 0.13);
  }

  .project-nav {
    display: flex;
    justify-content: flex-end;
  }

  .sidebar-note {
    display: none;
  }

  .project-panel {
    min-height: 100svh;
    margin-left: 0;
    padding: 84px 16px 28px;
  }

  .topline,
  .sun {
    left: 50%;
  }

  .topline {
    top: 66px;
    width: calc(100% - 32px);
  }

  .project-center,
  .minecraft-card {
    width: min(880px, 100%);
  }

  .contact-rail {
    position: relative;
    right: auto;
    top: auto;
    justify-items: center;
    margin-top: 28px;
    transform: none;
  }

  .contact-rail a {
    justify-content: center;
    min-width: 160px;
    border-right-color: rgba(216, 208, 188, 0.12);
  }

  .ticker {
    left: 0;
    flex-wrap: wrap;
    line-height: 1.8;
  }

  .project-gallery,
  .minecraft-shots {
    position: relative;
    right: auto;
    bottom: auto;
    inset: auto;
    width: min(680px, 100%);
    margin-left: 0;
    margin-top: 28px;
  }

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

  .minecraft-shots img {
    position: static;
    width: 100%;
    filter: blur(0.3px) saturate(0.9) brightness(0.82);
    opacity: 0.58;
    transform: none;
  }
}

@media (max-width: 620px) {
  .project-sidebar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .project-nav {
    justify-content: center;
  }

  .project-link {
    padding: 10px;
  }

  .topline {
    display: none;
  }

  .project-panel {
    padding-top: 128px;
  }

  .project-gallery,
  .minecraft-shots {
    grid-template-columns: 1fr;
  }
}
