@import url('https://fonts.googleapis.com/css2?family=Festive&family=VT323&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&display=swap');

/* ── VARIABLES ── */
:root {
  --bg: #080d18;
  --panel: #0b1a2e;
  --panel-hover: #101f38;
  --border: #1a3252;
  --ink: #e8eef8;
  --dim: #6080a8;
  --teal: #5ec8b0;
  --frost: #a8c8e8;
  --pink: #c878b0;
  --yellow: #e8d898;
  --rule: #121e30;
}

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

/* ── BASE ── */
html {
  background: #080d18;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(60,100,160,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 10%, rgba(40,80,140,0.12) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.008) 2px,
      rgba(255,255,255,0.008) 4px
    );
}

body {
  color: var(--ink);
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 6vh, 4rem) 1.5rem;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpolygon points='0,0 0,14 4,10 7,17 9,16 6,9 11,9' fill='%235ec8b0' stroke='%23080d18' stroke-width='1'/%3E%3C/svg%3E") 0 0, auto;
}

.container { width: 100%; }

/* ── HEADER ── */
header {
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #0f1e38 0%, #0a1220 100%);
  padding: 2.2rem 2rem 1.6rem;
  margin-bottom: 1.5rem;
  position: relative;
  text-align: center;
  opacity: 0;
  animation: pop 0.5s ease 0.05s forwards;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,200,232,0.4), rgba(94,200,176,0.3), rgba(168,200,232,0.4), transparent);
}

header::after {
  content: '';
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70%; height: 60%;
  background: radial-gradient(ellipse, rgba(94,200,176,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.site-title {
  font-family: 'Festive', cursive;
  font-style: normal;
  font-size: clamp(2.4rem, 10vw, 4rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-shadow:
    0 0 30px rgba(168,200,232,0.25),
    0 0 60px rgba(94,200,176,0.1);
  padding-bottom: 1.2rem;
  margin-bottom: 0;
  height: 0.75em;
  width: auto;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.4));
}

.site-subtitle {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--dim);
  margin-top: 2.1rem;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}

.snow-divider {
  display: block;
  margin: 0.7rem auto 0;
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: rgba(168,200,232,0.25);
  position: relative;
  z-index: 1;
}

/* ── SITE NAV ── */
.back-nav,
.top-nav {
  font-family: 'VT323', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: pop 0.5s ease 0.2s forwards;
}

.back-nav a,
.top-nav a {
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}

.back-nav a:hover,
.top-nav a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.top-nav .sep {
  margin: 0 0.6em;
  color: var(--border);
}

/* ── DATE LABEL ── */
.post-date-label {
  font-family: 'VT323', monospace;
  letter-spacing: 0.14em;
  display: inline-block;
  padding: 0 0.3rem;
  border: 1px solid currentColor;
  line-height: 1.5;
}

.color-teal   .post-date-label { color: var(--teal); }
.color-pink   .post-date-label { color: var(--pink); }
.color-yellow .post-date-label { color: var(--yellow); }
.color-frost  .post-date-label { color: var(--frost); }

/* ── DIVIDER ── */
hr.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 1.5rem 0;
  opacity: 0;
}

/* ── FOOTER ── */
footer {
  margin-top: 2rem;
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 2;
  opacity: 0;
}

footer a {
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}

footer a:hover { color: var(--teal); }

/* ── ANIMATIONS ── */
@keyframes pop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
