/* ===== Nordlicht Journal — Site Stylesheet ===== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #5B2E6F;
  --color-light: #7A4590;
  --color-dark: #3E1A50;
  --color-bg: #FBF8FC;
  --color-text: #2A1E30;
  --color-muted: #6B5A75;
  --color-border: #E2D5E8;
  --color-card-bg: #FFFFFF;
  --color-hero-from: #3E1A50;
  --color-hero-to: #7A4590;
  --color-tag-bg: #EDE4F2;
  --color-tag-text: #5B2E6F;
  --color-footer-bg: #2A1E30;
  --radius: 8px;
  --shadow-card: 0 2px 12px rgba(59, 46, 111, 0.08);
  --shadow-card-hover: 0 6px 24px rgba(59, 46, 111, 0.14);
  --max-width: 1140px;
  --header-h: 64px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-light);
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Container ===== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Site Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.site-logo span {
  color: var(--color-primary);
}

.site-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.site-nav a {
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s;
}

.site-nav a:hover {
  color: var(--color-primary);
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ===== Home Hero ===== */

.home-hero {
  background: linear-gradient(135deg, var(--color-hero-from), var(--color-hero-to));
  color: #fff;
  padding: 80px 24px 72px;
  text-align: center;
}

.home-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.tagline {
  font-size: 1.15rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== Section Label ===== */

.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--color-primary);
  margin-bottom: 28px;
  padding-top: 56px;
}

/* ===== Card Grid ===== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 64px;
}

.article-card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--color-tag-bg), #f3e8fa);
}

.card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-tag-text);
  background: var(--color-tag-bg);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--color-text);
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--color-primary);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}

.card-meta {
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* ===== Page Hero ===== */

.page-hero {
  background: linear-gradient(135deg, var(--color-hero-from), var(--color-hero-to));
  color: #fff;
  padding: 56px 24px 48px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* ===== Article Layout ===== */

.article-header {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 36px;
}

.article-header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--color-text);
}

.article-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-body {
  padding-bottom: 48px;
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--color-dark);
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--color-dark);
}

.article-body p {
  margin-bottom: 18px;
}

.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 14px 20px;
  margin: 24px 0;
  background: var(--color-tag-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-muted);
}

.article-body ul, .article-body ol {
  margin: 14px 0 18px 24px;
}

.article-body li {
  margin-bottom: 6px;
}

.article-nav {
  border-top: 1px solid var(--color-border);
  padding: 32px 0 48px;
  text-align: center;
}

.article-nav a {
  display: inline-block;
  padding: 10px 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s;
}

.article-nav a:hover {
  background: var(--color-dark);
  color: #fff;
}

/* ===== Page Content ===== */

.page-content {
  padding: 48px 0 64px;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--color-dark);
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--color-dark);
}

.page-content p {
  margin-bottom: 16px;
}

.page-content ul, .page-content ol {
  margin: 12px 0 16px 24px;
}

.page-content li {
  margin-bottom: 6px;
}

/* ===== Team Grid ===== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin: 32px 0;
}

.team-member {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.team-member .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-tag-bg), #f3e8fa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 16px;
}

.team-member h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--color-text);
}

.team-member .role {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.team-member p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ===== Contact ===== */

.contact-block {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  margin: 24px 0;
}

.contact-block h3 {
  margin-bottom: 12px;
  color: var(--color-dark);
}

.contact-block p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* ===== Footer ===== */

.site-footer {
  background: var(--color-footer-bg);
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 32px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.footer-tagline {
  font-size: 0.85rem;
  margin-top: 6px;
  opacity: 0.7;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  padding-top: 28px;
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.55;
}

/* ===== Privacy specific ===== */

.privacy-section {
  margin-bottom: 28px;
}

.privacy-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-dark);
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .site-nav.open {
    display: flex;
  }

  .home-hero {
    padding: 56px 20px 48px;
  }

  .home-hero h1 {
    font-size: 1.9rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card-image {
    height: 140px;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-links {
    justify-content: center;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}
