/* ============================================================
   FINANZTREFF — Ghost Theme Stylesheet
   Inspired by Sherwood News editorial design
   ============================================================ */

/* ---- FONTS ---- */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@300,400,500,600,700,800&display=swap');

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
}

body {
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100dvh;
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.05; font-weight: 800; }
p { max-width: 72ch; }

::selection {
  background: rgba(0, 0, 0, 0.15);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

/* ---- CSS VARIABLES ---- */
:root {
  /* Colors */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F5F3;
  --color-surface: #FFFFFF;
  --color-text: #000000;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;
  --color-border: #E0E0E0;
  --color-border-dark: #000000;
  --color-accent: #EEFF00;
  --color-accent-hover: #D4E600;
  --color-green: #00C853;
  --color-red: #FF1744;
  --color-blue: #0066FF;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --container-max: 1320px;
  --container-padding: 80px;
  --gap: 24px;

  /* Typography */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 17px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 40px;
  --text-4xl: 56px;
  --text-5xl: 72px;

  /* Transition */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 200ms;
}

/* ---- CONTAINER ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

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

.site-logo {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-transform: none;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo img {
  height: 32px;
  width: auto;
}

/* Hamburger Menu Button */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 200;
}

.menu-toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 28px;
}

.menu-toggle-lines span {
  display: block;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle.is-active .menu-toggle-lines span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .menu-toggle-lines span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================================================
   NAVIGATION OVERLAY
   ============================================================ */
.nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  background: var(--color-bg);
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.nav-overlay.is-open {
  transform: translateX(0);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-content {
  padding: var(--space-24) var(--space-10);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.nav-links a {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  transition: opacity var(--duration) var(--ease);
  display: block;
  padding: var(--space-1) 0;
}

.nav-links a:hover {
  opacity: 0.5;
}

/* Yellow CTA box in nav */
.nav-cta {
  background: var(--color-accent);
  color: var(--color-text);
  padding: var(--space-8);
  margin-top: auto;
}

.nav-cta-headline {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.nav-cta-text {
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-bottom: var(--space-5);
  max-width: none;
}

.nav-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 12px 24px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 0;
  transition: opacity var(--duration) var(--ease);
}

.nav-cta-button:hover {
  opacity: 0.8;
}

.nav-cta-button svg {
  width: 16px;
  height: 16px;
}

.nav-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-6) var(--space-10);
  border-top: 1px solid var(--color-border);
}

.nav-footer-links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  transition: color var(--duration) var(--ease);
}

.nav-footer-links a:hover {
  color: var(--color-text);
}

/* ============================================================
   HERO SECTION — 3 Column Cards
   ============================================================ */
.hero-section {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.hero-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-4);
  align-items: start;
}

.hero-card-image {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.hero-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hero-card-headline {
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.hero-card-headline a:hover {
  opacity: 0.6;
}

.hero-card-excerpt {
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-text);
}

.hero-card-author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-top: auto;
}

/* ============================================================
   TICKER BAR — Scrolling News
   ============================================================ */
.ticker-bar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
  overflow: hidden;
  position: relative;
  background: var(--color-bg);
}

.ticker-track {
  display: flex;
  gap: var(--space-10);
  animation: ticker-scroll 60s linear infinite;
  width: max-content;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  font-size: var(--text-sm);
  font-weight: 500;
}

.ticker-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.ticker-symbol {
  font-weight: 700;
  margin-right: 2px;
}

.ticker-value {
  font-weight: 500;
}

.ticker-change {
  font-weight: 600;
  font-size: 13px;
}

.ticker-change.up {
  color: var(--color-green);
}

.ticker-change.down {
  color: var(--color-red);
}

.ticker-headline {
  font-weight: 600;
}

.ticker-headline a {
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease);
}

.ticker-headline a:hover {
  border-bottom-color: var(--color-text);
}

.ticker-item a:hover {
  text-decoration: underline;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   FEATURED SECTION — Big Story + Side Story
   ============================================================ */
.featured-section {
  padding: var(--space-10) 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.featured-main {}

.featured-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.category-badge {
  display: inline-block;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.featured-author {
  font-size: var(--text-sm);
  font-weight: 600;
}

.featured-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-headline {
  font-size: clamp(36px, 5vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: var(--space-4);
}

.featured-headline a:hover {
  opacity: 0.6;
}

.featured-excerpt {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* Secondary featured */
.featured-secondary {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.featured-secondary .featured-image {
  aspect-ratio: 4 / 3;
}

.featured-secondary .featured-headline {
  font-size: clamp(24px, 3vw, var(--text-2xl));
  line-height: 1.05;
}

/* ============================================================
   MAIN CONTENT — Stories + Sidebar
   ============================================================ */
.main-content {
  padding: var(--space-10) 0 var(--space-16);
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-12);
  align-items: start;
}

/* --- Story Cards --- */
.stories-section {}

.stories-header {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-text);
  margin-bottom: var(--space-6);
}

.story-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}

.story-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.story-card-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.story-card-headline {
  font-size: clamp(24px, 3vw, var(--text-3xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-3);
}

.story-card-headline a:hover {
  opacity: 0.6;
}

.story-card-excerpt {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
}

.story-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.story-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stock Ticker Badges inside stories */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  white-space: nowrap;
}

.stock-badge.up { color: var(--color-green); }
.stock-badge.down { color: var(--color-red); }

.read-more {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--duration) var(--ease);
}

.read-more:hover {
  opacity: 0.6;
}

.read-more svg {
  width: 14px;
  height: 14px;
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-section {
  margin-bottom: var(--space-10);
}

.sidebar-header {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-text);
  margin-bottom: var(--space-5);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.sidebar-list li {
  padding-left: var(--space-4);
  position: relative;
  font-size: var(--text-sm);
  line-height: 1.45;
  font-weight: 500;
}

.sidebar-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-text);
  font-weight: 700;
}

.sidebar-list li a {
  transition: opacity var(--duration) var(--ease);
}

.sidebar-list li a:hover {
  opacity: 0.6;
}

/* Sidebar Tags */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.sidebar-tag {
  display: inline-block;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.sidebar-tag:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-8) 0;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 10px 24px;
  border: 2px solid var(--color-text);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.pagination a:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.pagination .page-number {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   CTA SECTION — Yellow Subscribe Box
   ============================================================ */
.cta-section {
  background: var(--color-accent);
  color: var(--color-text);
  padding: var(--space-16) 0;
}

.cta-inner {
  max-width: 680px;
}

.cta-tagline {
  font-size: clamp(36px, 5vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: var(--space-5);
}

.cta-text {
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 580px;
}

.cta-form {
  display: flex;
  gap: 0;
}

.cta-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--color-text);
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  outline: none;
  min-width: 0;
}

.cta-form input[type="email"]::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.cta-form button {
  padding: 14px 28px;
  background: var(--color-text);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 700;
  border: 2px solid var(--color-text);
  white-space: nowrap;
  transition: opacity var(--duration) var(--ease);
}

.cta-form button:hover {
  opacity: 0.85;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-10) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-logo {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
}

.footer-links a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration) var(--ease);
}

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

