/* ============================================
   THE EMBER ROOM JOURNAL - STYLE.CSS
   Mobile-first, calm, mysterious, warm
   ============================================ */

/* ============================================
   SELF-HOSTED FONTS - Crimson Pro (Variable)
   ============================================ */
@font-face {
  font-family: 'Crimson Pro';
  src: url('../fonts/CrimsonPro.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-gutter: stable;
}

/* ============================================
   CSS VARIABLES - THE EMBER ROOM PALETTE
   ============================================ */
:root {
  /* Bakgrunder */
  --kolgrafit: #1A1A1A;
  --jordsvart: #0F0D0D;

  /* Text */
  --rokvit: #EDEDED;
  --askgra: #A8A8A8;

  /* Accenter - Glöd */
  --djupglod: #8B1E1E;
  --eldpulser: #D44A27;
  --glodpunkt: #FF3B2E;

  /* Detaljer */
  --jordbrun: #6B4423;
  --rost: #8B4513;

  /* Semantiska variabler */
  --bg-primary: var(--kolgrafit);
  --bg-secondary: var(--jordsvart);
  --bg-card: rgba(15, 13, 13, 0.6);
  --text-primary: var(--rokvit);
  --text-secondary: var(--askgra);
  --accent-primary: var(--djupglod);
  --accent-hover: var(--eldpulser);
  --accent-glow: var(--glodpunkt);

  /* Typografi */
  --font-heading: 'Constantia', 'Georgia', serif;
  --font-body: 'Georgia', serif;
  --font-nav: 'Crimson Pro', 'Georgia', serif;

  /* Storlekar */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Shadows - subtila glöd-effekter */
  --shadow-glow: 0 0 20px rgba(139, 30, 30, 0.3);
  --shadow-glow-hover: 0 0 30px rgba(212, 74, 39, 0.4);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================
   BODY & TYPOGRAPHY
   ============================================ */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}


h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--text-5xl); }
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

a {
  color: var(--accent-hover);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-glow);
}

/* ============================================
   LAYOUT - CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

.container--narrow {
  max-width: var(--container-md);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168, 168, 168, 0.1);
  transition: background var(--transition-base);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 var(--space-md);
  max-width: var(--container-lg);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .header__inner {
    height: 80px;
    padding: 0 var(--space-xl);
  }
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 18px; /* Fixed size for consistency */
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__logo:hover {
  color: var(--accent-hover);
}

.header__logo-ember {
  width: 28px;
  height: 28px;
  min-width: 28px; /* Prevent shrinking */
  min-height: 28px;
  background: linear-gradient(135deg, var(--djupglod), var(--eldpulser));
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
  animation: ember-pulse 3s ease-in-out infinite;
}

.header__logo-img {
  height: 29px;
  width: auto;
  display: block;
}

@keyframes ember-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(139, 30, 30, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(212, 74, 39, 0.6);
    transform: scale(1.05);
  }
}

/* Desktop Navigation */
.nav {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    gap: var(--space-xl);
  }
}

.nav__link {
  font-family: var(--font-nav);
  font-size: 14px; /* Fixed size for consistency */
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-hover);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* Hamburger to X animation */
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile */
  background: rgba(15, 13, 13, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-xl);
  padding-top: calc(70px + var(--space-3xl));
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  z-index: 999;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__link {
  font-family: var(--font-nav);
  font-size: var(--text-2xl);
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
  color: var(--accent-hover);
}

/* Body scroll lock when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
  padding-top: 70px;
}

@media (min-width: 768px) {
  main {
    padding-top: 80px;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  position: relative;
}

@media (min-width: 768px) {
  .hero {
    min-height: calc(100vh - 80px);
    padding: var(--space-4xl) var(--space-xl);
  }
}

.hero__content {
  max-width: var(--container-md);
}

.hero__tagline {
  font-family: var(--font-nav);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent-hover);
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: var(--text-5xl);
  }
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 480px) {
  .hero__cta-group {
    flex-direction: row;
    justify-content: center;
  }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.6;
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-secondary), transparent);
}

/* Hero with background image */
.hero--with-image {
  position: relative;
  overflow: hidden;
  height: 700px;
  min-height: unset;
  max-height: 700px;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: ember-glow-intense 8s ease-in-out infinite;
}

