/* mirofish0x.online — high-contrast dark mode w/ gradients */

:root {
  --bg: #0a0b10;
  --panel: #16181d;
  --panel-hover: #1b1e25;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --faint: #64748b;
  --accent: #00ffcc;
  --accent-2: #a855f7;
  --grad: linear-gradient(100deg, #00ffcc 0%, #38bdf8 50%, #a855f7 100%);
  --border: #23262f;
  --border-glow: rgba(0, 255, 204, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

code, pre, .mono, .meta, .site-title, .post-list .date {
  font-family: "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- header / nav ---------- */

header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  margin-bottom: 40px;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.site-title {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-title:hover { filter: brightness(1.25); }
nav { margin-left: auto; font-size: 15px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.15s ease;
}
nav a:hover { color: var(--accent); }
nav a.here { color: var(--text); }

/* ---------- hero glow ---------- */

.hero {
  position: relative;
  padding: 28px 0 8px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 90vw);
  height: 340px;
  background:
    radial-gradient(ellipse at center,
      rgba(0, 255, 204, 0.14) 0%,
      rgba(56, 189, 248, 0.08) 40%,
      rgba(168, 85, 247, 0.05) 60%,
      transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

/* ---------- typography ---------- */

h1 {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 48px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}
h3 { font-size: 17px; color: var(--text); }
a { color: var(--accent); }
a:hover { text-decoration: none; }
p { color: var(--text); }
.meta { color: var(--muted); font-size: 13.5px; margin-bottom: 30px; }
hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
blockquote {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent-2);
  color: var(--muted);
  font-style: italic;
}

pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}
code {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.85em;
  color: var(--accent);
}
pre code { background: none; border: none; padding: 0; color: var(--text); }

ul, ol { padding-left: 24px; }
li { margin-bottom: 7px; }

/* ---------- ad slots ---------- */

.ad-slot {
  position: relative;
  min-height: 90px;
  margin: 36px 0;
  background: #101218;
  border: 1px dashed #2d3140;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ad-slot::before {
  content: "Advertisement";
  position: absolute;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Inter", system-ui, sans-serif;
  z-index: 0;
}
.ad-slot > * { position: relative; z-index: 1; }
@media (min-width: 768px) {
  .ad-slot { min-height: 250px; }
}

/* ---------- project cards ---------- */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.project {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.project:hover {
  transform: translateY(-3px);
  background: var(--panel-hover);
  border-color: var(--border-glow);
  box-shadow: 0 0 18px rgba(0, 255, 204, 0.12), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.project h3 { margin: 0 0 6px; }
.project h3 a { color: var(--accent); text-decoration: none; }
.project h3 a:hover { text-decoration: underline; }
.project p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- post cards ---------- */

.post-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.post-list li {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.post-list li:hover {
  transform: translateY(-3px);
  background: var(--panel-hover);
  border-color: var(--border-glow);
  box-shadow: 0 0 18px rgba(0, 255, 204, 0.12), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.post-list a.title {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: block;
  line-height: 1.4;
}
.post-list a.title:hover { color: var(--accent); }
.post-list .date {
  color: var(--faint);
  font-size: 12.5px;
  display: block;
  margin: 6px 0 8px;
}
.post-list p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- data/node-network pattern (pure CSS, no images) ---------- */

.bg-pattern-data {
  position: relative;
  overflow: hidden;
}
.bg-pattern-data::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  transition: opacity 0.2s ease, filter 0.2s ease;
  background-image:
    /* glowing nodes — cyan */
    radial-gradient(circle 2px at 18px 26px, #00ffcc 99%, transparent 100%),
    radial-gradient(circle 1.5px at 74px 58px, #00ffcc 99%, transparent 100%),
    /* glowing nodes — purple, offset rhythm so tiling isn't obvious */
    radial-gradient(circle 2px at 47px 12px, #a855f7 99%, transparent 100%),
    radial-gradient(circle 1.5px at 9px 71px, #a855f7 99%, transparent 100%),
    /* soft ambient glow blobs */
    radial-gradient(circle 26px at 30% 40%, rgba(0, 255, 204, 0.5), transparent 70%),
    radial-gradient(circle 30px at 75% 70%, rgba(168, 85, 247, 0.5), transparent 70%),
    /* faint structural grid */
    linear-gradient(rgba(0, 255, 204, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.3) 1px, transparent 1px);
  background-size:
    88px 88px,
    88px 88px,
    112px 112px,
    112px 112px,
    100% 100%,
    100% 100%,
    28px 28px,
    28px 28px;
}
.bg-pattern-data > * {
  position: relative;
  z-index: 1;
}
.bg-pattern-data:hover::before {
  opacity: 0.16;
  filter: brightness(1.2);
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 28px 0 44px;
  font-size: 13.5px;
  color: var(--faint);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }
footer .links { margin-bottom: 10px; }
footer .links a { margin-right: 18px; text-decoration: none; }

/* ---------- responsive ---------- */

@media (max-width: 600px) {
  body { font-size: 16px; }
  nav { margin-left: 0; }
  nav a { margin-left: 0; margin-right: 16px; }
  .projects, .post-list { grid-template-columns: 1fr; }
}
