/* =========================================================
   Supermodel Blog Post — Shared Stylesheet
   Linked by all individual post pages and blog-post.html template.
   ========================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg:        #000000;
  --bg-card:   #161616;
  --border:    #202020;
  --text:      #FFFFFF;
  --text-muted:#808080;
  --accent:    #71B9BC;
  --font: 'Public Sans', sans-serif;
  --mono: 'Martian Mono', monospace;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Article layout ----- */
.article-header {
  padding: 100px 24px 32px;
  max-width: 740px;
  margin: 0 auto;
}

.article-header .back-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: .9rem;
  margin-bottom: 32px;
  transition: opacity .2s;
}
.article-header .back-link:hover { opacity: .7; }

.article-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 200;
  letter-spacing: -.03em;
  margin-bottom: 24px;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.article-meta .author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.article-hero {
  max-width: 740px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.article-hero img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
}

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 120px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 48px 0 16px;
  letter-spacing: -.02em;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 36px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
  color: rgba(255,255,255,.85);
}

.article-body ul, .article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: rgba(255,255,255,.85);
}

.article-body li { margin-bottom: 8px; }

.article-body code {
  font-family: var(--mono);
  font-size: .85em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.article-body pre {
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 24px;
}

.article-body pre code.hljs {
  background: transparent;
  border: none;
  padding: 20px 24px;
  font-size: .83rem;
  line-height: 1.65;
  display: block;
  overflow-x: auto;
}

/* Syntax highlight colors (overrides github-dark theme) */
.hljs { background: #0a0a0a; color: #e2e8f0; }
.hljs-keyword, .hljs-selector-tag { color: #c084fc; }
.hljs-string { color: #86efac; }
.hljs-comment { color: #6b7280; font-style: italic; }
.hljs-number, .hljs-literal { color: #fb923c; }
.hljs-title, .hljs-section { color: #7dd3fc; }
.hljs-built_in, .hljs-name { color: #f9a8d4; }
.hljs-variable, .hljs-template-variable { color: #fbbf24; }
.hljs-attr, .hljs-attribute { color: #7dd3fc; }
.hljs-type { color: #67e8f9; }
.hljs-operator, .hljs-punctuation { color: #94a3b8; }
.hljs-tag { color: #7dd3fc; }

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  font-size: .9rem;
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
}
.article-body thead { background: #111; }
.article-body th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid #1e1e1e;
}
.article-body td { padding: 12px 16px; border-bottom: 1px solid #141414; color: rgba(255,255,255,.85); }
.article-body tr:last-child td { border-bottom: none; }
.article-body tbody tr:hover { background: rgba(255,255,255,.03); }

/* Win/loss table cell highlighting */
.article-body td.win { color: #4ade80; }
.article-body td.loss { color: #f87171; }

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

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

.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.article-body a:hover { border-bottom-color: var(--accent); }

.article-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 24px 0;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ----- Footer ----- */
footer {
  border-top: 1px solid var(--border);
  padding: 64px 24px 48px;
  text-align: center;
}

.tagline {
  font-size: 1.15rem; color: var(--text); max-width: 480px;
  margin: 0 auto 40px; line-height: 1.7; font-weight: 300;
}

.footer-links {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px; font-size: .85rem;
}
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-links span { color: var(--text-muted); }

blockquote:not(.article-body blockquote) {
  max-width: 600px; margin: 0 auto; font-size: .95rem;
  font-style: italic; color: var(--text-muted); line-height: 1.8;
}
blockquote:not(.article-body blockquote) cite {
  display: block; margin-top: 12px; font-style: normal;
  font-size: .85rem; color: var(--text-muted); opacity: 0.7;
}

/* ----- Author bio ----- */
.author-bio-section {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.author-bio-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.author-bio-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.author-bio-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.author-bio-website {
  font-size: .8rem;
  font-family: var(--mono);
  color: var(--accent);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity .2s;
}
.author-bio-website:hover { opacity: 1; }

.author-bio-text {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .author-bio-card { padding: 20px; gap: 14px; }
  .author-bio-avatar { width: 44px; height: 44px; }
}

/* ----- Post-specific: building-uncompact bottom CTA ----- */
.post-bottom-cta {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.post-bottom-cta-card {
  background: #f0eeea;
  border-radius: 16px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-bottom-cta-eyebrow {
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #6b6b6b;
  font-family: var(--mono);
  margin-bottom: 0;
}

.post-bottom-cta-heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 200;
  letter-spacing: -.03em;
  color: #0a0a0a;
  line-height: 1.2;
  margin-bottom: 0;
}

.post-bottom-cta-sub {
  font-size: .95rem;
  color: #4a4a4a;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 8px;
}

.cta-btn {
  display: inline-block;
  background: #0a0a0a;
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 400;
  transition: opacity .2s;
  align-self: flex-start;
}
.cta-btn:hover { opacity: .8; }

/* ----- Responsive ----- */
@media (max-width: 640px) {
  .article-header { padding: 64px 20px 24px; }
  .article-body { padding: 0 20px 80px; }
  .post-bottom-cta { padding: 0 20px 60px; }
  .post-bottom-cta-card { padding: 32px 24px; }
}