@keyframes ember-glow-intense {
  0%, 100% {
    filter: brightness(1) saturate(1);
  }
  15% {
    filter: brightness(1.25) saturate(1.1);
  }
  30% {
    filter: brightness(1.1) saturate(1);
  }
  45% {
    filter: brightness(1.6) saturate(1.2);
  }
  60% {
    filter: brightness(1.2) saturate(1.1);
  }
  75% {
    filter: brightness(1.45) saturate(1.15);
  }
  90% {
    filter: brightness(1.15) saturate(1);
  }
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(15, 13, 13, 0.6) 0%,
    rgba(15, 13, 13, 0.7) 50%,
    rgba(26, 26, 26, 0.95) 100%
  );
  z-index: 1;
}

.hero--with-image .hero__content {
  position: relative;
  z-index: 2;
}

.hero--with-image .hero__scroll {
  z-index: 2;
}

/* ============================================
   PARALLAX DIVIDER
   ============================================ */
.parallax-divider {
  position: relative;
  height: 50vh;
  min-height: 300px;
  max-height: 500px;
  overflow: hidden;
}

.parallax-divider__image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 140%;
  object-fit: cover;
  will-change: transform;
  animation: ember-glow-intense 8s ease-in-out infinite;
}

.parallax-divider__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-primary) 0%,
    transparent 15%,
    transparent 85%,
    var(--bg-secondary) 100%
  );
  pointer-events: none;
}

@media (min-width: 768px) {
  .parallax-divider {
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-nav);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-base);
  min-width: 160px;
}

.btn--primary {
  background: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow-hover);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--text-secondary);
}

.btn--secondary:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  min-width: auto;
}

.btn--ghost:hover {
  color: var(--accent-hover);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--space-3xl) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-4xl) 0;
  }
}

.section--dark {
  background: var(--bg-secondary);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .section__header {
    margin-bottom: var(--space-3xl);
  }
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* ============================================
   CARDS - TEXT PREVIEWS
   ============================================ */
.text-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .text-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .text-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.text-card {
  background: var(--bg-card);
  border: 1px solid rgba(168, 168, 168, 0.1);
  border-radius: 4px;
  padding: var(--space-lg);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.text-card:hover {
  border-color: rgba(139, 30, 30, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.text-card__category {
  font-family: var(--font-nav);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-hover);
  margin-bottom: var(--space-sm);
}

.text-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.text-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  flex-grow: 1;
  margin-bottom: var(--space-md);
}

.text-card__link {
  font-family: var(--font-nav);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  align-self: flex-start;
  transition: color var(--transition-fast);
}

.text-card__link:hover {
  color: var(--accent-hover);
}

/* Premium badge */
.text-card--premium {
  position: relative;
}

.text-card--premium::before {
  content: 'Prenumeranter';
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-nav);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  background: rgba(139, 30, 30, 0.2);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 2px;
}

/* Read article indicator */
.text-card--read {
  position: relative;
  opacity: 0.6;
}

.text-card--read:hover {
  opacity: 0.85;
}

.text-card__read-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-nav);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  background: rgba(100, 100, 100, 0.3);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 2px;
}

/* ============================================
   QUOTE / FEATURED TEXT
   ============================================ */
.quote-section {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.quote {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
  padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
  .quote {
    font-size: var(--text-2xl);
  }
}

.quote::before,
.quote::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-primary), transparent);
}

.quote::before { top: 0; }
.quote::after { bottom: 0; }

/* ============================================
   NEWSLETTER SIGNUP
   ============================================ */
