:root {
  color-scheme: dark;
  font-family: "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  color: #f8faff;
  background: #07090b;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 240px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 87% 26%, #102022 0%, transparent 52%),
    radial-gradient(ellipse at 76% 113%, #13182b 0%, transparent 56%),
    #07090b;
}

.sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page {
  position: relative;
  width: min(100% - 112px, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(72px, 17vh, 174px) 0 64px;
}

.intro h1 {
  margin: 0 0 34px -.055em;
  font-size: clamp(5.4rem, 11vw, 10.1rem);
  font-weight: 850;
  letter-spacing: -.056em;
  line-height: .9;
  color: #fff;
  text-shadow: 0 12px 64px rgb(57 146 162 / .14);
}

.discord-card, .project-card {
  text-decoration: none;
  color: inherit;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.discord-card {
  display: flex;
  width: min(100%, 365px);
  align-items: center;
  gap: 14px;
  padding: 11px 15px 11px 11px;
  border: 1px solid #343a4b;
  border-radius: 17px;
  background: linear-gradient(110deg, #1b1e2b, #121620);
}

.discord-card:hover, .project-card:hover {
  border-color: var(--accent, #8b9cff);
  transform: translateY(-3px);
}

.discord-avatar {
  display: grid;
  flex: 0 0 45px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #7384ff, #4a49bf);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .26);
  font-size: 1.4rem;
  font-weight: 750;
}

.discord-identity { display: grid; min-width: 0; gap: 2px; }
.discord-label { color: #b6c3e8; font-size: .88rem; line-height: 1.2; }
.discord-name { font-size: 1.05rem; font-weight: 650; }
.discord-action {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid #404d7b;
  border-radius: 8px;
  color: #dee5ff;
  font-size: .875rem;
  line-height: 1.2;
  text-align: center;
}

.projects { max-width: 960px; margin-top: clamp(54px, 9.5vh, 98px); }
.projects h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 2.7vw, 2rem);
  font-weight: 680;
  letter-spacing: -.04em;
}

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.project-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #2a323d;
  border-radius: 15px;
  background: linear-gradient(151deg, rgb(25 31 40 / .96), rgb(13 17 23 / .97));
}
.project-card--meshy { --accent: #c1fa61; }
.project-card--convert { --accent: #99c9ff; }
.project-card--clicker { --accent: #edacff; }

.project-icon {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 5px;
  place-items: center;
  color: var(--accent);
  border-radius: 10px;
}

.project-logo { object-fit: cover; }
.convert-icon, .clicker-icon { border: 1px solid #465577; background: #1c2744; }
.convert-icon::before, .convert-icon::after {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  content: "";
}
.convert-icon::before { transform: translate(-3px, -3px); opacity: .53; }
.convert-icon::after { transform: translate(3px, 3px); background: #1c2744; }
.clicker-icon { border-color: #5a4673; background: #322345; }
.clicker-icon::before {
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}
.clicker-icon::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.project-name { font-size: 1.04rem; font-weight: 680; letter-spacing: -.025em; }
.project-description { color: #b7c3db; font-size: 1rem; line-height: 1.45; }
a:focus-visible { outline: 2px solid #cdd7ff; outline-offset: 4px; }

@media (max-width: 760px) {
  .page { width: calc(100% - 48px); padding-top: 82px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 510px) {
  .page { width: calc(100% - 32px); padding-top: 72px; }
  .intro h1 { font-size: clamp(3.9rem, 20vw, 6.15rem); margin-bottom: 25px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 38px minmax(0, 1fr); gap: 3px 13px; }
  .project-icon { grid-row: span 2; align-self: center; margin: 0; }
  .projects { margin-top: 47px; }
}

@media (prefers-reduced-motion: reduce) {
  .discord-card, .project-card { transition: none; }
  .discord-card:hover, .project-card:hover { transform: none; }
}
