/* Blog chrome: brand colors, header layout and CTA button.
   Standalone on purpose - the blog does not load the app-wide output.css. */
:root {
  --color-primary: #37475a;
  --color-accent: #d68a70;
  --color-border: #e2e8f0;
}

.bg-primary { background-color: var(--color-primary) !important; color: #fff; }
.bg-accent { background-color: var(--color-accent) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-accent { color: var(--color-accent) !important; }

/* Hero on the blog home: always readable on the navy band */
.bg-primary h1,
.bg-primary h2 { color: #fff; }
.bg-primary p { color: #e2e8f0; }

.backdrop-blur-safari {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.reading-progress {
  height: 3px;
  background: var(--color-accent);
  transform-origin: left;
  transition: transform 0.1s ease-out;
  transform: scaleX(var(--scroll-progress, 0));
  width: 100%;
}

.logo-container { min-width: 240px; display: flex; align-items: center; }
.logo-text { position: relative; width: 180px; overflow: hidden; }
.logo-text-content {
  transition: all 0.3s ease-in-out;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}
.logo-icon {
  transition: all 0.3s ease-in-out;
  background: var(--color-primary);
  flex-shrink: 0;
}

.nav-items {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  margin-top: -12px;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(55, 71, 90, 0.15);
}
.btn-primary:hover { background: #2a3544; transform: translateY(-1px); }

.card-hover { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid var(--color-border); }
.card-hover:hover { transform: translateY(-4px); border-color: var(--color-accent); }

/* Whole card is a link: the title link stretches over the article (image included) */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
article:has(.card-link) { cursor: pointer; }
