/* nsmc.eu — one saturated colour doing all the work: acid yellow, a faint
   dot grid, a sprayed stencil wordmark, a tossed sticker sheet of its letters,
   and black pills. Calm centred layout, loud surface. */

:root {
  --ground: #d6e02a;
  --ink: #111111;
  --ink-soft: rgba(17, 17, 17, 0.72);
  --dot: rgba(17, 17, 17, 0.13);
  --paper: #ffffff;
  --focus: #111111;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background-color: var(--ground);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.toss {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.toss .g { font-family: "Big Shoulders Stencil Display", Impact, sans-serif; font-weight: 900; }
.toss .light { fill: var(--paper); opacity: 0.55; }
.toss .dark { fill: var(--ink); opacity: 0.09; }

main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 24px;
  gap: clamp(20px, 4vh, 36px);
}

.mark {
  margin: 0;
  font-family: "Big Shoulders Stencil Display", Impact, "Arial Black", sans-serif;
  font-weight: 900;
  font-size: clamp(6.5rem, 31vw, 20rem);
  line-height: 0.82;
  letter-spacing: 0.01em;
  color: var(--ink);
  filter: url(#spray);
  text-shadow: 0 0 0.06em rgba(17, 17, 17, 0.28);
  user-select: none;
}

.line {
  margin: 0;
  max-width: 30ch;
  min-height: 2.6em;
  font-size: clamp(1.25rem, 2.6vw + 0.6rem, 2.1rem);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}
.line.in { animation: rise 420ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes rise {
  from { opacity: 0; transform: translateY(0.35em); }
  to { opacity: 1; transform: none; }
}

.actions {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.js .actions { display: flex; }

.pill {
  appearance: none;
  border-radius: 999px;
  padding: 0.8em 1.5em;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}
.pill:active { transform: translateY(1px) scale(0.98); }
.pill:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.solid { background: var(--ink); color: var(--ground); border: 2px solid var(--ink); }
.solid:hover { background: #2a2a2a; }

.ghost { background: rgba(255, 255, 255, 0.35); color: var(--ink); border: 2px solid rgba(17, 17, 17, 0.55); }
.ghost:hover { background: rgba(255, 255, 255, 0.6); }

.foot {
  position: relative;
  z-index: 1;
  padding: 16px;
  text-align: center;
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.lost { font-size: clamp(1.25rem, 2.6vw + 0.6rem, 2.1rem); font-weight: 500; margin: 0; max-width: 30ch; }
.home { color: var(--ink); font-weight: 500; text-underline-offset: 0.2em; }

@media (prefers-reduced-motion: reduce) {
  .line.in { animation: none; }
  .pill { transition: none; }
}
