/*
Theme Name: The Quick Brown Coder
Template: generatepress
Description: Child theme for thequickbrowncoder.com — a dev tools & productivity blog.
Version: 1.0
*/

:root {
  --tqbc-ink: #14171c;
  --tqbc-paper: #faf9f6;
  --tqbc-navy: #10131a;
  --tqbc-amber: #f2a93b;
  --tqbc-teal: #3fb8af;
  --tqbc-border: #e4e1d8;
  --tqbc-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
  --tqbc-sans: "IBM Plex Sans", -apple-system, sans-serif;
}

body {
  background: var(--tqbc-paper);
  color: var(--tqbc-ink);
  font-family: var(--tqbc-sans);
}

/* Hero */
.tqbc-hero {
  background: var(--tqbc-navy);
  color: #f2f0e8;
  padding: 64px 32px 56px;
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 0 0 12px 12px;
}
.tqbc-window-chrome { display: flex; gap: 8px; margin-bottom: 24px; }
.tqbc-window-chrome span { width: 10px; height: 10px; border-radius: 50%; background: #4a4f5a; }
.tqbc-window-chrome span:nth-child(1) { background: #e2554f; }
.tqbc-window-chrome span:nth-child(2) { background: var(--tqbc-amber); }
.tqbc-window-chrome span:nth-child(3) { background: var(--tqbc-teal); }
.tqbc-eyebrow { font-family: var(--tqbc-mono); font-size: 13px; color: var(--tqbc-teal); margin: 0 0 12px; }
.tqbc-hero-title { font-family: var(--tqbc-mono); font-size: clamp(24px, 4vw, 38px); line-height: 1.3; margin: 0 0 16px; }
.tqbc-cursor { display: inline-block; color: var(--tqbc-amber); animation: tqbc-blink 1s steps(2) infinite; }
@keyframes tqbc-blink { 50% { opacity: 0; } }
.tqbc-hero-sub { font-size: 16px; color: #c8c5ba; max-width: 480px; margin: 0; }

/* Post grid */
.tqbc-posts { max-width: 1040px; margin: 56px auto; padding: 0 32px; }
.tqbc-section-title { font-family: var(--tqbc-mono); font-size: 18px; font-weight: 500; margin-bottom: 24px; }
.tqbc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.tqbc-card {
  border: 1px solid var(--tqbc-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tqbc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(20, 23, 28, 0.08); }
.tqbc-card-link { display: block; text-decoration: none; color: inherit; }
.tqbc-card-media img { width: 100%; height: 160px; object-fit: cover; display: block; }
.tqbc-tag {
  display: inline-block;
  margin: 16px 20px 0;
  font-family: var(--tqbc-mono);
  font-size: 11px;
  text-transform: lowercase;
  background: rgba(63, 184, 175, 0.12);
  color: #1c6b65;
  padding: 3px 8px;
  border-radius: 4px;
}
.tqbc-card-title { font-size: 17px; font-weight: 500; margin: 10px 20px 6px; line-height: 1.35; }
.tqbc-card-excerpt { font-size: 14px; color: #5b5f66; margin: 0 20px 20px; line-height: 1.6; }

/* Resources / terminal callout */
.tqbc-resources { max-width: 720px; margin: 64px auto 80px; padding: 0 32px; text-align: center; }
.tqbc-terminal { background: var(--tqbc-navy); border-radius: 10px; padding: 24px 28px; text-align: left; margin-bottom: 20px; }
.tqbc-terminal-line { font-family: var(--tqbc-mono); font-size: 14px; color: #e8e6dd; margin: 0; }
.tqbc-prompt { color: var(--tqbc-amber); margin-right: 8px; }
.tqbc-button {
  display: inline-block;
  font-family: var(--tqbc-mono);
  font-size: 14px;
  background: var(--tqbc-amber);
  color: #1c1304;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
}
.tqbc-button:hover { background: #e89a26; }

@media (max-width: 600px) {
  .tqbc-hero, .tqbc-posts, .tqbc-resources { padding-left: 20px; padding-right: 20px; }
}
