/* apih.lol: dark, red, a little graph paper */

@font-face {
  font-family: "Unbounded";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/unbounded-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Unbounded";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/unbounded-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --acc: #ff4545;
  --bg: #0a0909;
  --ink: #ece8e8;
  --bright: #f7f3f3;
  --soft: #d6d0d0;
  --muted: #a8a0a0;
  --line: rgba(255, 255, 255, 0.14);
  --ga: 0.065; /* grid strength: .04 light, .065 medium, .1 heavy */
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  overflow-x: clip;
}
a {
  color: var(--ink);
  text-decoration: none;
}
a:hover {
  color: var(--acc);
}
:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}
h1,
h2,
p,
dl,
dd {
  margin: 0;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* graph paper, only in a few places */
.has-grid {
  position: relative;
}
.grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --gc: rgba(255, 255, 255, var(--ga));
  background-image: linear-gradient(var(--gc) 1px, transparent 1px),
    linear-gradient(90deg, var(--gc) 1px, transparent 1px),
    linear-gradient(var(--gc) 1px, transparent 1px),
    linear-gradient(90deg, var(--gc) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
}
.grid--hero {
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 30% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 30% 40%, #000 25%, transparent 75%);
}
.grid--corner {
  -webkit-mask-image: linear-gradient(135deg, transparent 35%, #000 90%);
  mask-image: linear-gradient(135deg, transparent 35%, #000 90%);
}
.grid--footer {
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}

/* ---------- hero ---------- */
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
  align-items: end;
  padding-block: 80px 56px;
}
.intro {
  grid-column: span 6;
}
.path {
  font-size: 13px;
  color: var(--muted);
}
.name {
  margin-top: 14px;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: 132px;
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--bright);
  text-shadow: 0 0 44px var(--acc);
}
.full {
  margin-top: 16px;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.full b {
  font-weight: 600;
  color: var(--acc);
}
.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 22px;
  font-size: 14px;
}
.status .slash {
  color: var(--muted);
}
.online {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 10px var(--acc);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ---------- character sheet ---------- */
.sheet {
  grid-column: 7 / span 6;
  border: 1px solid var(--acc);
  background: rgba(10, 9, 9, 0.85);
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 12px 18px;
  background: var(--acc);
  color: var(--bg);
}
.sheet-head h2 {
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.sheet-head span {
  font-size: 12px;
  font-weight: 500;
}
.sheet dl {
  padding: 6px 18px 14px;
}
.sheet dl > div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sheet dl > div:last-of-type {
  border-bottom: 0;
}
.k {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- panels ---------- */
.sep {
  height: 1px;
  margin-bottom: 32px;
  background: linear-gradient(90deg, var(--acc) 0 56px, var(--line) 56px);
}
.panels {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-bottom: 72px;
}
.panel {
  position: relative;
  overflow: hidden;
  flex: 7 1 420px;
  min-width: 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.panel > :not(.grid) {
  position: relative;
}
.panel--narrow {
  flex: 5 1 320px;
}
.panel--full {
  flex-basis: 100%;
}
.tag {
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
}
.about {
  line-height: 1.75;
  color: var(--soft);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

/* links */
.row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 0 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.row:last-child {
  border-bottom: 0;
}
.row:hover {
  color: var(--acc);
}
.lead {
  flex: 1;
  min-width: 24px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}
.hint {
  font-size: 12px;
  color: var(--muted);
}

/* footer */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
}
.footer-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 40px 36px;
  font-size: 12px;
  color: var(--muted);
}

/* motion */
.rise {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rise,
  .dot {
    animation: none;
  }
}

/* phones */
@media (max-width: 760px) {
  .hero-inner {
    padding-block: 56px 40px;
  }
  .intro,
  .sheet {
    grid-column: 1 / -1;
  }
  .name {
    font-size: 84px;
  }
  .full {
    font-size: 20px;
  }
  .sheet dl > div {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}
