/* ==========================================================
   Filip Uhlík — Campaign Site
   Editorial newspaper meets modern political campaign
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500;1,9..144,600&family=Manrope:wght@300;400;500;600;700&family=Allura&display=swap');

:root {
  /* Navy */
  --navy-900: #0F2845;
  --navy-700: #1E3A5F;
  --navy-100: #E8EDF5;

  /* Green */
  --green-700: #2D5F42;
  --green-600: #3F7D58;
  --green-100: #E5EFE9;

  /* Gold */
  --gold-600: #B8923D;
  --gold-500: #C8A96B;
  --gold-100: #F5EDD9;

  /* Neutrals */
  --cream-100: #F5F1E8;
  --cream-50:  #FAF8F2;
  --paper:     #FFFFFF;
  --ink-900:   #0A0F1C;
  --ink-700:   #2A3142;
  --ink-500:   #6B7280;
  --line:      #E2DDD0;

  /* Status */
  --status-new:        #B8923D;
  --status-progress:   #2563EB;
  --status-resolved:   #2D5F42;
  --status-forwarded:  #6B7280;
  --status-out:        #9CA3AF;

  /* Categories */
  --cat-doprava: #B8923D;
  --cat-zdravotnictvo: #C0392B;
  --cat-vzdelavanie: #2563EB;
  --cat-cestovny: #2D5F42;
  --cat-zivotne: #3F7D58;
  --cat-transparentnost: #6B46C1;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-script: 'Allura', cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Subtle grain overlay used on key sections */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.6;
  z-index: 1;
}

/* Type scale */
.display-xl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
}
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 60;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.35;
  font-variation-settings: "opsz" 24;
}
.lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-700);
}
.caption {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.55;
}
.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--gold-600);
  line-height: 1;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-medium {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container, .container-medium { padding: 0 20px; }
}

section {
  position: relative;
}
.section-pad {
  padding: 96px 0;
}
.section-pad-lg {
  padding: 128px 0;
}
@media (max-width: 720px) {
  .section-pad { padding: 64px 0; }
  .section-pad-lg { padding: 80px 0; }
}

/* Backgrounds */
.bg-cream { background: var(--cream-100); }
.bg-cream-50 { background: var(--cream-50); }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy-900); color: #fff; }
.bg-navy-grad {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
}

/* Gold hairline */
.gold-line {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--gold-500);
  border: 0;
  margin: 24px 0;
}
.gold-line-full {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500) 20%, var(--gold-500) 80%, transparent);
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 24px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover {
  background: var(--gold-600);
  color: #fff;
  transform: translateY(-1px);
}
.btn-green {
  background: var(--green-700);
  color: #fff;
}
.btn-green:hover {
  background: var(--green-600);
  transform: translateY(-1px);
}
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-ghost-dark:hover {
  background: var(--navy-900);
  color: #fff;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-600);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-500);
  padding-bottom: 2px;
  transition: gap 180ms ease;
}
.btn-link:hover {
  gap: 14px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.dark {
  background: rgba(15, 40, 69, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1440px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy-900);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.site-header.dark .nav-logo { color: #fff; }
.nav-logo .dot {
  width: 8px;
  height: 8px;
  background: var(--gold-500);
  border-radius: 50%;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-700);
  text-decoration: none;
  transition: color 160ms;
  position: relative;
}
.site-header.dark .nav-links a { color: rgba(255,255,255,0.75); }
.nav-links a:hover { color: var(--navy-900); }
.site-header.dark .nav-links a:hover { color: #fff; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--gold-500);
}
.nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 18px;
  background: var(--navy-900);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  transition: background 160ms;
}
.site-header.dark .nav-cta { background: var(--gold-500); color: var(--navy-900); }
.nav-cta:hover { background: var(--gold-600); color: #fff; }
.site-header.dark .nav-cta:hover { background: #fff; color: var(--navy-900); }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy-900);
}
.site-header.dark .nav-mobile-toggle span { background: #fff; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream-100);
    padding: 24px 32px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .site-header.dark .nav-links.open { background: var(--navy-900); }
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 20px;
}
.footer-grid a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 4px 0;
  transition: color 160ms;
}
.footer-grid a:hover { color: var(--gold-500); }
.footer-bio {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.footer-bio-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.footer-bio-img::after {
  content: 'FU';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 600;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(200, 169, 107, 0.3);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-left: 24px;
}
.footer-bottom a:hover { color: var(--gold-500); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding: 56px 0 24px; }
}

/* Photo placeholders — striped serif placeholder per default aesthetic */
.photo-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(15, 40, 69, 0.05) 0px,
      rgba(15, 40, 69, 0.05) 2px,
      transparent 2px,
      transparent 12px
    ),
    var(--navy-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.photo-placeholder.on-dark {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 2px,
      transparent 2px,
      transparent 12px
    ),
    var(--navy-700);
  border: 1px solid rgba(255,255,255,0.12);
}
.photo-placeholder .pp-label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  text-align: center;
  padding: 16px;
  background: rgba(245, 241, 232, 0.85);
  border: 1px solid var(--line);
  border-radius: 0;
}
.photo-placeholder.on-dark .pp-label {
  color: rgba(255,255,255,0.7);
  background: rgba(15, 40, 69, 0.6);
  border-color: rgba(255,255,255,0.15);
}

/* Status badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-new { background: var(--gold-100); color: var(--gold-600); }
.status-progress { background: #DBEAFE; color: var(--status-progress); }
.status-resolved { background: var(--green-100); color: var(--green-700); }
.status-forwarded { background: #F3F4F6; color: var(--status-forwarded); }
.status-out { background: #F3F4F6; color: var(--status-out); }

/* Category chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink-700);
}
.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Card hover lift */
.card-lift {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15, 40, 69, 0.18);
  border-color: var(--gold-500);
}

/* Drop cap */
.dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 4.5rem;
  float: left;
  line-height: 0.85;
  margin: 6px 12px 0 0;
  color: var(--gold-600);
  font-variation-settings: "opsz" 144;
}

/* Diagonal section divider */
.section-edge-cream {
  position: relative;
}
.section-edge-cream::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--cream-100);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  pointer-events: none;
}

/* Small visible scrollbar styling */
.scroll-area::-webkit-scrollbar { width: 6px; }
.scroll-area::-webkit-scrollbar-track { background: transparent; }
.scroll-area::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

/* Forms */
.input, .textarea, .select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-900);
  transition: border-color 160ms;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px var(--gold-100);
}
.label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ink-700);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

/* Utilities */
.text-white { color: #fff; }
.text-white-80 { color: rgba(255,255,255,0.8); }
.text-white-60 { color: rgba(255,255,255,0.6); }
.text-white-50 { color: rgba(255,255,255,0.5); }
.text-navy { color: var(--navy-900); }
.text-ink-700 { color: var(--ink-700); }
.text-ink-500 { color: var(--ink-500); }
.text-gold-600 { color: var(--gold-600); }
.text-gold-500 { color: var(--gold-500); }
.flex { display: flex; }
.grid { display: grid; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
