/* ==========================================================================
   IT Hands Free — Blog styles
   Self-contained. Mirrors the React site's tokens (navy/gold, Instrument
   Serif, Inter, glass nav) without depending on the Vite CSS bundle.
   ========================================================================== */

:root {
  --navy: #0B132B;
  --navy-900: #040914;
  --gold: #D4AF37;
  --gold-soft: #C5A869;
  --gold-hover: #b5942d;
  --text: #cbd5e1;      /* slate-300 */
  --text-dim: #94a3b8;  /* slate-400 */
  --text-faint: #64748b;/* slate-500 */
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --panel: rgba(255, 255, 255, 0.02);
  --panel-hover: rgba(255, 255, 255, 0.04);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1152px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--navy-900);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

::selection { background-color: rgba(197, 168, 105, 0.30); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
}
.skip-link:focus {
  left: 16px; top: 16px; background: var(--gold); color: var(--navy);
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
}

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { flex-shrink: 0; display: inline-flex; align-items: center; }
.brand-logo {
  height: 44px; width: auto; object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  margin-left: 8px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,0.15);
  font-size: 14px; font-weight: 500;
}
.nav-links a { color: var(--text); transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--white); }
.nav-links a.is-active { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-portal { color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s; }
.nav-portal:hover { color: var(--gold); }

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 14px; padding: 10px 22px; border-radius: 999px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); transition: background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-gold:hover { background: var(--gold-hover); box-shadow: 0 0 25px rgba(212, 175, 55, 0.6); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2); color: var(--white);
  font-weight: 500; font-size: 14px; padding: 10px 22px; border-radius: 999px;
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); }

/* ---- Blog index --------------------------------------------------------- */
.eyebrow {
  display: block; color: var(--gold); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 18px;
}
.blog-hero { padding-top: 72px; padding-bottom: 40px; max-width: 820px; }
.blog-hero h1 {
  font-family: var(--serif); font-weight: 400; color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.blog-hero-sub { color: var(--text-dim); font-size: 1.15rem; margin: 0; max-width: 640px; }

.post-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
  padding-bottom: 96px; padding-top: 16px;
}
.post-card {
  border: 1px solid var(--line); background: var(--panel); border-radius: 20px;
  transition: background .2s, border-color .2s, transform .2s;
}
.post-card:hover { background: var(--panel-hover); border-color: rgba(212,175,55,0.35); transform: translateY(-2px); }
.post-card-link { display: block; padding: 30px 30px 34px; height: 100%; }
.post-card-meta, .article-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  color: var(--text-faint); font-size: 13px; margin-bottom: 14px;
}
.dot { color: var(--text-faint); }
.post-card h2 {
  font-family: var(--serif); font-weight: 400; color: var(--white);
  font-size: 1.7rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px;
}
.post-card-excerpt { color: var(--text-dim); font-size: 0.98rem; margin: 0 0 18px; }
.read-more { color: var(--gold); font-size: 14px; font-weight: 600; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid rgba(197,168,105,0.3);
  border-radius: 999px; padding: 4px 12px;
}
.empty-state { color: var(--text-dim); grid-column: 1 / -1; }

/* ---- Article ------------------------------------------------------------ */
.article-shell { max-width: 760px; padding-top: 40px; padding-bottom: 90px; }
.crumbs { margin-bottom: 28px; }
.crumbs a { color: var(--text-faint); font-size: 14px; }
.crumbs a:hover { color: var(--gold); }

.article-head { border-bottom: 1px solid var(--line); padding-bottom: 32px; margin-bottom: 40px; }
.article-head h1 {
  font-family: var(--serif); font-weight: 400; color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.25rem); line-height: 1.12; letter-spacing: -0.02em;
  margin: 6px 0 18px;
}

/* Long-form prose */
.prose { color: var(--text); font-size: 1.075rem; line-height: 1.8; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-family: var(--serif); font-weight: 400; color: var(--white);
  font-size: 1.9rem; line-height: 1.25; letter-spacing: -0.01em;
  margin: 52px 0 18px; padding-top: 8px;
}
.prose h3 {
  color: var(--white); font-weight: 600; font-size: 1.28rem;
  margin: 38px 0 14px;
}
.prose h4 { color: var(--white); font-weight: 600; font-size: 1.08rem; margin: 30px 0 12px; }
.prose p { margin: 0 0 22px; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--gold-soft); }
.prose strong { color: #e2e8f0; font-weight: 700; }
.prose em { font-style: italic; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 26px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--gold-soft); }
.prose blockquote {
  border-left: 3px solid var(--gold); background: var(--panel);
  margin: 28px 0; padding: 16px 24px; border-radius: 0 10px 10px 0;
  color: var(--text-dim); font-style: italic;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-soft);
  padding: 2px 6px; border-radius: 6px; font-size: 0.9em; color: #e2e8f0;
}
.prose pre {
  background: #070d1c; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; overflow-x: auto; margin: 0 0 24px;
}
.prose pre code { background: none; border: none; padding: 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 44px 0; }
.prose img { border-radius: 12px; margin: 28px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--panel); color: var(--white); }

/* End-of-article CTA */
.article-cta {
  margin-top: 56px; padding: 34px 34px 38px; border-radius: 20px;
  border: 1px solid rgba(212,175,55,0.25); background: rgba(212,175,55,0.05);
}
.article-cta h2 {
  font-family: var(--serif); font-weight: 400; color: var(--white);
  font-size: 1.65rem; margin: 0 0 12px;
}
.article-cta p { color: var(--text-dim); margin: 0 0 22px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.article-foot { margin-top: 44px; }
.article-foot a { color: var(--text-faint); font-size: 14px; }
.article-foot a:hover { color: var(--gold); }

.not-found { text-align: center; padding: 80px 0; }
.not-found h1 { font-family: var(--serif); font-weight: 400; color: var(--white); font-size: 2.4rem; }
.not-found p { color: var(--text-dim); margin: 12px 0 24px; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900); border-top: 1px solid var(--line-soft);
  padding: 72px 0 40px; margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; margin-bottom: 56px;
}
.footer-logo { height: 40px; width: auto; margin-bottom: 22px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6)); }
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }
.site-footer h4 {
  font-family: var(--serif); font-weight: 400; color: var(--white);
  font-size: 1.5rem; margin: 0 0 22px;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 14px; }
.footer-list a { transition: color .2s; }
.footer-list a:hover { color: var(--gold); }
.footer-muted { color: var(--text-dim); }
.footer-dim { color: var(--text-faint); font-size: 12px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line-soft); padding-top: 28px;
  color: var(--text-faint); font-size: 12px;
}
.footer-bottom p { margin: 0; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-links, .nav-portal { display: none; }
  .post-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .blog-hero { padding-top: 48px; }
}
