/* ═══════════════════════════════════════════════════
   Maker Faire Miami — Synthwave / Miami Vice theme
   ═══════════════════════════════════════════════════ */

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

:root {
  --bg-deep: #0a0a1a;
  --bg-card: #111126;
  --bg-surface: #1a1a35;
  --neon-pink: #ff2d95;
  --neon-cyan: #00f0ff;
  --neon-purple: #b24bf3;
  --sunset-orange: #ff6b35;
  --sunset-yellow: #f7c948;
  --text: #e0dced;
  --text-muted: #8a85a0;
  --text-dim: #5a5670;
  --font-script: 'Pacifico', cursive;
  --font-neon: 'Monoton', sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shell: 1100px;
  --col: 720px;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  color: var(--text);
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* CRT scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.035) 2px,
    rgba(0, 0, 0, 0.035) 4px
  );
  z-index: 9999;
}

/* ─── Layout ─── */
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.text-col { max-width: var(--col); margin: 0 auto; }

/* ─── Top Bar ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 26, 0.88);
  border-bottom: 1px solid rgba(255, 45, 149, 0.2);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  text-decoration: none;
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 45, 149, 0.5);
  transition: text-shadow 0.2s;
}

.brand:hover {
  text-shadow: 0 0 16px rgba(255, 45, 149, 0.8);
  color: var(--neon-pink);
}

.topnav { display: flex; align-items: center; gap: 28px; }

.topnav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, text-shadow 0.2s;
}

.topnav a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #0d0221 0%,
    #1a0a3e 15%,
    #3b1578 30%,
    #b24bf3 45%,
    #ff2d95 58%,
    #ff6b35 72%,
    #f7c948 84%,
    var(--bg-deep) 100%
  );
  padding: 80px 24px 120px;
}

/* Retro sun */
.retro-sun {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(
    to bottom,
    #f7c948 0%,
    #ff9a35 30%,
    #ff6b35 50%,
    #ff2d95 100%
  );
  opacity: 0.3;
}

/* Horizontal line cutouts on bottom half of sun */
.retro-sun::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 50%;
  border-radius: 0 0 150px 150px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 8px,
    rgba(10, 10, 26, 0.9) 8px,
    rgba(10, 10, 26, 0.9) 15px
  );
}

.hero-brand {
  font-family: var(--font-script);
  font-size: clamp(28px, 5vw, 48px);
  color: #fff;
  text-shadow:
    0 0 12px rgba(255, 45, 149, 0.6),
    0 0 40px rgba(255, 45, 149, 0.3);
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  line-height: 1.2;
}

.hero-city {
  font-family: var(--font-neon);
  font-size: clamp(56px, 14vw, 160px);
  color: var(--neon-cyan);
  text-shadow:
    0 0 10px rgba(0, 240, 255, 0.9),
    0 0 30px rgba(0, 240, 255, 0.6),
    0 0 60px rgba(0, 240, 255, 0.4),
    0 0 120px rgba(0, 240, 255, 0.2);
  position: relative;
  z-index: 2;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}

.hero-tagline {
  font-size: clamp(13px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* Perspective grid floor */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -20%;
  right: -20%;
  height: 38%;
  background:
    linear-gradient(rgba(0, 240, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.12) 1px, transparent 1px);
  background-size: 60px 30px;
  transform: perspective(300px) rotateX(50deg);
  transform-origin: bottom center;
  z-index: 1;
  mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
}

/* ─── Neon Divider ─── */
.neon-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-pink), var(--neon-cyan), transparent);
  box-shadow: 0 0 8px rgba(255, 45, 149, 0.3), 0 0 16px rgba(0, 240, 255, 0.15);
  margin: 64px 0;
  border: none;
}

/* ─── Main Content ─── */
main.shell { padding-top: 64px; padding-bottom: 40px; }

/* ─── Feed Items (homepage inlined articles) ─── */
.feed-item { margin-bottom: 48px; }

