/*
Theme Name: Founder Graph
Theme URI: https://founder-graph.com
Author: Founder Graph
Description: A minimal, clean theme for Founder Graph - Indian Startup News
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: foundergraph
*/

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:       #ffffff;
  --off-white:   #f7f7f5;
  --black:       #111111;
  --dark:        #222222;
  --mid:         #555555;
  --light:       #aaaaaa;
  --border:      #e5e5e5;
  --accent:      #0057ff;
  --accent-dark: #0040cc;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --max-width:    1100px;
  --radius:       6px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--black);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { font-size: 1rem; color: var(--mid); margin-bottom: 1rem; }

/* ─── LAYOUT ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── HEADER ─── */
#masthead {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-branding .site-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}
.site-branding .site-title a { color: var(--black); }
.site-branding .site-title a:hover { color: var(--accent); }
.site-branding .site-description {
  font-size: 0.72rem;
  color: var(--light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── NAVIGATION ─── */
.main-navigation ul { list-style: none; display: flex; gap: 2rem; }
.main-navigation ul li a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a { color: var(--accent); }

/* ─── HERO ─── */
.hero {
  background: var(--off-white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero h1 { max-width: 780px; margin: 0 auto 1.25rem; }
.hero .hero-sub {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 600px;
  margin: 0 auto 1rem;
  line-height: 1.8;
}
.hero .hero-sub + .hero-sub { margin-top: -0.5rem; margin-bottom: 2.5rem; }

/* ─── EMAIL SIGNUP ─── */
.signup-box {
  max-width: 460px;
  margin: 2rem 0 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: left;
}
.signup-box label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.6rem;
}
.signup-row {
  display: flex;
  gap: 0.5rem;
}
.signup-row input[type="email"] {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.signup-row input[type="email"]:focus { border-color: var(--accent); }
.signup-row button {
  padding: 0.7rem 1.25rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.signup-row button:hover { background: var(--accent-dark); }
.signup-note {
  font-size: 0.75rem;
  color: var(--light);
  margin-top: 0.6rem;
}

/* ─── SECTION LABEL ─── */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ─── POSTS SECTION ─── */
.posts-section {
  padding: 4rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
  background: var(--white);
}
.post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.post-card-image img { width: 100%; height: 175px; object-fit: cover; }
.post-card-body { padding: 1.25rem; }
.post-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.post-card-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.35; }
.post-card-body h3 a { color: var(--black); }
.post-card-body h3 a:hover { color: var(--accent); }
.post-card-body p {
  font-size: 0.875rem;
  color: var(--mid);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta { font-size: 0.76rem; color: var(--light); display: flex; gap: 1rem; }

/* ─── PAGE CONTENT ─── */
.page-wrap {
  max-width: 820px;
  width: 100%;
  margin: 4rem auto;
  padding: 0 2rem;
  box-sizing: border-box;
  overflow: hidden;
}
.page-wrap h1 { margin-bottom: 1.5rem; }
.page-content { font-size: 1.05rem; line-height: 1.85; color: var(--dark); width: 100%; }
.page-content p { color: var(--dark); margin-bottom: 1.25rem; max-width: 100%; word-wrap: break-word; }
.page-content h2 { margin: 2.5rem 0 1rem; }

/* ─── ABOUT PAGE ─── */
.about-intro {
  font-size: 1.2rem;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-family: var(--font-display);
}
.about-block {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.about-block p { color: var(--dark); margin: 0; }

/* ─── WEEKLY TRACKER ─── */
.tracker-wrap {
  max-width: var(--max-width);
  margin: 4rem auto;
  padding: 0 1.5rem;
}
.tracker-intro { max-width: 640px; margin-bottom: 2.5rem; }
.tracker-intro p { font-size: 1.05rem; color: var(--mid); }
.tracker-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tracker-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--off-white);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border);
}
.tracker-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--mid);
  vertical-align: top;
}
.tracker-table tr:hover td { background: var(--off-white); }
.tracker-table .startup-name { font-weight: 600; color: var(--black); }
.tracker-table .funding-amount { color: var(--accent); font-weight: 600; }

/* ─── SINGLE POST ─── */
.single-post-wrap {
  max-width: 740px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}
.single-post-wrap .post-header { margin-bottom: 2.5rem; }
.single-post-wrap .post-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #111;
}
.single-post-wrap .post-content {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #222;
}

