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

html {
  font-size: 62.5%;
}

:root {
  color-scheme: dark;
  --bg-color: #050505;
  --text-color: #f2f2f2;
  --header-color: #f7f7f7;
  --accent-color: #7ed5ff;
  --muted-color: #9aa0ab;
}

body,
input,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'IBM Plex Mono', monospace;
}

body {
  margin: 0;
  padding: 2rem 4rem;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--header-color);
  text-transform: lowercase;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-top: 0;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

p {
  margin-bottom: 1.2rem;
  color: var(--muted-color);
}

.site-header {
  max-width: 78rem;
  margin: auto;
  padding: 1.2rem 0 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--header-color);
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.brand img {
  display: block;
  height: 30px;
  width: auto;
}

nav {
  display: flex;
}

nav ul {
  display: inline-flex;
  gap: 2rem;
  padding-inline-start: 0;
  margin: 0;
}

nav ul li {
  list-style: none;
  font-size: 1.5rem;
}

nav a {
  color: var(--muted-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent-color);
}

.content {
  max-width: 78rem;
  margin: 4rem auto;
  font-size: 1.8rem;
}

.content a {
  color: var(--accent-color);
}

.content ul,
.content ol {
  padding-left: 2rem;
  margin-bottom: 1.6rem;
}

.content li + li {
  margin-top: 0.8rem;
}

.muted-note {
  font-size: 1.4rem;
  color: rgba(154, 160, 171, 0.72);
  margin-top: -0.4rem;
}

.resolution-section {
  margin-top: 4rem;
}

.resolution-section h3 {
  margin-top: 0;
}

.resolution-section .wrap {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 12px;
}

.resolution-section #panel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 8px 0 12px;
  overflow: hidden;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.resolution-section #coarse {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
  transform-origin: top left;
  pointer-events: none;
}

.resolution-section #reveal {
  position: absolute;
  pointer-events: none;
  overflow: hidden;
  outline: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  display: none;
}

.resolution-section #reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--full-url);
  background-repeat: no-repeat;
  background-size: var(--bgW) var(--bgH);
  background-position: calc(-1 * var(--bgX)) calc(-1 * var(--bgY));
}

.resolution-section #grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
  mix-blend-mode: lighten;
  opacity: 0.25;
  transform-origin: top left;
}

.resolution-section #panel.show-grid #grid {
  display: block;
}

.resolution-section #panel:not(.show-grid) #grid {
  display: none;
}

@media screen and (max-width: 1000px) {
  body {
    padding: 2rem 1.5rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 1.2rem;
  }

  .content {
    margin: 3rem auto;
    font-size: 1.6rem;
  }
}
