@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Overpass:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Overpass+Mono:wght@400;600&display=swap');

:root {
  --bg:        #1E1E24;
  --surface:   #2B2B36;
  --border:    #35353f;
  --ink:       #D4D4D4;
  --muted:     #7A7A8C;
  --faint:     #404050;
  --accent:    #FFB86C;
  --accent-hi: #FFB86C;
  --mono:      'Overpass Mono', 'Courier New', monospace;
  --serif:     'Special Elite', cursive;
  --sans:      'Overpass', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; -webkit-font-smoothing: antialiased; }

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.site-wrapper {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
.site-header {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-title {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 26px);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-title:hover { color: var(--accent-hi); }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--ink); }

/* Hero */
.site-hero { margin-bottom: 64px; }
.site-hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}
.site-hero p {
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  max-width: 520px;
}

/* Post list */
.posts-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 32px;
  border-bottom: 1px solid var(--faint);
  padding-bottom: 10px;
}
.post-feed { list-style: none; }
.post-card {
  padding: 32px 0;
  border-bottom: 1px dashed var(--border);
}
.post-card:last-child { border-bottom: none; }
.post-card-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.post-card-tags a {
  color: var(--accent);
  text-decoration: none;
}
.post-card-tags a:hover { color: var(--accent-hi); }
.post-card-title {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.2;
  margin-bottom: 10px;
}
.post-card-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.post-card-title a:hover { color: var(--accent-hi); }
.post-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 56px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.pagination a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.pagination a:hover { color: var(--ink); }
.pagination-info {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

/* Single post */
.post-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.post-header-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.post-header-meta a { color: var(--accent); text-decoration: none; }
.post-title {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}
.post-excerpt {
  font-size: 16px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-top: 20px;
}

/* Post content */
.post-content { font-size: 17px; line-height: 1.8; color: var(--ink); }
.post-content h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.post-content h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--muted);
  margin: 36px 0 12px;
}
.post-content p { margin-bottom: 22px; }
.post-content a {
  color: var(--accent-hi);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  transition: border-color 0.2s, color 0.2s;
}
.post-content a:hover { color: var(--ink); border-color: var(--accent-hi); }
.post-content strong { font-weight: 600; color: var(--ink); }
.post-content em { font-style: italic; color: var(--muted); }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--accent-hi);
  line-height: 1.5;
}
.post-content blockquote p { margin-bottom: 0; color: var(--accent-hi); }
.post-content pre {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 28px 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: #c8b89a;
}
.post-content code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface);
  color: var(--accent-hi);
  padding: 2px 6px;
}
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content ul, .post-content ol { margin: 0 0 22px 24px; }
.post-content li { margin-bottom: 6px; }
.post-content hr { border: none; border-top: 1px dashed var(--border); margin: 40px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14px; }
.post-content th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}
.post-content td { border-bottom: 1px dotted var(--border); padding: 10px 12px; vertical-align: top; }
.post-content td:first-child { color: var(--muted); }

/* Post footer */
.post-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.post-footer-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.post-footer-tags a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.post-footer-tags a::before { content: '#'; }
.post-footer-tags a:hover { color: var(--accent-hi); }
.post-footer-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.post-footer-nav a:hover { color: var(--ink); }

/* Site footer */
.site-footer {
  margin-top: 80px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
}
.site-footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.site-footer a { color: var(--faint); text-decoration: none; }
.site-footer a:hover { color: var(--muted); }

/* Archive */
.archive-header {
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.archive-header h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 36px);
  color: var(--ink);
  margin-bottom: 8px;
}
.archive-header p { font-size: 14px; color: var(--muted); font-style: italic; }

/* 404 */
.error-page { padding: 80px 0; text-align: center; }
.error-page h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 10vw, 96px);
  color: var(--faint);
  line-height: 1;
  margin-bottom: 16px;
}
.error-page p { color: var(--muted); font-style: italic; margin-bottom: 32px; }
.error-page a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 600px) {
  .site-wrapper { padding: 0 20px; }
  .site-header { padding: 32px 0 28px; margin-bottom: 40px; }
  .post-content { font-size: 16px; }
}

/* Ghost card width classes */
.kg-width-wide {
  margin-left: -80px;
  margin-right: -80px;
}
.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}
@media (max-width: 860px) {
  .kg-width-wide { margin-left: -20px; margin-right: -20px; }
}

/* Kurayami Ash accent overrides */
.post-card-tags a,
.post-header-meta a,
.post-footer-tags a,
.archive-header a { color: #FFB86C; }

.post-card-tags a:hover,
.post-footer-tags a:hover { color: #ffd0a0; }

.post-content a { color: #8BE9FD; border-bottom-color: #404050; }
.post-content a:hover { color: #aff0ff; border-color: #8BE9FD; }

.post-content blockquote,
.post-excerpt { border-left-color: #FFB86C; color: #FFB86C; }
.post-content blockquote p { color: #FFB86C; }

.post-content pre,
.post-content code { color: #8BE9FD; }
.post-content code { background: #2B2B36; }
