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

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

body {
  background: #0a0a0f;
  color: #c8ccd0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  padding: 2rem 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

a {
  color: #00d4ff;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #a78bfa;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.site-name {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-name:hover {
  opacity: 0.85;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

nav a:hover {
  color: #00d4ff;
}

/* Main */
main {
  min-height: 60vh;
}

/* Headings */
h1 {
  font-size: 1.75rem;
  color: #f0f0f5;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.25rem;
  color: #f0f0f5;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

h3 {
  font-size: 1.05rem;
  color: #e0e0e8;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Meta / date */
.meta {
  color: #6b7280;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  font-family: 'JetBrains Mono', monospace;
}

/* Paragraphs */
p {
  margin-bottom: 1.25rem;
}

/* Blockquotes */
blockquote {
  border-left: 3px solid #a78bfa;
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  color: #9ca3af;
  font-style: italic;
}

/* Inline code */
code {
  background: rgba(0, 212, 255, 0.08);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.88em;
  color: #00d4ff;
  font-family: 'JetBrains Mono', monospace;
}

/* Code blocks */
pre {
  background: #111118;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

pre code {
  background: none;
  padding: 0;
  color: #c8ccd0;
}

/* Post list — cards */
.post-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.post-list li:hover {
  border-color: rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.03);
}

.post-list .post-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.post-list .post-title {
  color: #e0e0e8;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.post-list .post-title:hover {
  color: #00d4ff;
}

.post-list .post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.post-list .date {
  color: #4b5563;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Category tags */
.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15em 0.55em;
  border-radius: 3px;
  white-space: nowrap;
}

.tag-tools {
  background: rgba(0, 212, 255, 0.12);
  color: #00d4ff;
}

.tag-workflow {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
}

.tag-take {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

/* Hero section on index */
.hero {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.hero h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #00d4ff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 0;
  max-width: 600px;
}

/* About page */
.about-photo {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.about-content {
  max-width: 600px;
}

.about-content p {
  color: #9ca3af;
}

/* Tool cards (for posts) */
.tool-card {
  background: #111118;
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.75rem 0;
  transition: border-color 0.2s;
}

.tool-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
}

.tool-card h3 {
  margin-top: 0;
  color: #00d4ff;
}

.tool-card .tool-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}

/* Verdict / highlight boxes */
.verdict {
  background: rgba(167, 139, 250, 0.06);
  border-left: 3px solid #a78bfa;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  border-radius: 0 8px 8px 0;
}

.verdict strong {
  color: #a78bfa;
}

/* Rating bar */
.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.rating-bar {
  height: 6px;
  border-radius: 3px;
  background: #1a1a24;
  flex-grow: 1;
  max-width: 200px;
  overflow: hidden;
}

.rating-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #00d4ff, #a78bfa);
}

.rating-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-family: 'JetBrains Mono', monospace;
}

/* Comparison table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.9rem;
}

th {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid rgba(0, 212, 255, 0.2);
  color: #00d4ff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #1a1a24;
  color: #9ca3af;
}

tr:hover td {
  background: rgba(0, 212, 255, 0.03);
}

/* Footnotes */
.footnotes {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  font-size: 0.85rem;
  color: #6b7280;
}

.footnotes ol {
  padding-left: 1.5rem;
}

.footnotes li {
  margin-bottom: 0.5rem;
}

sup a {
  color: #a78bfa;
  text-decoration: none;
  font-size: 0.8em;
}

sup a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  color: #3b3b4f;
  font-size: 0.8rem;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}

/* Lists */
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

strong {
  color: #f0f0f5;
}

em {
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid #1a1a24;
  margin: 2rem 0;
}

/* Responsive */
@media (max-width: 640px) {
  body {
    padding: 1.25rem 1rem;
    font-size: 15px;
  }

  h1 {
    font-size: 1.4rem;
  }

  .post-list li {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
  }

  .post-list .date {
    order: -1;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .tool-card {
    padding: 1rem;
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 0.5rem 0.6rem;
  }
}
