/* S-Mailer blog — brand styling. Blue #2563eb primary, teal #0d9488 secondary. */

:root {
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-700);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: underline; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 32px; width: auto; display: block; }
.brand-name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--gray-900);
}
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { color: var(--gray-600); font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--gray-900); text-decoration: none; }
.nav-cta {
  background: var(--blue-600);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
}
.nav-cta:hover { background: var(--blue-700); }

/* ── Main ───────────────────────────────────────────────── */
.site-main { padding: 48px 20px 64px; min-height: 60vh; }

h1, h2, h3, h4 {
  color: var(--gray-900);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 2em 0 0.6em;
}
h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1.1em; }

hr { border: 0; border-top: 1px solid var(--gray-200); margin: 2.5em 0; }

img { max-width: 100%; height: auto; border-radius: 10px; }

blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1.2em;
  border-left: 4px solid var(--teal-600);
  background: var(--gray-50);
  color: var(--gray-600);
}

code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--gray-100);
  color: var(--teal-700);
  padding: 0.15em 0.4em;
  border-radius: 5px;
}
pre {
  background: var(--gray-900);
  color: #e5e7eb;
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
}
pre code { background: none; color: inherit; padding: 0; }

/* ── Home / post list ───────────────────────────────────── */
.page-heading { font-size: 1.3rem; color: var(--gray-500); font-weight: 600; }
.post-list { list-style: none; margin: 1.5em 0 0; padding: 0; }
.post-list > li {
  padding: 22px 0;
  border-top: 1px solid var(--gray-200);
}
.post-meta { color: var(--gray-500); font-size: 0.85rem; }
.post-link {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.015em;
  margin-top: 4px;
}
.post-link:hover { color: var(--blue-600); text-decoration: none; }

/* ── Single post / page ─────────────────────────────────── */
.post-title, .post-header h1 { margin-bottom: 0.1em; }
.post .post-meta, .post-header .post-meta { margin-bottom: 2em; }
.post-content > *:first-child { margin-top: 0; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  padding: 32px 0;
  margin-top: 48px;
}
.footer-inner { text-align: center; }
.footer-brand { color: var(--gray-700); font-weight: 600; margin-bottom: 6px; }
.footer-meta { color: var(--gray-500); font-size: 0.85rem; margin: 0; }
.footer-meta a { color: var(--gray-600); }

/* ── Useful-links cards ─────────────────────────────────── */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 1.5em 0 0.5em;
}
.link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.link-card:hover {
  text-decoration: none;
  border-color: var(--blue-600);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}
.link-card i {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--blue-600);
  background: var(--blue-50, #eff6ff);
  border-radius: 10px;
  margin-bottom: 8px;
}
.link-card-title {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 1.05rem;
}
.link-card-desc { color: var(--gray-500); font-size: 0.9rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .header-inner { min-height: 56px; }
  .brand-name { font-size: 18px; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.nav-cta) { font-size: 14px; }
  .site-main { padding: 32px 20px 48px; }
  h1, .post-link { font-size: 1.6rem; }
  .link-cards { grid-template-columns: 1fr; }
}
