/* ========================================
   BIOLUMINESCENT OCEAN NIGHT THEME
   Under the stars, beneath the waves
   ======================================== */

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gradient-top: #0a0e27;
  --gradient-mid: #0d1b2a;
  --gradient-bottom: #05101c;
  --deep-ocean: #041018;
  --accent-cyan: #00f5ff;
  --accent-cyan-light: #5ffbff;
  --accent-cyan-dark: #00c4cc;
  --accent-teal: #00ffa3;
  --accent-purple: #a78bfa;
  --text-primary: #e0f4ff;
  --text-secondary: #b8d9f0;
  --text-muted: #7a9cb5;
  --glow-cyan: rgba(0, 245, 255, 0.4);
  --glow-teal: rgba(0, 255, 163, 0.3);
  --glow-blue: rgba(0, 119, 255, 0.3);
}

html {
  scroll-behavior: smooth;
}

/* Base image styling */
img {
  border-radius: 10px;
  opacity: 0.87;
  border: 1px solid rgba(0, 245, 255, 0.2);
  padding: 8px;
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.08) 0%,
    rgba(0, 119, 255, 0.04) 100%
  );

  /* Responsive behaviour for all images */
  max-width: 100%;
  height: auto;
  display: block;
}

/* For images you explicitly want untouched (if any) */
img.unaltered {
  border-radius: 10px;
  opacity: 1;
  border: none;
  padding: 0;
  background: none;
}

/* Bio images used throughout the bio page */
img.bioimg {
  margin-top: 2rem;
}

div.links {
  font-size: 0.9rem;
}

/* === PAGE BACKGROUND & GLOW LAYERS === */
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, #a0c4ff, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent),
    radial-gradient(2px 2px at 15% 90%, white, transparent),
    linear-gradient(
      180deg,
      var(--gradient-top) 0%,
      var(--gradient-mid) 40%,
      var(--gradient-bottom) 100%
    );
  background-size: 200% 200%;
  animation: subtleShift 60s ease-in-out infinite;
  z-index: 0;
}

.page-glow {
  position: fixed;
  width: 100%;
  height: 40%;
  pointer-events: none;
  z-index: 1;
}

.page-glow--top {
  top: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    var(--glow-cyan) 0%,
    transparent 60%
  );
  opacity: 0.3;
  animation: bioluminescentPulse 8s ease-in-out infinite;
}

.page-glow--bottom {
  bottom: 0;
  background: radial-gradient(
    ellipse at 50% 100%,
    var(--glow-teal) 0%,
    transparent 60%
  );
  opacity: 0.25;
  animation: bioluminescentPulse 8s ease-in-out infinite 4s;
}

@keyframes subtleShift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

@keyframes bioluminescentPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

body {
  font-family: 'Zilla Slab', serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background: transparent;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Bioluminescent particles overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 15% 20%, var(--glow-cyan) 0%, transparent 25%),
    radial-gradient(circle at 85% 80%, var(--glow-teal) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, var(--glow-blue) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(167, 139, 250, 0.15) 0%, transparent 35%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  animation: bioluminescentPulse 8s ease-in-out infinite;
}

blockquote {
  border-left: 4px solid #ccc;
  padding-left: 10px;
  margin-left: 20px;
  font-style: italic;
}

/* === LAYOUT SHELL (Boz-style: left nav, center content) === */
.layout-shell {
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  position: relative;
  z-index: 10;
}

/* === HEADER / LEFT NAV COLUMN (no box, narrower) === */
.site-header {
  position: sticky;
  top: 2rem;
  align-self: flex-start;
  width: 170px; /* about half the previous width */
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header-inner {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* === SITE TITLE IN SIDEBAR === */
.site-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.site-title-text {
  color: var(--accent-cyan-light);
  text-shadow:
    0 0 10px var(--glow-cyan),
    0 0 20px var(--glow-cyan),
    0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.site-title:hover .site-title-text {
  color: var(--accent-cyan);
  text-shadow:
    0 0 15px var(--glow-cyan),
    0 0 30px var(--glow-cyan),
    0 0 45px rgba(0, 245, 255, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.6);
}

/* === NAVIGATION (VERTICAL IN SIDEBAR, NO BOX) === */
.site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

/* Base nav pill styles */
.nav-pill {
  position: relative;
  padding: 0.45rem 0.1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.nav-pill:hover {
  color: var(--accent-cyan-light);
  transform: translateX(3px);
}

.nav-pill:active {
  transform: translateX(1px);
}

/* Primary nav pill (Home) – emphasize via underline/glow, not box */
.nav-pill-primary {
  color: var(--accent-teal);
  font-weight: 600;
}

.nav-pill-primary::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 110%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-teal),
    var(--accent-cyan)
  );
  box-shadow: 0 0 12px var(--glow-teal);
}

/* Header search field */
.nav-search-wrapper {
  position: relative;
  margin-top: 0.5rem;
  width: 100%;
}

.nav-search-input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  font-family: 'Zilla Slab', serif;
  color: var(--text-primary);
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.08) 0%,
    rgba(0, 119, 255, 0.04) 100%
  );
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 6px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(0, 245, 255, 0.1);
}

