/* ============================================
   Lichtblick.news — Warm Editorial Design
   ============================================ */

/* --- Custom Properties --- */
:root {
  --cream: #FFF9EE;
  --cream-deep: #FFF3DD;
  --amber: #FFB733;
  --amber-dark: #FFA200;
  --amber-light: #FFD98A;
  --amber-glow: rgba(255, 183, 51, 0.12);
  --warm-dark: #372D23;
  --warm-dark-soft: #4A3F33;
  --muted: #A0917D;
  --muted-light: #C4B9AA;
  --border: rgba(160, 145, 125, 0.18);
  --border-strong: rgba(160, 145, 125, 0.3);
  --shadow-sm: 0 1px 3px rgba(55, 45, 35, 0.06);
  --shadow-md: 0 4px 16px rgba(55, 45, 35, 0.08);
  --shadow-lg: 0 8px 32px rgba(55, 45, 35, 0.1);
  --shadow-hover: 0 12px 40px rgba(55, 45, 35, 0.13);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Category Colors */
  --cat-wissenschaft: #2196F3;
  --cat-umwelt: #4CAF50;
  --cat-gesellschaft: #FF9800;
  --cat-gesundheit: #E91E63;
  --cat-technologie: #9C27B0;
  --cat-kultur: #FF5722;
  --cat-sport: #00BCD4;
  --cat-wirtschaft: #607D8B;
}

/* --- 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;
}

body {
  font-family: 'Instrument Sans', -apple-system, sans-serif;
  color: var(--warm-dark);
  background-color: var(--cream);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle paper texture via noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

img { max-width: 100%; display: block; }
a { color: var(--amber-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--warm-dark); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Young Serif', Georgia, serif;
  color: var(--warm-dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { max-width: 68ch; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

main {
  flex: 1;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--warm-dark);
  text-decoration: none;
}

.logo-link:hover { color: var(--warm-dark); }

.logo-sun {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 183, 51, 0.4));
  animation: sun-pulse 4s ease-in-out infinite;
}

@keyframes sun-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 183, 51, 0.4)); }
  50% { filter: drop-shadow(0 0 14px rgba(255, 183, 51, 0.6)); }
}

.logo-text {
  font-family: 'Young Serif', Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.logo-divider {
  width: 1px;
  height: 20px;
  background: var(--border-strong);
  margin: 0 2px;
}

.logo-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--warm-dark-soft);
  border-radius: 8px;
  transition: all var(--transition);
}

.main-nav a:hover {
  background: var(--amber-glow);
  color: var(--warm-dark);
}

.main-nav a[aria-current="page"] {
  color: var(--amber-dark);
  font-weight: 600;
  position: relative;
}

.main-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.main-nav .nav-cta {
  background: var(--amber);
  color: var(--warm-dark);
  font-weight: 600;
  padding: 7px 18px;
}

.main-nav .nav-cta:hover {
  background: var(--amber-dark);
  color: var(--warm-dark);
  box-shadow: 0 2px 12px rgba(255, 183, 51, 0.35);
}

.main-nav .nav-cta[aria-current="page"] {
  background: var(--amber);
  color: var(--warm-dark);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--warm-dark);
  margin: 5px auto;
  transition: all var(--transition);
  border-radius: 2px;
}

/* ============================================
   FEATURED ARTICLE
   ============================================ */
.featured-section {
  padding: 40px 0 0;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.featured-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.featured-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle at 30% 40%, currentColor 1px, transparent 1px);
  background-size: 20px 20px;
}

.featured-visual::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.06;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.featured-icon {
  font-size: 6.5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.12));
}

.featured-content {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.featured-date {
  font-size: 0.82rem;
  color: var(--muted);
}

.featured-card h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.3;
}

.featured-card h2 a {
  color: var(--warm-dark);
}

.featured-card h2 a:hover {
  color: var(--amber-dark);
}

