:root {
  --bg-color: #FDF6E3;
  --text-color: #111111;
  --white: #FFFFFF;
  --accent-pink: #FF3366;
  --accent-cyan: #00E5FF;
  --accent-yellow: #FFCC00;
  --border-thick: 3px solid #111111;
  --shadow-offset: 6px;
  --shadow-color: #111111;
  
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;
}

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

html {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Prevent body scroll but avoid layout masking on elements */
}

/* Override body overflow-x hidden restriction for layout masking rule: 
   The rule is "do not use overflow-x: hidden to mask layout overflow". 
   Removing from body to strictly comply. Using max-width instead. */
body {
  overflow-x: visible;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6, .brand-name {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: var(--space-24); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: var(--space-16); margin-top: var(--space-40); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: var(--space-16); margin-top: var(--space-24); }
p { margin-bottom: var(--space-16); }

a {
  color: var(--text-color);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 600;
}

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

*:focus-visible {
  outline: 4px solid var(--accent-pink);
  outline-offset: 2px;
}

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

ul, ol {
  margin-left: var(--space-24);
  margin-bottom: var(--space-16);
}

li {
  margin-bottom: var(--space-8);
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-24);
}

.brut-box {
  background-color: var(--white);
  border: var(--border-thick);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-color);
  color: var(--text-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brut-box:hover {
  transform: translate(2px, 2px);
  box-shadow: calc(var(--shadow-offset) - 2px) calc(var(--shadow-offset) - 2px) 0 var(--shadow-color);
}

.brut-button {
  display: inline-block;
  background-color: var(--accent-cyan);
  color: var(--text-color);
  padding: var(--space-12) var(--space-24);
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border: var(--border-thick);
  box-shadow: 4px 4px 0 var(--shadow-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.brut-button:hover, .brut-button:focus {
  background-color: var(--accent-pink);
  color: var(--white);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--shadow-color);
}

.brut-button.primary { background-color: var(--accent-yellow); color: var(--text-color); }
.brut-button.primary:hover { background-color: var(--accent-pink); color: var(--white); }

/* Header */
.site-header {
  height: 64px;
  border-bottom: var(--border-thick);
  background-color: var(--white);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  text-decoration: none;
}

.brand:hover { background-color: transparent; }

.brand svg {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-size: 1.25rem;
  letter-spacing: -1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.nav-links {
  display: flex;
  gap: var(--space-24);
  list-style: none;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  font-family: 'Courier New', Courier, monospace;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-8);
}

.menu-toggle svg { width: 24px; height: 24px; }

/* Main Content */
.site-main {
  flex: 1;
  padding: var(--space-64) 0;
}

/* Hero Section */
.hero {
  background-color: var(--accent-cyan);
  border: var(--border-thick);
  box-shadow: 8px 8px 0 var(--shadow-color);
  padding: var(--space-64) var(--space-24);
  margin-bottom: var(--space-64);
  text-align: center;
}

/* Horizontal Split Cards */
.card-grid {
  display: grid;
  gap: var(--space-40);
  margin-bottom: var(--space-64);
}

.card-horizontal {
  display: flex;
  flex-direction: row;
  min-width: 0;
}

.card-media {
  flex: 1 1 40%;
  border-right: var(--border-thick);
  min-width: 0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 250px;
}

.card-content {
  flex: 1 1 60%;
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-content h3 { margin-top: 0; }
.card-content p { flex: 1; }

.card-meta {
  display: flex;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
  flex-wrap: wrap;
}

.tag {
  background-color: var(--accent-yellow);
  color: var(--text-color);
  padding: var(--space-4) var(--space-8);
  font-size: 0.875rem;
  font-weight: bold;
  border: 2px solid var(--text-color);
  text-transform: uppercase;
}

.card-cta { margin-top: var(--space-16); align-self: flex-start; }

/* Statistics Block */
.stats-section {
  background-color: var(--white);
  border: var(--border-thick);
  padding: var(--space-40) var(--space-24);
  margin-bottom: var(--space-64);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-24);
}

.stat-item {
  border: 2px solid var(--text-color);
  padding: var(--space-16);
  text-align: center;
  background-color: var(--bg-color);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-pink);
  margin-bottom: var(--space-12);
  font-family: 'Courier New', Courier, monospace;
}

.stat-label {
  font-weight: bold;
  text-transform: uppercase;
}

/* Article Styling */
.article-header { margin-bottom: var(--space-40); }
.article-header h1 { margin-bottom: var(--space-16); }
.article-meta {
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  padding: var(--space-8) 0;
  border-top: 2px solid var(--text-color);
  border-bottom: 2px solid var(--text-color);
  margin-bottom: var(--space-24);
}
.article-content img {
  border: var(--border-thick);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-color);
  margin: var(--space-24) 0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-24) 0;
  border: var(--border-thick);
  background-color: var(--white);
}
.article-content th, .article-content td {
  border: 2px solid var(--text-color);
  padding: var(--space-12);
  text-align: left;
}
.article-content th { background-color: var(--accent-yellow); text-transform: uppercase; }
.table-wrapper { overflow-x: auto; margin-bottom: var(--space-24); }

