@font-face {
  font-family: "nudica";
  src: url("/assets/nudica.otf");
}

:root {
  --background: #000;
  --foreground: #F3F0E7;
  --grey: #636363;
  --accent: #CF513A;
}

::selection {
  background-color: var(--accent);
  color: var(--background);
}

::-moz-selection {
  background-color: var(--foreground);
  color: var(--background);
}

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

body {
  font-family: 'nudica', monospace;
  color: var(--foreground);
  background: var(--background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.45;
}

a {
  text-decoration: none;
  color: var(--foreground);
}

p {
  pointer-events: none;
}

.body-content {
  margin: 0 auto;
  max-width: 960px;
  width: 100%;
  padding: 3.75rem 1rem 2.5rem;
  font-size: 0.75rem;
}

.typewriter-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.tw-word {
  font-size: 0.75rem;
  color: var(--foreground);
  pointer-events: none;
  white-space: nowrap;
  position: relative;
}

a.tw-word {
  display: block;
  pointer-events: none;
  cursor: pointer;
}

.tw-spacer {
  user-select: none;
  -webkit-user-select: none;
}

.tw-muted {
  color: var(--grey);
}

.tw-hl {
  background-color: var(--accent);
  color: var(--background);
}

.tw-placeholder {
  visibility: hidden;
}

@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (max-width: 960px) {
  body {
    justify-content: flex-start;
  }

  .body-content {
    margin: 0;
    padding: 3.75rem 1rem 0;
  }

  .typewriter-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}