
@import url("https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
/* Custom components */
/* Variables - Remote Executive Brand */
:root {
  /* PRIMARY PALETTE */
  --color-navy: #1a365d;
  --color-slate: #2d4a6f;
  --color-amber: #d97706;
  --color-gold: #f59e0b;
  --color-rust: #9a3412;
  --color-cream: #f7f5f0;
  --color-gray: #d4d0c8;
  --color-charcoal: #2d3748;
  
  /* Semantic aliases */
  --color-primary: var(--color-navy);
  --color-accent: var(--color-amber);
  --color-background: var(--color-cream);
  --color-text: var(--color-charcoal);
  --color-text-muted: var(--color-slate);
  --color-border: var(--color-gray);
  --color-hover: var(--color-amber);
  
  /* Typography */
  --font-brand: 'PT Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1280px;
  
  /* Typography weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Pagefind search variables */
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: var(--color-navy);
  --pagefind-ui-text: var(--color-charcoal);
  --pagefind-ui-background: white;
  --pagefind-ui-border: var(--color-gray);
  --pagefind-ui-tag: var(--color-cream);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 0;
  --pagefind-ui-font: var(--font-body);
}
/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
::selection {
  background: var(--color-amber);
  color: white;
}
body {
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-text);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4, .font-brand {
  font-family: var(--font-brand);
}
a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--color-amber);
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .container {
    padding: 0 3rem;
  }
}
/* Header - Remote Executive Brand */
.main-header {
  background: var(--color-navy);
  height: 80px;
  position: relative;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .header-content {
    padding: 0 3rem;
  }
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  font-family: var(--font-brand);
  -webkit-user-select: none;
          user-select: none;
}
.logo-remote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-gray);
}
.logo-executive {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.main-nav {
  display: none;
}
@media (min-width: 768px) {
  .main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
  }
}
.main-nav a {
  color: var(--color-gray);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover {
  color: white;
}
.main-nav a.active {
  color: white;
  border-bottom: 1px solid var(--color-amber);
  padding-bottom: 0.25rem;
}
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}
@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}
/* Footer Styles */
.site-footer {
  background-color: var(--color-navy);
  margin-top: 0;
  padding: 3rem 0;
}
.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-content {
    padding: 0 3rem;
  }
}
.footer-text {
  color: var(--color-gray);
  font-size: 0.875rem;
}
.footer-text a {
  color: var(--color-gray);
  transition: color 0.2s;
}
.footer-text a:hover {
  color: white;
}
/* Archives Page Styles */
.archives-page {
  min-height: 100vh;
}
/* Page Header Section */
.page-header-section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .page-header-section {
    padding-top: 5rem;
    padding-bottom: 3rem;
  }
}
.page-header-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .page-header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}
.page-header-text {
  max-width: 48rem;
}
.page-main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .page-main-title {
    font-size: 3rem;
  }
}
.page-main-subtitle {
  font-size: 1.25rem;
  color: var(--color-charcoal);
  line-height: 1.6;
  max-width: 40rem;
}
.page-main-subtitle strong {
  color: var(--color-navy);
  font-weight: 600;
}
.subtitle-tagline {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--color-slate);
}
/* Search Box */
.page-search {
  width: 100%;
}
@media (min-width: 768px) {
  .page-search {
    width: 24rem;
  }
}
.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--color-gray);
  color: var(--color-gray);
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.search-box:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.search-icon {
  flex-shrink: 0;
}
/* Featured Card */
.featured-card {
  position: relative;
  background: var(--color-navy);
  color: white;
  padding: 2rem;
  margin-bottom: 4rem;
  border-left: 4px solid var(--color-amber);
  overflow: hidden;
}
@media (min-width: 768px) {
  .featured-card {
    padding: 3rem;
  }
}
.featured-bg-blob {
  position: absolute;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
}
.featured-bg-blob-1 {
  top: 0;
  right: 0;
  background: var(--color-slate);
}
.featured-bg-blob-2 {
  bottom: -2rem;
  left: -2rem;
  background: var(--color-rust);
}
.featured-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .featured-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.featured-text {
  max-width: 40rem;
}
.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-amber);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.featured-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}
@media (min-width: 768px) {
  .featured-title {
    font-size: 2.25rem;
  }
}
.featured-description {
  color: var(--color-gray);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-amber);
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover {
  background: #b45309;
  color: white;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-gray);
  color: var(--color-gray);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--color-slate);
  border-color: var(--color-slate);
  color: white;
}
.featured-visual {
  display: none;
}
@media (min-width: 768px) {
  .featured-visual {
    display: block;
    width: 12rem;
    height: 12rem;
    border: 1px solid var(--color-slate);
    padding: 1rem;
    position: relative;
  }
  
  .featured-visual::before,
  .featured-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-slate);
  }
  
  .featured-visual::before {
    margin: 0.25rem;
    opacity: 0.5;
  }
  
  .featured-visual::after {
    margin: 0.5rem;
    opacity: 0.3;
  }
}
.featured-visual-inner {
  height: 100%;
  width: 100%;
  background: rgba(26, 54, 93, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.featured-stat {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-brand);
  color: white;
}
.featured-stat-label {
  font-size: 0.75rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
/* Category Tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--color-gray);
  margin-bottom: 3rem;
  padding-bottom: 0;
}
.tabs-list {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
}
@media (min-width: 768px) {
  .tabs-list {
    gap: 2rem;
  }
}
.tab-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-slate);
  opacity: 0.7;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all 0.2s;
}
.tab-item:hover {
  opacity: 1;
  color: var(--color-navy);
}
.tab-item.active {
  opacity: 1;
  color: var(--color-navy);
  border-bottom-color: var(--color-navy);
}
.tab-count {
  padding: 0.125rem 0.5rem;
  background: var(--color-gray);
  color: var(--color-charcoal);
  font-size: 0.75rem;
  border-radius: 9999px;
}
.tab-item.active .tab-count {
  background: var(--color-navy);
  color: white;
}
.sort-control {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-slate);
}
@media (min-width: 768px) {
  .sort-control {
    display: flex;
  }
}
/* Assets Grid */
.assets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .assets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .assets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Asset Card */
.asset-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--color-gray);
  min-height: 320px;
  transition: all 0.3s;
}
.asset-card:hover {
  border-color: var(--color-navy);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.asset-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.asset-type {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.asset-type-protocol {
  color: var(--color-amber);
  border-color: rgba(217, 119, 6, 0.2);
  background: rgba(217, 119, 6, 0.05);
}
.asset-type-data-study {
  color: var(--color-slate);
  border-color: rgba(45, 74, 111, 0.2);
  background: rgba(45, 74, 111, 0.05);
}
.asset-type-video-breakdown {
  color: var(--color-rust);
  border-color: rgba(154, 52, 18, 0.2);
  background: rgba(154, 52, 18, 0.05);
}
.asset-type-blueprint {
  color: var(--color-navy);
  border-color: rgba(26, 54, 93, 0.2);
  background: rgba(26, 54, 93, 0.05);
}
.asset-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(45, 55, 72, 0.6);
}
.asset-content {
  flex-grow: 1;
}
.asset-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.asset-title a {
  color: inherit;
  transition: color 0.2s;
}
.asset-card:hover .asset-title a {
  color: var(--color-amber);
}
.asset-subtitle {
  font-size: 0.875rem;
  color: var(--color-charcoal);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.asset-meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-cream);
  margin-top: auto;
}
.asset-tags {
  display: flex;
  gap: 0.5rem;
}
.asset-tag {
  font-size: 0.75rem;
  color: rgba(45, 55, 72, 0.7);
  background: var(--color-cream);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
}
.asset-access {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-amber);
  transition: transform 0.2s;
}
.asset-card:hover .asset-access {
  transform: translateX(4px);
}
/* Trust Footer */
.trust-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--color-gray);
  text-align: center;
}
@media (min-width: 768px) {
  .trust-footer {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
}
.trust-item h4 {
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}
.trust-item p {
  font-size: 0.875rem;
  color: var(--color-charcoal);
  line-height: 1.6;
}
.trust-item strong {
  font-weight: 500;
}
.newsletter-inline {
  display: flex;
  margin-top: 0.5rem;
}
.newsletter-inline input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-gray);
  font-size: 0.875rem;
  color: var(--color-charcoal);
  outline: none;
}
.newsletter-inline input:focus {
  border-color: var(--color-navy);
}
.newsletter-inline button {
  padding: 0.5rem 1rem;
  background: var(--color-navy);
  color: white;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-inline button:hover {
  background: var(--color-slate);
}
/* Hero Image - for markdown images with {.hero-img} */
.hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin-bottom: 2rem;
}
/* Post Layout Structure */
.post-layout.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .post-layout.container {
    grid-template-columns: 1fr 320px;
    padding: 3rem;
  }
}
/* Post Content Area */
.post-content {
  width: 100%;
  max-width: 720px;
}
.post-content .post {
  margin: 0;
  padding: 0;
}
/* Post Header */
.post-header {
  margin-bottom: 2rem;
}
.post-title {
  font-family: var(--font-brand);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  padding: 0;
  color: var(--color-navy);
  line-height: 1.3;
}
@media (min-width: 768px) {
  .post-title {
    font-size: 2.5rem;
  }
}
/* Post Metadata */
.post-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--color-slate);
  font-size: 0.875rem;
  margin-top: 1rem;
}
.post-author-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.post-author-name {
  color: var(--color-charcoal);
  font-weight: 600;
}
.post-date {
  color: var(--color-slate);
}
/* Post Body Content */
.post-body {
  font-size: 1.0625rem;
  line-height: 1.8;
}
.post-body p {
  margin-bottom: 1.5rem;
}
.post-body ul,
.post-body ol {
  padding: 0;
  margin: 0 0 1.5rem 1.5rem;
  line-height: 1.8;
}
.post-body li {
  margin-bottom: 0.5rem;
}
.post-body h2 {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--color-navy);
}
.post-body h3 {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  color: var(--color-navy);
}
.post-body a {
  color: var(--color-amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-body a:hover {
  color: var(--color-rust);
}
.post-body blockquote {
  border-left: 4px solid var(--color-amber);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--color-slate);
  font-style: italic;
}
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-cream);
  padding: 0.125rem 0.375rem;
  border-radius: 2px;
}
.post-body pre {
  background: var(--color-navy);
  color: var(--color-cream);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.post-body pre code {
  background: none;
  padding: 0;
}
/* Post Sidebar */
.post-sidebar {
  padding: 2rem 0;
  width: 100%;
}
.sidebar-section {
  margin-bottom: 2rem;
}
.post-sidebar .section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.post-sidebar .section-title img {
  width: 20px;
  height: 20px;
}
/* Categories/Tags Section */
.post-sidebar .categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.post-sidebar .category-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.25rem 0;
}
.post-sidebar .category-link:hover {
  color: var(--color-hover);
}
/* Popular Posts */
.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.popular-post-item {
  display: flex;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.popular-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.popular-post-item a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
}
.popular-post-item img,
.popular-post-item .default-illustration {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.popular-post-item .post-title {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
}
.popular-post-item a:hover .post-title {
  color: var(--color-hover);
}
/* Breadcrumb Navigation */
.breadcrumb {
  margin: 2rem 0;
}
.breadcrumb ol {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}
.breadcrumb li:not(:last-child):after {
  content: "/";
  margin-left: 0.5rem;
  color: #ccc;
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--color-hover);
}
/* Responsive */
@media (max-width: 768px) {
  .post-layout.container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .post-content {
    order: 1;
  }

  .post-sidebar {
    order: 2;
    padding: 0;
  }

  .post-title {
    font-size: 1.75rem;
  }
}
/* Page Layout */
.page-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}
.page-header {
  margin-bottom: 2rem;
}
.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin: 0 0 1rem;
}
.page-body {
  line-height: 1.8;
}
.page-body p {
  margin-bottom: 1.5rem;
}
.page-body h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  color: var(--color-dark-blue);
}
.page-body h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: var(--color-dark-blue);
}
/* Dark mode adjustments */
[data-theme="dark"] {
  --color-background: #1a1a2e;
  --color-cream: #1a1a2e;
  --color-text: #e5e7eb;
  --color-charcoal: #e5e7eb;
  --color-text-muted: #9ca3af;
}
[data-theme="dark"] body {
  background: var(--color-background);
  color: var(--color-text);
}
[data-theme="dark"] .asset-card,
[data-theme="dark"] .search-box {
  background: #1f2937;
  border-color: #374151;
}
[data-theme="dark"] .featured-card {
  background: #0f172a;
}
[data-theme="dark"] .site-footer {
  background: #111827;
}
