@import url('https://fonts.googleapis.com/css2?family=Bitcount+Single:wght@100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
  /* Gruvbox Dark Hard Colors */
  --bg-main: #1d2021;
  /* Deep charcoal background */
  --bg-surface: #282828;
  /* Content card canvas background */
  --border-soft: #3c3836;
  /* Hard contrast dividing line layer */

  --text-head: #fbf1c7;
  /* Bright cream */
  --text-body: #ebdbb2;
  /* Neutral soft cream text */
  --text-muted: #928374;
  /* Slate grey metadata */

  --accent: #83a598;
  /* Logo & active highlight light blue */
  --accent-hover: #8ec07c;
  /* Soft aqua for links */
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  line-height: 1.6;
}

/* Vertical Core Container Frame */
.site-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

/* Header Elements Grouping */
.site-header {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  font-family: "Bitcount Single", system-ui;
  font-size: 48px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -1px;
  margin-bottom: 15px;
}

/* The Fixed Width Center Box Architecture */
.navbar {
  display: flex;
  justify-content: center;
  gap: 24px;
  max-width: 850px;
  margin: 0 auto;
  padding-bottom: 10px;
}

.nav-link {
  color: var(--text-success);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s ease-in-out;
}

.nav-link:hover {
  color: var(--accent-hover);
}

/* Main Block Centering Card */
.main-content-card {
  /* background-color: var(--bg-surface); */
  /* border: 1px solid var(--border-soft); */
  /* border-radius: 4px; */
  width: 100%;
  max-width: 600px;
  /* Centered Box Grid Spec */
  margin: 0 auto;
  padding: 8px;
  /* Pushes Footer Down */
}

.hero-view {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  text-align: center;
  gap: 20px
}

.hero-image {
  height: 100px;
  width: 100px;
}

/* Footer Section formatting */
.site-footer {
  max-width: 800px;
  width: 100%;
  margin: 40px auto 0 auto;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-divider {
  height: 1px;
  background-color: var(--border-soft);
  margin-bottom: 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-socials a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 15px;
}

.footer-socials a:hover {
  color: var(--accent-hover);
}


.lofi-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-weight: 500;
}

.lofi-btn:hover {
  color: var(--text-head);
}

.skip-btn {
  color: var(--text-muted);
  transition: color 0.1s ease-in-out;
}

.skip-btn:hover {
  color: var(--accent);
  /* Light up when hovered to match selection focus states */
}

/* --- Content & Blog Index Grid Architecture --- */
.content-list-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: start;

  width: 600px;
  align-items: center;
  font-size: 16px;
  color: var(--text-head);
  margin-top: 0;
  margin-bottom: 25px;
  font-weight: 600;
}

.index-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.index-item {
  border-bottom: 1px dashed var(--border-soft);
  padding-bottom: 20px;
}

.index-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.item-date {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 5px;
}

.index-item h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.index-item h3 a {
  color: var(--text-head);
  text-decoration: none;
}

.index-item h3 a:hover {
  color: var(--accent);
}

.index-item p {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
}

/* Tag Management Row layout styling */
.tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-flag {
  font-size: 11px;
  background-color: var(--tag-bg);
  color: #fabd2f;
  /* Gruvbox Warm Yellow Accents */
  padding: 2px 6px;
  border-radius: 3px;
  text-decoration: none;
}

.tag-flag:hover {
  background-color: var(--border-soft);
}

/* --- Full Document Reading View Layout --- */
.reading-view h1 {
  color: var(--text-head);
  font-size: 22px;
}

.console-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
}

.console-link:hover {
  color: var(--text-head);
}

.markdown-body {
  line-height: 1.6;
  font-size: 14px;
}

.markdown-body p {
  margin: 15px 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  color: var(--text-head);
  margin-top: 25px;
  margin-bottom: 10px;
}