/* ============================================
   derlocke.net Blog Theme
   Based on Kiwi Blog - Compatible with both!
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cantarell:wght@400;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --color-intensity: 50; /* 0-100 slider value */
  --dark-mode: 1; /* Dark mode ON by default */
  
  /* Three main accent colors - ashy/muted tones */
  --color-red: hsl(0, calc(35% + (var(--color-intensity) * 0.3%)), calc(45% + (var(--dark-mode) * 15%)));
  --color-blue: hsl(210, calc(35% + (var(--color-intensity) * 0.3%)), calc(45% + (var(--dark-mode) * 15%)));
  --color-yellow: hsl(45, calc(35% + (var(--color-intensity) * 0.3%)), calc(50% + (var(--dark-mode) * 10%)));
  
  /* Grays */
  --gray-dark: hsl(0, 0%, 12%);
  --gray-medium: hsl(0, 0%, 25%);
  --gray-light: hsl(0, 0%, 75%);
  --gray-lighter: hsl(0, 0%, 90%);
  
  /* Muted text - adapts to light/dark mode */
  --muted-text: hsl(0, 0%, calc(35% + (var(--dark-mode) * 40%)));
  
  /* Content colors based on mode */
  --content-text: hsl(0, 0%, calc(15% + (var(--dark-mode) * 70%)));
  --content-link: var(--color-blue);
  --content-link-hover: hsl(210, 50%, calc(55% + (var(--dark-mode) * 15%)));
  
  /* Header/Footer - always gray */
  --header-bg: hsl(0, 0%, calc(18% - (var(--dark-mode) * 8%)));
  --header-border: hsl(0, 0%, calc(12% - (var(--dark-mode) * 5%)));
  --header-text: hsl(0, 0%, calc(75% + (var(--dark-mode) * 15%)));
  
  /* Background - NOT opaque */
  --bg-color: hsl(0, 0%, calc(95% - (var(--dark-mode) * 85%)));
  
  /* Post/Box styling - opaque backgrounds */
  --box-bg: hsla(0, 0%, calc(98% - (var(--dark-mode) * 88%)), calc(0.75 + (var(--dark-mode) * 0.13)));
  --box-border: hsla(0, 0%, calc(30% + (var(--dark-mode) * 20%)), 0.7);
  --box-shadow: hsla(0, 0%, 0%, calc(0.15 + (var(--dark-mode) * 0.25)));
  
  /* Entry specific - thicker border matching bg */
  --entry-border: hsla(0, 0%, calc(40% + (var(--dark-mode) * 10%)), 0.5);
  --entry-border-width: 4px;
}

/* ============================================
   Base & Background
   ============================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* Account for sticky header */
}

body {
  margin: 0;
  font-family: 'Cantarell', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-color);
  color: var(--content-text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Background image - NOT opaque, normal display */
.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom:  0;
  background-image: url('bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
  pointer-events: none;
}

/* ============================================
   Header / Taskbar - STICKY
   ============================================ */

.taskbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header-bg);
  color: var(--header-text);
  padding: 0 1.5rem;
  height: 52px;
  box-shadow: 0 2px 12px var(--box-shadow);
  border-bottom: 1px solid var(--header-border);
}

