/*
Theme Name: Tarot With G — Blog
Theme URI: https://blog.tarotwithgeetika.com
Author: Geetika Khurana
Description: Custom blog theme matching the Tarot With G brand system — navy #002133 + gold #ce9647, Playfair Display headings, Cormorant Garamond accent, Montserrat body.
Version: 1.0
Text Domain: twg-blog
*/

:root {
  --navy: #002133;
  --navy-deep: #001420;
  --gold: #ce9647;
  --gold-light: #e6bd85;
  --gold-dim: rgba(206, 150, 71, 0.14);
  --line-gold: rgba(206, 150, 71, 0.35);
  --white: #ffffff;
  --off: #f7f5f1;
  --ink: #0f1b22;
  --muted: #566067;
  --muted-on-dark: #c3cdd2;
  --on-dark: #ffffff;

  --font-head: 'Playfair Display', serif;
  --font-accent: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1180px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
section { position: relative; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); display: inline-block; }

.display {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
}
h1.display { font-size: clamp(36px, 5.2vw, 62px); }
h2.display { font-size: clamp(28px, 3.6vw, 42px); }
h3.display { font-size: clamp(21px, 2.2vw, 26px); }

.lede {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(20px, 2.1vw, 25px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}

.body-copy { font-family: var(--font-sans); font-size: 17px; line-height: 1.8; color: var(--muted); }
.body-copy strong { color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section--light { background: var(--white); color: var(--ink); }
.mt-lg { margin-top: 56px; }
.mt-md { margin-top: 30px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 32px;
  font-family: var(--font-sans);
  font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  white-space: normal;
  text-align: center;
  max-width: 100%;
}
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(206,150,71,0.6); }
.btn--sm { padding: 12px 22px; font-size: 12px; }
.link-inline { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(0, 20, 32, 0.0);
  transition: background .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(0, 20, 32, 0.92); backdrop-filter: blur(10px); padding: 10px 0; box-shadow: 0 1px 0 var(--line-gold); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; max-width: 1360px; }
.brand img { height: 76px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; flex-shrink: 0; }
.nav-links a { font-size: 11px; letter-spacing: 0.03em; text-transform: uppercase; font-weight: 600; color: var(--white); opacity: 0.88; position: relative; padding: 4px 0; white-space: nowrap; flex-shrink: 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; background: var(--gold); transition: width .3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { opacity: 1; color: var(--gold-light); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 26px; position: relative; z-index: 200; }

@media (max-width: 1240px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 84vw);
    background: var(--navy-deep); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 40px; gap: 26px; transform: translateX(100%); transition: transform .45s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,.4); z-index: 150;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-toggle { display: block; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--muted-on-dark); padding: 56px 0 26px; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; inset: 0; background-image: url('../assets/starfield-bg.jpg'); background-size: 800px; opacity: 0.12; mix-blend-mode: screen; }
.site-footer .wrap { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(206,150,71,0.22); }
.footer-grid img.footer-logo { height: 56px; margin-bottom: 16px; }
.footer-grid h4 { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 700; }
.footer-grid a, .footer-grid p { font-size: 14.5px; line-height: 2.1; color: var(--muted-on-dark); }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { min-width: 0; flex: 1 1 260px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { border: 1px solid rgba(206,150,71,0.4); border-radius: 999px; padding: 8px 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Grid / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid rgba(0,33,51,0.1); border-radius: var(--radius); padding: 36px 30px; box-shadow: 0 24px 50px -32px rgba(0,33,51,0.3); }
.frame img { border-radius: var(--radius); width: 100%; }

/* ---------- Page hero (post/archive header) ---------- */
.page-hero { padding: 150px 0 60px; background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: url('../assets/starfield-bg.jpg'); background-size: 700px; opacity: 0.14; mix-blend-mode: screen; }
.page-hero .wrap { position: relative; z-index: 1; }
.breadcrumb { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 700; }
.page-hero .display { color: var(--white); }
.page-hero .lede { color: var(--muted-on-dark); }

#scroll-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold); z-index: 200; width: 0%; }

/* ---------- Post content typography (applies to plain WP content) ---------- */
.entry-content { font-family: var(--font-sans); font-size: 17px; line-height: 1.85; color: var(--muted); max-width: 720px; }
.entry-content p { margin: 0 0 26px; }
.entry-content h2 { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: clamp(24px, 3vw, 32px); margin: 48px 0 20px; line-height: 1.2; }
.entry-content h3 { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: clamp(19px, 2.2vw, 23px); margin: 36px 0 16px; }
.entry-content ul, .entry-content ol { margin: 0 0 26px; padding-left: 22px; }
.entry-content li { margin-bottom: 10px; }
.entry-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.entry-content a:hover { color: var(--navy); }
.entry-content strong { color: var(--navy); }
.entry-content blockquote { font-family: var(--font-accent); font-style: italic; font-size: clamp(20px, 2.1vw, 24px); color: var(--navy); border-left: 3px solid var(--gold); padding-left: 24px; margin: 36px 0; }
.entry-content img { border-radius: var(--radius); margin: 30px 0; }

/* ---------- Pagination ---------- */
.pagination, .page-numbers { display: inline-flex; gap: 10px; align-items: center; }
.page-numbers { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--navy); padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(0,33,51,0.15); }
a.page-numbers:hover { border-color: var(--gold); color: var(--gold); }
.page-numbers.current { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }

@media (max-width: 900px) {
  .page-hero { padding-top: 120px; }
}
