@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0e0c09;
  --surface: #1a1510;
  --surface2: #251c12;
  --surface3: #2e2218;
  --orange: #e8651a;
  --orange-light: #f5832e;
  --orange-dim: rgba(232, 101, 26, 0.15);
  --gold: #d4903a;
  --cream: #f2e5d4;
  --cream-dim: #b09078;
  --muted: #7a6250;
  --border: #3a2a1c;
  --border-light: #4a3828;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--cream);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── NAV ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 12, 9, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.nav-logo .paw {
  font-size: 1.3rem;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--orange-light);
}

/* ── HERO ── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(232, 101, 26, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(212, 144, 58, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  background: var(--orange-dim);
  color: var(--orange-light);
  border: 1px solid rgba(232, 101, 26, 0.3);
  border-radius: 999px;
  padding: 0.25rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  color: var(--orange-light);
  font-style: italic;
}

.hero .subtitle {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  color: var(--cream-dim);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
}

.rumi-sig {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.5rem 1.2rem 0.5rem 0.6rem;
}

.rumi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
}

.rumi-sig-text {
  font-size: 0.88rem;
  color: var(--cream-dim);
}

.rumi-sig-text strong {
  color: var(--cream);
  font-weight: 600;
}

/* ── POST GRID ── */

.posts-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.post-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.post-card:hover::before {
  opacity: 1;
}

.post-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 2.5rem;
  align-items: flex-start;
}

.post-card.featured .card-body {
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.version-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  background: var(--orange-dim);
  color: var(--orange-light);
  border: 1px solid rgba(232, 101, 26, 0.25);
  border-radius: 6px;
  padding: 0.15rem 0.55rem;
  font-weight: 500;
}

.card-date {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.35;
}

.post-card.featured .card-title {
  font-size: 1.7rem;
}

.card-excerpt {
  font-size: 0.92rem;
  color: var(--cream-dim);
  line-height: 1.7;
  font-style: italic;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.tag {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  background: var(--surface2);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
}

.card-cta {
  font-size: 0.82rem;
  color: var(--orange-light);
  font-family: 'Lora', serif;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ── FEATURED CARD DECORATION ── */

.card-art {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #000;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── POST PAGE ── */

.post-header {
  max-width: 740px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid var(--border);
}

.post-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.post-header .back-link:hover {
  color: var(--orange-light);
}

.post-header .post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.post-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.post-header .post-desc {
  font-style: italic;
  color: var(--cream-dim);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ── ARTICLE BODY ── */

.post-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--cream);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.post-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  margin: 2rem 0 0.75rem;
}

.post-body p {
  margin-bottom: 1.25rem;
  color: var(--cream);
  font-size: 1.02rem;
  line-height: 1.85;
}

.post-body em {
  color: var(--orange-light);
  font-style: italic;
}

.post-body strong {
  color: var(--cream);
  font-weight: 600;
}

.post-body ul, .post-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--cream);
}

.post-body li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.post-body li::marker {
  color: var(--orange);
}

.post-body blockquote {
  border-left: 3px solid var(--orange);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  color: var(--cream-dim);
  font-style: italic;
}

.post-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--surface2);
  color: var(--orange-light);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.post-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.88rem;
  color: var(--cream-dim);
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.post-body a {
  color: var(--orange-light);
  text-decoration: underline;
  text-decoration-color: rgba(245, 131, 46, 0.3);
  transition: text-decoration-color 0.2s;
}

.post-body a:hover {
  text-decoration-color: var(--orange-light);
}

/* ── SIGN-OFF ── */

.post-signoff {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.signoff-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-light);
  background: #000;
}

.signoff-text {
  font-style: italic;
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.signoff-text strong {
  color: var(--orange-light);
  font-style: normal;
}

/* ── POST NAV ── */

.post-nav {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--cream-dim);
  font-size: 0.85rem;
  max-width: 45%;
  transition: color 0.2s;
}

.post-nav a:hover {
  color: var(--orange-light);
}

.post-nav a span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.post-nav a.next {
  text-align: right;
  margin-left: auto;
}

/* ── FOOTER ── */

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--orange-light);
}

/* ── LOADING ── */

.loading {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
  font-style: italic;
}

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
  .post-card.featured {
    flex-direction: column;
  }

  .card-art {
    width: 100%;
    height: 120px;
    font-size: 3rem;
  }

  .nav-links {
    display: none;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }
}

/* ── PAINT SPLASH DECORATORS ── */

.paint-splash {
  pointer-events: none;
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.07;
}
