/*
Theme Name: ThinQProduct
Theme URI: https://thinqproduct.com
Author: Raghavendra
Author URI: https://thinqproduct.com
Description: A clean, editorial theme for ThinQProduct — a philosophy of action for builders and makers.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: thinqproduct
*/

/* ===================================================
   CSS RESET & ROOT
=================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #545454;
  --bg-soft:     #444444;
  --card:        #616161;
  --text:        #ffffff;
  --text-dim:    #cccccc;
  --accent:      #ff5757;
  --accent-soft: #ff8a8a;
  --line:        rgba(255,255,255,0.12);
  --max:         1080px;
  --max-narrow:  720px;
  --radius:      14px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

/* ===================================================
   TYPOGRAPHY
=================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 24px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); margin-bottom: 16px; }
h4 { font-size: 1.15rem; margin-bottom: 12px; }

p  { color: var(--text-dim); margin-bottom: 20px; font-size: 1.08rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--text); font-weight: 700; }
em     { font-style: italic; }

ul, ol { padding-left: 1.5rem; margin-bottom: 20px; color: var(--text-dim); }
li { margin-bottom: 8px; }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

blockquote {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 32px 0;
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
}

/* ===================================================
   LAYOUT
=================================================== */
.wrap        { max-width: var(--max);        margin: 0 auto; padding: 0 40px; }
.narrow      { max-width: var(--max-narrow); margin: 0 auto; padding: 0 28px; }
.site-main   { min-height: 60vh; padding: 0 0 80px; }

/* ===================================================
   HEADER / NAV
=================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #545454;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-branding a {
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-branding a span { color: var(--accent); }

.main-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-navigation li { margin: 0; }

.main-navigation a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  display: block;
}

.main-navigation a:hover { background: var(--bg-soft); color: var(--text); }

.main-navigation .menu-item-cta a {
  background: var(--text);
  color: #fff;
  margin-left: 8px;
}
.main-navigation .menu-item-cta a:hover { background: var(--accent); }

/* Hamburger (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
}

/* ===================================================
   HERO (front page)
=================================================== */
.hero {
  text-align: center;
  padding: 120px 0 100px;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 { margin-bottom: 26px; }

.hero .lede {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===================================================
   BUTTONS
=================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(200,119,46,0.3); text-decoration: none; }

.btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }

/* ===================================================
   CONTENT SECTIONS
=================================================== */
.content-section          { padding: 88px 0; }
.content-section.bordered { border-top: 1px solid var(--line); }
.content-section.soft     { background: var(--bg-soft); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.signal {
  font-family: 'Georgia', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 1.4rem;
  text-align: center;
  margin: 36px 0;
  line-height: 1.5;
}

.equation {
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 16px 28px;
  display: table;
  margin: 36px auto;
}
.equation b { color: var(--text); font-weight: 700; }

.philosophy-block {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  margin: 40px 0;
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.6;
}

/* ===================================================
   AUTHOR / ABOUT
=================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.social-links { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: 0.18s;
}
.social-links a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===================================================
   POSTS GRID
=================================================== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 0; }
.section-head .view-all { font-size: 0.9rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.section-head .view-all:hover { text-decoration: underline; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.07); text-decoration: none; }

.post-card-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.post-card h3  { font-size: 1.1rem; margin-bottom: 0; color: var(--text); }
.post-card p   { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 0; }
.post-card .read-more { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-top: auto; }

.post-card.cta-card {
  background: var(--accent-soft);
  border: none;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.post-card.cta-card h3 { font-size: 1.05rem; }

/* ===================================================
   TOPICS
=================================================== */
.topics-list { display: flex; flex-wrap: wrap; gap: 12px; }
.topics-list a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: 0.18s;
}
.topics-list a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===================================================
   SINGLE POST / PAGE CONTENT
=================================================== */
.entry-header { padding: 80px 0 48px; border-bottom: 1px solid var(--line); }
.entry-meta    { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 20px; }
.entry-meta a  { color: var(--accent); }
.entry-content { padding: 56px 0; }

.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 40px; }

.entry-content p { margin-bottom: 24px; }
.entry-content a { color: var(--accent); }
.entry-content ul, .entry-content ol { margin-bottom: 24px; }

.entry-content img {
  border-radius: var(--radius);
  margin: 32px 0;
}

/* ===================================================
   CTA STRIP
=================================================== */
.cta-strip {
  text-align: center;
  padding: 100px 0;
}
.cta-strip h2 { margin-bottom: 14px; }
.cta-strip p  { max-width: 520px; margin: 0 auto 36px; }

/* ===================================================
   FOOTER
=================================================== */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  text-align: center;
}

.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

.footer-logo {
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 20px;
  display: inline-block;
  text-decoration: none;
}
.footer-logo span { color: var(--accent); }

.footer-nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-nav a { font-size: 0.88rem; color: var(--text-dim); padding: 6px 12px; text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }

.footer-copy { font-size: 0.83rem; color: var(--text-dim); }

/* ===================================================
   ARCHIVE / BLOG
=================================================== */
.archive-header { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.archive-header h1 { margin-bottom: 10px; }
.archive-header p  { margin-bottom: 0; }

.post-list { padding: 56px 0; display: flex; flex-direction: column; gap: 0; }

.post-list-item {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: 0.18s;
}
.post-list-item:hover { text-decoration: none; }
.post-list-item:hover h2 { color: var(--accent); }

.post-list-item h2 { font-size: 1.35rem; margin-bottom: 10px; transition: color 0.18s; }
.post-list-item .excerpt { font-size: 1rem; color: var(--text-dim); margin-bottom: 0; }
.post-list-date { font-size: 0.83rem; color: var(--text-dim); white-space: nowrap; padding-top: 6px; }

/* ===================================================
   PAGINATION
=================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 0;
}
.pagination a, .pagination span {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  transition: 0.18s;
}
.pagination a:hover    { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .current   { background: var(--text);   color: #fff; border-color: var(--text); }

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 900px) {
  .posts-grid    { grid-template-columns: 1fr 1fr; }
  .about-grid    { grid-template-columns: 1fr; text-align: center; }
  .about-photo   { width: 160px; margin: 0 auto; }
  .social-links  { justify-content: center; }
}

@media (max-width: 640px) {
  .header-inner  { padding: 0 20px; }
  .wrap, .narrow { padding: 0 20px; }
  .main-navigation { display: none; }
  .main-navigation.open { display: block; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 20px 24px; }
  .main-navigation.open ul { flex-direction: column; gap: 4px; }
  .menu-toggle   { display: block; }
  .hero          { padding: 80px 0 70px; }
  .content-section { padding: 60px 0; }
  .posts-grid    { grid-template-columns: 1fr; }
  .post-list-item { grid-template-columns: 1fr; }
  .post-list-date { display: none; }
}


/* Hide empty hero on inner pages */
.page-id-12578 .hero,
.page:not(.home) .hero:has(h1:empty) {
  display: none;
}

/* Thought process section — contrast between Edison and What If */
#thought-process h3 {
  color: var(--accent);
  margin-top: 2.5rem;
}

/* Fix about-photo background — was light red, now matches card */
.about-photo { background: var(--card) !important; }

/* Author card section background fix */
.author-card, .about-card { background: var(--bg-soft) !important; }

/* CTA card text full white */
.cta-card p, .cta-card h3 { color: #ffffff !important; }

/* CTA card background — was light red, now dark */
.cta-card { background: var(--bg-soft) !important; border: 1px solid var(--line) !important; }

/* Hero section darker background for contrast */
.hero { background: #2e2e2e; }