.footer-copyright {
  width: 100%;
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   POST PAGE (Single Article)
   ============================================================ */
.post-header {
  padding: var(--space-10) 0 var(--space-6);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.post-author-name {
  font-size: var(--text-sm);
  font-weight: 700;
}

.post-date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.post-title {
  font-size: clamp(36px, 6vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: var(--space-4);
}

.post-excerpt-text {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 720px;
}

.post-feature-image {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto var(--space-10);
  padding: 0 var(--container-padding);
}

.post-feature-image img {
  width: 100%;
  height: auto;
}

.post-feature-image figcaption {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* Post Body / Ghost Content */
.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--container-padding) var(--space-16);
}

.post-content h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: var(--space-10) 0 var(--space-4);
  line-height: 1.1;
}

.post-content h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: var(--space-8) 0 var(--space-3);
  line-height: 1.15;
}

.post-content p {
  margin-bottom: var(--space-5);
  font-size: var(--text-base);
  line-height: 1.7;
}

.post-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--duration) var(--ease);
}

.post-content a:hover {
  opacity: 0.6;
}

.post-content blockquote {
  background: var(--color-bg-alt);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  font-size: var(--text-lg);
  line-height: 1.5;
  border-left: 4px solid var(--color-text);
}

.post-content ul, .post-content ol {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li {
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
  line-height: 1.6;
}

.post-content figure {
  margin: var(--space-8) 0;
}

.post-content figcaption {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.post-content .kg-image-card img,
.post-content .kg-gallery-image img {
  border-radius: 0;
}

.post-content .kg-width-wide {
  margin-left: calc(-1 * var(--space-12));
  margin-right: calc(-1 * var(--space-12));
  max-width: none;
}

.post-content .kg-width-full {
  margin-left: calc(-1 * var(--container-padding));
  margin-right: calc(-1 * var(--container-padding));
  max-width: none;
  width: calc(100% + 2 * var(--container-padding));
}

/* ============================================================
   TAG / AUTHOR PAGES
   ============================================================ */
.archive-header {
  padding: var(--space-12) 0 var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.archive-title {
  font-size: clamp(32px, 5vw, var(--text-4xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.archive-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-top: var(--space-3);
  max-width: 600px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--gap);
  padding: var(--space-10) 0;
}

.archive-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
}

.archive-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.archive-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.archive-card:hover .archive-card-image img {
  transform: scale(1.03);
}

.archive-card-content {
  padding: var(--space-5);
}

.archive-card-headline {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.archive-card-headline a:hover {
  opacity: 0.6;
}

.archive-card-excerpt {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.archive-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.error-code {
  font-size: clamp(60px, 12vw, 160px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.error-message {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-top: var(--space-4);
}

.error-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-6);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 12px 28px;
  border: 2px solid var(--color-text);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.error-link:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  :root {
    --container-padding: 40px;
  }

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

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid .hero-card:last-child {
    display: none;
  }

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

  .featured-headline {
    font-size: clamp(28px, 5vw, 48px);
  }
}

@media (max-width: 680px) {
  :root {
    --container-padding: 20px;
    --gap: 16px;
  }

  .header-inner {
    height: 60px;
  }

  .site-logo {
    font-size: 24px;
  }

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

  .hero-grid .hero-card:last-child {
    display: block;
  }

  .hero-card {
    grid-template-columns: 100px 1fr;
  }

  .hero-card-image {
    width: 100px;
    height: 100px;
  }

  .hero-card-headline {
    font-size: var(--text-base);
    text-transform: none;
  }

  .featured-headline {
    font-size: 28px;
  }

  .story-card {
    padding: var(--space-5);
  }

  .story-card-headline {
    font-size: var(--text-xl);
  }

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

  .nav-overlay {
    max-width: 100%;
  }

  .nav-links a {
    font-size: var(--text-2xl);
  }

  .cta-tagline {
    font-size: 28px;
  }

  .cta-form {
    flex-direction: column;
  }

  .cta-form button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

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

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

  .post-content .kg-width-wide {
    margin-left: calc(-1 * var(--space-5));
    margin-right: calc(-1 * var(--space-5));
  }

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

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

.separator {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
