@font-face {
  font-family: "Hack";
  src: url("fonts/Hack-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Hack";
  src: url("fonts/Hack-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #232323;
  --tech: #d75f00;
  --weide: #729428;
  --muted: #7b7b7b;
  --title-size: 2.6rem;
  --mono: "Hack", "DejaVu",   "Hack Nerd Font", ui-monospace,
    "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--mono);
  -webkit-text-size-adjust: 100%;
}

.stage {
  width: 100%;
}

.content {
  width: 75vw;
  margin-inline: auto;
}

/* 9 mono characters × (0.6em advance − 0.04em tracking) ≈ 5.04em. */
.title-group {
  width: calc(var(--title-size) * 5.041);
  margin-inline: auto;
}

.title {
  margin: 0;
  color: var(--muted);
  font-size: var(--title-size);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
}

.title .tech {
  color: var(--tech);
  font-weight: 700;
}

.title .weide {
  color: var(--weide);
  font-weight: 400;
}

.binary {
  margin: 1.1rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6em;
  place-items: center;
  color: var(--muted);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  row-gap: 2px;
}

.binary span:nth-child(3n+1) {
    place-self: self-start;
}

.binary span:nth-child(3n) {
    place-self: self-end;
}

.transcription {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: right;
}

::selection {
  background: var(--tech);
  color: var(--bg);
}

@media (min-width: 30rem) {
  :root {
    --title-size: 3.25rem;
  }
}

@media (min-width: 48rem) {
  body {
    padding: 2rem;
  }

  :root {
    --title-size: 4.25rem;
  }

  .binary {
    margin-top: 2.25rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .transcription {
    margin-top: 1rem;
  }
}

@media (min-width: 64rem) {
  body {
    padding: 2.5rem;
  }

  :root {
    --title-size: 5.25rem;
  }

  .content {
    width: 50vw;
  }

  .binary {
    margin-top: 2.25rem;
  }

  .transcription {
    margin-top: 1.25rem;
    font-size: 0.78rem;
  }
}

@media (min-width: 80rem) {
  body {
    padding: 3rem;
  }

  :root {
    --title-size: 6.5rem;
  }

  .binary {
    margin-top: 1.5rem;
  }

  .transcription {
    margin-top: 0.6rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 90rem) {
  :root {
    --title-size: 7.25rem;
  }

@media (min-width: 96rem) {
  :root {
    --title-size: 7.5rem;
  }
}
