:root {
  --font-mono: "courier new", courier, monospace;
  --bg-color: #ffffff;
  --text-color: #000000;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-color);
  background-color: var(--bg-color);
  padding: 20px;
  max-width: 800px;
  margin: 0 auto; /* restored centering */
  min-height: 100vh;
}

/* ascii art specifics */
pre {
  font-family: var(--font-mono);
  font-size: 0.4rem; /* maintained 0.4rem */
  line-height: 1;
  letter-spacing: -1px;
  font-weight: bold;
  overflow-x: auto;
  margin-bottom: 40px;
  white-space: pre;
  background: var(--bg-color);
  display: inline-block;
  padding: 10px;
  border: none;
}

/* raw links */
a {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  background: var(--bg-color);
}

a:hover {
  background-color: #000;
  color: #fff;
  text-decoration: none;
}

/* logo link specifics */
.logo-link:hover {
  background-color: transparent !important;
  color: inherit !important;
}

/* navigation */
nav {
  margin-bottom: 10px;
  border-bottom: 1px dashed #000;
  padding-bottom: 10px;
  background: var(--bg-color);
}

nav a {
  margin-right: 20px;
}

nav a::before {
  content: "[";
  margin-right: 5px;
}

nav a::after {
  content: "]";
  margin-left: 5px;
}

/* headers */
h1 {
  font-size: 11px;
  font-weight: normal;
  margin-bottom: 20px;
  border-bottom: 1px solid #000;
  display: inline-block;
  padding-right: 0;
  background: var(--bg-color);
  margin-top: 0;
}

h2 {
  font-size: 14px;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 10px;
  text-decoration: underline;
  background: var(--bg-color);
}

/* lists */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  margin-bottom: 5px;
  background: var(--bg-color);
}

/* work list specifics */
ul li a {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

ul li a:hover {
  background-color: transparent; /* reset global hover */
  color: inherit; /* reset global hover */
}

ul li a:hover span:first-child {
  background-color: #000;
  color: #fff;
}

/* images */
img {
  max-width: 100%;
  height: auto;
  border: 1px solid #000;
  margin: 20px 0;
  display: block;
  background: var(--bg-color);
}

/* definition lists */
dl {
  margin-bottom: 20px;
  background: var(--bg-color);
}

dt {
  float: left;
  clear: left;
  width: 120px;
  font-weight: bold;
}

dd {
  margin-left: 120px;
  margin-bottom: 5px;
}

/* ascii separator */
hr {
  border: 0;
  border-bottom: 1px dashed #000;
  margin: 40px 0;
}

/* blockquote / code look */
blockquote {
  border-left: 2px solid #000;
  margin: 20px 0;
  padding-left: 20px;
  font-style: italic;
  background: var(--bg-color);
}

/* footer */
footer {
  margin-top: 60px;
  border-top: 1px double #000; /* double line using border-style */
  padding-top: 20px;
  background: var(--bg-color);
}

/* utility */
.ascii-box {
  border: 1px solid #000;
  padding: 10px;
  margin-bottom: 20px;
  background: var(--bg-color);
}

.blink {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

/* hud styles */
#hud {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-color);
  border: none;
  padding: 5px 10px;
  z-index: 1000;
  display: flex;
  gap: 15px;
  pointer-events: none;
}

#hud span {
  white-space: nowrap;
}
