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

:root {
  --bg: #0f0a14;
  --bg-phase1: #1e1530;
  --bg-phase2: #2b1e46;
  --bg-phase3: #3f2c64;
  --purple: #8b3fc8;
  --purple-lt: #a855f7;
  --gold: #d4a017;
  --gold-lt: #f0c040;
  --text: #e2d9f3;
  --text-muted: #7c6a9e;
  --border: #5b3d8a;
  --WARNING: #930205;
  --radius: 0px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "IM Fell English SC", serif;
  min-height: 100vh;

  /* starfield background */
  background-image:
    radial-gradient(1px 1px at 10% 20%, var(--purple-lt) 50%, transparent 500%),
    radial-gradient(1px 1px at 30% 70%, var(--gold) 50%, transparent 500%),
    radial-gradient(1px 1px at 50% 10%, var(--purple-lt) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 50%, var(--gold) 50%, transparent 50%),
    radial-gradient(1px 1px at 90% 80%, var(--purple-lt) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 20% 45%, #c084fc 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 60% 30%, #c084fc 50%, transparent 50%),
    radial-gradient(
      1.5px 1.5px at 80% 15%,
      var(--purple-lt) 50%,
      transparent 50%
    ),
    radial-gradient(1px 1px at 45% 85%, var(--gold) 50%, transparent 50%),
    radial-gradient(1px 1px at 15% 60%, var(--purple-lt) 50%, transparent 50%);
}

.wrapper {
  max-width: 760px;
  margin: 0 auto;
  background-color: var(--bg-phase1);
  border-left: 4px solid var(--purple);
  border-right: 4px solid var(--purple);
  box-shadow: 0 0 40px rgba(139, 63, 200, 0.3);
}

.font-courier {
  font-family: "Courier Prime", monospace;
}
.font-fell {
  font-family: "IM Fell English SC", serif;
}

.bevel-raised {
  border: 3px outset var(--border);
}
.bevel-inset {
  border: 3px inset var(--border);
}

.retro-hr {
  height: 4px;
  background: linear-gradient(
    to right,
    transparent,
    var(--purple),
    var(--gold),
    var(--purple),
    transparent
  );
  border: none;
  margin: 12px 0;
}

/* Header */
header {
  text-align: center;
  padding: 20px 16px;
  background-color: var(--bg-phase1);
  border-bottom: 4px solid var(--purple);
}

header .icon-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

header .icon-row span {
  font-size: 1.2rem;
}

header h1 {
  font-family: "IM Fell English SC", serif;
  font-size: clamp(2rem, 7vw, 3rem);
  color: var(--purple-lt);
  letter-spacing: 0.12em;
  text-decoration: none;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

header .sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-top: 4px;
}

header .est {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

header .symbol-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: "Courier Prime", monospace;
}

/* Marquee */
.marquee-bar {
  background-color: rgba(139, 63, 200, 0.15);
  border-top: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  overflow: hidden;
  padding: 4px 0;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-block;
  font-family: "Courier Prime", monospace;
  font-size: 0.82rem;
  color: var(--gold-lt);
  animation: marquee 20s linear infinite;
}

.marquee-bar:hover span {
  animation-play-state: paused;
}

.marquee-bar a {
  text-decoration: none;
  color: var(--gold-lt);
}

@keyframes marquee {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Navigation */
nav {
  background-color: var(--bg-phase1);
  padding: 6px;
  text-align: center;
}

nav .nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

nav a {
  font-family: "Courier Prime", monospace;
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  padding: 4px 10px;
  display: inline-block;
}

nav a:hover,
nav a.active {
  background-color: var(--purple);
  color: #f3e8ff;
}

main {
  padding: 24px 20px;
  text-align: center;
}

/* Section boxes */
.box-raised {
  background-color: var(--bg-phase1);
  border: 3px outset var(--border);
  padding: 16px;
  margin-bottom: 24px;
}

.box-inset {
  background-color: var(--bg);
  border: 3px black;
  padding: 16px;
  margin-bottom: 24px;
}

h2 {
  font-family: "IM Fell English SC", serif;
  font-size: 1.4rem;
  color: var(--purple-lt);
  margin-bottom: 8px;
}

h3 {
  font-family: "IM Fell English SC", serif;
  font-size: 1.15rem;
  color: var(--purple-lt);
  margin-bottom: 12px;
}

.body-text {
  font-family: "IM Fell English SC", serif;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
}

.simple-text {
  font-family: 'Courier New', Courier, monospace;
  text-indent: 40px;
  font-size: 0.85rem;
  text-align: left;
  margin-bottom: 5px;
}

.body-text strong {
  color: var(--purple-lt);
}

/* Blinking */
.blink-notice {
  font-family: "Courier Prime", monospace;
  font-size: 0.82rem;
  color: var(--gold-lt);
  margin-bottom: 24px;
  animation: blink 1s step-end infinite;
}

/* Offerings */

.offer-card {
  background-color: var(--bg-phase1);
  border: 3px outset var(--border);
  padding: 10px;
}

.offer-grid {
  display: grid;
  gap: 10px;
  text-align: left;
  margin-top: 4px;
}

@media (min-width: 480px) {
  .offer-grid {
    grid-template-columns: repeat(12, [col-start] 1fr);
  }

  .offer-card:nth-child(odd) {
    grid-column: col-start / span 6;
  }

  .offer-card:nth-child(even) {
    grid-column: 7 / span 6;
  }
}

@media (max-width: 480px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }
  .offer-card {
    grid-column: 1fr;
  }
}

.offer-card .title {
  font-family: "Courier Prime", monospace;
  font-size: 0.82rem;
  color: var(--gold-lt);
  margin-bottom: 4px;
}

.offer-card .desc {
  font-family: "Courier Prime", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Store hours */
.hours-table {
  margin: 0 auto;
  font-family: "Courier Prime", monospace;
  font-size: 0.85rem;
  border-collapse: collapse;
}

.hours-table td {
  padding: 3px 0;
}

.hours-table td:first-child {
  color: var(--gold-lt);
  padding-right: 28px;
  text-align: left;
}

.hours-table td:last-child {
  color: var(--text);
}

.hours-note {
  font-family: "Courier Prime", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 10px;
}

/* Hidden quote */
.hidden-quote {
  font-family: "Courier Prime", monospace;
  font-size: 0.7rem;
  color: rgba(124, 106, 158, 0.22);
  text-decoration: none;
  cursor: default;
  display: block;
  margin: 24px 0;
  transition: text-shadow 0.3s;
}

.hidden-quote:hover {
  cursor: pointer;
  text-shadow: 0 0 8px var(--purple-lt);
  color: rgba(168, 85, 247, 0.6);
}

/* Stars */
.star-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.star {
  font-size: 0.7rem;
  color: var(--purple-lt);
  animation: starTwinkle 2s ease-in-out infinite;
}

/* Footer */
footer {
  text-align: center;
  padding: 24px 16px;
  background-color: var(--bg-phase1);
  margin-top: 10px;
}

footer .counter-label {
  font-family: "Courier Prime", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.counter-display {
  background-color: var(--bg);
  border: 3px inset var(--border);
  padding: 2px 10px;
  color: var(--gold-lt);
  font-family: "Courier Prime", monospace;
  font-weight: bold;
  font-size: 0.85rem;
  display: inline-block;
  letter-spacing: 0.1em;
}

.netscape-note {
  font-family: "Courier Prime", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 8px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-family: "Courier Prime", monospace;
  font-size: 0.72rem;
}

.footer-links a {
  color: var(--purple-lt);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-lt);
}
.footer-links .sep {
  color: var(--text-muted);
}

.copyright {
  font-family: "Courier Prime", monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Animations */

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

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    text-shadow:
      0 0 4px var(--purple),
      0 0 8px rgba(139, 63, 200, 0.5);
  }
  50% {
    text-shadow:
      0 0 10px var(--purple-lt),
      0 0 20px var(--purple),
      0 0 30px rgba(139, 63, 200, 0.4);
  }
}

.glow {
  animation: pulseGlow 3s ease-in-out infinite;
}
