:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #3a3a3a;
  --paper: #fffdf5;
  --paper-2: #fff4c2;
  --accent: #ff3d7f;
  --accent-2: #00b9d6;
  --accent-3: #ffd24a;
  --border: #111111;
  --shadow: 6px 6px 0 #111111;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "VT323", "Courier New", monospace;
  font-size: 20px;
  color: var(--ink);
  background-color: #f7f4e8;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(17, 17, 17, 0.05) 0,
      rgba(17, 17, 17, 0.05) 2px,
      transparent 2px,
      transparent 22px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(17, 17, 17, 0.05) 0,
      rgba(17, 17, 17, 0.05) 2px,
      transparent 2px,
      transparent 22px
    ),
    radial-gradient(circle at 12% 10%, #ffe08a 0%, transparent 45%),
    radial-gradient(circle at 88% 18%, #a6f5ff 0%, transparent 40%),
    radial-gradient(circle at 20% 78%, #ffb3c2 0%, transparent 45%);
  padding: 28px 24px 80px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 28px;
  width: min(100%, calc(var(--max) + 220px));
  max-width: calc(var(--max) + 220px);
  margin: 0 auto;
  align-items: start;
}

.brand,
.main {
  min-width: 0;
}

.brand {
  position: sticky;
  top: 24px;
}

.brand-card {
  background: var(--paper);
  border: 3px solid var(--border);
  padding: 22px;
  box-shadow: var(--shadow);
}

.logo {
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tagline {
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.4;
}

nav {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rel-me {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 2px dotted var(--border);
  font-size: 16px;
  color: var(--muted);
}

.rel-me h3 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink);
}

.rel-me a {
  display: block;
  color: var(--accent-2);
  text-decoration: none;
  margin-bottom: 6px;
}

.rel-me a:hover {
  text-decoration: underline;
}

.nav-section {
  border-top: 2px dotted var(--border);
  padding-top: 16px;
}

.nav-section h3 {
  margin: 0 0 12px;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: grid;
  gap: 10px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 8px 12px;
  border: 2px solid var(--border);
  background: #ffffff;
  box-shadow: 3px 3px 0 var(--border);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--paper-2);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--border);
}

.main {
  background: #ffffff;
  border: 3px solid var(--border);
  padding: 28px 32px 40px;
  box-shadow: 10px 10px 0 var(--border);
  animation: fadeUp 0.5s ease both;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px dotted var(--border);
}

.hero h1 {
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 28px;
  margin: 0 0 8px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 540px;
}

.status {
  background: var(--paper-2);
  padding: 10px 14px;
  border: 2px solid var(--border);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 3px 3px 0 var(--border);
}

.content {
  font-size: 20px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.content h1,
.content h2,
.content h3 {
  font-family: "Press Start 2P", "Courier New", monospace;
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.content h1 {
  font-size: 26px;
}

.content h2 {
  font-size: 20px;
}

.content h3 {
  font-size: 16px;
}

.content p {
  margin: 0 0 16px;
}

.content ul,
.content ol {
  margin: 0 0 18px 22px;
}

.content code {
  font-family: "Courier New", monospace;
  background: #fff4a8;
  padding: 2px 6px;
  border: 2px solid var(--border);
  font-size: 0.9em;
}

.content pre {
  background: #0c0c0c;
  color: #a6ffea;
  padding: 16px 18px;
  border: 3px solid var(--border);
  overflow-x: auto;
  margin: 0 0 18px;
  max-width: 100%;
  box-shadow: 5px 5px 0 var(--border);
}

.content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  border: 0;
}

.content blockquote {
  border-left: 6px solid var(--accent);
  padding-left: 16px;
  background: #e8f6ff;
  margin: 0 0 18px;
}

.content hr {
  border: 0;
  height: 2px;
  background: var(--border);
  margin: 24px 0;
}

.empty {
  padding: 20px;
  border: 2px dashed var(--border);
  background: #fffdf0;
}

footer {
  margin-top: 30px;
  font-size: 16px;
  color: var(--muted);
}

.webmentions {
  margin-top: 28px;
  border-top: 2px dotted var(--border);
  padding-top: 20px;
}

.webmentions h2 {
  font-family: "Press Start 2P", "Courier New", monospace;
  margin: 0 0 8px;
  font-size: 18px;
}

.webmentions-summary {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 14px;
}

.webmention-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.webmention-item {
  padding: 14px 16px;
  border: 2px solid var(--border);
  background: #ffffff;
  box-shadow: 4px 4px 0 var(--border);
}

.webmention-meta {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.webmention-body {
  font-size: 18px;
  color: var(--ink);
}

.webmention-body a {
  color: var(--accent-2);
}

img,
video,
svg,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

.loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 16px;
}

.loading span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  animation: blink 1s infinite steps(2);
}

.loading span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  body {
    padding: 20px 16px 60px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .brand {
    position: static;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .main {
    padding: 24px 22px 36px;
  }
}
