/* maarnix.com — the front page, as God and David Bohnett intended.
   Deliberately none of the good taste in styles.css. Every choice here is
   period-correct: bevelled borders, clashing hues, a tiled starfield, and
   text that will not sit still. */

:root { color-scheme: dark; }

body {
  margin: 0;
  padding: 0 0 2rem;
  background-color: #000030;
  /* Tiled starfield — a data-URI so there's no request and nothing to 404. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Crect width='120' height='120' fill='%23000030'/%3E%3Ccircle cx='14' cy='22' r='1.1' fill='%23ffffff'/%3E%3Ccircle cx='68' cy='9' r='.8' fill='%23cfe6ff'/%3E%3Ccircle cx='97' cy='41' r='1.3' fill='%23ffffff'/%3E%3Ccircle cx='33' cy='63' r='.9' fill='%23fff3b0'/%3E%3Ccircle cx='81' cy='88' r='1' fill='%23ffffff'/%3E%3Ccircle cx='51' cy='106' r='.75' fill='%23cfe6ff'/%3E%3Ccircle cx='8' cy='95' r='1.15' fill='%23ffffff'/%3E%3Ccircle cx='112' cy='72' r='.85' fill='%23ffd9f0'/%3E%3C/svg%3E");
  color: #ffffff;
  font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive, sans-serif;
  font-size: 16px;
  text-align: center;
}

a { color: #00ffff; }
a:visited { color: #ff99ff; }
a:hover { color: #ffff00; }

.page {
  max-width: 800px;           /* 800x600, obviously */
  margin: 0 auto;
  padding: 0 10px;
}

/* ---------- the big title ---------- */

.wordmark {
  margin: 1.4rem 0 .2rem;
  font-family: "Impact", "Haettenschweiler", "Arial Black", sans-serif;
  font-size: clamp(2.4rem, 11vw, 5rem);
  letter-spacing: .04em;
  line-height: 1;
  background: linear-gradient(180deg, #fff700 0%, #ff9d00 45%, #ff0066 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
  filter: drop-shadow(3px 3px 0 #00ffff);
}

.tagline { color: #00ff66; font-weight: bold; margin: 0 0 .2rem; font-size: 1.05rem; }
.blink { animation: blink 1.1s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- marquee, without the deprecated tag ---------- */

.marquee {
  overflow: hidden;
  border-top: 2px ridge #ffff00;
  border-bottom: 2px ridge #ffff00;
  background: #4b0082;
  margin: 1rem 0;
  padding: .3rem 0;
  white-space: nowrap;
}
.marquee p {
  display: inline-block;
  margin: 0;
  padding-left: 100%;
  color: #ffff00;
  font-weight: bold;
  animation: slide 22s linear infinite;
}
.marquee:hover p { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }

/* ---------- rainbow rules ---------- */

.rainbow {
  height: 6px; border: 0; margin: 1.1rem 0;
  background: repeating-linear-gradient(90deg,
    #ff0000 0 14px, #ff8800 14px 28px, #ffee00 28px 42px, #00cc44 42px 56px,
    #0088ff 56px 70px, #6633ff 70px 84px, #ff00cc 84px 98px);
}

/* ---------- project cards ---------- */

.projects { display: grid; gap: 1.1rem; margin: 1.2rem 0; }

.card95 {
  background: #c0c0c0;
  border: 3px outset #f0f0f0;
  padding: 0;
  color: #000080;
  text-align: left;
}
.card95 .titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff; font-family: "Trebuchet MS", Tahoma, sans-serif;
  font-weight: bold; font-size: .9rem;
  padding: .25rem .5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.card95 .titlebar .btns { letter-spacing: 2px; }
.card95 .inner { padding: .9rem 1rem 1rem; }
.card95 h2 { margin: 0 0 .2rem; font-size: 1.5rem; color: #000080; }
.card95 h2 a { color: #0000ee; text-decoration: underline; }
.card95 h2 a:visited { color: #551a8b; }
.card95 .sub { color: #800000; font-weight: bold; margin: 0 0 .6rem; font-size: .95rem; }
.card95 p.blurb { color: #000; margin: 0 0 .9rem; line-height: 1.5; font-size: .95rem; }
.card95 .emoji { font-size: 2.6rem; float: right; margin: -.2rem 0 .4rem .6rem; }

.badges { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.badge {
  background: #ff0000; color: #ffff00;
  font-family: "Trebuchet MS", Tahoma, sans-serif;
  font-weight: bold; font-size: .68rem; letter-spacing: .05em;
  padding: .15rem .4rem; border: 1px solid #800000;
}
.badge.b1 { background: #008000; color: #fff; border-color: #004000; }
.badge.wob { animation: wob .7s ease-in-out infinite alternate; }
@keyframes wob { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }

.enter {
  display: inline-block; margin-top: .3rem;
  background: #ffff00; color: #000080 !important;
  border: 3px outset #ffffcc;
  padding: .4rem 1.1rem;
  font-weight: bold; text-decoration: none;
  font-family: "Trebuchet MS", Tahoma, sans-serif;
}
.enter:hover { background: #ff00ff; color: #fff !important; }
.enter:active { border-style: inset; }

/* ---------- construction / counter / webring ---------- */

.construction {
  background: repeating-linear-gradient(45deg, #ffcc00 0 14px, #000 14px 28px);
  border: 3px ridge #ffcc00;
  padding: .55rem;
  margin: 1.2rem 0;
}
.construction span {
  background: #000; color: #ffcc00; font-weight: bold;
  padding: .3rem .7rem; display: inline-block;
  font-family: "Trebuchet MS", Tahoma, sans-serif; font-size: .85rem;
}

.counter { margin: 1.4rem 0 .4rem; }
.counter .label { color: #00ff66; font-size: .85rem; display: block; margin-bottom: .3rem; }
.odometer {
  display: inline-flex; gap: 2px; background: #000;
  border: 3px inset #808080; padding: 4px;
}
.odometer b {
  background: #111; color: #00ff00;
  font-family: "Courier New", monospace; font-size: 1.5rem; font-weight: bold;
  width: 1.1em; text-align: center;
  text-shadow: 0 0 6px #00ff00;
}

.webring {
  border: 2px groove #cccccc; background: #101040;
  padding: .7rem; margin: 1.3rem 0; font-size: .88rem;
}
.webring b { color: #ffcc00; }

.awards { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1rem 0; }
.award {
  border: 2px outset #999; background: #202060; padding: .35rem .6rem;
  font-size: .72rem; font-family: "Trebuchet MS", Tahoma, sans-serif; color: #ffd700;
}

.foot95 { margin-top: 1.6rem; font-size: .8rem; color: #99ccff; line-height: 1.7; }
.foot95 a { font-weight: bold; }

.spinner { display: inline-block; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .blink, .marquee p, .badge.wob, .spinner { animation: none !important; }
  .marquee p { padding-left: 0; }
}

@media (max-width: 520px) {
  .card95 .emoji { font-size: 2rem; }
  .wordmark { -webkit-text-stroke: 1.5px #000; }
}
