/*
Theme Name: edogawa
Theme URI: https://edogawatatsuya.com
Author: dorago01
Description: Light emerald theme matching edogawatatsuya.com design
Version: 1.0
*/

:root {
  --bg: #ffffff;
  --bg-sub: #f4fdf9;
  --bg-card: #ffffff;
  --text: #111111;
  --text-dim: #666666;
  --accent: #10b981;
  --accent-dark: #059669;
  --accent-dim: rgba(16,185,129,0.10);
  --accent-glow: rgba(16,185,129,0.30);
  --border: rgba(16,185,129,0.22);
  --border-base: #ebebeb;
  --radius: 8px;
  --font-mono: 'JetBrains Mono','Fira Code','Courier New',monospace;
  --font-sans: -apple-system,BlinkMacSystemFont,"Hiragino Sans","Noto Sans JP",sans-serif;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(16,185,129,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--accent-dark); opacity: 1; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; max-width: 720px; margin: 0 auto; padding: 0 24px;
}
.site-title a {
  font-family: var(--font-mono); font-size: 14px;
  color: var(--accent); letter-spacing: .05em; font-weight: 700;
}
.main-nav ul { display: flex; gap: 24px; list-style: none; }
.main-nav a {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim); letter-spacing: .05em;
}
.main-nav a:hover,.main-nav .current-menu-item a { color: var(--accent); }

/* ===== LAYOUT ===== */
.site-main { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; }

/* ===== PAGE HERO ===== */
.page-hero {
  text-align: center; padding: 48px 0 40px;
  border-bottom: 1px solid var(--border); margin-bottom: 40px;
}
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 5px 16px; border-radius: 100px;
  letter-spacing: .12em; margin-bottom: 16px;
}
.status-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.page-hero h1 { font-size: clamp(24px,4vw,36px); font-weight: 700; color: var(--text); }
.page-hero p { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin-top: 8px; }

/* ===== POSTS LIST ===== */
.posts-list { display: flex; flex-direction: column; gap: 16px; }

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color .2s, box-shadow .2s;
}
.post-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-dim);
}
.post-card .post-date {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: .1em; margin-bottom: 8px;
}
.post-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--accent); }
.post-card .post-excerpt { font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.post-card .read-more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 14px; font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); font-weight: 700;
}

/* ===== SINGLE POST ===== */
.post-header {
  padding-bottom: 28px; margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.post-header .post-date {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: .1em; margin-bottom: 10px;
}
.post-header h1 { font-size: clamp(22px,4vw,34px); font-weight: 700; line-height: 1.3; }

.post-content h2 {
  font-size: 20px; margin: 32px 0 12px;
  border-left: 3px solid var(--accent); padding-left: 12px;
}
.post-content h3 { font-size: 17px; color: var(--accent); margin: 24px 0 10px; }
.post-content p { margin-bottom: 18px; }
.post-content ul,.post-content ol { padding-left: 24px; margin-bottom: 18px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
  border-left: 3px solid var(--accent); padding: 12px 20px; margin: 24px 0;
  background: var(--bg-sub); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-dim);
}
.post-content code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--bg-sub); color: var(--accent-dark);
  padding: 2px 6px; border-radius: 4px;
}
.post-content pre {
  background: var(--bg-sub); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  overflow-x: auto; margin-bottom: 18px;
}
.post-content pre code { background: none; padding: 0; color: var(--text); }
.post-content img { border-radius: var(--radius); margin: 24px 0; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 48px; font-family: var(--font-mono); font-size: 13px;
}
.pagination .page-numbers {
  padding: 6px 14px; border: 1px solid var(--border-base);
  border-radius: var(--radius); color: var(--text-dim);
}
.pagination .current {
  background: var(--accent); color: #fff;
  border-color: var(--accent); font-weight: 700;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border); padding: 24px;
  text-align: center; font-family: var(--font-mono);
  font-size: 12px; color: var(--text-dim); margin-top: 60px;
}
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .main-nav { display: none; }
}
