/* Article styles — ported from ArticlePage.astro <style>. */

.article { max-width: 760px; padding: 2.5rem 0 5rem; }
.article-hero {
  width: 100%; height: auto; border-radius: 14px; display: block;
  margin-bottom: 2rem; border: 1px solid var(--line);
}
.article .eyebrow {
  color: var(--plasma); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: lowercase; margin: 0 0 0.6rem; opacity: 0.85;
}
.article h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.12; margin: 0 0 1rem; }
.article-lede { font-size: 1.18rem; line-height: 1.6; color: var(--ink); opacity: 0.92; font-style: italic; margin: 0 0 2rem; }

.prose p { color: var(--ink); opacity: 0.92; line-height: 1.75; font-size: 1.08rem; margin: 0 0 1.4rem; }
.prose h2 { font-size: 1.5rem; margin: 2.6rem 0 0.8rem; }
.prose blockquote, .prose .wp-block-quote {
  border-left: 3px solid var(--plasma); padding-left: 1.2rem;
  margin: 1.6rem 0; font-style: italic; opacity: 0.9;
}
.prose a { color: var(--plasma); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { color: var(--ink); opacity: 0.92; line-height: 1.7; padding-left: 1.4rem; margin: 0 0 1.4rem; }

/* Figures (wp:image) break out of the 760px prose column on wide viewports —
   same treatment as .article-fig in ArticlePage.astro. */
.prose .wp-block-image, .prose .article-fig {
  margin: 2.4rem auto;
  width: min(1120px, calc(100vw - 2.4rem));
  margin-left: 50%;
  transform: translateX(-50%);
  max-width: none;
}
.prose .wp-block-image img, .prose .article-fig img {
  width: 100%; height: auto; border-radius: 12px; display: block;
  border: 1px solid var(--line);
}
.prose .wp-block-image figcaption, .prose .article-fig figcaption {
  font-size: 0.82rem; color: var(--ink-dim); text-align: center;
  margin: 0.6rem auto 0; max-width: 760px;
  font-family: var(--font-mono);
}
@media (max-width: 820px) {
  .prose .wp-block-image, .prose .article-fig {
    width: 100%; margin-left: 0; transform: none;
  }
}
.tags { margin-top: 3rem; font-size: 0.82rem; letter-spacing: 0.04em; }

/* Newsletter — same component as front page */
.newsletter {
  margin: 3rem 0; padding: 2rem 2rem 1.5rem;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.04), rgba(0,0,0,0));
}
.newsletter-eyebrow { font-size: 0.78rem; color: var(--plasma); margin-bottom: 0.6rem; letter-spacing: 0.04em; }
.newsletter-heading { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; line-height: 1.2; margin: 0 0 0.5rem; color: var(--ink); }
.newsletter-sub { color: var(--ink-dim); margin: 0 0 1.2rem; font-size: 0.95rem; line-height: 1.55; }
.newsletter-form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.newsletter-label { flex: 1 1 240px; min-width: 0; }
.newsletter-email {
  width: 100%; padding: 0.7rem 0.95rem; font-size: 0.95rem; font-family: inherit;
  background: rgba(255,255,255,0.04); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; outline: none;
}
.newsletter-email:focus { border-color: var(--plasma); background: rgba(34, 211, 238, 0.05); }
.newsletter-submit {
  padding: 0.7rem 1.4rem; font-family: inherit; font-size: 0.95rem; font-weight: 600;
  color: #02121a; background: var(--plasma); border: 1px solid var(--plasma);
  border-radius: 999px; cursor: pointer;
}
.newsletter-submit:hover { opacity: 0.9; }
.newsletter-submit:disabled { opacity: 0.7; cursor: default; }
.newsletter-sink { position: absolute; width: 0; height: 0; border: 0; visibility: hidden; pointer-events: none; }
.newsletter-status {
  font-size: 0.88rem; line-height: 1.5; margin: 0 0 0.8rem; padding: 0.6rem 0.85rem;
  border-radius: 10px; border: 1px solid var(--line); color: var(--ink);
}
.newsletter-status[data-kind="ok"] { border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.08); color: var(--plasma); }
.newsletter-status[data-kind="err"] { border-color: rgba(244, 114, 114, 0.45); background: rgba(244, 114, 114, 0.08); color: #f47272; }
.newsletter-fine { font-size: 0.7rem; color: var(--ink-dim); opacity: 0.7; margin: 0; }

/* Comments */
.comments-area { margin: 4rem 0 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments-eyebrow { font-size: 0.85rem; color: var(--plasma); letter-spacing: 0.04em; }
.comments-heading { font-family: var(--font-display); font-weight: 700; margin: 0 0 0.6rem; font-size: 1rem; }
.comments-sub { color: var(--ink-dim); font-size: 0.9rem; margin: 0 0 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .comment { border-top: 1px dashed var(--line); padding: 1rem 0; }
.comment-list .children { list-style: none; padding-left: 1.6rem; }
.comment-author { font-weight: 600; color: var(--ink); }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: 0.5rem; }
.comment-metadata { font-size: 0.75rem; color: var(--ink-dim); font-family: var(--font-mono); }
.comment-content { color: var(--ink); opacity: 0.92; line-height: 1.6; font-size: 0.95rem; }
.comment-pinned-badge { color: var(--stellar); font-size: 0.72rem; font-family: var(--font-mono); margin-left: 0.5rem; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 0.6rem 0.8rem; font-size: 0.92rem; font-family: inherit;
  background: rgba(255,255,255,0.04); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
}
.form-submit input[type="submit"] {
  padding: 0.65rem 1.4rem; font-weight: 600; color: #02121a;
  background: var(--plasma); border: 1px solid var(--plasma);
  border-radius: 999px; cursor: pointer;
}
