/* ================================================
   Eldritch Capital — Shared Stylesheet
   ================================================ */

@import url('https://fonts.bunny.net/css?family=inter:400,500,600');

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

:root {
  --bg:         #0a0710;
  --bg-card:    #0f0c18;
  --text:       #ffffff;
  --text-muted: #888888;
  --text-dim:   #555555;
  --border:     rgba(255,255,255,0.08);
  --subscribe-bg:   #dedad0;
  --subscribe-text: #0a0710;
  --accent:     #b8b4a8;
  --max-width:  1160px;
  --article-width: 680px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.8; }

img { max-width: 100%; display: block; }

/* ================================================
   NAVIGATION
   ================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.9;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}

.nav-links a:hover { opacity: 1; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-subscribe {
  background: var(--subscribe-bg);
  color: var(--subscribe-text) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 99px;
  opacity: 1 !important;
  transition: background 0.15s;
}

.nav-subscribe:hover { background: #cac6bc !important; }

/* ================================================
   HOMEPAGE — POST GRID
   ================================================ */

.home-feed {
  max-width: var(--max-width);
  margin: 60px auto;
  padding: 0 40px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.post-card {
  padding: 40px 44px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s;
  cursor: pointer;
}

.post-card:hover { background: var(--bg-card); }

.post-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.post-card-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.post-card-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: auto;
  padding-top: 10px;
}

/* Featured card (first post, full width) */
.post-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
}

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

.post-card.featured .post-card-title {
  font-size: 32px;
}

/* ================================================
   ARTICLE PAGE
   ================================================ */

.article-wrapper {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 64px 40px 80px;
}

.article-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.article-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.article-meta {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.article-meta span { color: var(--text-muted); }

.article-image {
  margin-bottom: 48px;
  border-radius: 4px;
  overflow: hidden;
}

.article-image img { width: 100%; }

.article-content {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
}

.article-content p { margin-bottom: 24px; }

.article-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 48px 0 20px;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 36px 0 16px;
}

.article-content ol,
.article-content ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

.article-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content em { font-style: italic; }

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 32px 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ================================================
   FOOTER
   ================================================ */

.site-footer-top {
  border-top: 1px solid var(--border);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  height: 36px;
  width: auto;
  opacity: 0.7;
}

.footer-center {
  font-size: 14px;
  color: var(--text-dim);
}

.footer-right {
  font-size: 14px;
  color: var(--text-dim);
}

/* Subscribe section */
.subscribe-section {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 72px 40px;
}

.subscribe-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.subscribe-section p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.subscribe-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 4px 4px 20px;
  align-items: center;
}

.subscribe-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.subscribe-form input::placeholder { color: var(--text-dim); }

.subscribe-form button {
  background: var(--subscribe-bg);
  color: var(--subscribe-text);
  border: none;
  border-radius: 99px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.subscribe-form button:hover { background: #cac6bc; }

/* ================================================
   DISCLAIMER STRIP
   ================================================ */

.disclaimer {
  text-align: center;
  padding: 16px 40px;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }

  .home-feed { padding: 0 20px; margin: 40px auto; }

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

  .post-card { padding: 28px 24px; }

  .post-card.featured { flex-direction: column; gap: 20px; }

  .post-card.featured .post-card-title { font-size: 24px; }

  .article-wrapper { padding: 40px 20px 60px; }

  .article-title { font-size: 28px; }

  .site-footer-top { flex-direction: column; gap: 20px; text-align: center; padding: 32px 20px; }

  .subscribe-section { padding: 48px 20px; }
}
