/* =========================================================
   Mediterranean Bioluminescence — blog post styles
   Shared across journal/{slug}.html
   ========================================================= */

:root {
  --void:    #03060f;
  --deep:    #060c1a;
  --surface: #0a1228;
  --raised:  #0f1a32;

  --glass-1: rgba(20, 80, 200, 0.05);
  --glass-2: rgba(20, 80, 200, 0.09);
  --glass-3: rgba(30, 100, 220, 0.14);
  --glass-border:  rgba(40, 120, 255, 0.16);
  --glass-border2: rgba(60, 140, 255, 0.26);

  --blue-deep:   #1a5fa8;
  --blue-mid:    #2a7fd4;
  --blue-bright: #4a9eff;
  --blue-light:  #7ab8ff;

  --gold-mid:    #c8a96e;
  --gold-bright: #e8c98e;

  --cyan:        #4dd9e8;

  --text-primary:   #e8eef8;
  --text-secondary: #8898b8;
  --text-muted:     #4a5878;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--void);
  color: var(--text-primary);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ----- light nav on post pages ----- */
.post-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  background: rgba(3, 6, 15, 0.85);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
}
.post-nav-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: lowercase;
  text-decoration: none;
  transition: color 0.25s ease;
}
.post-back:hover { color: var(--blue-bright); }
.post-back .arr { display: inline-block; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.post-back:hover .arr { transform: translateX(-3px); }

.post-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.post-mark-img {
  height: 28px;
  width: calc(28px * 1004 / 708);
  background: url('../assets/mb-mark-fish.png') center / contain no-repeat;
  flex-shrink: 0;
}

/* ----- ambient atmosphere behind the article ----- */
.post-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.post-atmosphere::before,
.post-atmosphere::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.post-atmosphere::before {
  top: -20%;
  left: -15%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(20, 80, 220, 0.12) 0%, transparent 70%);
}
.post-atmosphere::after {
  bottom: -25%;
  right: -20%;
  width: 55%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(100, 180, 255, 0.07) 0%, transparent 65%);
}

/* ----- article container ----- */
.post {
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

/* Header */
.post-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.post-meta-top .sep {
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.post-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.post-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 56ch;
}

.post-byline {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}
.post-byline .dot { margin: 0 0.5rem; opacity: 0.6; }

.post-rule-gold {
  border: 0;
  border-top: 1px solid var(--gold-mid);
  opacity: 0.4;
  margin: 0 0 3rem;
}

/* Body */
.post-body {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
}
.post-body > p {
  margin-bottom: 1.4rem;
}
.post-body em,
.post-body i {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.005em;
}
.post-body strong { color: var(--text-primary); font-weight: 500; }
.post-body a {
  color: var(--blue-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 158, 255, 0.3);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.post-body a:hover { color: var(--blue-light); border-bottom-color: var(--blue-light); }

.post-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 3rem 0 1.25rem;
}

.post-body blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 2px solid var(--gold-mid);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.4rem 1.25rem;
  color: var(--text-primary);
}
.post-body li { margin-bottom: 0.45rem; }

/* Section rule — centered "* * *" in mono between major sections */
.post-body hr,
.post-rule {
  border: 0;
  position: relative;
  margin: 3rem 0;
  height: 1px;
  background: var(--glass-border);
}
.post-body hr::after,
.post-rule::after {
  content: '* * *';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--void);
  padding: 0 1rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.4em;
}

/* Author card */
.post-author {
  margin-top: 4rem;
  padding: 1.5rem;
  background: var(--glass-2);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  align-items: center;
}
.post-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-mid);
  color: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.post-author-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.post-author-role {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.post-author-role a {
  color: var(--blue-bright);
  text-decoration: none;
}
.post-author-role a:hover { color: var(--blue-light); }

/* Next/prev nav at bottom */
.post-foot {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.post-foot a {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.25s ease;
}
.post-foot a:hover { color: var(--blue-bright); }

@media (max-width: 600px) {
  .post { padding: 3rem 1.25rem 3rem; }
  .post-foot { padding: 0 1.25rem 3rem; }
  .post-body { font-size: 1rem; }
  .post-body h2 { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001s !important; animation: none !important; }
}
