/* Motherducker.tech Blog — shared styles (white + violet + sans) */
:root {
  --bg:        #FFFFFF;
  --bg-tint:   #FAFAFB;
  --bg-violet: #F5F3FF;
  --surface:   #FFFFFF;
  --surface-2: #FAFAFB;
  --line:      #E5E7EB;
  --line-2:    #D1D5DB;
  --ink:       #0F172A;
  --ink-soft:  #334155;
  --muted:     #64748B;
  --violet:    #7C3AED;
  --violet-deep: #6D28D9;
  --violet-soft: #EDE9FE;
  --violet-light: #A78BFA;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.06);
  --shadow-lg: 0 12px 32px rgba(15,23,42,0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-deep); }
img { max-width: 100%; display: block; }
.wrap { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.wrap-narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav-inner {
  min-height: 60px; display: flex;
  align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center;
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.028em;
  color: var(--ink); text-decoration: none;
  font-feature-settings: "ss01", "cv11";
}
.brand .tld { color: var(--violet); font-weight: 500; letter-spacing: -0.02em; }
.mark {
  width: 28px; height: 28px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--violet-soft);
  overflow: hidden; flex-shrink: 0;
}
.mark img { width: 22px; height: 22px; object-fit: contain; }
.nav-back {
  color: var(--muted); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: color .15s ease;
}
.nav-back:hover { color: var(--ink); }
.nav-tagline {
  flex: 1;
  margin-left: 14px;
  font-size: 13px;
  font-style: italic;
  color: var(--violet-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 820px) { .nav-tagline { display: none; } }
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  color: var(--ink-soft); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

/* BUTTONS */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 6px;
  background: var(--violet); color: white;
  font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.button:hover { background: var(--violet-deep); color: white; }
.button.large { min-height: 46px; padding: 0 24px; font-size: 15px; }
.button.secondary {
  background: white; color: var(--ink); border-color: var(--line-2);
}
.button.secondary:hover {
  background: white; color: var(--ink); border-color: var(--ink);
}

/* HERO (blog index) */
.blog-hero {
  padding: 72px 0 64px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-violet) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.blog-hero .wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 32px;
}

/* Founder advice card */
.founder-advice {
  padding: 24px 26px;
  border: 1px solid var(--violet-soft);
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.founder-advice .advice-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 12px;
}
.founder-advice .advice-eyebrow::before {
  content: ''; width: 5px; height: 5px;
  background: var(--violet); border-radius: 50%;
}
.founder-advice .advice-q {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; color: var(--muted);
  margin: 0 0 10px;
}
.founder-advice .advice-quote {
  color: var(--ink); font-size: 15px;
  line-height: 1.55; margin: 0 0 16px; font-weight: 400;
}
.founder-advice .advice-quote strong { color: var(--violet-deep); font-weight: 700; }
.founder-advice .advice-attribution {
  margin: 0; color: var(--muted);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
}
.founder-advice .advice-cta {
  display: inline-flex; margin-top: 14px;
  padding: 9px 14px; border: 0; border-radius: 6px;
  background: var(--violet); color: white;
  text-decoration: none; font-size: 13px; font-weight: 600;
  transition: background .15s ease;
}
.founder-advice .advice-cta:hover { background: var(--violet-deep); color: white; }
.founder-advice .subscribe-form {
  display: flex; gap: 8px; margin-top: 14px;
}
.founder-advice .subscribe-form input[type=email] {
  flex: 1; min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: white;
  font-family: inherit; font-size: 14px;
  color: var(--ink);
}
.founder-advice .subscribe-form input[type=email]:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.founder-advice .subscribe-form button {
  padding: 9px 16px; border: 0; border-radius: 6px;
  background: var(--violet); color: white;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s ease;
  white-space: nowrap;
}
.founder-advice .subscribe-form button:hover { background: var(--violet-deep); }
.founder-advice .subscribe-form button:disabled { background: var(--violet-light, #A78BFA); cursor: default; }
.founder-advice .subscribe-status {
  margin: 10px 0 0;
  font-size: 13px; font-weight: 500;
  min-height: 18px;
}

/* Eyebrow / lead */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--violet-soft); color: var(--violet-deep);
  font-size: 12px; font-weight: 600;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ''; width: 5px; height: 5px;
  background: var(--violet); border-radius: 50%;
}

/* Headings */
h1, h2, h3 {
  margin: 0; font-family: inherit;
  line-height: 1.2; letter-spacing: -0.02em; color: var(--ink);
}
.blog-hero h1 {
  font-size: clamp(32px, 4.2vw, 44px);
  font-weight: 700; max-width: 720px; line-height: 1.15;
  margin: 0 auto;
}
.blog-hero .lead {
  margin: 18px auto 0; max-width: 580px;
  color: var(--ink-soft); font-size: 17px; line-height: 1.55;
}
.founder-advice {
  max-width: 580px; text-align: left; width: 100%;
}

