:root {
  --terminal-green: #33ff33;
  --terminal-dark: #0a0a0a;
  --terminal-dim: #1a5c1a;
  --border-color: var(--terminal-dim);
  --accent-color: var(--terminal-green);
}

* {
  box-sizing: border-box;
}

/* CRT scanline effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 1000;
}

/* CRT curve vignette */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 999;
}

html {
  font-size: 1em;
  line-height: 1.4;
  background: var(--terminal-dark);
  color: var(--terminal-green);
}

body {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 1.2em;
  text-shadow: 0 0 3px rgba(51, 255, 51, 0.5);
}

h1 {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 2.5em;
  line-height: 1em;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 0 10px var(--terminal-green), 0 0 20px rgba(51, 255, 51, 0.5);
}
.accent {
  color: var(--accent-color);
}

h2 {
  font-size: 2em;
  line-height: 1em;
  letter-spacing: 1.1px;
  margin: 0;
}
h3 {
  letter-spacing: 1.1px;
}

a {
  color: var(--terminal-green);
  text-decoration: none;
  border-bottom: 1px dashed var(--terminal-green);
  transition: ease-in all 100ms;
}
a:hover {
  border-bottom: 1px solid;
  text-shadow: 0 0 10px var(--terminal-green);
}

.container {
  width: 1027px;
  margin: 0 auto;
  padding: 2em;
}
header, .content, footer {
  margin: 3em 0;
}

.main p:first-line {
  font-size: 1.2em;
}

blockquote {
  margin: 0.75em 0 0 0;
  padding: 0.25em 0;
  text-align: center;
  font-style: italic;
  font-size: 1.1em;
}
blockquote cite {
  font-style: normal;
  font-size: 0.85em;
  opacity: 0.7;
}

article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 15px;
}
article div, article section {
  flex: 1;
}

.current article div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1em;
}
.current article div+div {
}
.current h3 {
  margin: 0 0 0.25em;
  font-size: 0.75em;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 0.2em;
  box-shadow: 0 0 6px var(--accent-color);
}
.current p {
  margin: 0;
  font-size: 1.1em;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}
.blink {
  color: var(--accent-color);
  text-shadow: 0 0 8px var(--accent-color);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes flicker {
  0%, 100% {
    opacity: 1;
  }
  41% {
    opacity: 1;
  }
  42% {
    opacity: 0.85;
  }
  43% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  86% {
    opacity: 0.9;
  }
  87% {
    opacity: 0.85;
  }
  88% {
    opacity: 1;
  }
}
.flicker {
  animation: flicker 5s infinite;
}

.line {
  height: 1px;
  border-top: 1px solid var(--border-color);
  opacity: 0.4;
}

.double-line {
  height: 1px;
  border-top: 1px solid var(--border-color);
  opacity: 0.4;
}

.stuff h2 {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 1.4em;
  text-align: left;
  margin-bottom: 0.5em;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.stuff article + article {
  margin-top: 1em;
}
.stuff section {
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--terminal-dim);
}
.stuff section:nth-child(odd) {
  border-right: 1px solid var(--terminal-dim);
}
.stuff h3 {
  margin: 0 0 0.3em;
  font-weight: normal;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}
.stuff ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.6;
}
.stuff ul li {
  display: inline;
}
.stuff ul li:not(:last-child)::after {
  content: " · ";
  opacity: 0.5;
}

.contact {
  text-align: center;
  padding: 0.5em 0;
}
.contact h3 {
  margin: 0 0 0.25em;
}
.contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.contact ul li {
  margin: 0 0 0 20px;
  padding: 0;
}
.contact ul li+li::before {
  display: inline-block;
  content: '|';
  margin-right: 20px;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: default;
}
.tooltip .tooltiptext {
  visibility: hidden;
  width: max-content;
  text-align: center;
  padding: 5px 10px;
  border-radius: 6px;

  top: -10px;
  left: 110%;
  position: absolute;
  z-index: 1;

  opacity: 0;
  transition: opacity 400ms;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

footer {
  text-align: center;
  padding: 5px 0;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-size: 0.85em;
  opacity: 0.3;
}


@media only screen and (max-width: 1140px) {
  .container {
    width: 100%;
    margin: 0;
    padding: 0 2em;
  }
}

@media only screen and (max-width: 680px) {
  h1 {
    font-size: 1.8em;
    letter-spacing: 2px;
  }
  article {
    grid-template-columns: 1fr;
  }
  .current article div {
    padding: 0.5em;
  }
  .stuff section {
    border-right: none !important;
  }
  body::before {
    background: repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.1),
      rgba(0, 0, 0, 0.1) 1px,
      transparent 1px,
      transparent 2px
    );
  }
}

.tooltip .tooltiptext {
  color: var(--terminal-dark);
  background: var(--terminal-green);
}


@media print {
  .container {
    width: 100%;
    margin: 0 2em;
  }
  *, *:before, *:after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a, a:visited {
    border: 0;
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  a[href^="#"]:after, a[href^="javascript:"]:after {
    content: "";
  }
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
  h2, h3 {
    page-break-after: avoid;
  }
}
