/* 2TI Blog — public chrome matched to main marketing site (Header/Footer) */
:root {
  --bg: #0f1115;
  --surface: #14161c;
  --surface-2: #181b22;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #fff;
  --muted: #9ca3af;
  --faint: #6b7280;
  --brand: #b08d45;
  --accent: #c9a96a;
  --steel: #9ca3af;
  --cyan: #5eead4;
  --ice: #a4e5eb;
  --night: #0f1115;
  --max: 780px;
  --radius: 1rem;
  --font: "Poppins", system-ui, sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(176, 141, 69, 0.06), transparent 42%),
    var(--night);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: #e0c98e; }
img { max-width: 100%; height: auto; }

.glass {
  background: rgba(20, 22, 28, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}
.glass-strong {
  background: rgba(16, 18, 24, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
}
.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--brand) 50%, var(--steel) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Header (matches components/Header.tsx) ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  font-family: var(--font);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.5rem;
  transition: transform 0.2s ease;
}
.site-brand:hover { transform: scale(1.05); color: inherit; }
.site-brand-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(176, 141, 69, 0.55);
  animation: brand-pulse 2s ease-out infinite;
}
@keyframes brand-pulse {
  0% { box-shadow: 0 0 0 0 rgba(176, 141, 69, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(176, 141, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(176, 141, 69, 0); }
}
.site-brand img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.45));
}
@media (min-width: 640px) {
  .site-brand img { height: 3rem; }
}
.site-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.site-nav a {
  color: #d6d3d1;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.on {
  color: var(--accent);
  font-weight: 700;
}
.site-cta {
  display: none;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(176, 141, 69, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.site-cta:hover {
  background: rgba(176, 141, 69, 0.2);
  color: var(--accent);
  transform: translateY(-2px);
}
@media (min-width: 768px) {
  .site-cta { display: inline-flex; }
}
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; padding: 0.75rem 1rem; }
  .site-header-right { width: 100%; overflow-x: auto; }
  .site-nav { width: 100%; justify-content: space-between; font-size: 0.7rem; gap: 0.5rem; padding: 0.45rem 0.75rem; }
}

.blog-main {
  width: min(1100px, 100% - 2rem);
  margin: 0 auto;
  padding: 6.5rem 0 4rem;
}
.blog-hero { margin-bottom: 2.5rem; max-width: var(--max); }
.blog-kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 0.55rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brand);
}
.blog-hero h1, .blog-post h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.blog-lead { color: var(--muted); font-size: 1.02rem; margin: 0; max-width: 58ch; }
.blog-empty {
  color: var(--muted);
  padding: 2rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}
.blog-card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.blog-card:hover {
  border-color: rgba(201, 169, 106, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}
.blog-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.blog-card-body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.blog-card-body time {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.blog-card-body h2 {
  font-family: var(--display);
  font-size: 1.12rem;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.blog-card-body h2 a { color: var(--text); }
.blog-card-body h2 a:hover { color: var(--accent); }
.blog-card-body p { margin: 0; font-size: 0.9rem; color: var(--muted); flex: 1; }
.blog-more {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.blog-pager span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.blog-post { max-width: var(--max); margin: 0 auto; }
.blog-post-head { margin-bottom: 1.5rem; }
.blog-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}
.blog-post-cover {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.blog-post-body { font-size: 1.02rem; }
.blog-post-body h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}
.blog-post-body h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; color: var(--accent); }
.blog-post-body p { margin: 0 0 1rem; color: #e7e5e4; }
.blog-post-body ul, .blog-post-body ol { padding-left: 1.25rem; color: #e7e5e4; }
.blog-post-body li { margin-bottom: 0.4rem; }
.blog-post-body blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  color: var(--muted);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
.blog-post-body img {
  border-radius: 10px;
  border: 1px solid var(--border);
}
.blog-post-body pre,
.blog-post-body code {
  font-family: var(--mono);
  font-size: 0.88em;
}
.blog-post-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
}
.blog-post-foot {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ---- Footer (matches components/Footer.tsx) ---- */
.site-footer {
  position: relative;
  background: #0c0d11;
  border-top: 1px solid rgba(39, 39, 42, 0.9);
  padding: 5rem 1.5rem;
  text-align: center;
}
.site-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.site-footer h2 {
  font-family: var(--display);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
  max-width: 18ch;
}
.site-footer-lead {
  color: #d6d3d1;
  font-size: 1rem;
  max-width: 42rem;
  margin: 0;
  line-height: 1.7;
}
@media (min-width: 640px) {
  .site-footer-lead { font-size: 1.125rem; }
}
.site-hubs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}
.hub-card {
  padding: 1rem 1.5rem;
  border: 1px solid #292524;
  text-align: left;
  min-width: 14rem;
}
.hub-name {
  margin: 0;
  font-weight: 700;
  color: #fff;
}
.hub-meta {
  margin: 0.25rem 0 0;
  color: #a8a29e;
}
.site-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
}
.site-footer-logo {
  display: inline-flex;
  transition: transform 0.2s ease;
}
.site-footer-logo:hover { transform: scale(1.05); color: inherit; }
.site-footer-logo img {
  height: 5rem;
  width: auto;
  object-fit: contain;
}
@media (min-width: 640px) { .site-footer-logo img { height: 6rem; } }
@media (min-width: 768px) { .site-footer-logo img { height: 7.5rem; } }

.social-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.social-row { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.social-row-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #57534e;
}
.social-row-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.social-row-links a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(28, 25, 23, 0.9);
  border: 1px solid #44403c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35);
}
.social-row-links a:hover {
  transform: scale(1.1);
  border-color: rgba(201, 169, 106, 0.4);
  color: inherit;
}
.social-row-links a img {
  width: 1.125rem;
  height: 1.125rem;
  object-fit: contain;
  filter: brightness(1.35);
}
.support-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.75rem;
}
.support-links a {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: #1c1917;
  border: 1px solid #44403c;
  color: #e7e5e4;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.support-links a:hover {
  border-color: rgba(201, 169, 106, 0.35);
  color: #fff;
}
.site-footer-copy {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: #d6d3d1;
}
.site-footer-util {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #78716c;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}
.site-footer-util a { color: #a8a29e; }
.site-footer-util a:hover { color: var(--accent); }

/* Categories, sources, audio, FAQ */
.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.5rem 0 1.75rem;
}
.blog-cats a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6d3d1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  transition: all 0.15s ease;
}
.blog-cats a.on,
.blog-cats a:hover {
  color: var(--night);
  background: var(--accent);
  border-color: var(--accent);
}
.blog-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(201, 169, 106, 0.35);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  width: fit-content;
}
.blog-audio {
  margin: 1.25rem 0 0;
  padding: 0.95rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.blog-audio-label {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.blog-audio audio { width: 100%; }

.blog-sources,
.blog-faq {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.blog-sources h2,
.blog-faq h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.015em;
}
.blog-sources ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.blog-sources li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  flex-wrap: wrap;
}
.blog-source-logo {
  border-radius: 4px;
  background: #fff;
}
.blog-source-name { color: var(--muted); font-size: 0.85em; }
.blog-faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 0.8rem 1rem;
  margin-bottom: 0.55rem;
}
.blog-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.blog-faq summary:hover { color: var(--accent); }
.blog-faq details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .site-brand-dot { animation: none; }
  .blog-card, .site-cta, .social-row-links a { transition: none; }
}
