/* Shared stylesheet for sethshoultes.com tech blog posts.
 * Self-contained — no dependencies beyond Google Fonts.
 * Match the parent site's palette (teal accent, Inter + Lora). */

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

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #6b7280;
  --accent: #0f766e;
  --accent-light: #ccfbf1;
  --border: #e5e7eb;
  --radius: 12px;
}

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

/* --- NAV --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 2rem;
}
nav .nav-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
nav .logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
nav .nav-back {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
nav .nav-back:hover { color: var(--accent); }

/* --- ARTICLE CONTAINER --- */
article {
  max-width: 720px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
}

.post-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

article h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

article .subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.75rem;
  font-weight: 400;
}

article .byline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

article .byline a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

/* --- VIDEO EMBED --- */
.video-hero {
  margin: 0 0 3rem;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 420px;
}
.video-hero .video-embed {
  position: relative;
  padding-bottom: 177.78%;
  height: 0;
}
.video-hero .video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-hero-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* --- BODY CONTENT --- */
.post-content {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
}

.post-content p { margin-bottom: 1.4rem; }

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.post-content a:hover { text-decoration-thickness: 2px; }

.post-content h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

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

.post-content code {
  font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  background: #eef2f6;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--text);
}

.post-content pre {
  font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.5;
  margin: 2rem 0;
}

.post-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.post-content em { font-style: italic; }
.post-content strong { font-weight: 700; color: var(--text); }

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.4rem 1.5rem;
  padding-left: 0.5rem;
}
.post-content li { margin-bottom: 0.5rem; line-height: 1.6; }

/* --- IMAGES --- */
.post-content figure { margin: 2.5rem -1rem; }

.post-content figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.post-content figure figcaption {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
  padding: 0 1rem;
  line-height: 1.5;
  font-style: italic;
}

/* --- VIDEO HERO (portrait shorts under the byline) --- */
.video-hero {
  margin: 0 0 3rem;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 420px;
}
.video-hero .video-embed {
  position: relative;
  padding-bottom: 177.78%; /* 9:16 portrait */
  height: 0;
}
.video-hero .video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-hero-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* --- BIO FOOTER --- */
.post-bio {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* --- RELATED POSTS --- */
.related-posts {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}

.related-posts h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.related-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.related-posts a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.related-posts a:hover { color: var(--accent); }

/* --- DIVIDER + FOOTER --- */
.divider {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.divider hr {
  border: none;
  border-top: 1px solid var(--border);
}

footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: 'Inter', sans-serif;
}
footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer .footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 1.5rem;
  transition: color 0.2s;
}
footer .footer-links a:hover { color: var(--accent); }

/* --- MOBILE --- */
@media (max-width: 640px) {
  article { padding: 6rem 1.25rem 3rem; }
  .post-content figure { margin: 2rem -0.5rem; }
  .video-hero { max-width: 100%; }
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
  footer .footer-links a:first-child { margin-left: 0; }
}