/* Shell prompt logo */
.taskbar .logo {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.taskbar .logo a {
  color: var(--header-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.prompt-arrow {
  color: var(--color-blue);
  font-weight: 900;
  font-size: 1.1em;
}

.prompt-cmd {
  color: var(--color-yellow);
  font-weight: 500;
}

.prompt-path {
  color: var(--gray-light);
}

/* Blinking cursor - cycles through 3 colors */
.cursor-blink {
  animation: cursor-color-cycle 3s step-end infinite;
  font-weight: bold;
  margin-left: 2px;
}

@keyframes cursor-color-cycle {
  0%, 100% { 
    color: var(--color-red);
    opacity: 1;
  }
  16.66% { opacity: 0; }
  33.33% { 
    color: var(--color-blue);
    opacity: 1;
  }
  50% { opacity: 0; }
  66.66% { 
    color: var(--color-yellow);
    opacity: 1;
  }
  83.33% { opacity: 0; }
}

/* Menu container - right aligned */
.menu-container {
  position: relative;
  margin-left: auto;
}

.menu-toggle {
  background: transparent;
  border: 1px solid var(--gray-medium);
  color: var(--header-text);
  font-size: 1.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.menu-toggle:hover {
  background: var(--gray-medium);
}

/* Dropdown menu */
.menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--header-bg);
  border: 1px solid var(--header-border);
  border-radius: 8px;
  padding: 0.8rem;
  min-width: 200px;
  box-shadow: 0 8px 24px var(--box-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.menu-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Navigation menu */
.taskbar .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.taskbar .menu li a {
  color: var(--header-text);
  text-decoration: none;
  padding: 0.6em 0.9em;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 0.95rem;
  display: block;
  font-family: 'Cantarell', sans-serif;
}

.taskbar .menu li a:hover {
  background: var(--gray-medium);
  color: var(--gray-lighter);
}

/* Theme controls in dropdown */
.theme-controls {
  border-top: 1px solid var(--header-border);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
}

.theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
}

.theme-label {
  font-size: 0.85rem;
  color: var(--gray-light);
  font-family: 'Cantarell', sans-serif;
}

.dark-mode-toggle {
  background: transparent;
  border: 1px solid var(--gray-medium);
  color: var(--header-text);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.dark-mode-toggle:hover {
  background: var(--gray-medium);
}

/* Hide old mobile toggle */
.mobile-menu-toggle {
  display: none;
}

/* ============================================
   Main Content Area
   ============================================ */

.main-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  padding-bottom: calc(70px + 2rem); /* Space for service dock */
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* ============================================
   Post Navigation Sidebar
   ============================================ */

.post-nav {
  position: fixed;
  left: calc((100vw - 1300px) / 2 - 280px);
  top: 120px;
  width: 260px;
  max-height: min(320px, calc(100vh - 220px));
  background: var(--box-bg);
  border-radius: 12px;
  border: var(--entry-border-width) solid var(--entry-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Adjust position for different screen sizes */
@media (max-width: 1800px) {
  .post-nav {
    left: calc((100vw - 1100px) / 2 - 280px);
  }
}

@media (max-width: 1400px) {
  .post-nav {
    left: calc((100vw - 1000px) / 2 - 280px);
  }
}

.post-nav-header {
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--entry-border);
  background: hsla(0, 0%, 50%, 0.1);
}

.post-nav-title {
  font-family: 'Cantarell', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--content-text);
}

.post-nav-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--entry-border) transparent;
}

.post-nav-list::-webkit-scrollbar {
  width: 6px;
}

.post-nav-list::-webkit-scrollbar-track {
  background: transparent;
}

.post-nav-list::-webkit-scrollbar-thumb {
  background: var(--entry-border);
  border-radius: 3px;
}

.post-nav-item {
  display: block;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.25rem;
  font-family: 'Cantarell', sans-serif;
  font-size: 0.85rem;
  color: var(--content-text);
  opacity: 0.7;
  text-decoration: none;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-nav-item:hover {
  background: hsla(210, 35%, 50%, 0.15);
  color: var(--content-text);
  opacity: 1;
  border-left-color: var(--color-blue);
  text-decoration: none;
}

.post-nav-item.active {
  background: hsla(210, 35%, 50%, 0.2);
  color: var(--color-blue);
  opacity: 1;
  border-left-color: var(--color-blue);
  font-weight: 600;
}

/* Mobile toggle button */
.post-nav-toggle {
  display: none;
  position: fixed;
  left: 1rem;
  top: 120px;
  z-index: 101;
  background: var(--header-bg);
  border: 2px solid var(--entry-border);
  color: var(--header-text);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
  box-shadow: 0 4px 12px var(--box-shadow);
}

.post-nav-toggle:hover {
  background: var(--gray-medium);
  transform: scale(1.05);
}

/* Mobile styles */
@media (max-width: 1200px) {
  .post-nav {
    left: 1rem;
    top: 120px;
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
  }
  
  .post-nav.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .post-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .main-wrapper {
    max-width: none;
  }
}

main {
  max-width: 1000px;
  width: 100%;
  background: var(--box-bg);
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--box-shadow);
  padding: 2.5rem;
  border: var(--entry-border-width) solid var(--entry-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Wider on large screens */
@media (min-width: 1400px) {
  main {
    max-width: 1100px;
    padding: 3rem;
  }
}

@media (min-width: 1800px) {
  main {
    max-width: 1300px;
    padding: 3.5rem;
  }
}

/* ============================================
   Typography & Content
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cantarell', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--content-text);
}

h1 {
  font-size: 2rem;
  border-bottom: 3px solid var(--color-blue);
  padding-bottom: 0.5em;
  margin-top: 0;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2em;
  color: var(--content-text);
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5em;
}

p {
  margin: 1em 0;
  font-family: 'Cantarell', sans-serif;
}

a {
  color: var(--content-link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--content-link-hover);
  text-decoration: underline;
}

/* Code blocks - terminal style */
code {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;
  background: hsla(0, 0%, calc(15% + (var(--dark-mode) * 5%)), 0.9);
  color: hsl(120, 50%, calc(55% + (var(--dark-mode) * 15%)));
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

pre {
  background: hsla(0, 0%, calc(10% + (var(--dark-mode) * 2%)), 0.95);
  border-radius: 8px;
  padding: 1.2em;
  overflow-x: auto;
  border: 2px solid var(--entry-border);
}

pre code {
  background: transparent;
  padding: 0;
  color: hsl(120, 45%, 60%);
}

blockquote {
  border-left: 4px solid var(--color-yellow);
  background: hsla(45, 20%, calc(50% - (var(--dark-mode) * 35%)), 0.15);
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-radius: 0 8px 8px 0;
  font-family: 'Cantarell', sans-serif;
}

blockquote p:first-child {
  margin-top: 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Lists */
ul, ol {
  padding-left: 1.5em;
  font-family: 'Cantarell', sans-serif;
}

li {
  margin: 0.5em 0;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

hr {
  border: none;
  border-top: 2px solid var(--entry-border);
  margin: 2em 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-family: 'Cantarell', sans-serif;
}

th, td {
  padding: 0.75em 1em;
  border: 2px solid var(--entry-border);
  text-align: left;
}

th {
  background: hsla(210, 20%, 50%, 0.2);
  font-weight: 700;
}

tr:nth-child(even) {
  background: hsla(0, 0%, 50%, 0.08);
}

/* ============================================
   Blog Entry Cards - THICK BORDERS
   ============================================ */

.blogentry {
  background: var(--box-bg);
  border: var(--entry-border-width) solid var(--entry-border);
  border-radius: 12px;
  padding: 1.8em;
  margin: 2em 0;
  transition: transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  scroll-margin-top: 70px; /* Account for sticky header when jumping to anchor */
}

.blogentry:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--box-shadow);
}

.blogentry h1 {
  font-size: 1.4rem;
  margin-bottom: 0.5em;
  border-bottom-color: var(--color-red);
}

.blogentry h2 {
  font-size: 1.2rem;
}

/* Pinned post */
.pinned-post {
  background: var(--box-bg);
  border-left: 6px solid var(--color-yellow);
  border-radius: 12px;
  margin: 2em 0;
  padding: 1.5em;
  box-shadow: 0 4px 16px var(--box-shadow);
  border: var(--entry-border-width) solid var(--entry-border);
  border-left-width: 6px;
  border-left-color: var(--color-yellow);
}

.pinned-post strong {
  color: var(--content-text);
  font-size: 1.1em;
}

/* Date styling */
.date {
  color: var(--gray-light);
  font-size: 0.9em;
  font-style: italic;
}

/* ============================================
   Archive Page - Kiwi-blog style
   ============================================ */

.archive-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--box-bg);
  border-radius: 12px;
  border: var(--entry-border-width) solid var(--entry-border);
}

.archive-header h1 {
  border: none;
  margin: 0 0 0.8rem 0;
  font-size: 2rem;
}

.archive-description {
  color: var(--muted-text);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
  font-family: 'Cantarell', sans-serif;
}

.archive-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.archive-year {
  background: var(--box-bg);
  border-radius: 12px;
  padding: 1.5rem;
  border: var(--entry-border-width) solid var(--entry-border);
}

.year-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--entry-border);
}

.year-title {
  margin: 0;
  font-size: 1.5rem;
  color: var(--color-blue);
  font-weight: 700;
}

.post-count {
  background: var(--color-blue);
  color: var(--gray-lighter);
  padding: 0.25em 0.7em;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'Cantarell', sans-serif;
}

.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Archive post link wrapper - makes entire card clickable */
.archive-post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.archive-post {
  display: block;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  background: transparent;
}

.archive-post:hover {
  background: hsla(var(--color-blue), 0.1);
  background: hsla(210, 35%, 50%, 0.12);
  border-left-color: var(--color-blue);
  transform: translateX(4px);
}

.archive-post .post-meta {
  margin-bottom: 0.3rem;
}

.archive-post .post-date {
  color: var(--muted-text);
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
}

.archive-post .post-title {
  margin: 0 0 0.4rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Cantarell', sans-serif;
  color: var(--content-text);
  transition: color 0.2s;
}

.archive-post:hover .post-title {
  color: var(--color-blue);
}

.archive-post .post-preview {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-text);
  font-family: 'Cantarell', sans-serif;
  line-height: 1.5;
  opacity: 0.85;
}

