/* ============================================
   saurabhsingh.dev — Broadsheet + Terminal
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #f7f5f0;
  color: #2d2d2d;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.8;
}

a {
  color: #5e6ad2;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Typography --- */
.serif {
  font-family: Georgia, 'Times New Roman', serif;
}

.sans {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mono {
  font-family: 'Courier New', Courier, monospace;
}

.section-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #bbb;
  margin-bottom: 8px;
}

.section-intro {
  font-size: 1.25rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 40px;
  max-width: 540px;
}

/* --- Layout --- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
}

.section + .section {
  border-top: 1px solid #e5e1da;
}

/* --- Navigation --- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e5e1da;
}

.nav-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  color: #1a1a1a;
  text-decoration: none;
}

.nav-name:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-links a {
  color: #888;
  text-decoration: none;
}

.nav-links a:hover {
  color: #1a1a1a;
}

/* --- Hero --- */
.hero {
  padding: 80px 0 60px;
}

.hero-image {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 32px;
  object-fit: cover;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 16px;
  max-width: 640px;
}

.hero-sub {
  font-size: 1.25rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 32px;
}

.hero-tagline {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #bbb;
  margin-top: 24px;
}

/* --- Terminal Blocks --- */
.terminal {
  background: #1a1a2e;
  border-radius: 6px;
  padding: 16px 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  color: #888;
  max-width: 480px;
  overflow-x: auto;
}

.terminal .prompt { color: #666; }
.terminal .cmd { color: #d4d4d4; }
.terminal .arg { color: #c9a96e; }
.terminal .flag { color: #888; }
.terminal .comment { color: #666; }
.terminal .ok { color: #4ecdc4; }
.terminal .warn { color: #e5c07b; }
.terminal .err { color: #e06c75; }
.terminal-wide { max-width: 100%; }

/* --- Thesis --- */
.thesis p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 620px;
}

.thesis p:last-of-type {
  color: #444;
}

/* --- Product Cards --- */
.product-card {
  border: 1px solid #e5e1da;
  border-radius: 6px;
  padding: 28px;
  background: #fff;
  margin-bottom: 24px;
}

.product-card.coming-soon {
  opacity: 0.85;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.product-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  color: #1a1a1a;
}

.product-status {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c9a96e;
}

.product-status.soon {
  color: #888;
}

.product-desc {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 16px;
}

.product-link {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  margin-top: 12px;
}

/* --- Workshop Footer --- */
.workshop {
  border-left: 2px solid #c9a96e;
  padding-left: 20px;
  margin-top: 32px;
}

.workshop-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #bbb;
  margin-bottom: 12px;
}

.workshop p {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

/* --- Domain Pills --- */
.domain-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.domain-pill {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #666;
}

/* --- Profile Link --- */
.profile-link {
  padding-top: 20px;
  border-top: 1px solid #e5e1da;
}

.profile-link a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
}

.profile-link .teaser {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* --- Writing Teaser --- */
.post-preview {
  border-top: 1px solid #e5e1da;
  padding: 24px 0;
}

.post-date {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
}

.post-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  margin-bottom: 6px;
}

.post-title a { color: #1a1a1a; }
.post-title a:hover { color: #5e6ad2; }

.post-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}

.all-posts-link {
  border-top: 1px solid #e5e1da;
  padding: 24px 0;
}

.all-posts-link a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
}

/* --- Footer --- */
.site-footer {
  background: #1a1a2e;
  padding: 40px 0;
}

.site-footer .container {
  max-width: 720px;
}

.footer-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  color: #e8e4df;
  margin-bottom: 20px;
}

.footer-bio {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  color: #888;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
}

.footer-links a {
  color: #c9a96e;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* --- Blog Listing Page --- */
.blog-header {
  padding: 60px 0 20px;
}

.blog-header h1 {
  font-size: 1.75rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.blog-header .subtitle {
  font-size: 1.125rem;
  color: #666;
}

/* --- Blog Post Page --- */
.post-page-header {
  padding: 60px 0 32px;
}

.post-page-header h1 {
  font-size: 2rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 12px;
}

.post-page-header .date {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  color: #999;
}

.post-content {
  padding-bottom: 60px;
}

.post-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 620px;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 48px;
  margin-bottom: 16px;
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}

.post-content blockquote {
  border-left: 2px solid #c9a96e;
  padding-left: 20px;
  margin: 24px 0;
  color: #666;
  font-style: italic;
}

.post-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  background: #e8e4df;
  padding: 2px 6px;
  border-radius: 3px;
}

.post-content pre {
  background: #1a1a2e;
  border-radius: 6px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: #d4d4d4;
  font-size: 13px;
  line-height: 1.6;
}

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

.post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.post-content img {
  border-radius: 6px;
  margin: 24px 0;
}

/* --- Profile Page --- */
.profile-page h2 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 48px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.profile-page h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #2d2d2d;
  margin-top: 24px;
  margin-bottom: 4px;
}

.profile-page .role-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.profile-page p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 620px;
}

.profile-page ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.profile-page li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-sub {
    font-size: 1.1rem;
  }

  .nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .nav-links {
    gap: 16px;
  }

  .section {
    padding: 40px 0;
  }

  .domain-pills {
    gap: 6px;
  }

  .terminal {
    font-size: 11px;
    padding: 12px 14px;
  }

  .product-header {
    flex-direction: column;
    gap: 4px;
  }
}
