/* ── COLORS ─────────────────────────────────────────────── */
:root {
  --bg:           #e8f2ed;
  --surface:      #d5e6db;
  --surface-2:    #eff7f2;
  --text:         #0d1a0f;
  --text-muted:   rgba(13,26,15,0.60);
  --text-dim:     rgba(13,26,15,0.35);
  --accent:       #1a5c3a;
  --accent-hover: #2d7a52;
  --accent-dark:  #0d3d25;
  --accent-fill:  rgba(26,92,58,0.12);
  --border:       rgba(0,0,0,0.10);
  --border-solid: rgba(0,0,0,0.18);

  --hero-bg:      #050e08;
  --hero-text:    #e8f2ed;
  --hero-muted:   rgba(232,242,237,0.45);
  --hero-dim:     rgba(232,242,237,0.22);
  --hero-border:  rgba(232,242,237,0.10);
  --hero-accent:  #52b788;
}

/* ── NAV (on hero: transparent + light text) ─── */
.nav-hero {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  z-index: 20;
  border-bottom: 1px solid var(--hero-border);
}

.nav-hero-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-text);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-hero-logo:hover { color: var(--hero-accent); }

.nav-hero-links {
  display: flex;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-hero-link {
  color: var(--hero-muted);
  padding: 6px 20px;
  border-left: 1px solid var(--hero-border);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-hero-link:last-child { border-right: 1px solid var(--hero-border); }
.nav-hero-link:hover { color: var(--hero-text); background: rgba(232,242,237,0.06); }

/* ── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  background: var(--hero-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

#starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(5,14,8,0.95) 80%, #050e08);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px 56px;
}

.hero-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 140px);
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--hero-text);
  margin-bottom: 28px;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-position {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hero-muted);
  letter-spacing: 0.06em;
}

.hero-position span { color: var(--hero-accent); }

.hero-position-sub { margin-top: 2px; font-size: 10px; }

.hero-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 7px 16px;
  border: 1px solid var(--hero-border);
  color: var(--hero-muted);
  text-decoration: none;
  transition: all 0.15s;
  display: inline-block;
}

.hero-btn:hover {
  color: var(--hero-bg);
  background: var(--hero-accent);
  border-color: var(--hero-accent);
}

.hero-btn.primary {
  border-color: var(--hero-accent);
  color: var(--hero-accent);
}

.hero-btn.primary:hover {
  background: var(--hero-accent);
  color: var(--hero-bg);
}

.scroll-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--hero-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scroll-hint::before {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: var(--hero-dim);
}

/* ── CONTENT SECTION ────────────────────────── */
.content-section {
  background: var(--bg);
}

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

.preview-col {
  padding: 48px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.preview-col:last-child { border-right: none; }

.preview-scroll {
  overflow-y: auto;
  max-height: 420px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-solid) transparent;
}
.preview-scroll::-webkit-scrollbar { width: 4px; }
.preview-scroll::-webkit-scrollbar-track { background: transparent; }
.preview-scroll::-webkit-scrollbar-thumb { background: var(--border-solid); border-radius: 2px; }

.preview-col-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.preview-col-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
}

.preview-col-link {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.preview-col-link:hover { color: var(--accent); }

/* Essay rows */
.essay-preview {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.essay-preview:last-child { border-bottom: none; }
.essay-preview:hover .ep-title { color: var(--accent); }

.ep-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.ep-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.ep-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid rgba(26,92,58,0.30);
  padding: 1px 7px;
}

.ep-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text);
  transition: color 0.15s;
  margin-bottom: 4px;
  text-wrap: pretty;
}

.ep-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Book rows */
.book-preview {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.book-preview:last-child { border-bottom: none; }
.book-preview:hover .bp-title { color: var(--accent); }

.bp-cover {
  width: 44px;
  height: 62px;
  background: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.bp-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 3px,
    rgba(232,242,237,0.06) 3px, rgba(232,242,237,0.06) 4px
  );
}

.bp-cover-init {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.03em;
  color: #e8f2ed;
  z-index: 1;
  position: relative;
}

.bp-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.bp-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  transition: color 0.15s;
  margin-bottom: 3px;
}

.bp-author {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.bp-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}

.bp-info { flex: 1; min-width: 0; }

.ep-meta-compact { margin-bottom: 5px; }

/* About bar */
.about-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.about-bio {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
}

.about-position {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-align: right;
  flex-shrink: 0;
  line-height: 1.8;
  font-style: normal;
}

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.footer a:hover { color: var(--accent); }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .nav-hero { padding: 16px 20px; }
  .nav-hero-link { padding: 6px 12px; }
  .hero-content { padding: 0 20px 40px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-col { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 20px; }
  .preview-col:last-child { border-bottom: none; }
  .about-bar { flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 12px; }
  .about-position { text-align: left; }
  .footer { padding: 16px 20px; flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: clamp(44px, 14vw, 80px); }
  .hero-links { flex-direction: column; }
}
