/* Refined Brutalist Jekyll Theme */

:root {
  --color-bg: #FAFAFA;
  --color-text: #1A1A1A;
  --color-accent: #FF6B35;
  --color-muted: #666666;
  --color-border: #E0E0E0;
  --font-display: 'Crimson Pro', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  font-size: 18px;
  line-height: 1.7;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 2rem 0 1rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
  transition: all 0.2s ease;
}

a:hover {
  color: var(--color-accent);
  border-bottom-width: 3px;
}

code {
  font-family: var(--font-mono);
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  border-left: 4px solid var(--color-accent);
}

pre code {
  background: none;
  padding: 0;
}

blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-muted);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 4px;
  background: var(--color-accent);
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    width: 0;
  }
  to {
    width: 120px;
  }
}

.site-title {
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.site-title a {
  border: none;
  transition: transform 0.2s ease;
  display: inline-block;
}

.site-title a:hover {
  transform: translateX(4px);
  color: var(--color-text);
}

.site-nav {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
}

.site-nav a {
  border: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

/* Main Content */
.site-content {
  padding: 5rem 0;
  min-height: 60vh;
}

/* Home - Post List */
.post-list {
  list-style: none;
  margin: 3rem 0;
}

.post-item {
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.post-item:nth-child(1) { animation-delay: 0.1s; }
.post-item:nth-child(2) { animation-delay: 0.2s; }
.post-item:nth-child(3) { animation-delay: 0.3s; }
.post-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.post-item h2 {
  margin: 0.5rem 0 1rem;
  font-size: 2rem;
}

.post-item h2 a {
  border: none;
  transition: color 0.2s ease;
}

.post-item h2 a:hover {
  color: var(--color-accent);
}

.post-excerpt {
  color: var(--color-muted);
  line-height: 1.8;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-text);
}

.read-more:hover {
  transform: translateX(4px);
  display: inline-block;
}

/* Top CTA Banner */
.cta-banner {
  background: linear-gradient(90deg, var(--color-text) 0%, #333 100%);
  color: var(--color-bg);
  padding: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  border-left: 4px solid var(--color-accent);
}

.cta-banner-text {
  color: #D0D0D0;
}

.cta-banner a {
  color: var(--color-accent);
  border: none;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.cta-banner a:hover {
  color: var(--color-bg);
}

@media (max-width: 768px) {
  .cta-banner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Single Post */
.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.post-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--color-accent);
}

.post-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.post-content {
  max-width: 720px;
  margin: 0;
}

.post-content h2 {
  margin-top: 3rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border: 1px solid var(--color-border);
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

/* CTA Box */
.cta-box {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 3rem;
  margin: 4rem 0;
  position: relative;
  border-left: 6px solid var(--color-accent);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--color-accent);
  opacity: 0.1;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.cta-box h3 {
  font-size: 2rem;
  margin: 0 0 1rem 0;
  color: var(--color-bg);
}

.cta-box p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #D0D0D0;
}

.cta-button {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 1rem 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  transition: left 0.3s ease;
  z-index: 0;
}

.cta-button:hover {
  border-bottom: none;
  color: var(--color-text);
}

.cta-button:hover::before {
  left: 0;
}

.cta-button span {
  position: relative;
  z-index: 1;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  margin-top: 5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  border: none;
  color: var(--color-muted);
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  h1, .post-title {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .site-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .post-content {
    max-width: 100%;
  }
}

/* Utilities */
.accent {
  color: var(--color-accent);
}

.muted {
  color: var(--color-muted);
}
