@font-face {
  font-family: 'VT323';
  src: url('fonts/VT323-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --ink: #d8d8d8;
  --bg: #111111;
  --brand-text: #d8d8d8;
  --brand-shadow: #4A4A4A;
  --highlight: #ffff00;
  --accent: #ff006e;
}

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

body {
  font-family: 'VT323', monospace;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: clamp(18px, 3.5vw, 22px);
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.system-info {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  font-size: clamp(14px, 2.5vw, 16px);
  opacity: 0.8;
  z-index: 100;
}

.system-info[hidden] {
  display: none;
}

.loader {
  text-align: center;
  max-width: 500px;
  width: 100%;
  animation: fadeIn 0.4s ease-in;
}

.loader.hidden {
  display: none;
}

.loader-text {
  font-size: clamp(20px, 4vw, 24px);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.loader-status {
  font-size: clamp(18px, 3.5vw, 22px);
  min-height: 1.5em;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

main {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

main[hidden] {
  display: none;
}

.prompt {
  opacity: 0;
  animation: fadeIn 0.6s ease-in forwards;
}

.prompt button {
  background: none;
  border: none;
  color: var(--ink);
  font-family: inherit;
  font-size: inherit;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  min-width: 44px;
  transition: background-color 0.2s ease;
}

.prompt button:hover,
.prompt button:focus {
  background-color: var(--ink);
  color: var(--bg);
  outline: none;
}

#reveal,
#privacy {
  text-align: left;
}

#reveal[hidden],
#privacy[hidden] {
  display: none;
}

.brand-header {
  margin-bottom: 2.5rem;
}

.brand {
  font-family: 'VT323', monospace;
  font-size: clamp(56px, 12vw, 72px);
  font-weight: normal;
  color: var(--brand-text);
  text-shadow: 
    1px 1px 0 var(--brand-shadow),
    2px 2px 0 var(--brand-shadow),
    3px 3px 0 var(--brand-shadow),
    4px 4px 0 var(--brand-shadow),
    5px 5px 0 var(--brand-shadow);
  display: block;
  text-align: left;
}

.j-kern {
  margin-right: -0.1em;
}

.i-kern {
  margin-left: -0.1em;
  margin-right: -0.1em;
}

#reveal div,
#privacy div {
  margin-bottom: 0.5rem;
  padding: 0.25rem 0;
}

#reveal div.focused,
#privacy div.focused {
  background-color: var(--ink);
  color: var(--bg);
  padding-left: 0.5rem;
  margin-left: -0.5rem;
}

#reveal a,
#reveal button.link,
#privacy a,
#privacy button.link {
  color: inherit;
  text-decoration: underline;
  word-break: break-word;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

#reveal div.focused a,
#reveal div.focused button.link,
#privacy div.focused a,
#privacy div.focused button.link {
  color: var(--bg);
}

#reveal a:hover,
#reveal button.link:hover,
#privacy a:hover,
#privacy button.link:hover {
  background-color: var(--ink);
  color: var(--bg);
}

#reveal a:focus,
#reveal button.link:focus,
#privacy a:focus,
#privacy button.link:focus {
  outline: none;
}

.mail-link {
  color: var(--accent) !important;
}

#privacy p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

#privacy .section {
  margin-bottom: 1.25rem;
}

.highlight-text {
  color: var(--highlight);
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.hint {
  margin-top: 2rem;
  font-size: 0.85em;
  opacity: 0.6;
  text-align: left;
}

.hint[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .loader,
  .prompt {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }
  
  .system-info {
    top: 0.75rem;
    right: 1rem;
    font-size: 12px;
  }
  
  .loader-text {
    font-size: 18px;
  }
  
  .prompt {
    font-size: 18px;
  }
  
  .prompt button {
    padding: 0.75rem 1rem;
  }
  
  .hint {
    font-size: 0.75em;
  }
}

noscript {
  display: block;
  padding: 2rem;
  text-align: left;
  color: var(--ink);
}