/* EvilPet content styles — served at /content/css/article.css
   Layered on top of the site's /static/style.css + /static/brand/brand.css.
   Only classes used by this content repo. Dark theme: bg #202124, light text. */

:root {
  --content-max: 820px;
  --content-accent: #34d399;
  --content-muted: #9aa0a6;
  --content-surface: #2a2c2e;
  --content-border: #3a3d40;
}

/* ---------- Article layout ---------- */

.article {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.article-hero {
  margin-bottom: 2rem;
}

.article-hero .badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--content-accent);
  border: 1px solid var(--content-border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.9rem;
}

.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.article-hero .deck {
  font-size: 1.15rem;
  color: var(--content-muted);
  line-height: 1.5;
  margin: 0 0 1rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--content-muted);
}

.article-hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 1.25rem;
  border: 1px solid var(--content-border);
}

/* ---------- Article body typography ---------- */

.article-body {
  font-size: 1.05rem;
  line-height: 1.7;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 2.2rem 0 0.8rem;
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.6rem;
}

.article-body p {
  margin: 0 0 1.1rem;
}

.article-body a {
  color: var(--content-accent);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--content-border);
}

.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--content-surface);
  border: 1px solid var(--content-border);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

.article-body pre {
  background: #141517;
  border: 1px solid var(--content-border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 0 0 1.3rem;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
}

.article-body blockquote {
  margin: 1.4rem 0;
  padding: 0.4rem 1.2rem;
  border-left: 3px solid var(--content-accent);
  color: var(--content-muted);
  font-style: italic;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.3rem;
  font-size: 0.95rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--content-border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.article-body th {
  background: var(--content-surface);
}

/* ---------- Callout ---------- */

.callout {
  background: var(--content-surface);
  border: 1px solid var(--content-border);
  border-left: 3px solid var(--content-accent);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0;
}

.callout strong {
  color: var(--content-accent);
}

.callout p {
  margin: 0.3rem 0 0;
}

/* ---------- CTA ---------- */

.article-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.cta-btn {
  display: inline-block;
  background: var(--content-accent);
  color: #0b1f16;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.75rem 1.6rem;
}

.cta-btn:hover {
  filter: brightness(1.1);
}

/* ---------- Page head (index pages) ---------- */

.page-head {
  max-width: var(--content-max);
  margin: 0 auto 2rem;
  padding-top: 2rem;
}

.page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.5rem;
}

.page-head .deck {
  color: var(--content-muted);
  font-size: 1.1rem;
  margin: 0;
}

/* ---------- Card grid ---------- */

.cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--content-surface);
  border: 1px solid var(--content-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  border-color: var(--content-accent);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.card-body .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--content-accent);
  margin-bottom: 0.5rem;
}

.card-body h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.card-body p {
  color: var(--content-muted);
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--content-muted);
}