.nav-search-input::placeholder {
  color: var(--text-muted);
}

.nav-search-input:focus {
  border-color: rgba(0, 245, 255, 0.5);
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.12) 0%,
    rgba(0, 119, 255, 0.06) 100%
  );
  box-shadow:
    0 0 20px var(--glow-cyan),
    0 0 0 2px rgba(0, 245, 255, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(0, 245, 255, 0.15);
}

/* Dropdown container */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  padding-left: 0;
}

.nav-dropdown-label {
  display: inline-block;
}

.nav-dropdown-caret {
  display: inline-block;
  font-size: 0.8em;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown.active .nav-dropdown-caret {
  transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  max-height: 400px;
  overflow-y: auto;
  background: linear-gradient(
    135deg,
    rgba(10, 14, 39, 0.98) 0%,
    rgba(13, 27, 42, 0.95) 100%
  );
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow:
    0 0 40px var(--glow-cyan),
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(0, 245, 255, 0.2);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

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

/* Scrollbar styling for dropdown */
.nav-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.nav-dropdown-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.nav-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 255, 0.3);
  border-radius: 3px;
}

.nav-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 255, 0.5);
}

/* Dropdown menu items */
.nav-dropdown-menu a {
  display: block;
  padding: 0.7rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.nav-dropdown-menu a:hover {
  color: var(--accent-cyan-light);
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.15) 0%,
    rgba(0, 119, 255, 0.08) 100%
  );
  border-left-color: var(--accent-cyan);
  padding-left: 1.2rem;
  text-shadow: 0 0 8px var(--glow-cyan);
}

.nav-dropdown-menu a.active {
  color: var(--accent-cyan);
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.2) 0%,
    rgba(0, 255, 163, 0.1) 100%
  );
  border-left-color: var(--accent-teal);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

/* === MAIN CONTENT COLUMN (centered bubble) === */
.site-main {
  flex: 1;
  min-width: 0;
  padding: 0 0 2rem 0;
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 300px);
}

/* === TYPOGRAPHY === */
h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.5rem 0 1.2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 2rem 0 1rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-cyan-light);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--accent-teal);
  border-bottom-color: var(--accent-teal);
  text-shadow: 0 0 8px var(--glow-teal);
}

/* === INDEX PAGE WRAPPER (limit width of listing) === */
.index-section {
  max-width: 860px;
  margin: 0 0 0 5%;
}

.index-inner {
  max-width: 860px; /* similar to article width */
  margin: 0 auto;
}

/* === POST CARDS (INDEX) === */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.post-card {
  position: relative;
  padding: 2rem;
  background: linear-gradient(
    145deg,
    rgba(0, 245, 255, 0.06) 0%,
    rgba(0, 119, 255, 0.03) 100%
  );
  border-radius: 16px;
  border: 1px solid rgba(0, 245, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(0, 245, 255, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-cyan),
    var(--accent-teal),
    transparent
  );
  border-radius: 16px 16px 0 0;
  opacity: 0;
  box-shadow: 0 0 15px var(--glow-cyan);
  transition: opacity 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 30px var(--glow-cyan),
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 245, 255, 0.3),
    inset 0 1px 0 rgba(0, 245, 255, 0.2);
}

.post-card:hover::before {
  opacity: 1;
}

.post-card-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.post-card-title a {
  color: var(--text-primary);
  border: none;
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: var(--accent-cyan-light);
  text-shadow: 0 0 10px var(--glow-cyan);
}

.post-card-meta {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.3px;
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.3);
}

.post-card-preview {
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--deep-ocean);
  background: linear-gradient(
    135deg,
    var(--accent-teal) 0%,
    var(--accent-cyan) 100%
  );
  border-radius: 6px;
  border: none;
  box-shadow:
    0 0 15px var(--glow-teal),
    0 2px 8px rgba(0, 255, 163, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  align-self: flex-end;
}