/* Paragraphs */
.single-post-wrap .post-content p {
  color: #222;
  margin-bottom: 1.6rem;
  font-size: 1.15rem;
  line-height: 1.9;
}

/* Headings inside content */
.single-post-wrap .post-content h2 {
  font-size: 1.55rem;
  margin: 3rem 0 1rem;
  color: #111;
  line-height: 1.3;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e5e5;
}
.single-post-wrap .post-content h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: #111;
}

/* Blockquote */
.single-post-wrap .post-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #0057ff;
  background: #f0f5ff;
  border-radius: 0 6px 6px 0;
}
.single-post-wrap .post-content blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: #333;
  margin: 0;
  line-height: 1.75;
}

/* Tables */
.single-post-wrap .post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 2rem 0;
}
.single-post-wrap .post-content table th {
  text-align: left;
  padding: 0.7rem 1rem;
  background: #f7f7f5;
  color: #111;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid #e5e5e5;
}
.single-post-wrap .post-content table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e5e5e5;
  color: #444;
  vertical-align: top;
}
.single-post-wrap .post-content table tr:hover td { background: #f7f7f5; }

/* Horizontal rule */
.single-post-wrap .post-content hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 2.5rem 0;
}

/* Strong / bold */
.single-post-wrap .post-content strong { color: #111; font-weight: 600; }

/* Links inside content */
.single-post-wrap .post-content a { color: #0057ff; text-decoration: underline; text-underline-offset: 3px; }
.single-post-wrap .post-content a:hover { color: #0040cc; }

/* Lists */
.single-post-wrap .post-content ul,
.single-post-wrap .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.single-post-wrap .post-content li {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #222;
  margin-bottom: 0.4rem;
}

/* Stat callout — add class="fg-stat-callout" to a paragraph in WordPress */
.fg-stat-callout {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.fg-stat-callout span {
  background: #f0f5ff;
  border: 1px solid #c7d9ff;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 130px;
}
.fg-stat-callout strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0057ff;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.fg-stat-callout em {
  font-size: 0.72rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #777;
}

/* ─── CONTACT PAGE ─── */
.contact-wrap { max-width: 600px; margin: 4rem auto; padding: 0 1.5rem; }
.contact-wrap h1 { margin-bottom: 0.75rem; }
.contact-wrap .contact-intro { font-size: 1rem; color: var(--mid); margin-bottom: 2rem; }
.contact-form label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
  margin-top: 1.25rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form .btn { margin-top: 1.5rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-dark); color: var(--white); }

/* ─── FOOTER ─── */
#colophon {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner .site-info { font-size: 0.8rem; color: var(--light); }
.footer-nav ul { list-style: none; display: flex; gap: 1.5rem; }
.footer-nav ul li a { font-size: 0.8rem; color: var(--light); transition: color 0.2s; }
.footer-nav ul li a:hover { color: var(--accent); }

/* ─── BLOG LISTING ─── */
.blog-wrap { max-width: var(--max-width); margin: 4rem auto; padding: 0 1.5rem; }
.blog-wrap h1 { margin-bottom: 0.5rem; }
.blog-intro { font-size: 1rem; color: var(--mid); margin-bottom: 2.5rem; }

/* ─── PAGINATION ─── */
.pagination { margin-top: 3rem; display: flex; gap: 0.5rem; }
.pagination a, .pagination span {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--mid);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .site-header-inner { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .main-navigation ul { gap: 1.25rem; flex-wrap: wrap; }
  .hero { padding: 3rem 1.5rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav ul { justify-content: center; }
  .tracker-table { font-size: 0.78rem; }
  .tracker-table th, .tracker-table td { padding: 0.6rem 0.5rem; }
  .signup-row { flex-direction: column; }
}