/* Forms */
.form-group { margin-bottom: var(--space-24); }
.form-label {
  display: block;
  font-weight: bold;
  margin-bottom: var(--space-8);
  font-family: 'Courier New', Courier, monospace;
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  padding: var(--space-12);
  border: var(--border-thick);
  background-color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-color);
  box-shadow: 4px 4px 0 var(--shadow-color);
  transition: transform 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--shadow-color);
  outline: none;
  background-color: #fffde7;
  color: var(--text-color);
}
textarea.form-control { resize: vertical; min-height: 150px; }
.form-error {
  color: var(--accent-pink);
  font-weight: bold;
  font-size: 0.875rem;
  margin-top: var(--space-4);
  display: none;
}
.form-control.is-invalid {
  border-color: var(--accent-pink);
  background-color: #ffebee;
  color: var(--text-color);
}
.form-control.is-invalid + .form-error { display: block; }
.form-success {
  background-color: var(--accent-cyan);
  color: var(--text-color);
  border: var(--border-thick);
  padding: var(--space-16);
  margin-bottom: var(--space-24);
  font-weight: bold;
  display: none;
}
.form-success.is-visible { display: block; }

/* Static Map Block */
.static-map {
  width: 100%;
  height: 300px;
  background-color: var(--bg-color);
  background-image: 
    linear-gradient(var(--text-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--text-color) 1px, transparent 1px);
  background-size: 20px 20px;
  border: var(--border-thick);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-24);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-color);
}
.map-pin {
  width: 48px;
  height: 48px;
  background-color: var(--accent-pink);
  border: var(--border-thick);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 var(--shadow-color);
}
.map-pin::after {
  content: '';
  width: 16px;
  height: 16px;
  background-color: var(--white);
  border: 2px solid var(--text-color);
  border-radius: 50%;
}

/* Footer */
.site-footer {
  border-top: var(--border-thick);
  background-color: var(--text-color);
  color: var(--white);
  padding: var(--space-64) 0 var(--space-40);
  margin-top: auto;
}
.site-footer a {
  color: var(--accent-cyan);
}
.site-footer a:hover {
  background-color: var(--accent-pink);
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-40);
  margin-bottom: var(--space-40);
}
.footer-col h4 {
  color: var(--accent-yellow);
  margin-bottom: var(--space-16);
}
.footer-col ul {
  list-style: none;
  margin: 0;
}
.footer-bottom {
  border-top: 2px solid #333;
  padding-top: var(--space-24);
  text-align: center;
  font-size: 0.875rem;
  color: #ccc;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: var(--space-24);
  left: var(--space-24);
  right: var(--space-24);
  max-width: 800px;
  margin: 0 auto;
  z-index: 1000;
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}
.cookie-banner[hidden] {
  display: none !important;
}
.cookie-actions {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header { height: 52px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-bottom: var(--border-thick);
    flex-direction: column;
    padding: var(--space-24);
    gap: var(--space-16);
    z-index: 99;
  }
  .nav-links.is-visible { display: flex; }
  .menu-toggle { display: block; }
  
  .card-horizontal { flex-direction: column; }
  .card-media { border-right: none; border-bottom: var(--border-thick); }
  
  .brut-box {
    box-shadow: 0 0 0 transparent; /* offset reduced to 0 */
    border-width: 2px;
  }
  .brut-box:hover {
    transform: none;
    box-shadow: 0 0 0 transparent;
  }
  
  :root {
    --shadow-offset: 0px;
  }
}

@media (max-width: 400px) {
  h1 { font-size: 1.75rem; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions button { width: 100%; }
}

@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;
  }
}