.feed-meta {
  font-size: 13px;
  color: var(--neon-pink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-shadow: 0 0 6px rgba(255, 45, 149, 0.25);
}

.feed-item > h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #fff;
}

.feed-item > h2 a {
  color: inherit;
  text-decoration: none;
  transition: text-shadow 0.2s;
}

.feed-item > h2 a:hover {
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
}

/* ─── Typography ─── */
h3, .feed-item h3, .post-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.15);
}

p { margin-bottom: 20px; }
p:last-child { margin-bottom: 0; }

strong {
  color: #fff;
  font-weight: 600;
}

a {
  color: var(--neon-pink);
  text-decoration-color: rgba(255, 45, 149, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
}

/* ─── Blog Index Cards ─── */
.blog-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid rgba(255, 45, 149, 0.12);
  border-left: 3px solid var(--neon-pink);
  padding: 28px 32px;
  margin-bottom: 20px;
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.blog-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  border-left-color: var(--neon-cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.1), inset 0 0 24px rgba(0, 240, 255, 0.02);
  transform: translateX(4px);
  color: var(--text);
}

.blog-card .card-date {
  font-size: 12px;
  color: var(--neon-pink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: block;
  text-shadow: 0 0 4px rgba(255, 45, 149, 0.2);
}

.blog-card h3 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 20px;
  text-shadow: none;
}

.blog-card:hover h3 {
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.blog-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

/* ─── Single Post ─── */
.post-header {
  padding: 80px 0 40px;
  text-align: center;
}

.post-header h1 {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 12px;
}

.post-header .post-date {
  font-size: 13px;
  color: var(--neon-pink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 0 6px rgba(255, 45, 149, 0.25);
}

.post-body { padding-bottom: 80px; }

.cross-refs {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid rgba(255, 45, 149, 0.15);
  padding-top: 24px;
  margin-top: 48px;
}

/* ─── About ─── */
.about-hero {
  padding: 100px 0 48px;
  text-align: center;
}

.about-hero h1 {
  font-family: var(--font-script);
  font-size: clamp(32px, 7vw, 64px);
  color: #fff;
  text-shadow:
    0 0 16px rgba(255, 45, 149, 0.6),
    0 0 50px rgba(178, 75, 243, 0.3);
  margin-bottom: 12px;
}

.about-hero p {
  font-size: 18px;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
}

/* ─── 404 ─── */
.lost {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lost h1 {
  font-family: var(--font-neon);
  font-size: clamp(72px, 18vw, 180px);
  color: var(--neon-pink);
  text-shadow:
    0 0 10px rgba(255, 45, 149, 0.9),
    0 0 40px rgba(255, 45, 149, 0.5),
    0 0 80px rgba(255, 45, 149, 0.3);
  line-height: 1;
  margin-bottom: 16px;
}

.lost p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.lost a.btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 36px;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
}

.lost a.btn:hover {
  background: var(--neon-cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.4);
  text-shadow: none;
}

/* ─── Page Title ─── */
.page-title {
  padding: 80px 0 40px;
  text-align: center;
}

.page-title h1 {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid rgba(255, 45, 149, 0.12);
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 80px;
}

footer .brand-footer {
  font-family: var(--font-script);
  font-size: 18px;
  color: var(--neon-pink);
  text-shadow: 0 0 8px rgba(255, 45, 149, 0.35);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
}

footer .brand-footer:hover {
  text-shadow: 0 0 14px rgba(255, 45, 149, 0.7);
  color: var(--neon-pink);
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .topbar-inner { padding: 0 16px; }
  .topnav { gap: 16px; }
  .topnav a { font-size: 11px; }
  .brand { font-size: 18px; }
  .hero { min-height: 65vh; padding: 60px 16px 100px; }
  .retro-sun { width: 180px; height: 180px; }
  .blog-card { padding: 20px 24px; }
  .text-col { padding: 0 4px; }
  .neon-divider { margin: 48px 0; }
}