.read-more:hover {
  background: linear-gradient(
    135deg,
    var(--accent-cyan) 0%,
    var(--accent-cyan-dark) 100%
  );
  box-shadow:
    0 0 25px var(--glow-cyan),
    0 4px 12px rgba(0, 245, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
  color: white;
}

.read-more:active {
  transform: translateY(0);
  box-shadow:
    0 0 12px var(--glow-cyan),
    0 1px 4px rgba(0, 245, 255, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* === ARTICLE PAGE (centered bubble) === */
.article {
  background: linear-gradient(
    145deg,
    rgba(0, 245, 255, 0.05) 0%,
    rgba(0, 119, 255, 0.02) 100%
  );
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 245, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(0, 245, 255, 0.1);
  backdrop-filter: blur(10px);

  max-width: 860px;
  margin: 0 0 0 5%;
}

/* Optional wrapper if you ever use it */
.article-with-margin {
  max-width: 1400px;
  margin: -200 auto;
  position: relative;
}

.article-content {
  margin-top: 2rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: 0 auto;
}

.article-content > *:first-child {
  margin-top: 0;
}

/* === SIDENOTES / MARGIN NOTES === */
.sidenote,
.marginnote {
  position: absolute;
  right: -280px;
  width: 250px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.08) 0%,
    rgba(0, 119, 255, 0.04) 100%
  );
  border-left: 2px solid rgba(0, 245, 255, 0.3);
  border-radius: 8px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(0, 245, 255, 0.1);
  backdrop-filter: blur(10px);
  margin-top: -0.5rem;
}

.sidenote-number,
.marginnote-label {
  display: inline-block;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-right: 0.3rem;
  text-shadow: 0 0 8px var(--glow-cyan);
}

/* Sidenote reference in text */
.sidenote-ref {
  display: inline;
  position: relative;
  vertical-align: baseline;
}

.sidenote-ref label {
  cursor: pointer;
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: super;
  text-shadow: 0 0 8px var(--glow-cyan);
  transition: all 0.2s ease;
  user-select: none;
}

.sidenote-ref label:hover {
  color: var(--accent-cyan-light);
  text-shadow: 0 0 12px var(--glow-cyan);
}

/* Hide checkbox */
.sidenote-ref input[type="checkbox"] {
  display: none;
}

/* Mobile: sidenotes appear inline when checkbox is checked */
@media (max-width: 1200px) {
  .sidenote,
  .marginnote {
    display: none;
    position: relative;
    right: auto;
    width: auto;
    margin: 1rem 0;
    max-width: 100%;
  }

  .sidenote-ref input[type="checkbox"]:checked + .sidenote {
    display: block;
  }

  .article-content {
    max-width: 100%;
  }
}

/* Desktop: always show sidenotes, ignore checkbox */
@media (min-width: 1201px) {
  .sidenote,
  .marginnote {
    display: block !important;
  }

  .sidenote-ref input[type="checkbox"] {
    display: none;
  }
}

/* Margin notes without numbers */
.marginnote {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 163, 0.08) 0%,
    rgba(0, 119, 255, 0.04) 100%
  );
  border-left-color: rgba(0, 255, 163, 0.3);
}

.article-meta {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
  padding: 0;
  background: transparent;
  border-left: none;
  border-radius: 0;
  display: inline-block;
  box-shadow: none;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.3px;
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.3);
}

/* === TABLE OF CONTENTS === */
.article-toc {
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.1) 0%,
    rgba(0, 255, 163, 0.05) 100%
  );
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 255, 0.25);
  margin: 2rem 0;
  box-shadow:
    0 0 25px rgba(0, 245, 255, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(0, 245, 255, 0.15);
}

.article-toc-title {
  font-weight: 700;
  color: var(--accent-cyan-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  text-shadow: 0 0 10px var(--glow-cyan);
}

.article-toc ol {
  list-style: none;
  counter-reset: toc-counter;
  padding-left: 0;
}

.article-toc li {
  counter-increment: toc-counter;
  margin: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
}

.article-toc li::before {
  content: counter(toc-counter) ".";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: 600;
  text-shadow: 0 0 8px var(--glow-teal);
}

.article-toc a {
  color: var(--text-secondary);
  border: none;
  transition: all 0.2s ease;
}

.article-toc a:hover {
  color: var(--accent-cyan-light);
  padding-left: 0.5rem;
  text-shadow: 0 0 8px var(--glow-cyan);
}

.article-toc ol ol {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

/* === SHARE BLOCK === */
.share-block {
  margin-top: 3rem;
}

.share-block-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-buttons a {
  padding: 0.7rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  background: linear-gradient(
    145deg,
    rgba(0, 245, 255, 0.12) 0%,
    rgba(0, 119, 255, 0.08) 100%
  );
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(0, 245, 255, 0.15);
}

.share-buttons a:hover {
  background: linear-gradient(
    145deg,
    rgba(0, 245, 255, 0.2) 0%,
    rgba(0, 255, 163, 0.12) 100%
  );
  border-color: rgba(0, 245, 255, 0.4);
  color: var(--accent-cyan-light);
  box-shadow: 
    0 0 20px var(--glow-cyan),
    0 4px 12px rgba(0, 245, 255, 0.3),
    inset 0 1px 0 rgba(0, 245, 255, 0.25);
  transform: translateY(-2px);
}

.share-buttons a:active {
  transform: translateY(0);
  box-shadow: 
    0 1px 4px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.share-icon {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan-light);
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.15s ease, transform 0.15s ease, text-shadow 0.15s ease;
}

.share-icon:hover {
  opacity: 1;
  transform: translateX(-2px);
  text-shadow: 0 0 10px var(--glow-cyan);
}

/* All share variants share same accent color; no brand colors */
.share-icon-x,
.share-icon-fb,
.share-icon-li,
.share-icon-hn {
  /* intentionally empty: all styling comes from .share-icon */
}

/* === MORE BLOCK === */
.more-block {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(0, 245, 255, 0.25);
  box-shadow: 0 -1px 20px rgba(0, 245, 255, 0.05);
}

.more-block h2 {
  color: var(--accent-cyan-light);
  margin-bottom: 2rem;
  text-shadow: 0 0 15px var(--glow-cyan);
}

.more-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.more-card {
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.06) 0%,
    rgba(0, 119, 255, 0.03) 100%
  );
  border-radius: 10px;
  border: 1px solid rgba(0, 245, 255, 0.15);
  transition: all 0.3s ease;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(0, 245, 255, 0.08);
}

