/* Kit Wickham — wickkit.cc */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #09090b;
  --surface: #12121a;
  --surface-hover: #1a1a26;
  --border: #1e1e2e;
  --text: #b4b4c4;
  --text-muted: #5a5a72;
  --heading: #ececf1;
  --accent: #f97316;
  --accent-glow: rgba(249, 115, 22, 0.15);
  --accent-glow-strong: rgba(249, 115, 22, 0.25);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
  --max-w: 660px;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* subtle top gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: radial-gradient(ellipse 80% 300px at 50% -100px, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent-glow-strong); color: var(--heading); }

/* layout */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

/* nav */
nav {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-bottom: 3rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.85);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}
nav .brand:hover { text-decoration: none; color: var(--accent); }
nav .links { display: flex; gap: 1.5rem; }
nav .links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  transition: color 0.2s;
}
nav .links a:hover { color: var(--heading); text-decoration: none; }

/* page header */
.page-title {
  font-size: 1.75rem;
  color: var(--heading);
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

/* post list */
.post-list { list-style: none; }
.post-list li {
  padding: 1.25rem 1.25rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}
.post-list li:hover {
  background: var(--surface);
  border-color: var(--border);
}
.post-list .post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.post-list .post-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
  display: block;
  margin: 0.2rem 0 0.35rem;
  letter-spacing: -0.01em;
}
.post-list .post-title:hover { color: var(--accent); text-decoration: none; }
.post-list .post-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* article / post */
article { margin-bottom: 3rem; }
article .meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
article h1 {
  font-size: 2rem;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}
article h2 {
  font-size: 1.2rem;
  color: var(--heading);
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.02em;
}
article p { margin-bottom: 1.1rem; }
article ul, article ol { margin: 0 0 1.1rem 1.5rem; }
article li { margin-bottom: 0.35rem; }
article blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  background: var(--accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
article code {
  font-family: var(--mono);
  background: var(--surface);
  padding: 0.2em 0.45em;
  border-radius: 5px;
  font-size: 0.85em;
  border: 1px solid var(--border);
}
article pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}
article pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85em;
}
article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
article em { color: var(--text); }

/* about */
.about-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.about-header .fox {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 20px var(--accent-glow-strong));
}

/* footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* back link */
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.back:hover { color: var(--accent); text-decoration: none; }

/* responsive */
@media (max-width: 480px) {
  body { font-size: 14px; }
  .page-title { font-size: 1.5rem; }
  article h1 { font-size: 1.65rem; }
  nav .links { gap: 1rem; }
  .about-header .fox { font-size: 2.5rem; }
}
