/* Static blog styles — standalone, no dependency on the React bundle.
   Matches Schedulo branding: Montserrat headings, #3B82F6 blue accent. */

:root {
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --ink: #1f2937;
  --muted: #6b7280;
  --bg: #f9fafb;
  --card: #ffffff;
  --border: #e5e7eb;
  /* Phone default; tablet/desktop overrides below (2× base sizes) */
  --brand-logo-height: 3.5rem;
  --brand-logo-max-width: min(18rem, 55vw);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: "Montserrat", -apple-system, sans-serif;
  line-height: 1.25;
  color: #111827;
}

a { color: var(--blue-dark); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.site-header .brand {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  max-width: var(--brand-logo-max-width);
  text-decoration: none;
}

.site-header .brand-logo {
  display: block;
  height: var(--brand-logo-height);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.site-header nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.site-header nav a:hover { color: var(--blue-dark); }

.site-header nav a.cta,
a.cta-button {
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.site-header nav a.cta:hover,
a.cta-button:hover { background: var(--blue-dark); color: #fff; }

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* Listing page cards */
.post-list { display: grid; gap: 1.25rem; margin-top: 2rem; }

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.post-card h2 { margin: 0.25rem 0 0.5rem; font-size: 1.35rem; }
.post-card h2 a { text-decoration: none; color: #111827; }
.post-card h2 a:hover { color: var(--blue-dark); }
.post-card p { margin: 0.25rem 0 0.75rem; }
.read-more { font-weight: 600; text-decoration: none; }

/* Article pages */
article.post h1 { font-size: 2rem; margin-bottom: 0.25rem; }
article.post h2 { font-size: 1.45rem; margin-top: 2.25rem; }
article.post h3 { font-size: 1.15rem; margin-top: 1.5rem; }

article.post ul, article.post ol { padding-left: 1.4rem; }
article.post li { margin: 0.35rem 0; }

article.post table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  background: var(--card);
  font-size: 0.95rem;
}

article.post th, article.post td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

article.post th { background: #eff6ff; }

.callout {
  background: #eff6ff;
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
}

.callout p { margin: 0.35rem 0; }

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  text-decoration: none;
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .container { padding-top: 1.75rem; }
  article.post h1 { font-size: 1.6rem; }
}

/* Tablet: medium logo */
@media (min-width: 640px) {
  :root {
    --brand-logo-height: 4.5rem;
    --brand-logo-max-width: min(22rem, 50vw);
  }
}

/* Desktop: largest logo; room for full wordmark without crowding nav */
@media (min-width: 1024px) {
  :root {
    --brand-logo-height: 6rem;
    --brand-logo-max-width: 28rem;
  }
}
