/*
Theme Name: North over Everything
Author: WordPress Telex
Description: A dark, editorial block theme for Canadian SMEs. Bold red-and-white Canadian aesthetic with sharp typography and a blog-first design philosophy.
Version: 0.2.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: north-over-everything
Tags: block-theme, full-site-editing, blog, dark, editorial
*/

/* Equal card layout */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* Header styling */
.noe-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.noe-brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.noe-flag-icon svg {
  display: block;
  width: 32px;
  height: auto;
}

/* Social links styling */
.noe-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0;
  transition: opacity 0.2s;
  opacity: 0.6;
}
.noe-social-links a:hover {
  opacity: 1;
}
.noe-social-links svg {
  width: 18px;
  height: 18px;
  fill: #FFFFFF;
}

/* Navigation uppercase styling */
.noe-nav .wp-block-navigation-item a {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.noe-nav .wp-block-navigation-item a:hover {
  opacity: 1;
  color: #FF0000 !important;
}

/* Hero title */
.noe-hero-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Starfield wrapper — balanced cinematic height */
.noe-starfield-wrap {
  max-height: 320px;
  overflow: hidden;
}

/* Horizon image blend */
.noe-horizon img {
  mix-blend-mode: screen;
  opacity: 0.85;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Teaser number styling */
.noe-number {
  line-height: 0.85;
  letter-spacing: -0.03em;
}

/* Teaser meta line with red dash */
.noe-meta::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: #FF0000;
  margin-right: 1rem;
  vertical-align: middle;
}

/* Action link styling */
.noe-action-link a {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.85rem;
  border-bottom: 2px solid #FF0000;
  padding-bottom: 4px;
  text-decoration: none;
  color: #FF0000;
  transition: color 0.2s, border-color 0.2s;
}
.noe-action-link a:hover {
  color: #FFFFFF !important;
  border-bottom-color: #FFFFFF;
}

/* Dispatch cards */
.dispatch-card {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
  transition: border-color 0.3s;
}
.dispatch-card:hover {
  border-top-color: rgba(255, 0, 0, 0.4);
}

/* Subtle body gradient */
body {
  background-image: radial-gradient(ellipse at 50% -30%, #1a0000 0%, #0A0A0A 70%);
}

/* Eliminate default WordPress block gap on site blocks */
.wp-site-blocks > * + * {
  margin-block-start: 0;
}

/* Separator styling */
.noe-separator {
  opacity: 0.15;
}

/* Footer subtle styling */
.noe-footer a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s, color 0.2s;
}
.noe-footer a:hover {
  border-bottom-color: #FF0000;
  color: #FF0000 !important;
}

/* Scroll animation */
@keyframes noeFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.noe-animate {
  animation: noeFadeUp 0.8s ease-out both;
}

.noe-animate-delay-1 {
  animation: noeFadeUp 0.8s ease-out 0.15s both;
}

.noe-animate-delay-2 {
  animation: noeFadeUp 0.8s ease-out 0.3s both;
}

.noe-animate-delay-3 {
  animation: noeFadeUp 0.8s ease-out 0.45s both;
}

/* Latest posts block styling */
.noe-posts .wp-block-post {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}
.noe-posts .wp-block-post-title a {
  text-decoration: none;
  transition: color 0.2s;
}
.noe-posts .wp-block-post-title a:hover {
  color: #FF0000 !important;
}

/* Red stripe accent */
.noe-red-stripe {
  width: 60px;
  height: 4px;
  background-color: #FF0000;
  border: none;
}

/* Tagline styling */
.noe-tagline {
  letter-spacing: 0.12em;
}

@media (max-width: 768px) {
  .noe-teaser-grid {
    grid-template-columns: 1fr !important;
  }
  .noe-flag-icon svg {
    width: 26px;
  }
}