/**
 * Concerten Mechelen - Design System
 * Style: Lino Print / Block Print Aesthetic
 * Palette: Poster Red, Cream, Charcoal
 */

/* ==========================================================================
   Google Fonts Import
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Instrument+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  /* -------------------------------------------------------------------------
     Colors: Lino Print Palette
     ------------------------------------------------------------------------- */

  /* Base */
  --color-charcoal:       #1a1a1a;
  --color-charcoal-light: #2a2a2a;
  --color-charcoal-lighter: #3a3a3a;

  /* Paper */
  --color-cream:          #f5f0e6;
  --color-cream-dark:     #e8e0d0;
  --color-paper:          #faf8f3;

  /* Ink */
  --color-red:            #c41e3a;
  --color-red-dark:       #a01830;
  --color-red-light:      #e63950;
  --color-yellow:         #f5c518;
  --color-yellow-light:   #ffd84d;
  --color-yellow-dark:    #d4a810;
  --color-black:          #0a0a0a;

  /* Semantic */
  --color-success:        #2d8a4e;
  --color-warning:        #c97b1a;
  --color-error:          #c41e3a;
  --color-info:           #2563eb;

  /* Text */
  --color-text-light:     #f5f0e6;
  --color-text-dark:      #1a1a1a;
  --color-text-muted:     #6b6b6b;

  /* -------------------------------------------------------------------------
     Typography
     ------------------------------------------------------------------------- */

  --font-display:         'Archivo Black', Impact, sans-serif;
  --font-body:            'Instrument Sans', system-ui, sans-serif;

  /* Font Sizes */
  --text-xs:              0.75rem;
  --text-sm:              0.875rem;
  --text-base:            1rem;
  --text-lg:              1.125rem;
  --text-xl:              1.25rem;
  --text-2xl:             1.5rem;
  --text-3xl:             2rem;
  --text-4xl:             2.5rem;
  --text-5xl:             3.5rem;
  --text-6xl:             4.5rem;

  /* Line Heights */
  --leading-none:         1;
  --leading-tight:        1.15;
  --leading-snug:         1.3;
  --leading-normal:       1.5;
  --leading-relaxed:      1.7;

  /* Font Weights */
  --font-normal:          400;
  --font-medium:          500;
  --font-semibold:        600;
  --font-bold:            700;

  /* -------------------------------------------------------------------------
     Spacing
     ------------------------------------------------------------------------- */

  --space-1:              0.25rem;
  --space-2:              0.5rem;
  --space-3:              0.75rem;
  --space-4:              1rem;
  --space-5:              1.25rem;
  --space-6:              1.5rem;
  --space-8:              2rem;
  --space-10:             2.5rem;
  --space-12:             3rem;
  --space-16:             4rem;
  --space-20:             5rem;
  --space-24:             6rem;

  /* -------------------------------------------------------------------------
     Layout
     ------------------------------------------------------------------------- */

  --max-width:            1200px;
  --max-width-content:    800px;
  --max-width-form:       500px;

  /* -------------------------------------------------------------------------
     Borders & Radius
     ------------------------------------------------------------------------- */

  --radius-sm:            2px;
  --radius:               4px;
  --radius-md:            6px;
  --radius-lg:            8px;
  --radius-xl:            12px;

  --border-width:         2px;
  --border-thick:         3px;

  /* -------------------------------------------------------------------------
     Shadows (minimal for print aesthetic)
     ------------------------------------------------------------------------- */

  --shadow-sm:            2px 2px 0 var(--color-charcoal);
  --shadow:               3px 3px 0 var(--color-charcoal);
  --shadow-md:            4px 4px 0 var(--color-charcoal);
  --shadow-lg:            6px 6px 0 var(--color-charcoal);
  --shadow-red:           3px 3px 0 var(--color-red);

  /* -------------------------------------------------------------------------
     Transitions
     ------------------------------------------------------------------------- */

  --transition-fast:      100ms ease;
  --transition:           150ms ease;
  --transition-slow:      250ms ease;

  /* -------------------------------------------------------------------------
     Z-Index
     ------------------------------------------------------------------------- */

  --z-base:               0;
  --z-dropdown:           100;
  --z-sticky:             200;
  --z-overlay:            300;
  --z-modal:              400;
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-text-light);
  background-color: var(--color-charcoal);
  min-height: 100vh;
}

/* Lino print grain texture 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.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: overlay;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400; /* Archivo Black is already bold */
  line-height: var(--leading-tight);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-3xl); }
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-red-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

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

strong, b {
  font-weight: var(--font-bold);
}

/* ==========================================================================
   Focus States
   ========================================================================== */

:focus {
  outline: none;
}

:focus-visible {
  outline: var(--border-thick) solid var(--color-red);
  outline-offset: 2px;
}

/* ==========================================================================
   Selection
   ========================================================================== */

::selection {
  background-color: var(--color-red);
  color: var(--color-cream);
}

/* ==========================================================================
   Scrollbar
   ========================================================================== */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-charcoal);
}

::-webkit-scrollbar-thumb {
  background: var(--color-charcoal-lighter);
  border: 2px solid var(--color-charcoal);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-red);
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

/* ==========================================================================
   Text Utilities
   ========================================================================== */

.text-red { color: var(--color-red); }
.text-yellow { color: var(--color-yellow); }
.text-cream { color: var(--color-cream); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grain texture mixin class */
.grain {
  position: relative;
}

.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* ==========================================================================
   Print Block / Lino Style Elements
   ========================================================================== */

/* Paper card - cream background with rough edges feel */
.paper {
  background-color: var(--color-cream);
  color: var(--color-text-dark);
  position: relative;
}

/* Ink stamp effect */
.ink-stamp {
  background-color: var(--color-red);
  color: var(--color-cream);
  padding: var(--space-2) var(--space-4);
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* Block border */
.block-border {
  border: var(--border-thick) solid currentColor;
}

/* ==========================================================================
   Visibility 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: 0;
}

.hidden { display: none !important; }

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* ==========================================================================
   Image Utilities
   ========================================================================== */

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

.img-cover { object-fit: cover; }
.img-contain { object-fit: contain; }
