/* Recicla Radar — urban-slate civic editorial */
:root {
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --radius: 2px;
  --container: 1140px;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --slate-950: #14171a;
  --slate-900: #1c2024;
  --slate-800: #2a3038;
  --slate-700: #3d4550;
  --slate-600: #5c6670;
  --slate-500: #7a8590;
  --slate-400: #9aa3ab;
  --slate-300: #c4cad0;
  --slate-200: #e2e5e8;
  --slate-100: #f0f2f4;
  --slate-50: #f8f9fa;
  --accent: #2d6a4f;
  --accent-dark: #1b4332;
  --white: #ffffff;
  --overlay: rgba(20, 23, 26, 0.72);
  --line: var(--slate-200);
  --text: var(--slate-900);
  --text-muted: var(--slate-600);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--slate-50);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 var(--space-sm);
}

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

p {
  margin: 0 0 var(--space-sm);
}

ul, ol {
  margin: 0 0 var(--space-sm);
  padding-left: var(--space-md);
}

.container {
  width: min(100% - var(--space-md) * 2, var(--container));
  margin-inline: auto;
}

/* Cookie strip */
.cookie-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--slate-900);
  color: var(--slate-200);
  font-size: 0.8125rem;
  padding: var(--space-xs) var(--space-sm);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  border-bottom: 1px solid var(--slate-700);
}

.cookie-strip.is-visible {
  display: flex;
}

.cookie-strip p {
  margin: 0;
  flex: 1;
}

.cookie-strip a {
  color: var(--slate-300);
}

.cookie-strip .btn-text {
  color: var(--white);
  white-space: nowrap;
}

body.cookie-visible .site-header {
  top: 40px;
}

/* Compact topbar header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  gap: var(--space-sm);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--slate-900);
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: var(--slate-800);
}

.nav-primary {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-primary a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
}

.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Category tags row */
.category-nav {
  border-top: 1px solid var(--line);
  padding: var(--space-xs) 0;
  overflow-x: auto;
}

.category-tags {
  display: flex;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.category-tags a {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--slate-600);
  padding: 4px var(--space-xs);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  white-space: nowrap;
}

.category-tags a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* Buttons — text-link only */
.btn-text {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

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

/* Hero full-bleed */
.hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  width: 100%;
  background: linear-gradient(to top, var(--overlay) 0%, transparent 70%);
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero-content {
  color: var(--white);
}

.hero-content h1 {
  color: var(--white);
  max-width: 18ch;
}

.hero-content p {
  max-width: 52ch;
  font-size: 1.0625rem;
  color: var(--slate-200);
  margin-bottom: var(--space-md);
}

.hero-content .tag {
  color: var(--slate-300);
  border-color: var(--slate-500);
}

.hero-content a {
  color: var(--white);
}

/* Tags */
.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-600);
  margin-bottom: var(--space-xs);
}

/* Mosaic tiles homepage */
.mosaic {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--space-sm);
  padding: var(--space-lg) 0;
}

.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}

.tile:hover {
  border-color: var(--slate-400);
}

.tile-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--slate-100);
}

.tile-body {
  padding: var(--space-sm);
  flex: 1;
}

.tile-body h2 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.tile-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.tile-meta {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: var(--space-xs);
}

.tile--featured {
  grid-column: span 5;
}

.tile--side {
  grid-column: span 3;
}

.tile--half {
  grid-column: span 4;
}

.tile--third {
  grid-column: span 3;
}

.tile--wide {
  grid-column: span 5;
}

/* Section blocks */
.section {
  padding: var(--space-lg) 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--slate-900);
  padding-bottom: var(--space-xs);
}

.section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Compact dense list */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li {
  border-bottom: 1px solid var(--line);
}

.article-list a {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  text-decoration: none;
  color: inherit;
  align-items: start;
}

.article-list a:hover h3 {
  color: var(--accent-dark);
}

.article-list img {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--slate-100);
}

.article-list h3 {
  font-size: 0.9375rem;
  margin: 0 0 4px;
  color: var(--slate-900);
}

.article-list .meta {
  font-size: 0.75rem;
  color: var(--slate-500);
}

/* Prose content */
.prose {
  max-width: 68ch;
}

.prose--wide {
  max-width: none;
}

.prose h2 {
  margin-top: var(--space-lg);
}

.prose blockquote {
  margin: var(--space-md) 0;
  padding-left: var(--space-sm);
  border-left: 3px solid var(--accent);
  color: var(--slate-700);
  font-style: italic;
}

/* Article image-heavy */
.article-header {
  padding: var(--space-lg) 0 var(--space-md);
}

.article-hero-img {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-height: 480px;
  object-fit: cover;
  margin-bottom: var(--space-lg);
}

.byline {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.byline img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
}

.byline strong {
  color: var(--slate-800);
}

.article-body {
  padding-bottom: var(--space-xl);
}

.article-body figure {
  margin: var(--space-lg) 0;
}

.article-body figure img {
  width: 100%;
  border-radius: var(--radius);
}

.article-body figcaption {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-top: var(--space-xs);
}

/* Page layouts */
.page-header {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-lg);
}

.page-header p {
  color: var(--text-muted);
  max-width: 60ch;
}

/* Contact */
.contact-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin: var(--space-md) 0;
}

.contact-block dt {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--slate-500);
  margin-bottom: 4px;
}

.contact-block dd {
  margin: 0 0 var(--space-sm);
  font-size: 1.0625rem;
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

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

.info-card h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Minimal single footer */
.site-footer {
  border-top: 2px solid var(--slate-900);
  padding: var(--space-md) 0;
  margin-top: var(--space-xl);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--slate-600);
  font-size: 0.8125rem;
}

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

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

.text-muted {
  color: var(--text-muted);
}

.mt-lg {
  margin-top: var(--space-lg);
}

/* Responsive */
@media (max-width: 900px) {
  .mosaic {
    grid-template-columns: repeat(4, 1fr);
  }

  .tile--featured,
  .tile--side,
  .tile--half,
  .tile--third,
  .tile--wide {
    grid-column: span 4;
  }

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

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

  .nav-primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-sm);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .nav-primary.is-open {
    display: flex;
  }

  .site-header .container {
    position: relative;
  }

  .hero {
    min-height: 300px;
  }

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

  .tile--featured,
  .tile--side,
  .tile--half,
  .tile--third,
  .tile--wide {
    grid-column: span 1;
  }
}
