* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background: #ffffff;
  color: #000000;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 2rem;
}

/* Social links — light gray, monospace "coder" style, one per line, centered. */
.socials {
  margin-top: clamp(1.25rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: clamp(0.66rem, 1.7vw, 0.8rem);
  letter-spacing: 0.06em;
}

.socials a {
  display: flex;
  gap: 0.55em;
  color: #9aa0a6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: #111111;
}

/* 2-char labels are equal width in monospace, so values line up on their own. */
.socials .k {
  color: #cdcdcd; /* dimmer label */
}

.socials .k::after {
  content: "→";
  padding-left: 0.55em;
  color: #dcdcdc; /* faintest — the connector */
}

.socials .v {
  text-align: left;
}

/* Slogan — faintest line, even lighter than the social links. */
.slogan {
  margin-top: clamp(1.5rem, 5vw, 3rem);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: clamp(0.6rem, 1.5vw, 0.72rem);
  letter-spacing: 0.14em;
  color: #d6d6d6;
  text-align: center;
}

/* SVG spans full viewport width, so the line touches both screen edges. */
.art {
  width: 100vw;
  height: auto;
  display: block;
}

.line {
  fill: none;
  stroke: #000000;
  stroke-width: 2;
  vector-effect: non-scaling-stroke; /* crisp, constant thin line at any size */
  stroke-linecap: round;
  stroke-linejoin: round;

  /* Hand-drawn pen effect, looping forever at a constant pace (no pauses):
     pathLength="1" normalises the length, so 1 = whole line.
     draw on (1→0) then straight into sweeping away (0→-1), seamlessly. */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 6s linear infinite;
}

@keyframes draw {
  0% {
    stroke-dashoffset: 1; /* hidden */
  }
  50% {
    stroke-dashoffset: 0; /* fully drawn — no hold, keeps moving */
  }
  100% {
    stroke-dashoffset: -1; /* swept away, then loops back to hidden */
  }
}

/* Slow the pen down on smaller screens, where the shorter line otherwise
   feels too fast / busy. Only the duration changes. */
@media (max-width: 768px) {
  .line {
    animation-duration: 9s;
  }
}

@media (max-width: 480px) {
  .line {
    animation-duration: 15s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .line {
    stroke-dashoffset: 0;
    animation: none;
  }
}