.newsletter {
  background: var(--bg-secondary);
  padding: var(--space-2xl);
  border-radius: 4px;
  text-align: center;
  max-width: var(--container-sm);
  margin: 0 auto;
}

.newsletter__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.newsletter__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 480px) {
  .newsletter__form {
    flex-direction: row;
    justify-content: center;
  }
}

.newsletter__input {
  flex: 1;
  max-width: 300px;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--bg-primary);
  border: 1px solid rgba(168, 168, 168, 0.2);
  border-radius: 2px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.newsletter__input::placeholder {
  color: var(--text-secondary);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(168, 168, 168, 0.1);
  padding: var(--space-2xl) 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.footer__ember {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--djupglod), var(--eldpulser));
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
}

.footer__logo-img {
  height: 24px;
  max-height: 24px;
  width: auto;
  max-width: 200px;
  display: block;
  opacity: 0.9;
  object-fit: contain;
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ============================================
   PAGE-SPECIFIC: ABOUT
   ============================================ */
.about-hero {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.about-hero__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .about-hero__title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  .about-hero__title {
    font-size: var(--text-5xl);
  }
}

.about-hero__text {
  max-width: 700px;
  margin: 0 auto;
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

.values-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  text-align: center;
  padding: var(--space-xl);
}

.value-card__icon {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--djupglod), var(--eldpulser));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.value-card__icon-img {
  width: 70px;
  height: 70px;
  margin: 0 auto var(--space-lg);
  display: block;
  animation: ember-icon-glow 6s ease-in-out infinite;
}

.value-card__icon-img--rotate-90 {
  transform: rotate(90deg);
}

.value-card__icon-img--rotate-180 {
  transform: rotate(180deg);
}

@keyframes ember-icon-glow {
  0%, 100% {
    filter: brightness(1) saturate(1);
    opacity: 0.85;
  }
  25% {
    filter: brightness(1.3) saturate(1.2);
    opacity: 1;
  }
  50% {
    filter: brightness(1.1) saturate(1.1);
    opacity: 0.9;
  }
  75% {
    filter: brightness(1.4) saturate(1.25);
    opacity: 1;
  }
}

/* Ember Glow Effect - Intensiv glödande ram */
.ember-glow {
  filter:
    brightness(1.2)
    saturate(1.4)
    sepia(0.3)
    hue-rotate(-10deg)
    drop-shadow(0 0 8px rgba(212, 74, 39, 0.6))
    drop-shadow(0 0 20px rgba(139, 30, 30, 0.4));
  animation: ember-glow-pulse 4s ease-in-out infinite;
}

@keyframes ember-glow-pulse {
  0%, 100% {
    filter:
      brightness(1.2)
      saturate(1.4)
      sepia(0.3)
      hue-rotate(-10deg)
      drop-shadow(0 0 8px rgba(212, 74, 39, 0.5))
      drop-shadow(0 0 20px rgba(139, 30, 30, 0.3));
    opacity: 0.9;
  }
  50% {
    filter:
      brightness(1.5)
      saturate(1.6)
      sepia(0.35)
      hue-rotate(-5deg)
      drop-shadow(0 0 15px rgba(212, 74, 39, 0.8))
      drop-shadow(0 0 35px rgba(139, 30, 30, 0.5));
    opacity: 1;
  }
}

.value-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.value-card__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================
   PAGE-SPECIFIC: TEXTS ARCHIVE
   ============================================ */
.texts-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
}

.texts-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  font-family: var(--font-nav);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: 1px solid rgba(168, 168, 168, 0.2);
  border-radius: 2px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn--active {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

/* ============================================
   PAGE-SPECIFIC: CONTACT
   ============================================ */
.contact-hero {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.contact-form {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: var(--space-2xl);
  background: var(--bg-secondary);
  border-radius: 4px;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--bg-primary);
  border: 1px solid rgba(168, 168, 168, 0.2);
  border-radius: 2px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   IMAGE PLACEHOLDERS
   ============================================ */
.img-placeholder {
  background: linear-gradient(135deg, var(--bg-secondary), var(--kolgrafit));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.img-placeholder::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--djupglod), var(--eldpulser));
  border-radius: 50%;
  opacity: 0.3;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article__header {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
}

.article__back {
  display: inline-block;
  font-family: var(--font-nav);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  transition: color var(--transition-fast);
}

.article__back:hover {
  color: var(--accent-hover);
}

.article__category {
  display: inline-block;
  font-family: var(--font-nav);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-hover);
  margin-bottom: var(--space-md);
}

