/* mjh.at — dark centered card */

:root {
  --bg-top: #141c2b;
  --bg-bottom: #050810;
  --gradient-overlay: rgba(5, 8, 16, 0.80);
  --text: #e8eaed;
  --text-muted: #b0b5bb;
  --accent: #60a5fa;
  --grid-line: rgba(0, 0, 0, 0.55);
  /* Corner gaps show the grid container bg — match inset line appearance */
  --grid-base: color-mix(in srgb, var(--bg-top) 45%, black);
  --grid-line-width: 2px;
  --cell-size: 40px;
  --cell-fade-out: 550ms;
  --cell-fade-in: 200ms;
  --cell-radius: 7px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Background grid */

.grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--grid-base);
}

.grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--gradient-overlay) 100%
  );
}

.grid__cell {
  position: relative;
  width: var(--cell-size);
  height: var(--cell-size);
  border-radius: var(--cell-radius);
  background-color: var(--bg-top);
}

.grid__cell-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: var(--accent);
  opacity: 0;
  will-change: opacity;
  transition: opacity var(--cell-fade-out) ease-out;
  pointer-events: none;
}

.grid__cell-glow--fade-in {
  transition-duration: var(--cell-fade-in);
  transition-timing-function: ease-out;
}

.grid__cell-glow--instant {
  transition: none;
}

.grid__cell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--grid-line-width) var(--grid-line);
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .grid__cell-glow {
    transition: none;
    will-change: auto;
  }
}

/* Page */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

.lang {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.lang a,
.lang span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 44px;
  padding: 0 0.25rem;
}

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

.lang__active {
  color: var(--text);
  font-weight: 500;
}

.lang__sep {
  opacity: 0.35;
  user-select: none;
}

.name {
  margin: 0 0 1.45rem;
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #60a5fa 0%, #818cf8 45%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  max-width: 32rem;
}

.tag {
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 0.5rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.social a:hover {
  color: var(--accent);
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(96, 165, 250, 0.08);
}

.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (min-width: 768px) {
  :root {
    --cell-size: 48px;
  }

  .tags {
    gap: 0.625rem;
  }

  .social {
    gap: 1rem;
  }
}