.featured-excerpt {
  color: var(--warm-dark-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.featured-source {
  font-size: 0.82rem;
  color: var(--muted);
}

.featured-source a {
  color: var(--amber-dark);
  font-weight: 500;
}

/* ============================================
   NEWS GRID
   ============================================ */
.news-section {
  padding: 48px 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.section-label h2 {
  font-size: 1.1rem;
  color: var(--muted);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Last row with 2 items: center them */
.news-grid > .news-card:last-child:nth-child(3n+2) {
  grid-column: 2 / 3;
}

/* --- News Card --- */
.news-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: var(--radius) 0 0 var(--radius);
  transition: width var(--transition);
}

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

.news-card:hover::before {
  width: 5px;
}

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

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

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.news-card h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  flex: 1;
}

.news-card h3 a {
  color: var(--warm-dark);
}

.news-card h3 a:hover {
  color: var(--amber-dark);
}

.card-excerpt {
  font-size: 0.88rem;
  color: var(--warm-dark-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.card-source {
  color: var(--muted);
  font-weight: 500;
}

.card-source-link {
  color: var(--amber-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-source-link:hover {
  color: var(--warm-dark);
}

.card-source-link::after {
  content: '\2197';
  font-size: 0.9em;
}

/* Category-specific stripe colors */
.news-card[data-category="wissenschaft"]::before { background: var(--cat-wissenschaft); }
.news-card[data-category="umwelt"]::before { background: var(--cat-umwelt); }
.news-card[data-category="gesellschaft"]::before { background: var(--cat-gesellschaft); }
.news-card[data-category="gesundheit"]::before { background: var(--cat-gesundheit); }
.news-card[data-category="technologie"]::before { background: var(--cat-technologie); }
.news-card[data-category="kultur"]::before { background: var(--cat-kultur); }
.news-card[data-category="sport"]::before { background: var(--cat-sport); }
.news-card[data-category="wirtschaft"]::before { background: var(--cat-wirtschaft); }

/* Category tag colors */
.cat-wissenschaft { background: rgba(33,150,243,0.1); color: var(--cat-wissenschaft); }
.cat-umwelt { background: rgba(76,175,80,0.1); color: var(--cat-umwelt); }
.cat-gesellschaft { background: rgba(255,152,0,0.1); color: var(--cat-gesellschaft); }
.cat-gesundheit { background: rgba(233,30,99,0.1); color: var(--cat-gesundheit); }
.cat-technologie { background: rgba(156,39,176,0.1); color: var(--cat-technologie); }
.cat-kultur { background: rgba(255,87,34,0.1); color: var(--cat-kultur); }
.cat-sport { background: rgba(0,188,212,0.1); color: var(--cat-sport); }
.cat-wirtschaft { background: rgba(96,125,139,0.1); color: var(--cat-wirtschaft); }

/* Category icon backgrounds */
.icon-wissenschaft { background: rgba(33,150,243,0.1); }
.icon-umwelt { background: rgba(76,175,80,0.1); }
.icon-gesellschaft { background: rgba(255,152,0,0.1); }
.icon-gesundheit { background: rgba(233,30,99,0.1); }
.icon-technologie { background: rgba(156,39,176,0.1); }
.icon-kultur { background: rgba(255,87,34,0.1); }
.icon-sport { background: rgba(0,188,212,0.1); }
.icon-wirtschaft { background: rgba(96,125,139,0.1); }

/* Featured card visual backgrounds */
.vis-wissenschaft { background: linear-gradient(135deg, rgba(33,150,243,0.08), rgba(33,150,243,0.03)); color: var(--cat-wissenschaft); }
.vis-umwelt { background: linear-gradient(135deg, rgba(76,175,80,0.08), rgba(76,175,80,0.03)); color: var(--cat-umwelt); }
.vis-gesellschaft { background: linear-gradient(135deg, rgba(255,152,0,0.08), rgba(255,152,0,0.03)); color: var(--cat-gesellschaft); }
.vis-gesundheit { background: linear-gradient(135deg, rgba(233,30,99,0.08), rgba(233,30,99,0.03)); color: var(--cat-gesundheit); }
.vis-technologie { background: linear-gradient(135deg, rgba(156,39,176,0.08), rgba(156,39,176,0.03)); color: var(--cat-technologie); }
.vis-kultur { background: linear-gradient(135deg, rgba(255,87,34,0.08), rgba(255,87,34,0.03)); color: var(--cat-kultur); }
.vis-sport { background: linear-gradient(135deg, rgba(0,188,212,0.08), rgba(0,188,212,0.03)); color: var(--cat-sport); }
.vis-wirtschaft { background: linear-gradient(135deg, rgba(96,125,139,0.08), rgba(96,125,139,0.03)); color: var(--cat-wirtschaft); }

/* ============================================
   NEWSLETTER BANNER
   ============================================ */
.newsletter-banner {
  margin: 24px 0;
  background: linear-gradient(135deg, var(--cream-deep) 0%, white 100%);
  border: 1px solid var(--amber-light);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.newsletter-banner-icon {
  font-size: 3rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(255,183,51,0.3));
}

.newsletter-banner-text {
  flex: 1;
}

.newsletter-banner h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.newsletter-banner p {
  color: var(--muted);
  font-size: 0.92rem;
}

.newsletter-banner .btn-primary {
  flex-shrink: 0;
}

/* --- Archive Link --- */
.archive-link {
  text-align: center;
  margin: 32px 0 0;
}

.archive-link a {
  display: inline-block;
  color: var(--warm-dark);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 36px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}

.archive-link a:hover {
  border-color: var(--amber);
  background: var(--amber-glow);
  transform: translateY(-1px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--warm-dark);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: 'Instrument Sans', sans-serif;
}

.btn-primary:hover {
  background: var(--amber-dark);
  color: var(--warm-dark);
  box-shadow: 0 4px 20px rgba(255, 183, 51, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--warm-dark);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 28px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: 'Instrument Sans', sans-serif;
}

.btn-secondary:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-sm);
  color: var(--warm-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  margin-top: auto;
  background: var(--warm-dark);
  color: rgba(255, 249, 238, 0.7);
  padding: 48px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
}

.footer-logo .logo-sun { font-size: 24px; }
.footer-logo .logo-text {
  font-family: 'Young Serif', Georgia, serif;
  font-size: 1.15rem;
  color: var(--cream);
}

.footer-disclaimer {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 249, 238, 0.5);
  max-width: 38ch;
}

.footer-col h4 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255, 249, 238, 0.7);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255, 249, 238, 0.7);
  transition: all var(--transition);
  padding: 0;
}

.footer-social a:hover {
  background: var(--amber);
  color: var(--warm-dark);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 249, 238, 0.35);
}