.article__title {
  font-size: var(--text-3xl);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .article__title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  .article__title {
    font-size: var(--text-5xl);
  }
}

.article__content {
  padding-bottom: var(--space-3xl);
}

.article__content p {
  font-size: var(--text-lg);
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.article__short p {
  color: var(--text-primary);
}

.article__divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-primary), transparent);
  margin: var(--space-2xl) auto;
}

.article__long {
  position: relative;
}

/* Blurred content preview */
.article__blurred-wrapper {
  position: relative;
  margin-top: var(--space-xl);
}

.article__blurred {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
  max-height: 300px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.article__blurred p {
  font-size: var(--text-lg);
  line-height: 1.9;
  margin-bottom: var(--space-lg);
}

/* Article Gate - Airy paywall design */
.article__gate {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-2xl);
  position: relative;
  z-index: 2;
}

.article__blurred-wrapper .article__gate {
  margin-top: -300px;
}

.article__gate-message {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  font-style: italic;
}

@media (min-width: 768px) {
  .article__gate-message {
    font-size: var(--text-2xl);
  }
}

.article__gate-price {
  font-family: var(--font-nav);
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.02em;
}

.article__gate-sep {
  margin: 0 var(--space-sm);
  opacity: 0.5;
}

.article__gate-save {
  display: block;
  font-size: var(--text-sm);
  color: var(--accent-hover);
  margin-top: var(--space-xs);
}

.article__gate-btn {
  margin-bottom: var(--space-xl);
}

.article__gate-login {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 0;
}

.article__gate-login a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article__gate-login a:hover {
  color: var(--text-primary);
}

/* Pricing options */
.article__pricing {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.article__price-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 140px;
  background: transparent;
}

.article__price-option:hover {
  border-color: rgba(139, 30, 30, 0.5);
}

.article__price-option--selected {
  border-color: var(--accent-primary);
  background: rgba(139, 30, 30, 0.1);
}

.article__price-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.article__price-label {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.article__price-option--selected .article__price-label {
  color: var(--text-primary);
}

.article__price-bonus {
  font-size: var(--text-xs);
  color: var(--accent-hover);
  margin-top: var(--space-xs);
}

/* Large button variant */
.btn--large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-base);
  min-width: 220px;
}

/* Legacy paywall styles (for gradual migration) */
.article__paywall {
  position: relative;
  margin-top: var(--space-xl);
}

.article__fade {
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}

.article__unlock-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.article__unlock-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.article__unlock-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.article__question {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 4px 4px 0;
}

.article__question p {
  margin-bottom: 0;
  font-style: italic;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--accent-primary);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  z-index: 10000;
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  top: var(--space-md);
}

/* ============================================
   EMBER GLOW EFFECTS - Living fire aesthetic
   ============================================ */

/* Keyframe Animations */
@keyframes ember-pulse {
  0%, 100% {
    opacity: 0.4;
    box-shadow: 0 0 20px rgba(212, 74, 39, 0.2);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 40px rgba(212, 74, 39, 0.4);
  }
}

@keyframes ember-float {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  5% { opacity: 0.8; }
  25% {
    transform: translateY(-25vh) translateX(15px) scale(0.9);
  }
  50% {
    transform: translateY(-50vh) translateX(-10px) scale(0.75);
    opacity: 1;
  }
  75% {
    transform: translateY(-75vh) translateX(20px) scale(0.6);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-105vh) translateX(-5px) scale(0.3);
    opacity: 0;
  }
}

