/* Trayakshvi — shared styles for Insights / blog pages */
:root {
  --paper: #f2f6f5;
  --paper-2: #e7eeec;
  --ink: #12303a;
  --ink-2: #2f4a53;
  --muted: #5f7378;
  --line: #d3e0dd;
  --line-2: #bccecb;
  --accent: #109a8d;
  --accent-2: #0c7a70;
  --mint: #46c8bd;
  --forest: #155e63;
  --card: #fbfdfc;
  --dark: #0e2a30;
  --radius: 6px;
  --radius-lg: 12px;
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 26px 70px rgba(23, 20, 15, 0.16);
  --shadow-sm: 0 2px 10px rgba(23, 20, 15, 0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; margin: 0 0 0.4em; line-height: 1.08; letter-spacing: -0.015em; font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.fluid { width: 100%; padding-left: var(--pad); padding-right: var(--pad); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.accent { color: var(--accent); }

.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; font-family: inherit; cursor: pointer; border: 1.5px solid transparent; transition: all 0.2s var(--ease); white-space: nowrap; }
.btn svg { width: 17px; height: 17px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', monospace; font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.kicker::before { content: ''; width: 26px; height: 1.5px; background: var(--accent); }

/* Header */
header { position: sticky; top: 0; z-index: 60; background: rgba(242, 246, 245, 0.82); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo-img { height: 46px; width: auto; display: block; }
.logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(140deg, var(--forest), var(--mint)); color: #fff; font-family: 'Fraunces', serif; font-weight: 700; font-size: 24px; box-shadow: 0 6px 16px rgba(16, 154, 141, 0.28); }
.brand-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 23px; letter-spacing: -0.01em; line-height: 1.02; }
.brand-name small { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: 16.5px; font-weight: 500; color: var(--ink-2); padding: 10px 17px; border-radius: 999px; transition: all 0.16s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn svg { width: 26px; height: 26px; stroke: var(--ink); }

/* Insights index */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(30px, 4vw, 52px); }
.page-head h1 { font-size: clamp(38px, 6vw, 74px); font-weight: 500; max-width: 12ch; }
.page-head h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.page-head p { color: var(--ink-2); font-size: clamp(16px, 2vw, 20px); max-width: 62ch; margin: 18px 0 0; }
.crumbs { font-family: 'Space Grotesk', monospace; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--accent); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: clamp(64px, 9vw, 118px); }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.post-card .tag { font-family: 'Space Grotesk', monospace; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.post-card h2 { font-size: 24px; font-weight: 600; margin: 0 0 10px; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0 0 20px; flex: 1; }
.post-card .meta { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', monospace; font-size: 12.5px; color: var(--muted); }
.post-card .go { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 14.5px; }
.post-card .go svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.post-card:hover .go svg { transform: translate(3px, -3px); }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* Article */
.article { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px); }
.article-inner { max-width: 760px; margin: 0 auto; }
.article .tag { font-family: 'Space Grotesk', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.article h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 500; margin: 16px 0 18px; }
.article .byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: 'Space Grotesk', monospace; font-size: 13.5px; color: var(--muted); padding-bottom: 30px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.article .byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.article-body { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; color: var(--ink); margin: 46px 0 16px; }
.article-body h3 { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 22px; }
.article-body li { margin-bottom: 9px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-family: 'Fraunces', serif; font-style: italic; font-size: 20px; color: var(--ink); }
.article-body code { font-family: 'Space Grotesk', ui-monospace, monospace; font-size: 0.9em; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; color: var(--forest); }
.article-body pre { background: var(--dark); color: #cfe8e4; padding: 20px 22px; border-radius: var(--radius-lg); overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 0 0 24px; }
.article-body pre code { background: none; color: inherit; padding: 0; }
.lede-p { font-size: 20px; color: var(--ink); font-family: 'Fraunces', serif; line-height: 1.55; margin-bottom: 30px; }
.takeaways { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 30px; margin: 36px 0; }
.takeaways h3 { margin-top: 0; }
.article-cta { max-width: 760px; margin: 56px auto 0; padding: 34px; background: var(--dark); color: #fff; border-radius: var(--radius-lg); text-align: center; }
.article-cta h3 { color: #fff; font-size: 26px; }
.article-cta p { color: #b6cdc9; margin: 8px 0 22px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--card); }
.foot-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.foot-brand-lockup { display: flex; align-items: center; gap: 14px; }
.foot-logo { height: 60px; width: auto; }
.foot-brand-lockup .brand-name { font-size: 26px; }
.foot-brand-lockup .brand-name small { font-size: 11px; }
.foot-tag { font-family: 'Fraunces', serif; font-style: italic; font-size: 16px; color: var(--accent); margin: 16px 0 0; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h5 { font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--ink-2); font-size: 14.5px; padding: 5px 0; } .foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; }
.foot-bottom p { color: var(--muted); font-size: 13px; margin: 0; font-family: 'Space Grotesk', monospace; }

@media (max-width: 680px) {
  .nav-links { display: none; } .menu-btn { display: block; } .nav-cta .btn-accent { display: none; }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; gap: 2px; position: absolute; top: 82px; left: 0; right: 0; background: var(--paper); padding: 12px 20px; border-bottom: 1px solid var(--line); }
  .nav-links.open a { padding: 11px 6px; font-size: 16px; }
  .foot-cols { gap: 36px; } .foot-logo { height: 48px; }
}
