/* ========================================
   CannabisLaw.legal
   Cannabis Legality Around the World
   Editorial / Policy Journal Aesthetic
   ======================================== */

/* DM Serif Display */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Source Sans 3 */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #F6F1EB;
  --color-bg-alt: #EDE6DC;
  --color-surface: #FFFFFF;
  --color-text: #2A2520;
  --color-text-muted: #7A746C;
  --color-text-light: #A69E94;
  --color-accent: #3B6B4A;
  --color-accent-light: #5A9A6C;
  --color-accent-dark: #2A4D35;
  --color-accent-bg: #E8F0EA;
  --color-border: #DDD5CB;
  --color-tag: #C4A35A;
  --color-tag-bg: #FDF6E8;
  --color-danger: #B85450;
  --color-warning: #D4A03C;
  --color-safe: #3B6B4A;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1200px;
  --content-width: 780px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(42,37,32,0.06);
  --shadow-md: 0 4px 16px rgba(42,37,32,0.08);
  --shadow-lg: 0 8px 32px rgba(42,37,32,0.12);
  --transition: 0.25s ease;
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  background-image: radial-gradient(circle, rgba(196,163,90,0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* ---- NAVIGATION ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,241,235,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .logo-icon {
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

.nav-logo .logo-dot {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

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

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 480px;
  background: radial-gradient(ellipse 80% 100% at 50% -5%, rgba(59,107,74,0.07), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 0 auto;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 2.5rem auto 0;
  border-radius: 2px;
}

/* ---- REGION FILTER BAR ---- */
.filter-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 100px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

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

.filter-btn.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ---- ARTICLE CARDS GRID ---- */
.articles-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s ease both;
}

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

.card-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.card-image-placeholder {
  width: 100%;
  height: 210px;
  background: linear-gradient(135deg, var(--color-accent-bg) 0%, var(--color-bg-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

a.card-image-placeholder:hover {
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.card-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(59,107,74,0.03) 20px,
    rgba(59,107,74,0.03) 40px
  );
}

.card-city-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(to top, rgba(232,240,234,0.97) 60%, transparent);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  font-weight: 600;
  z-index: 2;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tags {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-weight: 500;
}

.tag-region {
  background: var(--color-accent-bg);
  color: var(--color-accent);
}

.tag-status {
  font-weight: 600;
}

.tag-status.legal,
.status-badge.legal {
  background: var(--color-accent-bg);
  color: var(--color-safe);
}

.tag-status.decriminalized,
.status-badge.decriminalized {
  background: #FDF6E8;
  color: var(--color-warning);
}

.tag-status.illegal,
.status-badge.illegal {
  background: #FCEAEA;
  color: var(--color-danger);
}

.tag-status.mixed,
.status-badge.mixed {
  background: #EDE6F5;
  color: #6B5B8D;
}

.tag-city {
  background: #E2ECF8;
  color: #2E5A8C;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  color: var(--color-text);
  overflow-wrap: break-word;
}

.card-title a {
  color: inherit;
}

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

.card-excerpt {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

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

.card-date::before {
  content: "Updated: ";
}

:lang(de) .card-date::before {
  content: "Aktualisiert: ";
}

.card-read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-read-more::after {
  content: '→';
  transition: transform var(--transition);
}

.card-read-more:hover::after {
  transform: translateX(3px);
}

/* ---- ARTICLE PAGE ---- */
.article-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.article-header .card-tags {
  justify-content: center;
  margin-bottom: 1rem;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.article-meta {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.article-hero-image {
  max-width: 1050px;
  margin: 2rem auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.article-hero-image img,
.article-hero-placeholder {
  width: 100%;
  aspect-ratio: 21 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}

.article-hero-placeholder {
  background: linear-gradient(135deg, var(--color-accent-bg), var(--color-bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-accent);
}

/* Article Content */
.article-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.article-content h2,
.article-content h3 {
  font-family: var(--font-display);
  color: var(--color-text);
}

.article-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}

.article-content blockquote {
  border-left: 3px solid var(--color-accent);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--color-accent-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-accent-dark);
}

/* Legal Status Box */
.legal-status-box {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.legal-status-box h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: var(--color-bg);
  border-radius: 4px;
  font-size: 0.88rem;
}

.status-item .label {
  font-weight: 500;
  color: var(--color-text-muted);
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.status-badge.medical-only { background: #E2ECF8; color: #2E5A8C; }
.status-badge.stable       { background: #E8F5E9; color: #2E7D32; }
.status-badge.shifting     { background: #FFF3E0; color: #E65100; }
.status-badge.under-review { background: #E3F2FD; color: #1565C0; }

.status-item.full-width { grid-column: 1 / -1; }

/* Regulation Pulse block */
.regulation-pulse {
  background: #EDF4FF;
  border: 1.5px solid #C3D9F5;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.regulation-pulse h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: #1565C0;
}

.pulse-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pulse-list li {
  font-size: 0.93rem;
  line-height: 1.6;
  padding-left: 1.4rem;
  position: relative;
  color: var(--color-text);
}

.pulse-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #1565C0;
  font-weight: 700;
}

/* Public Sentiment block */
.public-sentiment {
  border-left: 3px solid var(--color-accent);
  background: var(--color-accent-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
}

.public-sentiment h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-dark);
  margin: 0 0 0.5rem;
}

.public-sentiment p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--color-text);
}

/* Scroll offset for sticky nav */
.article-content h2[id],
.article-content h3[id],
.comments-section[id] {
  scroll-margin-top: 76px;
}

/* Table of Contents */
.toc {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.toc h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.toc ol {
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  font-size: 0.92rem;
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition), color var(--transition);
}

.toc a:hover {
  color: var(--color-accent-dark);
  text-decoration-color: var(--color-accent-dark);
}

/* Comment section */
.comments-section {
  margin-top: 3rem;
  border-top: 1.5px solid var(--color-border);
  padding-top: 2rem;
}

.comments-section h2,
.comments-section h3 {
  font-family: var(--font-display);
}

.comments-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.comments-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.comments-list {
  margin-bottom: 2.5rem;
}

.comments-empty {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

.comment-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.comment-meta strong {
  font-size: 0.95rem;
}

.comment-meta span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.comment-item p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.7;
}

.comment-form {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ---- ABOUT PAGE ---- */
.about-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.about-content h1,
.contact-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
  text-align: center;
}

.about-content .subtitle,
.contact-content .subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.about-content .subtitle { font-size: 1.1rem; }

.about-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* ---- CONTACT PAGE ---- */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.contact-content .subtitle { font-size: 1.05rem; }

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition);
}

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

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

.form-submit {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  width: 100%;
}

.form-submit:hover {
  background: var(--color-accent-dark);
}

.contact-success {
  text-align: center;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  line-height: 4rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--color-text);
  color: var(--color-bg-alt);
  padding: 3rem 2rem;
  margin-top: auto;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-bg);
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  max-width: 320px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--color-text-light);
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.footer-bottom .disclaimer {
  margin-top: 0.5rem;
  font-style: italic;
  opacity: 0.7;
  font-size: 0.72rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a {
    font-size: 1rem;
    padding: 0.4rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-hamburger { display: flex; }

  .articles-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem 3rem;
  }

  /* Horizontal-scrolling filter bar — much easier to use on mobile */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 1.5rem 1.5rem;
    justify-content: flex-start;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0.6rem 1.2rem;
  }

  .hero { padding: 2.5rem 1.5rem 2rem; }
  .hero h1 { font-size: 2rem; }

  /* Article pages */
  .article-hero-image { max-width: 100%; }
  .article-header { padding: 2rem 1.5rem 1.5rem; }
  .article-meta { flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
  .article-content { padding: 1.5rem 1.5rem 3rem; }

  .status-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }

  .card-read-more { min-height: 44px; align-items: center; }
}

/* Extra-small screens (< 480px) */
@media (max-width: 480px) {
  .nav-inner { padding: 0 1rem; }
  .hero { padding: 2rem 1rem 1.5rem; }
  /* Hide the explicit <br> so the title reflows naturally instead of
     producing a 3-line "Laws / (break) / Around the World" layout */
  .hero h1 br { display: none; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .filter-bar { padding: 0 1rem 1.25rem; }
  .articles-grid { padding: 0 1rem 2.5rem; gap: 1.25rem; }
  .card-body { padding: 1.1rem; }
  .article-header { padding: 1.5rem 1rem 1rem; }
  .article-content { padding: 1.25rem 1rem 2.5rem; }
  .footer-links { flex-direction: column; gap: 0.75rem; }
}

/* Touch devices — replace hover lift with active press feedback */
@media (hover: none) and (pointer: coarse) {
  .article-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  .article-card:active {
    transform: scale(0.985);
    box-shadow: var(--shadow-md);
  }
  a.card-image-placeholder:hover { opacity: 1; }
  a.card-image-placeholder:active { opacity: 0.88; }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .article-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- LANGUAGE SWITCHER ---- */
.lang-switcher {
  display: flex;
  gap: 0.2rem;
  align-items: center;
  margin-left: 1rem;
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.45rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  line-height: 1;
}

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

.lang-btn.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

@media (max-width: 768px) {
  .lang-switcher {
    margin-left: auto;
    margin-right: 0.5rem;
  }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-card:nth-child(1) { animation-delay: 0.05s; }
.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.15s; }
.article-card:nth-child(4) { animation-delay: 0.2s; }
.article-card:nth-child(5) { animation-delay: 0.25s; }
.article-card:nth-child(6) { animation-delay: 0.3s; }