@keyframes ember-flicker {
  0%, 100% { opacity: 0.3; }
  25% { opacity: 0.5; }
  50% { opacity: 0.2; }
  75% { opacity: 0.6; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes warm-glow {
  0%, 100% {
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.3),
      0 0 0 rgba(139, 30, 30, 0);
  }
  50% {
    box-shadow:
      0 8px 30px rgba(0, 0, 0, 0.4),
      0 0 30px rgba(139, 30, 30, 0.15);
  }
}

/* Ember Canvas (JavaScript particle system) */
#ember-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Ember Strip - Particle emission source */
.ember-strip {
  position: relative;
  width: 100%;
  height: 280px;
  margin-top: -1px;
  background: var(--bg-primary);
}

.ember-strip__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 1;
  animation: ember-glow 8s ease-in-out infinite;
}

@keyframes ember-glow {
  0%, 100% {
    filter: brightness(1) saturate(1);
  }
  15% {
    filter: brightness(1.15) saturate(1.1);
  }
  30% {
    filter: brightness(1.05) saturate(1);
  }
  45% {
    filter: brightness(1.25) saturate(1.15);
  }
  60% {
    filter: brightness(1.1) saturate(1.05);
  }
  75% {
    filter: brightness(1.2) saturate(1.1);
  }
  90% {
    filter: brightness(1.08) saturate(1);
  }
}

@media (min-width: 768px) {
  .ember-strip {
    height: 350px;
  }
}

/* Gradient Text for Section Titles */
.section__title {
  background: linear-gradient(
    135deg,
    var(--rokvit) 0%,
    var(--eldpulser) 50%,
    var(--rokvit) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
}

/* Quote Section Enhancements */
.quote-section {
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(139, 30, 30, 0.15) 0%,
    transparent 70%
  );
  animation: ember-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

.quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 6rem;
  font-family: var(--font-heading);
  color: var(--accent-primary);
  opacity: 0.3;
  animation: ember-flicker 4s ease-in-out infinite;
  line-height: 1;
}

.quote {
  position: relative;
}

/* Text Cards - Warm Hover Effect */
.text-card {
  position: relative;
  transition: all var(--transition-base);
}

.text-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at bottom,
    rgba(139, 30, 30, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  border-radius: inherit;
}

.text-card:hover::before {
  opacity: 1;
}

.text-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(139, 30, 30, 0.1);
}

/* Value Cards - Subtle Ember Glow */
.value-card {
  position: relative;
  transition: all var(--transition-base);
}

.value-card__icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(212, 74, 39, 0.3) 0%,
    transparent 70%
  );
  animation: ember-pulse 5s ease-in-out infinite;
  opacity: 0.5;
}

.value-card:hover {
  transform: translateY(-2px);
}

/* Primary Button - Enhanced Glow */
.btn--primary {
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn--primary:hover::before {
  transform: translateX(100%);
}

.btn--primary:hover {
  box-shadow:
    0 0 20px rgba(212, 74, 39, 0.5),
    0 0 40px rgba(139, 30, 30, 0.3);
}

/* Newsletter Section - Clean, no extra glow (has its own box) */
.newsletter {
  position: relative;
}

/* Header Logo Ember - Pulsing Glow */
.header__logo-ember,
.footer__ember {
  animation: ember-flicker 3s ease-in-out infinite;
}

/* Article Header - Subtle Warmth */
.article__header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  background: radial-gradient(
    ellipse at bottom,
    rgba(139, 30, 30, 0.2) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Hero Scroll Indicator - Pulsing */
.hero__scroll-line {
  animation: ember-pulse 2s ease-in-out infinite;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  #ember-canvas {
    display: none;
  }

  .section__title,
  .quote-section::before,
  .quote::before,
  .value-card__icon::after,
  .header__logo-ember,
  .footer__ember,
  .hero__scroll-line {
    animation: none;
  }

  .btn--primary::before {
    display: none;
  }
}
