@font-face {
  font-family: "Luxi Mono";
  src: local("Luxi Mono Bold"), local("LuxiMono-Bold"),
       url("fonts/luximb.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); /* woof */
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #e6e0ee;
  --muted: #9a90a8;
  --purple: #a66bff;
  --purple-light: #c9a3ff;
  --purple-deep: #5b2fa0;
  --line: #2a1f3d;
  --display: "Luxi Mono", "Yu Gothic", "Hiragino Sans", "Noto Sans JP", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6rem 1.25rem 4rem;
}

h1, h2, .aka {
  font-family: var(--display);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1;
  color: var(--purple);
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--purple);
}

p { margin: 0 0 1rem; max-width: 38rem; }
.aka { margin-top: 0.75rem; font-size: 1.5rem; color: var(--muted); }
.tagline { margin-top: 2rem; }

section { margin-top: 4rem; }

a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-light); }
a:focus-visible,
summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.pfp {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--purple-deep);
}

dl { margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; }

.about { max-width: 44rem; border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

details { padding: 0.15rem 0; }
details + details { margin-top: 0.35rem; }

summary {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--purple-light); }

summary::before {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}
details[open] > summary::before { transform: rotate(45deg); }

.specs { margin: 0.6rem 0 0.4rem 1.15rem; }
.specs div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding: 0.3rem 0;
  font-size: 1rem;
}

.banner {
  margin-top: 4rem;
  text-align: center;
  line-height: 0;
}
.banner img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.buttons a {
  display: block;
  line-height: 0;
  border: 1px solid var(--purple-deep);
}
.buttons a:hover { border-color: var(--purple); }

.badge {
  display: block;
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
}
.buttons a:hover .badge { opacity: 0.8; }

@media (max-width: 600px) {
  main { padding-top: 3.5rem; }
  .intro { flex-direction: column-reverse; align-items: flex-start; }
  .pfp { width: 160px; height: 160px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .specs div { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  summary::before { transition: none; }
}
