/* ==========================================================================
   🎨 Arcelian Global Design Tokens
   ========================================================================== */
:root {
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

  /* Brand palette */
  --arc-primary: #2d4c69;      /* Steel Credence */
  --arc-secondary: #3d2e26;    /* Deep Terra */
  --arc-accent: #d1802f;       /* Impact Amber */
  --arc-highlight: #e5bb65;    /* Insight Gold */

  /* Surfaces */
  --arc-bg: #f1d8a8;           /* Canvas Ochre */
  --arc-bg-light: #F5F7FA;     /* Arctic Fog */
  --arc-bg-dark: #2B2F33;      /* Graphite Depth */
  --arc-card: #FFFFFF;         /* Clean White */
  --arc-text: #1A1A1A;         /* High contrast charcoal */
  --arc-muted: #5e6c71;        /* Iron Smoke */
  --arc-border: #E0E0E0;       /* Divider Mist */

  /* Semantic */
  --arc-cta: #b74126;          /* Velocity Ember */
  --arc-warning: #7f3922;      /* Change Copper */
  --arc-link: #d8a051;         /* Trust Bronze */
  --arc-accent2: #a55b25;      /* Global Sienna */

  /* Data viz */
  --arc-teal: #3B7D8B;
  --arc-sand: #E8C892;

  /* On-colors */
  --arc-on-dark: #F5F7FA;
  --arc-on-light: #1A1A1A;
  --arc-on-primary: #F5F7FA;
  --arc-on-accent: #101214;

  /* Radii */
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;

  /* Shadows */
  --shadow-soft: 0 18px 42px rgba(0,0,0,0.24);
}

/* ==========================================================================
   🌙 Dark Mode (optional)
   ========================================================================== */
html[data-theme="dark"] {
  --arc-bg: #121317;
  --arc-card: #181A1F;
  --arc-text: #F5F7FA;
  --arc-muted: #9AA5AE;
  --arc-border: #2A2E34;
  --arc-highlight: #f0c875;
}


/* ==========================================================================
   Base + Layout
   ========================================================================== */
body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--arc-text);
  background:
    radial-gradient(circle at 25% 15%, rgba(45,76,105,0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(209,128,47,0.20), transparent 45%),
    linear-gradient(180deg, var(--arc-bg) 0%, #f8eac9 60%, var(--arc-bg) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}


/* ==========================================================================
   Header
   ========================================================================== */
/* ==========================================================================
   Animated Arcelian Header — ambient gradients + brand orb motion
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* Base background */
  background: rgba(241, 216, 168, 0.82);
  border-bottom: 1px solid var(--arc-border);
  backdrop-filter: blur(12px);

  /* Ambient gradient band */
  overflow: hidden;
}

/* Moving ambient band behind content */
.site-header::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 50%, rgba(45, 76, 105, 0.22), transparent 55%),
    radial-gradient(circle at 100% 40%, rgba(209, 128, 47, 0.18), transparent 60%);
  opacity: 0.7;
  animation: arcHeaderDrift 26s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -2;
}

/* Very soft highlight strip */
.site-header::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: 90%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(209, 128, 47, 0.8),
    rgba(229, 187, 101, 0.85),
    transparent
  );
  opacity: 0.55;
  filter: blur(1px);
  animation: arcHeaderLine 14s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Animated Arcelian orb */
.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background:
    conic-gradient(
      from 200deg,
      var(--arc-accent),
      var(--arc-highlight),
      var(--arc-primary),
      var(--arc-accent2),
      var(--arc-accent)
    );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 6px 16px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  animation:
    arcOrbRotate 32s linear infinite,
    arcOrbFloat 6s ease-in-out infinite;
}

/* Subtle inner gloss that softly shifts */
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(255, 255, 255, 0.12), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.7;
  animation: arcOrbGloss 18s ease-in-out infinite alternate;
}

/* Underlay glow for the orb */
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 60%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(209, 128, 47, 0.75), transparent 70%);
  opacity: 0.8;
  filter: blur(6px);
  transform-origin: center;
  animation: arcOrbGlow 8s ease-in-out infinite alternate;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */

/* Slow drifting of the header ambient gradients */
@keyframes arcHeaderDrift {
  0% {
    transform: translateX(-4%) translateY(0%) scale(1.02);
  }
  50% {
    transform: translateX(3%) translateY(2%) scale(1.03);
  }
  100% {
    transform: translateX(6%) translateY(-1%) scale(1.025);
  }
}

/* Thin line that glides along the header */
@keyframes arcHeaderLine {
  0% {
    transform: translateX(-10%);
  }
  100% {
    transform: translateX(10%);
  }
}

/* Orb: ultra-slow rotation of the conic gradient */
@keyframes arcOrbRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Orb: small vertical float */
@keyframes arcOrbFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* Orb: highlight gently shifts direction/shape */
@keyframes arcOrbGloss {
  0% {
    opacity: 0.65;
    transform: translateX(0) translateY(0);
  }
  50% {
    opacity: 0.9;
    transform: translateX(2px) translateY(-1px);
  }
  100% {
    opacity: 0.7;
    transform: translateX(-1px) translateY(1px);
  }
}