/* INDEX — article grid */
.article-grid { padding: 64px 0; background: var(--bg); }
.article-grid h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700; margin-bottom: 28px;
}
.cards {
  display: flex; flex-direction: column; gap: 0;
  max-width: 780px; margin: 0 auto;
}
.card {
  padding: 28px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px;
  transition: opacity .15s ease;
}
.card:first-child { padding-top: 0; }
.card:last-child { border-bottom: 0; }
.card:hover h3 { color: var(--violet-deep); }
.card:hover .read { gap: 8px; }
.card .card-meta {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
}
.card .tag {
  display: inline-flex;
  padding: 3px 10px; border-radius: 999px;
  background: var(--violet-soft); color: var(--violet-deep);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.card .card-date {
  font-size: 12px; font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.card.consultancy .tag { background: var(--violet-soft); color: var(--violet-deep); }
.card.apps .tag { background: #DCFCE7; color: #166534; }
.card.ops .tag { background: #DBEAFE; color: #1E40AF; }
.card h3 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.018em; line-height: 1.25;
  transition: color .15s ease;
}
.card p {
  margin: 0; color: var(--ink-soft);
  line-height: 1.55; font-size: 15px;
  max-width: 720px;
}
.card .read {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--violet);
  transition: gap .15s ease;
}

/* ARTICLE PAGE */
.article-header {
  padding: 56px 0 28px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-violet) 100%);
  border-bottom: 1px solid var(--line);
}
.article-header .wrap-narrow { position: relative; }
.article-header .breadcrumbs {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; color: var(--muted); margin-bottom: 18px;
}
.article-header .breadcrumbs a { color: var(--muted); text-decoration: none; }
.article-header .breadcrumbs a:hover { color: var(--violet); }
.article-header .breadcrumbs span.sep { margin: 0 6px; opacity: 0.6; }
.article-header h1 {
  font-size: clamp(28px, 3.8vw, 40px); font-weight: 700;
  line-height: 1.2; margin-bottom: 16px;
}
.article-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.article-meta .line { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .dot { width: 5px; height: 5px; background: var(--violet); border-radius: 50%; }

.article-body { padding: 48px 0 72px; background: var(--bg); }
.article-body .wrap-narrow > * { max-width: 720px; }
.article-body p { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.article-body h2 {
  font-size: clamp(22px, 2.4vw, 26px); font-weight: 700;
  margin: 40px 0 16px; letter-spacing: -0.015em; color: var(--ink);
}
.article-body h3 { font-size: 18px; font-weight: 700; margin: 32px 0 12px; color: var(--ink); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--violet-deep); }
.article-body ul, .article-body ol { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.article-body li::marker { color: var(--violet); }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }
.article-body em { color: var(--ink); font-style: italic; }
.article-body blockquote {
  margin: 24px 0; padding: 16px 22px;
  border-left: 3px solid var(--violet);
  background: var(--bg-violet); color: var(--ink);
  line-height: 1.6; border-radius: 0 6px 6px 0;
}

/* Tables */
.article-body table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0; border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
  background: white; font-size: 14px;
}
.article-body table th, .article-body table td {
  padding: 11px 14px; text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.article-body table th {
  background: var(--bg-tint); color: var(--ink);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.article-body table tr:last-child td { border-bottom: none; }
.article-body table td strong { color: var(--ink); }

/* CTA card at bottom of article */
.cta-card {
  margin-top: 48px; padding: 28px;
  border: 1px solid var(--violet-soft);
  background: var(--bg-violet);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 14px;
}
.cta-card h3 {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.3;
}
.cta-card p { margin: 0; color: var(--ink-soft); line-height: 1.6; font-size: 14px; }
.cta-card .cta-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* Related */
.related { padding: 40px 0 64px; border-top: 1px solid var(--line); background: var(--bg-tint); }
.related h3 {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.related-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.related-card {
  padding: 20px; border: 1px solid var(--line);
  background: white; border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.related-card:hover { border-color: var(--violet); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.related-card .tag {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--violet-deep); margin-bottom: 6px; display: block;
}
.related-card h4 {
  margin: 0; font-size: 16px; font-weight: 700;
  line-height: 1.35; letter-spacing: -0.015em; color: var(--ink);
}
@media (max-width: 760px) { .related-cards { grid-template-columns: 1fr; } }

/* Footer */
footer {
  padding: 36px 0;
  background: white; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.footer-row .links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer-row .links a {
  color: var(--muted); text-decoration: none;
  font-weight: 500; font-size: 13px;
  transition: color .15s ease;
}
.footer-row .links a:hover { color: var(--ink); }
.footer-meta {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}
@media (max-width: 480px) { .footer-row { flex-direction: column; align-items: flex-start; } }
