/*
Theme Name: Flowster Blog
Theme URI: https://blog.flowster.app
Author: Flowster
Description: Lightweight editorial theme for blog.flowster.app. Shares Flowster's brand colors and type but runs its own masthead, independent of the flowster.app Elementor product chrome.
Version: 1.0.0
Text Domain: flowster-blog
*/

:root{
  --ink: #28323c;
  --ink-soft: #5a6672;
  --paper: #ffffff;
  --paper-dim: #f4f6f7;
  --line: #e3e7ea;
  --accent: #ff466e;
  --accent-ink: #cc3858;
  --accent-2: #2dd2f0;
  --dark: #232b33;
  --dark-soft: #565b66;
  --on-dark: #eef1f3;
  --on-dark-soft: #aeb6bd;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .5em;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 26px; width: auto; }
.brand .tag {
  font-size: 13px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
  border-left: 1px solid var(--line);
  padding-left: 10px;
  position: relative;
  top: 1px;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--accent-ink); text-decoration: none; }
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 2px;
  white-space: nowrap;
}
.cta:hover { background: var(--accent-ink); color: #fff; text-decoration: none; }

.nav-toggle-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ''; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

/* ---------- Post grid ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  padding: 44px 0 32px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-card .thumb {
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-dim);
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .cat {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.post-card h2 { font-size: 19px; margin: 0; }
.post-card h2 a { color: var(--ink); }
.post-card .excerpt { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: auto;
}
.byline img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

.page-intro { padding: 48px 0 8px; }
.page-intro .eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.page-intro h1 { font-size: clamp(28px, 4vw, 38px); margin-top: 6px; }

.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 20px 0 60px;
  font-size: 14px;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Single post ---------- */
article.single-post { padding-top: 48px; padding-bottom: 10px; }
article.single-post .cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
article.single-post h1 { font-size: clamp(28px, 4.5vw, 42px); margin: 10px 0 18px; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 14px;
}
.post-meta img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.post-meta .name { color: var(--ink); font-weight: 600; }
.entry-content { font-size: 17.5px; line-height: 1.75; }
.entry-content img { border-radius: 10px; margin: 8px 0; }
.entry-content figcaption {
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: -2px;
}
.entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
.entry-content a { text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  color: var(--ink-soft);
  font-style: italic;
}

.author-box {
  display: flex;
  gap: 18px;
  background: var(--paper-dim);
  border-radius: 12px;
  padding: 24px;
  margin: 48px 0 20px;
}
.author-box img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box .name { font-weight: 600; margin-bottom: 4px; }
.author-box .bio { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 60px; }
.tag-row a {
  font-size: 12.5px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink-soft);
}
.tag-row a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark-soft);
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.site-footer img.foot-logo { height: 24px; margin-bottom: 14px; }
.site-footer p { font-size: 13.5px; margin: 0 0 8px; }
.site-footer h2 {
  color: var(--on-dark);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--on-dark-soft); font-size: 13.5px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--dark-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--on-dark);
}
.newsletter-form { display: flex; max-width: 340px; margin-top: 4px; }
.newsletter-form input {
  flex: 1; min-width: 0;
  padding: 12px 14px;
  border: none;
  border-radius: 6px 0 0 6px;
  background: var(--dark-soft);
  color: #fff;
  font-size: 14px;
}
.newsletter-form button {
  padding: 12px 18px;
  border: none;
  border-radius: 0 6px 6px 0;
  background: var(--accent-ink);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.newsletter-form button:hover { background: #a92d47; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.row-break { display: none; }

@media (max-width: 1100px) {
  .row-break { display: block; flex-basis: 100%; height: 0; }
  .site-header { padding: 16px 0; }
  .site-header .row { gap: 10px; }
  .cta { margin: 4px auto 0; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle-btn { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { width: 100%; }
  .site-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Author archive ---------- */
.byline a { color: inherit; }
.byline a:hover { color: var(--accent-ink); text-decoration: none; }

.author-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 48px 0 8px;
}
.author-hero img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.author-hero h1 { font-size: clamp(26px, 3.6vw, 34px); margin: 4px 0 8px; }
.author-hero .bio { font-size: 15.5px; color: var(--ink-soft); margin: 0; max-width: 560px; }