/* Early-2000s personal site. Original CSS, no theme pack. */

:root {
  --ink: #161616;
  --paper: #fffbe8;
  --sidebar: #9fd4ff;
  --navy: #000080;
  --link: #0000ee;
  --visited: #551a8b;
  --hot: #ff1493;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: #070018;
  background-image: url("/bg-stars.svg");
  background-repeat: repeat;
  background-attachment: fixed;
  font-family: Verdana, Geneva, Tahoma, "Liberation Sans", "Noto Sans", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

::selection {
  background: #ff4db8;
  color: #fff;
}

a:link { color: var(--link); }
a:visited { color: var(--visited); }
a:hover { color: var(--hot); }
a:active { color: #c00; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ff0;
  outline-offset: 2px;
  background: #ff0;
  color: #000;
}

.skip {
  position: absolute;
  left: 8px;
  top: -40px;
  z-index: 80;
  background: #ff0;
  color: #000;
  padding: 6px 10px;
  border: 2px solid #000;
  font-weight: bold;
}

.skip:focus {
  top: 8px;
}

.page {
  max-width: 860px;
  margin: 16px auto 36px;
  background: var(--paper);
  border: 4px solid #000;
  box-shadow: 7px 7px 0 #000;
}

.mast {
  background: var(--navy);
  color: #fff36a;
  border-bottom: 4px solid #000;
  text-align: center;
}

.ticker {
  height: 24px;
  overflow: hidden;
  background: #000;
  color: #39ff14;
  border-bottom: 2px solid #39ff14;
  font-family: "Courier New", Courier, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 24px;
}

.ticker marquee {
  height: 24px;
  margin: 0;
  color: #39ff14;
  background: #000;
  line-height: 24px;
}

.ticker-static {
  display: none;
  margin: 0;
  padding: 0 8px;
}

.site-title,
a.site-title:link,
a.site-title:visited,
a.site-title:hover {
  display: block;
  margin: 8px 10px 0;
  color: #ffff33;
  background: transparent;
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Chalkboard", "Marker Felt", "Liberation Sans", cursive;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
  text-decoration: none;
  text-shadow:
    2px 2px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    5px 5px 0 #c00000;
}

.tagline {
  margin: 4px 12px 10px;
  color: #fff;
  font-size: 13px;
}

.columns {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
}

.sidebar {
  background: var(--sidebar);
  border-right: 4px solid #000;
  padding: 10px;
}

.side-label {
  margin: 10px 0 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: #003;
}

.side-label:first-child { margin-top: 0; }

.nav a {
  display: block;
  margin: 4px 0;
  padding: 4px 6px;
  background: #fff;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  font-weight: bold;
  text-decoration: underline;
}

.about-blurb p:last-child,
.side-note,
.counter-note,
.ring-note {
  margin: 4px 0 0;
  font-size: 12px;
}

.counter-box {
  margin-top: 12px;
  padding: 6px;
  background: #d6ecff;
  border: 2px inset #7aa;
}

.counter-digits {
  display: inline-block;
  margin-top: 2px;
  padding: 4px 8px 3px;
  background: #031006;
  color: #39ff14;
  border: 2px inset #6a6;
  font-family: "Courier New", Courier, "Liberation Mono", monospace;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 3px;
  text-shadow: 0 0 6px #39ff14;
}

.construction {
  margin-top: 12px;
  padding: 6px 4px;
  text-align: center;
  background: repeating-linear-gradient(
    -45deg,
    #111 0 8px,
    #ffd60a 8px 16px
  );
  border: 2px solid #000;
}

.construction span {
  display: inline-block;
  padding: 1px 8px;
  background: #ffd60a;
  color: #111;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

main {
  min-width: 0;
  padding: 14px 16px 20px;
  background:
    linear-gradient(#fffef6, #fffef6);
}

.noscript {
  padding: 8px;
  background: #fff3a0;
  border: 2px dashed #000;
}

.kicker {
  margin: 0 0 2px;
  color: #900;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-title {
  margin: 0 0 4px;
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Liberation Sans", cursive;
  font-size: 28px;
  line-height: 1.15;
  color: #000080;
}

.post-date {
  margin: 0 0 8px;
  color: #444;
  font-size: 13px;
}

hr.rainbow {
  height: 8px;
  border: 0;
  margin: 8px 0 14px;
  background: repeating-linear-gradient(
    90deg,
    #ff00aa 0 10px,
    #00e5ff 10px 20px,
    #ffe14a 20px 30px,
    #7dff4a 30px 40px
  );
}

.welcome {
  margin: 0 0 8px;
  padding: 8px 10px;
  background: #fff;
  border: 2px dashed #000080;
}

h2 {
  margin: 16px 0 8px;
  padding: 2px 8px;
  background: #000080;
  color: #ffff66;
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Liberation Sans", cursive;
  font-size: 20px;
}

h3 {
  margin: 16px 0 6px;
  color: #000080;
  font-size: 16px;
}

.content p { margin: 0 0 10px; }

.content ul,
.content ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.content li { margin: 4px 0; }

.content blockquote {
  margin: 12px 8px;
  padding: 8px 12px;
  background: #fff;
  border: 3px dashed #ff1493;
  color: #222;
}

.content code {
  padding: 0 3px;
  background: #fff;
  color: #c00;
  border: 1px solid #bbb;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.92em;
}

.signoff {
  text-align: center;
  font-weight: bold;
  color: #000080;
}

.post-list,
.guestbook {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 2px solid #000;
}

.post-list th,
.post-list td,
.guestbook th,
.guestbook td {
  padding: 6px 8px;
  border: 1px solid #000;
  vertical-align: top;
  text-align: left;
}

.post-list th,
.guestbook th {
  background: #d0d0ff;
  font-size: 13px;
}

.post-list .when {
  width: 7.5em;
  white-space: nowrap;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}

.excerpt {
  margin-top: 3px;
  color: #333;
  font-size: 13px;
}

.new-badge {
  display: inline-block;
  margin-right: 4px;
  color: #ff0000;
  font-size: 12px;
  font-weight: bold;
  animation: blink 1s step-end infinite;
}

.empty { font-style: italic; }

.permalink,
.back-home {
  margin: 14px 0 0;
  font-size: 13px;
}

.site-foot {
  border-top: 4px solid #000;
  background: #efe6c4;
  padding: 10px 12px 12px;
  text-align: center;
}

.webring {
  display: inline-block;
  min-width: 240px;
  max-width: 100%;
  padding: 8px 12px;
  background: #fff;
  border: 3px double #000080;
}

.ring-title {
  margin: 0;
  color: #000080;
  font-weight: bold;
}

.ring-links {
  margin: 6px 0;
}

.ring-links a {
  display: inline-block;
  margin: 0 8px;
  font-weight: bold;
}

.foot-controls { margin: 10px 0 4px; }

.bevel-btn {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #000;
  background: #d4d0c8;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  padding: 4px 10px;
  cursor: pointer;
}

.bevel-btn:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.colophon {
  margin: 4px 0 0;
  font-size: 12px;
}

#sparkle-trail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

#pixel-dancer {
  position: fixed;
  right: 8px;
  bottom: 2px;
  z-index: 30;
  pointer-events: none;
  line-height: 0;
}

#pixel-dancer canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

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

@media (prefers-reduced-motion: reduce) {
  .new-badge { animation: none; }
  .ticker { height: auto; }
  .ticker marquee { display: none; }
  .ticker-static { display: block; white-space: normal; line-height: 1.4; padding: 4px 8px; }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
    font-size: 16px;
  }

  .page {
    margin: 8px 8px 96px;
    box-shadow: 4px 4px 0 #000;
  }

  .site-title,
  a.site-title:link,
  a.site-title:visited {
    font-size: 32px;
  }

  .columns {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 4px solid #000;
  }

  .post-list .when {
    white-space: normal;
  }

  .site-foot {
    padding-right: 72px;
    padding-bottom: 86px;
  }
}
