:root {
  --bg: rgb(0, 0, 0);
  --fg: rgb(216, 216, 216);
  --muted: rgb(110, 110, 110);
  --line: rgb(26, 26, 26);
  --panel: rgb(5, 5, 5);
  --panel-2: rgb(10, 10, 10);
  --pixel-off: rgb(0, 0, 0);
  --pixel-on: rgb(110, 110, 110);
  --pixel-hover: rgb(250, 20, 44);
  --accent: rgb(141, 141, 141);
  --accent-red: rgb(122, 12, 12);
  --accent-red-bright: rgb(179, 18, 18);
  --pixel-size: 10px;
  --grid-gap: 0;
  --grid-columns: 98;
  --grid-rows: 59;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 28%),
    linear-gradient(90deg, rgba(255,255,255,0.015), rgba(255,255,255,0) 20%),
    var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  position: relative;
}

body.home-page {
  opacity: 0;
  filter: blur(2px);
  transition: opacity 1200ms ease, filter 1200ms ease;
}

body.home-page.is-ready {
  opacity: 1;
  filter: blur(0);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.02) 0,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: screen;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(120, 0, 0, 0.08), transparent 28%),
    radial-gradient(circle at 78% 24%, rgba(120, 0, 0, 0.05), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(120, 0, 0, 0.05), transparent 35%);
}

.page-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 16px 0.5in 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout-column {
  width: 980px;
  max-width: 100%;
  margin: 0 auto;
}

.top-band {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-bottom: 10px;
  width: 100%;
}

.site-header {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  width: 980px;
  max-width: 100%;
  margin-right: 0;
}

.brand-subtitle {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: right;
}

.nin-cover,
.site-title-art {
  display: block;
  height: auto;
  object-fit: contain;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: grayscale(100%) contrast(1.12);
}

.nin-cover {
  width: min(28vw, 280px);
  max-width: 100%;
}

.site-title-art {
  width: min(100%, 760px);
  max-width: 100%;
}

.content {
  width: 100%;
  display: flex;
  justify-content: center;
}

.grid-section {
  overflow-x: auto;
  overflow-y: hidden;
  width: 980px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(122,12,12,0.08), inset 0 -1px 0 rgba(122,12,12,0.08);
  display: flex;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
}

.grid-section::-webkit-scrollbar {
  height: 6px;
}

.grid-section::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.16);
}

.grid-section::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
}

@media (max-width: 1100px) {
  .brand-stack {
    width: 100%;
  }

  .site-title-art {
    max-width: min(92vw, 760px);
    width: 100%;
  }

  .brand-subtitle {
    max-width: min(92vw, 760px);
  }

  .grid-section {
    justify-content: flex-start;
  }

  .pixel-grid {
    min-width: 980px;
  }
}

@media (max-width: 768px) {
  :root {
    --pixel-size: 4px;
  }

  .page-shell {
    min-height: auto;
    padding: 16px 16px 12px;
    display: block;
  }

  .top-band {
    margin-bottom: 8px;
  }

  .brand-stack {
    gap: 2px;
    width: 100%;
  }

  .nin-cover {
    width: min(38vw, 150px);
    max-width: 100%;
  }

  .site-title-art {
    max-width: min(92vw, 460px);
    width: 100%;
  }

  .brand-subtitle {
    margin-top: 0;
    font-size: 8px;
    max-width: min(92vw, 460px);
  }

  .grid-section {
    padding: 6px 0;
  }

  .pixel-grid {
    width: calc(var(--grid-columns) * var(--pixel-size));
    min-width: calc(var(--grid-columns) * var(--pixel-size));
  }

  .pixel-link.is-active {
    position: relative;
  }

  .pixel-link.is-active::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    background: transparent;
  }

  .site-footer {
    margin-top: 14px;
  }

  .site-footer p,
  .footer-meta {
    font-size: 8px;
    letter-spacing: 0.12em;
  }
}

@media (min-width: 1101px) {
  .pixel-grid {
    min-width: 980px;
  }
}

.pixel-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), var(--pixel-size));
  grid-template-rows: repeat(var(--grid-rows), var(--pixel-size));
  grid-auto-columns: var(--pixel-size);
  grid-auto-rows: var(--pixel-size);
  gap: var(--grid-gap);
  width: calc(var(--grid-columns) * var(--pixel-size));
  height: calc(var(--grid-rows) * var(--pixel-size));
  min-width: calc(var(--grid-columns) * var(--pixel-size));
  min-height: calc(var(--grid-rows) * var(--pixel-size));
  max-width: none;
  max-height: none;
  align-content: start;
  justify-content: start;
  background: var(--bg);
  margin: 0 auto;
  overflow: hidden;
}

.pixel-link {
  display: block;
  width: var(--pixel-size);
  min-width: var(--pixel-size);
  max-width: var(--pixel-size);
  height: var(--pixel-size);
  min-height: var(--pixel-size);
  max-height: var(--pixel-size);
  line-height: 0;
  text-decoration: none;
}

.pixel-link:focus {
  outline: 1px solid #666;
  outline-offset: 1px;
}

.pixel {
  display: block;
  width: var(--pixel-size);
  min-width: var(--pixel-size);
  max-width: var(--pixel-size);
  height: var(--pixel-size);
  min-height: var(--pixel-size);
  max-height: var(--pixel-size);
  background: var(--pixel-off);
  transition: background-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.pixel-link.is-active .pixel {
  background: var(--pixel-on);
}

.pixel-link.is-active:hover .pixel,
.pixel-link.is-active:focus .pixel,
.pixel-link.is-active:focus-visible .pixel {
  background: var(--pixel-hover);
  box-shadow: none;
}

.site-footer {
  margin-top: 18px;
  text-align: center;
  width: 100%;
}

.site-footer p {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-meta {
  margin-bottom: 6px !important;
  color: rgb(138, 138, 138) !important;
}

.footer-separator {
  color: var(--muted);
}

.footer-contact-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 120ms ease;
}

.footer-contact-link:hover,
.footer-contact-link:focus,
.footer-contact-link:focus-visible {
  color: rgb(255, 255, 255);
  text-decoration: none;
}
