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

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

html,
body {
  height: 100%;
}

body {
  font-family: "Tiny5", monospace;
  background: #0a0a0a;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  image-rendering: pixelated;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  text-align: center;
  user-select: none;
}

.logo-name {
  padding-left: 1.4rem;
  font-size: 10rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #fff;
}

.logo-tagline {
  margin-top: 0.25rem;
  font-size: 3.3rem;
  line-height: 1.15;
  color: #888;
  letter-spacing: 0.05em;
}

footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 1rem;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.theme-switcher {
  display: flex;
  gap: 0.25rem;
}

.theme-switcher button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: 1px solid transparent;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.theme-switcher button:hover {
  opacity: 0.8;
}

.theme-switcher button.active {
  opacity: 1;
  border-color: currentColor;
}

/* Light mode */
html[data-theme="light"] body {
  background: #f5f5f5;
  color: #222;
}

html[data-theme="light"] .logo-name {
  color: #111;
}

html[data-theme="light"] .logo-tagline {
  color: #666;
}

html[data-theme="light"] footer {
  color: #aaa;
}

/* Auto mode — follow system preference */
@media (prefers-color-scheme: light) {
  html[data-theme="auto"] body {
    background: #f5f5f5;
    color: #222;
  }

  html[data-theme="auto"] .logo-name {
    color: #111;
  }

  html[data-theme="auto"] .logo-tagline {
    color: #666;
  }

  html[data-theme="auto"] footer {
    color: #aaa;
  }
}

@media (max-width: 600px) {
  .logo-name {
    font-size: 5rem;
  }
  .logo-tagline {
    font-size: 2.275rem;
  }
}