/* ============================================
   Service Dock - Sticky Bottom Bar
   ============================================ */

.service-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--header-bg);
  border-top: 1px solid var(--header-border);
  padding: 0.6rem 1rem;
}

.dock-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.dock-label {
  color: var(--header-text);
  font-size: 0.85rem;
  opacity: 0.7;
  margin-right: 0.5rem;
  font-family: 'Cantarell', sans-serif;
}

.dock-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  background: hsla(0, 0%, 50%, 0.15);
  color: var(--header-text);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.2s;
  border: 1px solid transparent;
  font-family: 'Cantarell', sans-serif;
}

.dock-item:hover {
  background: var(--color-blue);
  color: var(--gray-lighter);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ============================================
   Footer - Above Service Dock
   ============================================ */

footer {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 1.5rem 1rem;
  margin-bottom: 52px; /* Height of service dock */
  border-top: 1px solid var(--header-border);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Cantarell', sans-serif;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--header-text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-blue);
}

.footer-info {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-info a {
  color: var(--color-blue);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .taskbar {
    padding: 0 1rem;
  }

  .taskbar .logo {
    font-size: 0.85rem;
  }

  main {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .main-wrapper {
    padding: 1rem 0.5rem;
    padding-bottom: calc(60px + 1rem);
  }

  h1 {
    font-size: 1.6rem;
  }

  .blogentry {
    padding: 1.2rem;
  }

  .dock-content {
    gap: 0.3rem;
  }

  .dock-item {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }

  .dock-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .taskbar .logo {
    font-size: 0.75rem;
  }

  .prompt-cmd {
    display: none;
  }

  main {
    padding: 1rem;
  }

  .archive-header {
    padding: 1.2rem;
  }

  .year-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .archive-post {
    flex-direction: column;
    gap: 0.3rem;
  }

  .post-date {
    min-width: auto;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .taskbar, .service-dock, footer, .theme-controls, .menu-container {
    display: none;
  }

  .background-layer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  main {
    box-shadow: none;
    border: none;
    max-width: none;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Category tags (optional) */
.tag {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 0.3rem;
  font-family: 'Cantarell', sans-serif;
}

.tag-linux { background: hsla(0, 35%, 45%, 0.25); color: var(--color-red); }
.tag-cannabis { background: hsla(120, 35%, 45%, 0.25); color: hsl(120, 40%, 50%); }
.tag-personal { background: hsla(280, 35%, 45%, 0.25); color: hsl(280, 40%, 55%); }
.tag-networking { background: hsla(210, 35%, 45%, 0.25); color: var(--color-blue); }

/* ============================================
   Transparency Page
   ============================================ */

.transparency-page h1 {
  margin-bottom: 1rem;
}

.transparency-intro {
  background: hsla(210, 35%, 50%, 0.1);
  border-left: 4px solid var(--color-blue);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 8px 8px 0;
}

.transparency-intro p {
  margin: 0;
}

.transparency-status {
  margin-bottom: 2rem;
}

.status-loading,
.status-verified,
.status-error {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
}

.status-loading {
  background: hsla(45, 35%, 50%, 0.15);
}

.status-verified {
  background: hsla(120, 35%, 45%, 0.15);
  border: 2px solid hsla(120, 45%, 45%, 0.3);
}

.status-error {
  background: hsla(0, 35%, 45%, 0.15);
  border: 2px solid hsla(0, 45%, 45%, 0.3);
}

.status-icon {
  font-size: 2rem;
}

.status-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.status-text strong {
  font-size: 1.1rem;
}

.status-text span {
  opacity: 0.8;
  font-size: 0.9rem;
}

.loading-spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.deployment-info {
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item {
  background: var(--box-bg);
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid var(--entry-border);
}

.info-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.5rem;
  font-family: 'Cantarell', sans-serif;
}

.info-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
}

.info-value code {
  background: hsla(0, 0%, 50%, 0.15);
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-verify {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: hsla(210, 35%, 50%, 0.2);
  color: var(--content-text);
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid var(--color-blue);
  font-family: 'Cantarell', sans-serif;
  transition: all 0.2s;
}

.btn-verify:hover {
  background: hsla(210, 35%, 50%, 0.35);
  transform: translateY(-1px);
}

.file-list {
  margin-bottom: 2rem;
}

.file-table {
  border: 2px solid var(--entry-border);
  border-radius: 8px;
  overflow: hidden;
}

.file-header {
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  padding: 0.75rem 1rem;
  background: hsla(0, 0%, 50%, 0.1);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-family: 'Cantarell', sans-serif;
}

.file-row {
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--entry-border);
  font-size: 0.9rem;
}

.file-row:hover {
  background: hsla(210, 35%, 50%, 0.08);
}

.file-path {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-path code {
  background: none;
  padding: 0;
}

.file-hash code {
  font-size: 0.8rem;
  opacity: 0.8;
}

.file-size {
  text-align: right;
  opacity: 0.7;
}

.file-count {
  text-align: center;
  opacity: 0.7;
  margin-top: 1rem;
}

.verify-instructions {
  background: var(--box-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--entry-border);
  margin-bottom: 2rem;
}

.verify-instructions h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.verify-instructions h3:first-child {
  margin-top: 0;
}

.verify-instructions pre {
  margin: 0.75rem 0;
}

.verify-instructions ol {
  padding-left: 1.5rem;
}

.verify-instructions li {
  margin-bottom: 0.75rem;
}

.why-matters {
  margin-bottom: 2rem;
}

.why-matters ul {
  padding-left: 1.5rem;
}

.why-matters li {
  margin-bottom: 0.5rem;
}

.gpg-key {
  background: var(--box-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--entry-border);
}

.gpg-key pre {
  max-height: 150px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .file-header,
  .file-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .file-header span:not(:first-child),
  .file-size {
    display: none;
  }
  
  .file-hash {
    font-size: 0.75rem;
  }
  
  .source-links {
    flex-direction: column;
  }
  
  .btn-verify {
    justify-content: center;
  }
}

/* ============================================
   Tag Filter System
   ============================================ */

.tag-filter {
  background: var(--box-bg);
  border-radius: 12px;
  border: var(--entry-border-width) solid var(--entry-border);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tag-filter-header {
  margin-bottom: 0.8rem;
}

.tag-filter-title {
  font-family: 'Cantarell', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--content-text);
}

.tag-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--entry-border);
  border-radius: 20px;
  background: transparent;
  color: var(--content-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-btn:hover {
  background: hsla(210, 35%, 50%, 0.15);
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.tag-btn.active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: white;
}

/* Filtered state for posts */
.blogentry.tag-hidden {
  display: none !important;
}

.post-nav-item.tag-hidden {
  display: none !important;
}

.archive-post-link.tag-hidden {
  display: none !important;
}

/* Hide year sections with no visible posts */
.archive-year.tag-hidden {
  display: none !important;
}

/* Tag display in posts (rendered from markdown) */
.blogentry p strong:first-child {
  font-family: 'Cantarell', sans-serif;
}

/* Archive post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-left: auto;
}

.archive-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: hsla(210, 35%, 50%, 0.15);
  border: 1px solid var(--entry-border);
  border-radius: 12px;
  color: var(--color-blue);
}

/* Mobile adjustments for tag filter */
@media (max-width: 768px) {
  .tag-filter {
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .tag-filter-buttons {
    gap: 0.4rem;
  }
  
  .tag-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
}