.more-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow:
    0 0 25px rgba(0, 245, 255, 0.2),
    0 6px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(0, 245, 255, 0.15);
}

.more-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.more-card-title a {
  color: var(--text-primary);
  border: none;
}

.more-card-title a:hover {
  color: var(--accent-cyan-light);
  text-shadow: 0 0 10px var(--glow-cyan);
}

.more-card-preview {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === SEARCH PAGE === */
.search-page {
  max-width: 800px;
  margin: 0 auto;
}

.search-form {
  margin: 2rem 0 3rem;
}

.search-input {
  width: 100%;
  padding: 1.2rem 1.8rem;
  font-size: 1.1rem;
  font-family: 'Zilla Slab', serif;
  color: var(--text-primary);
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.1) 0%,
    rgba(0, 119, 255, 0.06) 100%
  );
  border: 2px solid rgba(0, 245, 255, 0.2);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: rgba(0, 245, 255, 0.6);
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.15) 0%,
    rgba(0, 119, 255, 0.08) 100%
  );
  box-shadow:
    0 0 30px var(--glow-cyan),
    0 0 0 3px rgba(0, 245, 255, 0.15),
    0 6px 24px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* === FOOTER === */
.site-footer {
  position: relative;
  margin-top: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 39, 0.9) 0%,
    rgba(4, 16, 24, 0.98) 100%
  );
  border-top: 1px solid rgba(0, 245, 255, 0.3);
  box-shadow:
    0 -4px 20px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 245, 255, 0.08),
    inset 0 1px 0 rgba(0, 245, 255, 0.1);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-cyan),
    var(--accent-teal),
    transparent
  );
  box-shadow: 0 0 15px var(--glow-cyan);
}

.site-footer p {
  margin: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--accent-cyan-light);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent-teal);
  background: rgba(0, 245, 255, 0.12);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  /* Make bio images fully fluid on tablets/phones */
  img.bioimg {
    max-width: 100%;
    margin-top: 2rem;
  }

  /* Also make any floated images (like the intro portrait) stack nicely */
  img[style*="float:left"],
  img[style*="float: left"] {
    float: none !important;
    display: block;
    margin: 0 auto 1.5rem !important;
  }

  .layout-shell {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem 3rem;
  }

  .site-header {
    position: static;
    width: 100%;
    top: auto;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: center;
  }

  .site-title {
    justify-content: center;
  }

  .site-nav {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-pill {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .nav-search-wrapper {
    width: 100%;
    order: 3;
  }

  .nav-search-input {
    width: 100%;
  }

  .nav-dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.active .nav-dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }

  .site-main {
    padding: 0 0 2rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .article {
    padding: 2rem 1.5rem;
  }

  .more-list {
    grid-template-columns: 1fr;
  }

  /* Hide floating share strip on small screens */
  .share-block {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-nav {
    gap: 0.3rem;
  }

  /* Extra-small screens: still keep bio images fluid */
  img.bioimg {
    max-width: 100%;
    margin-top: 2rem;
  }

  .nav-pill {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }

  .nav-dropdown-menu {
    min-width: 180px;
  }
}

/* === PRINT STYLES === */
@media print {
  body {
    background: white;
    color: black;
  }

  .page-bg,
  .page-glow,
  .layout-shell,
  .site-header,
  .site-nav,
  .share-block,
  .more-block,
  .site-footer {
    display: none !important;
  }

  .site-main {
    padding: 0;
  }

  .article {
    box-shadow: none;
    border: none;
    background: white;
    display: block;
    padding: 0;
  }
}
