/* ═══════════════════════════════════════════════════════════
   hatchbear — tilde.town  |  global.css
   Link this from every page. Page-specific styles go in
   home.css, blog.css, etc.
   ═══════════════════════════════════════════════════════════ */

/* ── variables ────────────────────────────────────────────── */
:root {
  --navy:        #004368;
  --navy-deep:   #001f30;
  --navy-mid:    #002d45;
  --teal:        #00a78b;
  --teal-dark:   #00796b;
  --plum:        #64395b;
  --plum-light:  #79075b;
  --green:       #476300;
  --crimson:     #71002f;
  --bg:          #010d14;
  --surface:     #021624;
  --border:      #0a3a52;
  --text:        #c8dde8;
  --text-dim:    #5d8fa8;
  --text-muted:  #2d5f78;

  --font-mono:   'Go Mono', 'PT Mono', 'Liberation Mono', monospace;
}

/* ── reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  height: 100%;
}

/* ── base body ────────────────────────────────────────────── */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── links ────────────────────────────────────────────────── */
a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #fff; }

/* ── scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal-dark); }

/* ── selection ────────────────────────────────────────────── */
::selection {
  background: rgba(0, 167, 139, 0.22);
  color: #fff;
}

/* ── tabline (shared across all pages) ────────────────────── */
.tabline {
  background: var(--navy-deep);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  height: 30px;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabline::-webkit-scrollbar { display: none; }

.tab {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 13px;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.15s;
}
.tab:hover { color: var(--text-dim); }
.tab.active {
  background: var(--bg);
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
  margin-bottom: -1px;
}

.tab-spacer { flex: 1; }

/* ── statusline (shared across all pages) ─────────────────── */
.statusline {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  height: 26px;
  display: flex;
  align-items: center;
  padding: 0;
  font-size: 12px;
  flex-shrink: 0;
  user-select: none;
  gap: 0;
}
.sl-mode {
  background: var(--teal-dark);
  color: var(--bg);
  font-weight: bold;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 0.08em;
  font-size: 11px;
  flex-shrink: 0;
}
.sl-sep   { color: var(--teal-dark); font-size: 18px; line-height: 1; margin-right: 12px; }
.sl-file  { color: var(--text-dim);  margin-right: 20px; }
.sl-info  { color: var(--text-muted); }
.sl-right { margin-left: auto; color: var(--text-muted); padding-right: 14px; }

/* ── footer (shared across all pages) ────────────────────── */
#site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 0 1.5rem;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-prompt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.footer-prompt::before {
  content: 'hatchbear@tilde.town:~$ ';
  color: var(--teal-dark);
  opacity: 0.8;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.55;
}
.footer-right a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
.footer-right a:hover { color: var(--teal); opacity: 1; }
.footer-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-dark);
  opacity: 0.7;
  animation: pulse 2.5s ease-in-out infinite;
}

/* ── shared animations ────────────────────────────────────── */
@keyframes blink  { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes fadeUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse  { 0%,100%{opacity:0.7} 50%{opacity:0.2} }