/* ============================================
   PAGE CONTENT (About, Newsletter, Legal)
   ============================================ */
.page-header {
  padding: 48px 0 36px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-header h1 {
  margin-bottom: 10px;
}

.page-header .page-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.page-content {
  padding: 48px 52px 64px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto 64px;
}

.content-narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Prose styling */
.prose h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.prose p {
  margin-bottom: 16px;
  color: var(--warm-dark-soft);
  line-height: 1.75;
}

.prose strong {
  color: var(--warm-dark);
  font-weight: 600;
}

.prose a {
  color: var(--amber-dark);
  text-decoration: underline;
  text-decoration-color: rgba(255, 162, 0, 0.3);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--amber-dark);
}

.prose ul, .prose ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
  color: var(--warm-dark-soft);
  line-height: 1.7;
}

/* Highlight box */
.highlight-box {
  background: var(--amber-glow);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 28px 0;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

/* Info card grid (About page) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.info-card-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Newsletter page */
.newsletter-content-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 40px 48px 48px;
  margin-bottom: 48px;
}

.newsletter-hero {
  text-align: center;
  padding: 56px 0 40px;
}

.newsletter-hero h1 {
  margin-bottom: 16px;
}

.newsletter-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 auto;
}

.newsletter-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.benefit-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--amber-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.benefit-text h3 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.benefit-text p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.newsletter-form-container {
  max-width: 520px;
  margin: 24px auto 0;
  background: var(--cream-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}

.newsletter-form-container h3 {
  margin-bottom: 16px;
}

.newsletter-embed-placeholder {
  background: var(--cream-deep);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Legal pages */
.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 1.2rem;
}

.legal-content p {
  font-size: 0.92rem;
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-page {
  padding: 24px 0 64px;
}

.article-back {
  display: inline-block;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color var(--transition);
}

.article-back:hover {
  color: var(--amber-dark);
}

.article-header {
  max-width: 720px;
  margin: 0 auto 40px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.article-meta time {
  color: var(--muted);
  font-size: 0.88rem;
}

.article-header h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 18px;
}

.article-lead {
  font-size: 1.15rem;
  color: var(--warm-dark-soft);
  line-height: 1.7;
  border-left: 3px solid var(--amber);
  padding-left: 20px;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  box-shadow: var(--shadow-sm);
}

.article-body h2 {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.article-body p {
  margin-bottom: 18px;
  color: var(--warm-dark-soft);
  line-height: 1.8;
  font-size: 1.02rem;
}

.article-source {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--cream-deep);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.article-source a {
  color: var(--amber-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-source a:hover {
  text-decoration-color: var(--amber-dark);
}

.article-footer-nav {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ============================================
   ARCHIVE PAGE — Compact List
   ============================================ */
.archive-intro {
  padding: 48px 0 12px;
  max-width: 720px;
}

.archive-intro h1 {
  margin-bottom: 10px;
}

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.archive-month {
  margin-top: 24px;
  border-bottom: 2px solid var(--border);
}

.archive-month-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Young Serif', serif;
  font-size: 1.1rem;
  color: var(--warm-dark);
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--transition);
}

.archive-month-label::-webkit-details-marker {
  display: none;
}

.archive-month-label::before {
  content: '▶';
  font-size: 0.7rem;
  color: var(--warm-dark);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.archive-month[open] > .archive-month-label::before {
  content: '▼';
}

.archive-month-label:hover {
  color: var(--amber-dark);
}

.archive-month-count {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--muted-light);
  font-weight: 400;
  margin-left: auto;
}

.archive-month[open] {
  border-bottom-color: transparent;
}

.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.archive-item:hover {
  background: var(--amber-glow);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: var(--radius);
}

.archive-item-date {
  flex-shrink: 0;
  width: 65px;
  font-size: 0.88rem;
  color: var(--warm-dark-soft);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.archive-item-cat {
  flex-shrink: 0;
  font-size: 0.92rem;
}

.archive-item-title {
  flex: 1;
  min-width: 0;
}

.archive-item-title a {
  color: var(--warm-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.archive-item-title a:hover {
  color: var(--amber-dark);
}

/* ============================================
   ENTRY ANIMATIONS
   ============================================ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-card {
  animation: fade-up 0.5s ease-out;
}

.news-card {
  animation: fade-up 0.5s ease-out both;
}

.news-card:nth-child(1) { animation-delay: 0.05s; }
.news-card:nth-child(2) { animation-delay: 0.1s; }
.news-card:nth-child(3) { animation-delay: 0.15s; }
.news-card:nth-child(4) { animation-delay: 0.2s; }
.news-card:nth-child(5) { animation-delay: 0.25s; }
.news-card:nth-child(6) { animation-delay: 0.3s; }
.news-card:nth-child(7) { animation-delay: 0.35s; }
.news-card:nth-child(8) { animation-delay: 0.4s; }
.news-card:nth-child(9) { animation-delay: 0.45s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-card {
    grid-template-columns: 1fr 1.2fr;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 56px;
  }

  .logo-divider, .logo-tagline {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 10px 14px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-visual {
    padding: 36px;
    min-height: 200px;
  }

  .featured-visual::after {
    width: 180px;
    height: 180px;
  }

  .featured-icon {
    font-size: 5rem;
  }

  .featured-content {
    padding: 28px;
  }

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

  .news-grid > .news-card:last-child:nth-child(3n+2) {
    grid-column: auto;
  }

  .newsletter-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 20px;
  }

  .newsletter-benefits {
    grid-template-columns: 1fr;
  }

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

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

  .article-body,
  .page-content,
  .newsletter-content-box {
    padding: 28px 22px;
  }

  .archive-item {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .archive-item-date {
    width: auto;
  }

  .archive-item-title {
    flex-basis: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .featured-content {
    padding: 20px;
  }

  .card-body {
    padding: 20px 18px 16px;
  }

  .card-footer {
    padding: 12px 18px;
  }
}
