:root {
  color-scheme: dark;
  --ink: #ffff66;
  --navy: #000066;
  --void: #000011;
  --silver: #c0c0c0;
  --link: #00ffff;
  --visited: #ff66ff;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.45;
  background-color: var(--void);
  background-image:
    radial-gradient(1px 1px at 12px 22px, #ffffff, transparent),
    radial-gradient(1px 1px at 80px 60px, #9fd6ff, transparent),
    radial-gradient(1.5px 1.5px at 140px 18px, #ffffff, transparent),
    radial-gradient(1px 1px at 30px 110px, #ffe680, transparent),
    radial-gradient(1px 1px at 170px 90px, #ffffff, transparent),
    radial-gradient(1px 1px at 100px 150px, #9fd6ff, transparent),
    radial-gradient(circle at 50% -10%, #001a66 0%, transparent 55%);
  background-size:
    220px 180px,
    220px 180px,
    220px 180px,
    220px 180px,
    220px 180px,
    220px 180px,
    100% 100%;
}

a:link {
  color: var(--link);
}

a:visited {
  color: var(--visited);
}

a:hover,
a:focus-visible {
  color: #ffffff;
  background: #cc0000;
}

.statusbar {
  margin: 0;
  padding: 4px 8px;
  background: #000000;
  color: #ffff00;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.04em;
}

marquee {
  background: #000000;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  padding: 2px 0 4px;
}

.bezel {
  width: min(680px, calc(100% - 20px));
  margin: 18px auto 12px;
  border: 8px ridge var(--silver);
  background: var(--navy);
  box-shadow:
    0 0 0 2px #000000,
    8px 8px 0 #000000;
  border-collapse: separate;
}

.construction {
  padding: 10px 12px;
  text-align: center;
  background: repeating-linear-gradient(-45deg, #111111, #111111 10px, #ffcc00 10px, #ffcc00 20px);
}

.construction strong {
  display: inline-block;
  padding: 4px 12px;
  background: #cc0000;
  color: #ffff00;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: clamp(18px, 4vw, 26px);
  letter-spacing: 0.08em;
}

.blink {
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% {
    visibility: hidden;
  }
}

.stage,
.counter,
.badges,
.page-copy {
  padding: 16px 22px 20px;
  text-align: center;
}

.sundial {
  display: block;
  width: min(360px, 92%);
  height: auto;
  margin: 0 auto 4px;
}

h1 {
  margin: 0;
  color: #ffff00;
  font-family: "Arial Black", Impact, Haettenschweiler, sans-serif;
  font-size: clamp(40px, 9vw, 72px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-shadow:
    3px 3px 0 #ff00aa,
    -1px -1px 0 #00ffff;
}

.established {
  margin: 8px 0 0;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: #ffffff;
}

.soon {
  margin: 10px 0 8px;
  color: #ffff00;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-shadow: 2px 2px 0 #000000;
}

hr.rainbow {
  height: 10px;
  margin: 12px auto;
  border: 2px solid #000000;
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff8800,
    #ffff00,
    #00ff00,
    #00ffff,
    #0000ff,
    #ff00ff,
    #ff0000
  );
}

.lede {
  max-width: 36em;
  margin: 12px auto;
  font-size: 20px;
}

.actions {
  margin: 14px 0 0;
}

button,
.button {
  display: inline-block;
  margin: 4px;
  padding: 4px 12px;
  background: #c0c0c0;
  color: #000000;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: 16px;
  text-decoration: none;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  cursor: pointer;
}

button:active,
.button:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

a.button:link,
a.button:visited {
  color: #000000;
  background: #c0c0c0;
}

a.button:hover,
a.button:focus-visible,
button:hover,
button:focus-visible {
  color: #000000;
  background: #ffff66;
}

#midi-status,
#guestbook-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #00ff00;
}

.counter {
  padding-top: 0;
  border-top: 2px groove #8080ff;
}

.counter p {
  margin: 0 0 8px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 13px;
}

.odometer {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  background: #111111;
  border: 3px inset #808080;
}

.odometer span {
  display: inline-block;
  min-width: 0.8em;
  padding: 2px 4px;
  background: #000000;
  color: #33ff33;
  font-family: "Courier New", Courier, monospace;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

.counter small {
  display: block;
  margin-top: 8px;
  color: #ccccff;
  font-size: 13px;
}

.badges {
  padding-top: 0;
}

.badges ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badges li {
  min-width: 88px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  background: #000000;
  color: #00ff00;
  border: 2px outset #c0c0c0;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
}

.site-footer {
  width: min(680px, calc(100% - 20px));
  margin: 0 auto 16px;
  color: #cccccc;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 11px;
  text-align: center;
}

.site-footer p {
  margin: 4px 0;
}

.book {
  width: min(460px, 100%);
  margin: 0 auto;
  text-align: left;
  border-collapse: collapse;
}

.book th {
  width: 7.5em;
  padding: 6px 8px 6px 0;
  color: #ffffff;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  vertical-align: top;
}

.book td {
  padding: 6px 0;
}

input,
textarea {
  width: 100%;
  padding: 4px 6px;
  background: #ffffff;
  color: #000000;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  border: 2px inset #808080;
}

textarea {
  min-height: 7em;
  resize: vertical;
}

@media (max-width: 560px) {
  .book,
  .book tbody,
  .book tr,
  .book th,
  .book td {
    display: block;
    width: 100%;
  }

  .book th {
    padding: 8px 0 2px;
    text-align: left;
  }
}

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

  marquee {
    display: block;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
  }
}
