@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  background: #0a0a0a;
  background-image: 
    repeating-linear-gradient(0deg, rgba(168, 168, 168, 0.02) 0px, transparent 1px, transparent 2px, rgba(168, 168, 168, 0.02) 3px),
    repeating-linear-gradient(90deg, rgba(168, 168, 168, 0.02) 0px, transparent 1px, transparent 2px, rgba(168, 168, 168, 0.02) 3px);
  color: #a8a8a8;
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh;
  position: relative;
}

/* Global link styles - override browser defaults */
a:link,
a:link:visited {
  color: #b8b8b8 !important;
  text-decoration: underline;
}

a:visited {
  color: #989898 !important;
  text-decoration: underline;
}

a:hover {
  color: #d0d0d0 !important;
  text-decoration: underline;
}

a:active {
  color: #c0c0c0 !important;
}

/* Ensure all links use gray colors */
a {
  color: #b8b8b8 !important;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(168, 168, 168, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 168, 168, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

header {
  border-bottom: 2px solid #888888;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.site-title {
  font-size: 14px;
  color: #a8a8a8;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.site-title-large {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.tagline {
  font-size: 12px;
  color: #a8a8a8;
  opacity: 0.8;
}

.contact-link {
  font-size: 14px;
  color: #b8b8b8 !important;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-link:visited {
  color: #989898 !important;
}

.contact-link:hover {
  color: #d0d0d0 !important;
  text-decoration: underline;
}

nav {
  border-top: 1px solid #888888;
  border-bottom: 1px solid #888888;
  padding: 10px 0;
  margin: 10px 0;
}

nav a {
  color: #b8b8b8 !important;
  text-decoration: none;
  text-transform: uppercase;
  margin-right: 20px;
  font-size: 14px;
  letter-spacing: 1px;
}

nav a:visited {
  color: #989898 !important;
}

nav a:hover {
  color: #d0d0d0 !important;
  text-decoration: underline;
}

main {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 50px;
  margin-top: 40px;
  padding-top: 20px;
}

.content {
  min-width: 0;
  max-width: 100%;
  padding-right: 20px;
  line-height: 1.8;
}

.content > * + * {
  margin-top: 0;
}

.content section {
  margin-bottom: 50px;
  padding-bottom: 30px;
}

.content hr {
  border: none;
  border-top: 2px solid #666666;
  margin: 60px 0;
  opacity: 0.5;
  width: 100%;
}

.content em {
  color: #888888;
  font-style: normal;
  display: block;
  margin-bottom: 25px;
  font-size: 13px;
  letter-spacing: 1px;
}

.content blockquote {
  border-left: 4px solid #888888;
  padding-left: 20px;
  margin: 25px 0;
  padding-top: 10px;
  padding-bottom: 10px;
  font-style: italic;
  color: #c0c0c0;
  background: rgba(136, 136, 136, 0.05);
}

.content > * {
  margin-bottom: 20px;
}

.content > *:last-child {
  margin-bottom: 0;
}

.post-title {
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: #a8a8a8;
}

.post-date {
  font-size: 14px;
  color: #a8a8a8;
  opacity: 0.8;
  margin-bottom: 20px;
}

.post-content {
  font-size: 14px;
  line-height: 1.8;
  color: #a8a8a8;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #a8a8a8;
}

.post-content h2,
.content h2 {
  font-size: 20px;
  border-bottom: 2px solid #888888;
  padding-bottom: 10px;
  margin-top: 60px;
  margin-bottom: 30px;
  scroll-margin-top: 20px;
  font-weight: bold;
  letter-spacing: 2px;
}

.content h2:first-of-type {
  margin-top: 30px;
}

.content h3 {
  font-size: 16px;
  margin-top: 35px;
  margin-bottom: 20px;
  color: #d0d0d0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  border-left: 3px solid #888888;
  padding-left: 15px;
}

.post-content p,
.content p {
  margin-bottom: 20px;
  line-height: 1.8;
  max-width: 100%;
}

.post-content a,
.content a {
  color: #b8b8b8 !important;
  text-decoration: underline;
}

.post-content a:visited,
.content a:visited {
  color: #989898 !important;
}

.post-content a:hover,
.content a:hover {
  color: #d0d0d0 !important;
  background-color: rgba(136, 136, 136, 0.2);
}

.post-content ul,
.post-content ol,
.content ul,
.content ol {
  margin-left: 0;
  margin-bottom: 30px;
  margin-top: 20px;
  list-style: none;
  padding-left: 0;
}

.post-content li,
.content li {
  margin-bottom: 16px;
  padding-left: 30px;
  position: relative;
  line-height: 2;
  padding-top: 4px;
  padding-bottom: 4px;
}

.post-content li::before,
.content li::before {
  content: '> ';
  position: absolute;
  left: 0;
  color: #c0c0c0;
  font-weight: bold;
}

.post-content li strong,
.content li strong {
  color: #d0d0d0;
  font-weight: bold;
}

.sidebar {
  font-size: 12px;
}

.keywords {
  position: sticky;
  top: 20px;
}

.keywords-title {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #a8a8a8;
}

.keyword {
  color: #a8a8a8;
  margin-bottom: 8px;
  line-height: 1.6;
}

.keyword::before {
  content: '+ ';
}

.keyword a {
  color: #b8b8b8 !important;
  text-decoration: none;
}

.keyword a:visited {
  color: #989898 !important;
}

.keyword a:hover {
  text-decoration: underline;
  color: #d0d0d0 !important;
}

.home-title,
.content h1 {
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 30px;
  margin-top: 20px;
  color: #d0d0d0;
  font-weight: bold;
  border-bottom: 3px solid #888888;
  padding-bottom: 15px;
}

.home-links p a,
.content p a[href*="/blog"],
.content p a[href*="/about"] {
  color: #c0c0c0;
  text-decoration: none;
  font-size: 18px;
  display: inline-block;
  margin: 15px 10px 15px 0;
  padding: 10px 20px;
  border: 1px solid #888888;
  transition: all 0.3s ease;
}

.home-links p a,
.content p a[href*="/blog"],
.content p a[href*="/about"] {
  color: #b8b8b8 !important;
}

.home-links p a:visited,
.content p a[href*="/blog"]:visited,
.content p a[href*="/about"]:visited {
  color: #989898 !important;
}

.home-links p a:hover,
.content p a[href*="/blog"]:hover,
.content p a[href*="/about"]:hover {
  background-color: rgba(136, 136, 136, 0.3);
  color: #d0d0d0 !important;
  border-color: #b8b8b8;
}

.home-content {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.posts-list {
  list-style: none;
  margin-top: 30px;
}

.posts-list li {
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
}

.posts-list li::before {
  content: '> ';
  position: absolute;
  left: 0;
  color: #a8a8a8;
}

.posts-list a {
  color: #b8b8b8 !important;
  text-decoration: none;
  font-size: 14px;
}

.posts-list a:visited {
  color: #989898 !important;
}

.posts-list a:hover {
  text-decoration: underline;
  color: #d0d0d0 !important;
}

.post-meta {
  font-size: 12px;
  color: #a8a8a8;
  opacity: 0.7;
  margin-left: 10px;
}

footer {
  border-top: 2px solid #888888;
  margin-top: 50px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 16px;
  font-weight: bold;
  color: #a8a8a8;
  margin-bottom: 5px;
}

.footer-subtitle {
  font-size: 12px;
  color: #a8a8a8;
  opacity: 0.7;
}

.footer-right {
  font-size: 12px;
  color: #a8a8a8;
  text-align: right;
  line-height: 1.6;
}

/* Retro scanline effect */
@keyframes scanline {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100vh);
  }
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(168, 168, 168, 0.08);
  animation: scanline 8s linear infinite;
  pointer-events: none;
  z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    margin-top: 40px;
  }
  
  header {
    text-align: center;
  }
  
  .header-top {
    flex-direction: column;
    align-items: center;
  }
}