/* Orb glow pulse */
@keyframes arcOrbGlow {
  0% {
    opacity: 0.45;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* ==========================================================================
   Mobile tweak so the header doesn’t feel busy
   ========================================================================== */

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
  }

  .site-header::after {
    opacity: 0.4;
  }
}


.brand-name {
  text-decoration: none;
  color: var(--arc-secondary);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.8rem;
  margin: 2px 0 0;
  color: var(--arc-muted);
}

/* ==========================================================================
   Brand Logo Styling (Header)
   ========================================================================== */

.site-header .logo {
  width: 38px;            /* Primary logo size */
  height: 38px;
  object-fit: contain;
  display: block;

  /* Optional subtle premium look */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* Slight hover treatment (very subtle, not playful) */
.brand:hover .logo {
  transform: scale(1.04);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.28));
}

/* Ensure vertical alignment with brand text */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .site-header .logo {
    width: 34px;
    height: 34px;
  }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav-link {
  text-decoration: none;
  color: var(--arc-secondary);
  font-size: 0.92rem;
  position: relative;
}

.main-nav-link:hover {
  color: var(--arc-warning);
}


/* CTA */
.nav-cta {
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--arc-cta);
  color: #fff8ec;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(183,65,38,0.35);
}

.nav-cta a {
  text-decoration: none;
  color: #fff8ec !important;
}

.nav-cta:hover {
  background: #c85030;
}

.nav-cta:hover a {
  color: #f3dfbc !important;
}


/* ==========================================================================
   Hero Section (Arcelian Warm Modernism)
   ========================================================================== */
.hero {
  margin-top: 30px;
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #fff8ec 0%, #f3dfbc 100%);
  border: 1px solid var(--arc-border);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
}

.eyebrow {
  color: var(--arc-warning);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
}

.hero-copy h1 {
  font-size: 2rem;
  line-height: 1.18;
  color: var(--arc-secondary);
}

.hero-lead {
  color: var(--arc-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Subtle Arcelian highlight pills */
.meta-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(209,128,47,0.15);
  color: var(--arc-secondary);
  border: 1px solid rgba(209,128,47,0.35);
}


/* ========================================================================== */
/* Hero Sidebar Panel - vertical rhythm + scroll-fade note                    */
/* ========================================================================== */

.hero-panel {
  background: var(--arc-card);
  border: 1px solid var(--arc-border);
  padding: 20px 18px 18px;
  border-radius: var(--radius-lg);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 10px;

  line-height: 1.5;
}

/* Heading sits close to the list */
.hero-panel h2 {
  margin: 0 0 4px;
  color: var(--arc-primary);
  font-size: 1.02rem;
}

/* List: remove default bullets, align with custom dots */
.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: var(--arc-secondary);
}

.hero-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--arc-accent); /* Impact Amber */
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 7px;
}

/* ---------------- Scroll-fade hero note ---------------- */
.hero-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);

  padding-left: 10px;
  border-left: 3px solid var(--arc-highlight); /* Insight Gold accent */

  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--arc-secondary);

  /* Initial (hidden) state */
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

/* When scrolled into view */
.hero-note.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .hero-note {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==========================================================================
   Intro Section
   ========================================================================== */
.intro {
  margin-top: 30px;
  background: var(--arc-bg-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--arc-border);
  color: var(--arc-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Post grid — elevated Arcelian cards with imagery
   ========================================================================== */

.posts {
  margin-top: 38px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0;
  color: var(--arc-secondary);
}

.section-header p {
  margin: 0;
  color: var(--arc-muted);
}

/* Grid */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

/* Card shell */
.post-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  transform-origin: center;
}

/* Gradient ring frame */
.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    140deg,
    rgba(45, 76, 105, 0.25),
    rgba(209, 128, 47, 0.35),
    rgba(229, 187, 101, 0.4)
  );
  opacity: 0.0;
  transition: opacity 0.18s ease-out;
  pointer-events: none;
}

/* Inner card */
.post-card a {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--arc-card);
  border-radius: inherit;
  border: 1px solid var(--arc-border);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    border-color 0.2s ease-out,
    background 0.2s ease-out;
}

/* Hover state */
.post-card:hover::before {
  opacity: 1;
}

.post-card:hover a {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
  border-color: rgba(209, 128, 47, 0.55);
  background: linear-gradient(180deg, #ffffff, #fff8ef);
}

/* Date – small but clearly visible */
.post-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--arc-primary);
}


/* Media (image) block */
.post-media {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.post-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.4s ease-out;
}

/* Subtle zoom on hover */
.post-card:hover .post-media img {
  transform: scale(1.06);
}

/* Badge overlay */
.post-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(45, 76, 105, 0.9);
  color: var(--arc-on-primary);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Body copy */
.post-body {
  padding: 14px 16px 8px;
}

.post-body h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--arc-secondary);
}

.post-excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--arc-muted);
}

/* Footer container */
.post-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(224, 224, 224, 0.8);
  background: var(--arc-card);
}

/* Meta block stacked vertically */
.post-meta-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Read time styling */
.post-readtime {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--arc-accent2);
}

/* Audience description below */
.post-audience {
  font-size: 0.8rem;
  color: var(--arc-muted);
  line-height: 1.4;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .post-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}


/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--arc-border);
  color: var(--arc-muted);
}
