
@font-face {
  font-family: 'PxPlus IBM MDA';
  src: url('../fonts/PxPlus_IBM_MDA.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --phosphor: #21ff21;
  --phosphor-dim: rgba(33, 255, 33, 0.7);
  --phosphor-faint: rgba(33, 255, 33, 0.3);
  --glow: rgba(33, 255, 33, 0.4);
  --bg: #000;
}

[data-theme="amber"] {
  --phosphor: #ffb000;
  --phosphor-dim: rgba(255, 176, 0, 0.7);
  --phosphor-faint: rgba(255, 176, 0, 0.3);
  --glow: rgba(255, 176, 0, 0.4);
}

[data-theme="white"] {
  --phosphor: #fcf8eb;
  --phosphor-dim: rgba(252, 248, 235, 0.7);
  --phosphor-faint: rgba(252, 248, 235, 0.3);
  --glow: rgba(252, 248, 235, 0.35);
}

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

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

body {
  background: var(--bg);
  color: var(--phosphor);
  font-family: 'PxPlus IBM MDA', 'Courier New', monospace;
  font-size: 18px;
  line-height: 1.5;
  text-shadow: 0 0 6px var(--glow);
  min-height: 100vh;
}

.crt {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

.crt::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.25) 3px
  );
  z-index: 10;
}

a {
  color: var(--phosphor);
  text-decoration: underline;
}

a:hover,
a:focus {
  background: var(--phosphor);
  color: var(--bg);
  text-shadow: none;
  outline: none;
}

header {
  display: flex;
  justify-content: flex-end;
  padding: 0.25rem 0 0.5rem;
}

.theme-switch {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.theme-switch .prompt {
  color: var(--phosphor-dim);
}

.theme-switch button {
  background: none;
  border: 1px solid var(--phosphor-faint);
  color: var(--phosphor-dim);
  font: inherit;
  text-shadow: inherit;
  padding: 0.1rem 0.5rem;
  cursor: pointer;
}

.theme-switch button:hover {
  border-color: var(--phosphor);
  color: var(--phosphor);
}

.theme-switch button.active {
  background: var(--phosphor);
  color: var(--bg);
  border-color: var(--phosphor);
  text-shadow: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 0.5rem 0 0;
}

.launch-title {
  font-size: clamp(2em, 8vw, 3em);
  font-weight: normal;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 12px var(--glow);
}

.logo {
  display: inline-block;
  text-align: left;
  font-family: inherit;
  font-size: clamp(12px, 3.5vw, 18px);
  line-height: 1.05;
  white-space: pre;
  text-shadow: 0 0 10px var(--glow);
}

.tagline {
  margin-top: 0.75rem;
  font-size: 1.1em;
}

.subtitle {
  margin-top: 0.5rem;
  color: var(--phosphor-dim);
}

.cursor {
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}

section {
  margin: 2.25rem 0;
}

h2 {
  font-size: 1.2em;
  font-weight: normal;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

h3 {
  font-size: 1em;
  font-weight: normal;
  margin: 1.5rem 0 1rem;
  color: var(--phosphor-dim);
}

section p {
  margin-bottom: 1rem;
  color: var(--phosphor-dim);
}

section strong,
section em {
  color: var(--phosphor);
  font-style: normal;
}

/* Store buttons */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.store-btn {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 2px solid var(--phosphor);
  padding: 1rem;
  text-decoration: none;
  text-align: center;
}

.store-btn:hover,
.store-btn:focus {
  background: var(--phosphor);
  color: var(--bg);
  text-shadow: none;
}

.store-btn .store-status {
  font-size: 0.8em;
  opacity: 0.7;
}

.store-btn.disabled {
  border-color: var(--phosphor-faint);
  color: var(--phosphor-dim);
  cursor: not-allowed;
}

.store-btn.disabled:hover,
.store-btn.disabled:focus {
  background: none;
  color: var(--phosphor-dim);
  text-shadow: 0 0 6px var(--glow);
}

/* Feature list */
.features {
  list-style: none;
  margin-top: 1.5rem;
}

.features li {
  color: var(--phosphor-dim);
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
}

.features li::before {
  content: '*';
  position: absolute;
  left: 0;
  color: var(--phosphor);
}

.read-more {
  margin-top: 1.5rem;
}

.link-list {
  list-style: none;
  margin: 1.5rem 0;
}

.link-list li {
  padding: 0.75rem 0 0.75rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--phosphor-faint);
}

.link-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--phosphor);
}

.link-list .link-desc {
  display: block;
  margin-top: 0.25rem;
  color: var(--phosphor-dim);
  font-size: 0.9em;
}

.story p,
.credits p {
  margin-bottom: 1.25rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.shot {
  aspect-ratio: 9 / 19.5;
  border: 1px solid var(--phosphor-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shot-placeholder {
  color: var(--phosphor-faint);
  text-align: center;
  font-size: 0.8em;
}

.timeline {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.timeline td {
  padding: 0.4rem 1rem 0.4rem 0;
  border-bottom: 1px solid var(--phosphor-faint);
  vertical-align: top;
}

.timeline td:first-child {
  white-space: nowrap;
  color: var(--phosphor);
}

.timeline td:nth-child(2) {
  color: var(--phosphor-dim);
}

.timeline td:last-child {
  color: var(--phosphor-dim);
  font-size: 0.9em;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--phosphor-faint);
  font-size: 0.85em;
  color: var(--phosphor-dim);
}

footer p {
  margin-bottom: 0.5rem;
}

footer .sysline {
  margin-top: 1.5rem;
  color: var(--phosphor);
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .crt { padding: 0.75rem 1rem 2rem; }
  .timeline td { padding-right: 0.5rem; }
}
