:root {
  --primary-color: #3b82f6;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-light: #f9fafb;
}

body {
  margin: 0;
  background-color: var(--bg-light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Header Section --- */
.main {
  background-image: radial-gradient(#4370a3 1px, transparent 1px);
  background-size: 30px 30px;
  padding: 100px 20px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}
.footer-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  background-color: white;
}

.main-content { 
  max-width: 800px;
  margin: 0 auto;
}

.main-title {
  font-size: 3rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.main-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.main-subtitle span {
  color: var(--primary-color);
  font-weight: 600;
}

/* --- Previews Section --- */
.previews {
  padding: 4rem 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.preview-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.preview-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.preview-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 600;
}

.card-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-pill {
  background-color: #f3f4f6;
  color: #4b5563;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  border: 1px solid #e5e7eb;
}

.card-arrow {
  color: var(--text-muted);
  font-size: 1.5rem;
  font-weight: 300;
  transition: all 0.2s ease;
  padding-left: 1rem;
}

.preview-card:hover .card-arrow {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Individual tag colours */
.tech-python { background-color: #33976b; color: white; }
.tech-discord-api { background-color: #339; color: white; }
.tech-fedora { background-color: #33476b; color: white; }
.tech-arch { background-color: #334; color: white; }
.tech-docker { background-color: #33767b; color: white; }
.tech-linux { background-color: #6b9920; color: white; }
.tech-proxmox { background-color: #bf4e24; color: white; }
.tech-nginx { background-color: #3e2661; color: white; }
.tech-lxc { background-color: #99693f; color: white; }
.tech-portainer { background-color: #344661; color: white; }
.tech-clamav { background-color: #99433f; color: white; }
.tech-openssl { background-color: #3f994f; color: white; }
.tech-sway, .tech-samba { background-color: #2c5c35; color: white; }
.tech-hyprland, .tech-nextcloud { background-color: #61b3b8; color: white; }
.tech-tailscale, .tech-vpn { background-color: #2d797d; color: white; }
.tech-openwrt { background-color: #7d2d6e; color: white; }
.tech-raspberry-pi { background-color: #d42424; color: white; }
.tech-networking, .tech-vlan { background-color: #d4bf24; color: white; }
.tech-silverbullet { background-color: #a3a295; color: white; }


/* Markdown */
.blog-title{
  font-size: 3rem;
  color:  #eeeeee;
  margin-bottom: 10px;
  

  letter-spacing: -0.02em;

  
}
.blog-post{
  color: #ffffff;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 30px 30px;
  background-color: #3c4d61;
}
.markdown-container{
  color: #ffffff; 
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 20px;
  background-color: #3c4d61;
}

.markdown-container code {
  background-color: #323f4d;
  color: #ffffff;
}
.markdown-container img {
    max-width: 100%;    /* Prevents the image from being wider than the post */
    height: auto;       /* Maintains aspect ratio */
    display: block;     /* Removes bottom whitespace/line-height issues */
    margin: 1.5rem auto; /* Centers the image and adds vertical spacing */
    border-radius: 8px; /* Optional: matches a clean, modern aesthetic */
}
