:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #0b0b0e;
  color: #f5f5f7;
  --surface: #16161a;
  --raised: #24242b;
  --muted: #afafb8;
  --accent: #cdb5ff;
}

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

body { margin: 0; min-height: 100vh; font-size: 16px; line-height: 1.5; }
h1, h2, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: min(1060px, calc(100% - clamp(32px, 6vw, 80px)));
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #181120;
  transform: translateY(-150%);
}

.skip:focus { transform: none; }

.site-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "brand nav twitch";
  align-items: center;
  gap: 16px;
  min-height: 85px;
  padding-block: 15px;
}

.wordmark {
  grid-area: brand;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .045em;
}

.wordmark span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.site-nav {
  grid-area: nav;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
}

.site-nav a, .twitch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav a { color: var(--muted); }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { background: var(--raised); color: #fff; }

.twitch-link {
  grid-area: twitch;
  justify-self: end;
  gap: 8px;
  background: var(--accent);
  color: #1f1530;
}

.twitch-link:hover { background: #e0d2ff; }
.twitch-link span { font-size: 15px; line-height: 1; }

main.wrap { padding-block: 16px 68px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 65px);
  min-height: 340px;
  padding: clamp(32px, 5.5vw, 72px);
  overflow: hidden;
  border-radius: 36px;
  background: var(--surface);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 84% 57%, #38264b 0%, #211b28 36%, transparent 68%);
  pointer-events: none;
}

.hero--about::before { background-position: 2% 0; }
.hero-copy { min-width: 0; }

h1 {
  font-size: clamp(56px, 7.2vw, 104px);
  font-weight: 730;
  letter-spacing: -.075em;
  line-height: .99;
  text-wrap: balance;
}

.hero-copy p {
  margin-top: clamp(12px, 2vw, 20px);
  color: var(--muted);
  font-size: clamp(16px, 2.15vw, 23px);
  letter-spacing: -.02em;
  line-height: 1.35;
  text-wrap: pretty;
}

.hero-art {
  justify-self: end;
  width: 100%;
  overflow: hidden;
  background: #191323;
  box-shadow: 0 16px 40px #09070f55;
}

.portrait { max-width: 246px; aspect-ratio: 1; border-radius: 26px; }
.pc-art { max-width: 374px; aspect-ratio: 320 / 169; border-radius: 24px; }

.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.pc-art img { object-position: center top; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 16px;
}

.content-grid--specs { grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr); }

.panel {
  min-width: 0;
  padding: clamp(22px, 3.3vw, 36px);
  border-radius: 28px;
  background: var(--surface);
}

.panel h2 {
  font-size: clamp(23px, 2.9vw, 30px);
  font-weight: 690;
  letter-spacing: -.045em;
  line-height: 1.15;
}

.panel p { margin-top: 12px; color: var(--muted); text-wrap: pretty; }
.panel--specs h2 { margin-bottom: 14px; }

.specs > div {
  min-width: 0;
  padding-block: 5px;
}

.specs dt { color: var(--muted); font-size: 13px; }

.specs dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -.015em;
  line-height: 1.35;
}

.spec-value { min-width: 0; overflow-wrap: anywhere; }

.copy-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.copy-button:hover, .copy-button:focus-visible {
  background: var(--raised);
  color: #fff;
}

.copy-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
}

.copy-icon::before, .copy-icon::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.copy-icon::before { top: 1px; right: 1px; opacity: .45; }
.copy-icon::after { bottom: 1px; left: 1px; background: var(--surface); }
.copy-button:hover .copy-icon::after, .copy-button:focus-visible .copy-icon::after { background: var(--raised); }
.copy-button[data-copied] { color: var(--accent); }
.copy-button[data-copied] .copy-icon::before { display: none; }
.copy-button[data-copied] .copy-icon::after {
  width: 13px;
  height: 7px;
  bottom: 7px;
  left: 3px;
  border-width: 0 0 2px 2px;
  border-radius: 1px;
  background: transparent;
  transform: rotate(-45deg);
}

.copy-status {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
  width: max-content;
  max-width: min(400px, calc(100% - 36px));
  padding: 11px 17px;
  border-radius: 16px;
  background: #2a2a32;
  color: #fff;
  box-shadow: 0 8px 28px #0006;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  font-size: 14px;
  text-align: center;
}

.copy-status:not(:empty) { opacity: 1; }

@media (min-width: 900px) {
  .content-grid--specs .panel:first-child .specs > div {
    display: grid;
    grid-template-columns: minmax(112px, .95fr) minmax(0, 2.2fr);
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .hero { min-height: 260px; border-radius: 29px; }
  .content-grid, .content-grid--specs { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .panel { border-radius: 24px; }
}

@media (max-width: 570px) {
  .site-bar {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand twitch" "nav nav";
    gap: 8px;
    padding-block: 11px;
  }

  .site-nav { justify-self: start; }

  main.wrap { padding-block: 5px 44px; }
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .8fr);
    gap: 12px;
    min-height: 215px;
    padding: 23px 21px;
    border-radius: 25px;
  }

  h1 { font-size: clamp(41px, 10.7vw, 60px); }
  .hero-copy p { font-size: 15px; }
  .hero-art { border-radius: 15px; }
}

@media (max-width: 350px) {
  .hero { padding-inline: 17px; }
  .pc-art { aspect-ratio: 240 / 167; }
  .panel { padding-inline: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero, .content-grid { animation: enter .44s ease-out both; }
  .content-grid { animation-delay: .07s; }
  .hero-art {
    transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0);
    transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  }
  .twitch-link, .site-nav a, .copy-button { transition: background-color .18s ease, color .18s ease; }
  .copy-status { transition: opacity .18s ease; }

  @keyframes enter {
    from { opacity: .35; transform: translateY(7px); }
    to { opacity: 1; transform: none; }
  }
}
