/* Auto-generated by build.js — do not edit manually */

/* === tokens.css === */
/**
 * Design Tokens
 * Core design variables for the ETF2026 theme
 */

:root {
  /* Typography - from Figma design system */
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Monaco, Consolas, "Courier New", monospace;

  /* Spacing scale (8px base) */
  --space-0-25: 2px;  /* Minimal padding for compact UI elements */
  --space-0-5: 4px;   /* Minimal padding for compact UI elements */
  --space-1: 8px;
  --space-1-5: 12px;  /* Half step for specific UI needs */
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-9: 72px;
  --space-10: 80px;

  /* Layout widths */
  --container-max: 1600px;
  --content-max: 960px;

  /* Colors - from Figma design system */
  --c-bg: #FFFFFF;        /* Neutral 100 */
  --c-text: #141414;      /* Neutral 0 */
  --c-muted: #808080;     /* Neutral 50 - darker for better readability */
  --c-border: #DDDDDD;    /* Neutral 90 - slightly darker border */
  --c-surface: #F4F4F4;   /* Neutral 95 - subtle background */
  --c-accent: #79C09F;    /* Brand */

  /* Border radius */
  --radius-0: 0;

  /* Focus ring */
  --focus-ring: 2px solid var(--c-accent);
  --focus-offset: 2px;

  /* Breakpoints (referenced in media queries) */
  /* 480px, 768px, 1024px, 1280px */
}


/* === base.css === */
/**
 * Base Styles
 * Global typography, links, and element defaults
 */

* {
  box-sizing: border-box;
}

/* Remove border radius globally (design system baseline) */
button,
input,
select,
textarea,
.btn {
  border-radius: var(--radius-0);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--c-text);
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-3) 0;
  line-height: 1.2;
  font-weight: 500;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

/* Typography Utilities - from Figma text styles */

/* Main menu */
.type-menu {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* Title Display - responsive scaling */
.type-display {
  font-family: var(--font-mono);
  font-weight: 100;
  font-size: 100px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1.0;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 1280px) {
  .type-display {
    font-size: 84px;
  }
}

@media (max-width: 1024px) {
  .type-display {
    font-size: 64px;
  }
}

@media (max-width: 768px) {
  .type-display {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .type-display {
    font-size: 36px;
    word-break: break-word;
  }
}

/* Title Card Title */
.type-card-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}

@media (max-width: 480px) {
  .type-card-title {
    font-size: 18px;
  }
}

/* Title Large */
.type-title-lg {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 56px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .type-title-lg {
    font-size: 32px;
  }
}

/* Text small */
.type-small {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.01em;
}

/* Text Filter */
.type-filter {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Paragraph XLarge */
.p-xl {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.01em;
}

/* Paragraph Default */
.p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0;
}

/* Paragraph Small */
.p-sm {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0;
}

/* Intro Paragraph (Block Style) */
p.is-style-intro,
.post-content p.is-style-intro {
  font-size: 26px !important;
  line-height: 1.5 !important;
  margin-bottom: var(--space-4);
}

/* Links */
a {
  color: var(--c-text);
  text-decoration: underline;
  text-decoration-color: var(--c-text);
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-muted);
  text-decoration-color: var(--c-muted);
}

/* Remove underlines from navigation and UI links */
nav a,
.btn,
.card-tile__link,
.hero-slider__tagline a,
.home-section__link,
.site-header__logo,
.site-footer a {
  text-decoration: none;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Selection */
::selection {
  background: var(--c-accent);
  color: var(--c-text);
}

/* Lists */
ul, ol {
  margin: 0 0 var(--space-3) 0;
  padding-left: var(--space-4);
}

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


/* === layout.css === */
/**
 * Layout Utilities
 * Container, spacing, and grid helpers
 */

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

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

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

/* Content container (narrower) */
.content-container {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

/* Vertical spacing utilities */
.stack {
  display: flex;
  flex-direction: column;
}

.stack > * + * {
  margin-top: var(--space-4);
}

.stack--small > * + * {
  margin-top: var(--space-2);
}

.stack--large > * + * {
  margin-top: var(--space-6);
}

/* Section spacing system - consistent vertical rhythm */
.section {
  padding-top: var(--space-8);    /* 64px */
  padding-bottom: var(--space-8); /* 64px */
}

/* Prevent double spacing when sections are adjacent */
.section + .section {
  padding-top: 0;
}

/* Section spacing modifiers */
.section--lg {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section--lg + .section,
.section + .section--lg {
  padding-top: 0;
}

.section--sm {
  padding-top: var(--space-5);    /* 40px */
  padding-bottom: var(--space-5); /* 40px */
}

.section--sm + .section,
.section + .section--sm {
  padding-top: 0;
}

/* Simple grid */
.grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Error and Search Page Utilities */
.error-404-actions {
  max-width: 640px;
}

.search-form {
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
  max-width: 640px;
}

.search-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
  max-width: 640px;
}


/* === components/nav.css === */
/**
 * Site Header & Navigation
 * Responsive header with mobile burger menu
 * Breakpoint: 960px (desktop nav visible >=960px, mobile <960px)
 */

.site-header {
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
  position: relative;
}

.site-header__inner {
  margin-top: 4px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* On mobile, balance top/bottom margins since row 1 is hidden */
@media (max-width: 959px) {
  .site-header__inner {
    margin-top: 16px;
    margin-bottom: 16px;
  }
}

/* Row 1: Language switcher (desktop only) */
.site-header__top {
  display: none;
}

@media (min-width: 960px) {
  .site-header__top {
    display: flex;
    justify-content: flex-end;
  }
}

/* Row 2: Logo + Navigation */
.site-header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand/Logo */
.site-header__brand {
  flex-shrink: 0;
}

.site-title {
  margin: 0;
  line-height: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  color: var(--c-text);
  text-decoration: none;
}

.site-logo:hover {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.site-logo__image {
  display: block;
  height: 34px;
  width: auto;
}

/* English logo is taller (2 rows), bigger on desktop */
.site-logo__image--en {
  height: 44px;
}

/* When burger menu appears: 15% smaller */
@media (max-width: 959px) {
  .site-logo__image {
    height: 29px; /* 34 * 0.85 */
  }

  .site-logo__image--en {
    height: 37px; /* 44 * 0.85 */
  }
}

/* Mobile: another 15% smaller */
@media (max-width: 600px) {
  .site-logo__image {
    height: 25px; /* 29 * 0.85 */
  }

  .site-logo__image--en {
    height: 31px; /* 37 * 0.85 */
  }
}

/* Fallback text logo styling */
.site-logo__text {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--c-text);
}

/* Only shrink text logo at smallest breakpoint */
@media (max-width: 480px) {
  .site-logo__text {
    font-size: 14px;
  }
}

/* Navigation container */
.site-header__nav {
  display: flex;
  align-items: center;
  min-width: 0;  /* Allow flex shrink */
}

/* Desktop navigation */
.site-nav {
  display: none;
  min-width: 0;  /* Allow flex shrink */
}

@media (min-width: 960px) {
  .site-nav {
    display: block;
  }
}

/* Language switcher (new Figma spec: Inter 12px, uppercase) */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Language switcher links */
.lang-switcher__link {
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lang-switcher__link:hover,
.lang-switcher__link:focus-visible {
  color: var(--c-accent);
}

.lang-switcher__link.is-active {
  color: var(--c-accent);
}

/* Language switcher separator */
.lang-switcher__sep {
  color: var(--c-muted);
  padding: 0 4px;
}

/* Desktop nav list - MUST NOT wrap */
.nav-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;  /* Prevent wrapping */
  gap: var(--space-4);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;  /* Prevent text wrapping */
}

.nav-list a {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--c-text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;  /* Prevent text wrapping */
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--c-accent);
}

/* Active/current menu item (selected state) */
.nav-list .current-menu-item a,
.nav-list .current_page_item a {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

/* Hide CTA from desktop nav if it has is-cta class */
.nav-list .is-cta {
  display: none;
}

/* Mobile controls: Löö kaasa + burger */
.mobile-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 960px) {
  .mobile-controls {
    display: none;
  }
}

/* Mobile CTA link (styled like normal nav link, NOT a button) */
.mobile-cta-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--c-text);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.mobile-cta-link:hover,
.mobile-cta-link:focus-visible {
  color: var(--c-accent);
}

/* Hide at smallest breakpoint (same as logo shrink) */
@media (max-width: 480px) {
  .mobile-cta-link {
    display: none;
  }
}

/* Burger toggle button */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--c-text);
  flex-shrink: 0;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--c-accent);
}

.nav-toggle__icon {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: absolute;
  left: 0;
  transition: transform 0.2s ease;
}

.nav-toggle__icon::before {
  top: -8px;
}

.nav-toggle__icon::after {
  top: 8px;
}

/* Burger icon animation when menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Mobile navigation - FULLSCREEN OVERLAY (not drawer) */
.mobile-nav {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: none;
  background: var(--c-bg);
}

.mobile-nav:not([hidden]) {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Panel - fullscreen, no sliding */
.mobile-nav__panel {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
}

/* Panel top bar - close button only */
.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: var(--space-6);
}

/* Close button - BIGGER */
.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--c-text);
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
}

.mobile-nav__close:hover,
.mobile-nav__close:focus-visible {
  color: var(--c-accent);
}

/* Mobile menu container */
.mobile-nav__menu {
  flex: 1 1 auto;
  overflow-y: auto;
}

/* Mobile nav footer - language switcher at bottom */
.mobile-nav__footer {
  margin-top: auto;
  padding-top: var(--space-6);
  padding-bottom: var(--space-2);
}

/* Mobile language switcher - BIGGER at bottom */
.mobile-lang {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mobile-lang__link {
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: var(--space-1);
}

.mobile-lang__link:hover,
.mobile-lang__link:focus-visible {
  color: var(--c-accent);
}

.mobile-lang__link.is-active {
  color: var(--c-accent);
}

.mobile-lang__sep {
  color: var(--c-muted);
  padding: 0 var(--space-1);
}

/* Mobile menu list - BIGGER items for fullscreen */
.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-menu-list a {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c-text);
  padding: var(--space-2) 0;
  min-height: 44px;
  transition: color 0.2s ease;
}

.mobile-menu-list a:hover,
.mobile-menu-list a:focus-visible {
  color: var(--c-accent);
}

/* Active/current menu item in mobile */
.mobile-menu-list .current-menu-item a,
.mobile-menu-list .current_page_item a {
  color: var(--c-accent);
}

/* Hide CTA from mobile menu by default (it's outside the menu) */
.mobile-menu-list .is-cta {
  display: none;
}

/* Show CTA in mobile menu only at smallest breakpoint where outside link is hidden */
@media (max-width: 480px) {
  .mobile-menu-list .is-cta {
    display: block;
  }
}

/* Prevent body scroll when menu is open */
body.mobile-nav-open {
  overflow: hidden;
}


/* === components/search.css === */
/**
 * Search Component
 * Search toggle button and sliding overlay
 */

/* Search toggle button - desktop */
.search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--c-text);
  flex-shrink: 0;
  margin-left: var(--space-4);
}

@media (min-width: 960px) {
  .search-toggle:not(.search-toggle--mobile) {
    display: flex;
  }
}

.search-toggle:hover,
.search-toggle:focus-visible {
  color: var(--c-accent);
}

.search-toggle__icon {
  display: block;
  width: 20px;
  height: 20px;
}

/* Mobile search button */
.search-toggle--mobile {
  display: flex;
}

@media (min-width: 960px) {
  .search-toggle--mobile {
    display: none;
  }
}

/* Search overlay - slides in from top */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1001; /* Above mobile nav */
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay:not([hidden]) {
  display: block;
  transform: translateY(0);
}

.search-overlay__panel {
  padding: var(--space-6) 0;
}

@media (max-width: 600px) {
  .search-overlay__panel {
    padding: var(--space-4) 0;
  }
}

.search-overlay__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.search-overlay__title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c-text);
  margin: 0;
}

@media (max-width: 600px) {
  .search-overlay__title {
    font-size: 24px;
  }
}

.search-overlay__close {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--c-text);
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.search-overlay__close:hover,
.search-overlay__close:focus-visible {
  color: var(--c-accent);
}

@media (max-width: 600px) {
  .search-overlay__close {
    min-width: 44px;
    min-height: 44px;
    font-size: 40px;
  }
}

.search-overlay__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.search-overlay__input {
  flex: 1;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c-text);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--c-border);
  padding: var(--space-3) 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-overlay__input:focus {
  border-bottom-color: var(--c-accent);
}

.search-overlay__input::placeholder {
  color: var(--c-muted);
  opacity: 0.5;
}

@media (max-width: 960px) {
  .search-overlay__input {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .search-overlay__input {
    font-size: 24px;
  }
}

.search-overlay__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  background: var(--c-text);
  border: none;
  border-radius: 0;
  cursor: pointer;
  color: var(--c-bg);
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.search-overlay__submit:hover,
.search-overlay__submit:focus-visible {
  opacity: 0.8;
}

.search-overlay__submit:active {
  opacity: 0.6;
}

@media (max-width: 600px) {
  .search-overlay__submit {
    width: 48px;
    height: 48px;
  }

  .search-overlay__submit svg {
    width: 18px;
    height: 18px;
  }
}

/* Prevent body scroll when search is open */
body.search-overlay-open {
  overflow: hidden;
}

/* No results page */
.search-no-results {
  max-width: 900px;
}

.search-no-results__message {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--c-text);
  margin-bottom: var(--space-4);
}

@media (max-width: 600px) {
  .search-no-results__message {
    font-size: 18px;
  }
}

.search-no-results__suggestion {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-muted);
  margin-bottom: var(--space-6);
}

/* Tag cloud section */
.tag-cloud-section {
  margin-bottom: var(--space-8);
}

.tag-cloud-section:last-child {
  margin-bottom: 0;
}

.tag-cloud-section__title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--c-text);
  margin: 0 0 var(--space-4) 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: baseline;
}

.tag-cloud__item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.tag-cloud__item:hover,
.tag-cloud__item:focus-visible {
  color: var(--c-accent);
}

.tag-cloud__count {
  font-size: 0.85em;
  color: var(--c-muted);
}

/* Search results page - inline search box */
.search-results-form {
  margin-bottom: var(--space-8);
  max-width: 800px;
}

.search-results-form__wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.search-results-form input[type="search"] {
  flex: 1;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--c-text);
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  padding: 17px var(--space-4);
  outline: none;
  transition: border-color 0.2s ease;
  height: 56px;
}

.search-results-form input[type="search"]:focus {
  border-color: var(--c-accent);
}

@media (max-width: 600px) {
  .search-results-form input[type="search"] {
    font-size: 16px;
    padding: 12px var(--space-3);
    height: 46px;
  }
}

.search-results-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  background: var(--c-text);
  border: none;
  border-radius: 0;
  cursor: pointer;
  color: var(--c-bg);
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.search-results-form__submit:hover,
.search-results-form__submit:focus-visible {
  opacity: 0.8;
}

.search-results-form__submit:active {
  opacity: 0.6;
}

@media (max-width: 600px) {
  .search-results-form__submit {
    width: 46px;
    height: 46px;
  }

  .search-results-form__submit svg {
    width: 18px;
    height: 18px;
  }
}


/* === components/buttons.css === */
/**
 * Form Components
 * Buttons, inputs, and form elements
 */

/* Buttons */
.btn {
  display: inline-block;
  padding: 17px var(--space-4);  /* 17px top/bottom for 56px total height */
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid var(--c-text);
  border-radius: var(--radius-0);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  line-height: 1.4; /* Improved for multi-line buttons */
}

.btn:hover,
.btn:focus-visible {
  background: var(--c-text);
  color: var(--c-bg);
  border-color: var(--c-text);
}

/* Button Variants */
.btn--primary {
  background: var(--c-text);
  color: var(--c-bg);
  border-color: var(--c-text);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #000;
  color: var(--c-muted);
  border-color: #000;
}

.btn--secondary {
  background: var(--c-bg);
  color: var(--c-text);
  border-color: var(--c-text);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--c-text);
  color: var(--c-bg);
  border-color: var(--c-text);
}

/* Button Sizes */
.btn--medium {
  padding: 11px var(--space-3);  /* 11px top/bottom for ~40px total height */
  font-size: 16px;
}

.btn--small {
  padding: 10px var(--space-2);  /* 10px top/bottom for 42px total height */
  font-size: 16px;
  line-height: 1.25;
}

/* Icon-only button */
.btn--icon {
  padding: 14px;
  line-height: 0;
}

.btn--icon svg {
  display: block;
}

/* Text Input */
.input,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea {
  display: block;
  width: 100%;
  padding: 17px var(--space-3);  /* 17px top/bottom for 56px total height */
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.25;  /* 20px line-height: 17 + 20 + 17 + 2 = 56px */
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-0);
  transition: border-color 0.2s ease;
}

.input:hover,
input[type="text"]:hover,
input[type="search"]:hover,
input[type="email"]:hover,
input[type="url"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
textarea:hover {
  border-color: var(--c-text);
}

.input:focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-color: var(--c-text);
}

/* Select Dropdown */
.select,
select {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-0);
  cursor: pointer;
  transition: border-color 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23141414' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: calc(var(--space-3) + 24px);
}

.select:hover,
select:hover {
  border-color: var(--c-text);
}

.select:focus,
select:focus {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-color: var(--c-text);
}

/* Form Layout Helpers */
.form-row {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.form-row > * {
  flex: 1;
}

.form-row .btn {
  flex: 0 0 auto;
}


/* === components/page-header.css === */
/**
 * Page Header Component
 * Large display title with optional actions
 */

:root {
  --page-header-actions-baseline-shift: 0px;
}

.page-header {
  position: relative;
}

/* Row layout for title + actions (e.g. filter tabs) */
.page-header__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;  /* Baseline-align actions with title text */
  gap: var(--space-6);
  flex-wrap: wrap;  /* Allow wrapping on smaller screens */
}

.page-header__title {
  display: inline-block;
  line-height: 1;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.page-header__description {
  margin-top: var(--space-3);
  max-width: 640px;
}

.page-header__description p {
  margin: 0;
}

.page-header__actions {
  margin-top: 0;
  transform: translateY(var(--page-header-actions-baseline-shift));
}

/* On mobile, allow actions to wrap below and align left */
@media (max-width: 767px) {
  .page-header__row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .page-header__actions {
    margin-top: 0;
    transform: none;  /* Disable baseline shift on mobile */
  }
}


/* === components/home-hero-slider.css === */
/**
 * Home Hero Slider
 * Full-width image slider with overlays and navigation
 */

/* Container */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  height: clamp(500px, 80vh, 1000px);
  overflow: hidden;
  background: #000;
  --hero-transition-duration: 1200ms; /* Default, can be overridden inline */
}

/* Track - holds all slides */
.hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual slide — hidden by default, no transition until JS initializes */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
}

/* First slide paints immediately via server-rendered is-active class */
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Transitions only after JS adds is-initialized — prevents LCP render delay */
.hero-slider.is-initialized .hero-slide {
  transition: opacity var(--hero-transition-duration) ease-in-out, visibility var(--hero-transition-duration) ease-in-out;
}

/* Disable transitions if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slider.is-initialized .hero-slide,
  .hero-slider.is-initialized .hero-slide__caption {
    transition: none;
  }
}

/* Slide image container */
.hero-slide__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Subtle gradient overlay for better text visibility */
.hero-slide__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.30) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* On mobile, enforce consistent aspect ratio to prevent height jumps */
@media (max-width: 770px) {
  .hero-slider__track {
    aspect-ratio: 4 / 3;
    height: auto;
    width: 100%;
  }

  .hero-slide {
    position: absolute;
  }

  .hero-slide__image {
    height: 100%;
  }

  .hero-slide__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Placeholder for slides without images */
.hero-slide__image--placeholder {
  background: linear-gradient(135deg, var(--c-surface) 0%, var(--c-muted) 100%);
}

/* Global overlay (static, on top of all slides) */
.hero-slider__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  pointer-events: none;
}

.hero-slider__overlay > .container {
  pointer-events: none;
}

.hero-slider__content {
  background: #fff;
  padding: var(--space-6);
  max-width: 600px;
  pointer-events: auto;
}

.hero-slider__tagline {
  margin: 0 0 var(--space-4) 0;
  font-family: Inter, var(--font-sans);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  line-height: 1.12;
  color: #000;
}

.hero-slider__buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Caption (per-slide, bottom-right, above dots) */
.hero-slide__caption {
  position: absolute;
  bottom: 50px; /* More spacing from bottom */
  right: var(--space-4); /* More spacing from right */
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  z-index: 4;
  opacity: 0;
  visibility: hidden;
}

.hero-slider.is-initialized .hero-slide__caption {
  transition: opacity var(--hero-transition-duration) ease-in-out, visibility var(--hero-transition-duration) ease-in-out;
}

.hero-slide.is-active .hero-slide__caption {
  opacity: 1;
  visibility: visible;
}

/* Navigation dots (horizontal row, bottom-right at very bottom) */
.hero-slider__dots {
  position: absolute;
  right: var(--space-4); /* More spacing from right */
  bottom: var(--space-3); /* More spacing from bottom */
  display: flex;
  flex-direction: row;
  gap: var(--space-0-5); /* 4px - tighter spacing */
  z-index: 3;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-slider__dot:hover,
.hero-slider__dot:focus-visible {
  background: rgba(255, 255, 255, 0.5);
}

.hero-slider__dot.is-active {
  background: #fff;
}

.hero-slider__dot:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Tablet responsive - smaller text, keep overlay on image */
@media (max-width: 1024px) {
  .hero-slider {
    height: clamp(400px, 60vh, 700px);
  }

  .hero-slider__content {
    max-width: 500px;
    padding: var(--space-4);
  }

  .hero-slider__tagline {
    font-size: clamp(28px, 4vw, 36px);
  }
}

/* Mobile responsive - move overlay below image */
@media (max-width: 768px) {
  .hero-slider {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-slider__track {
    position: relative;
  }

  .hero-slider__overlay {
    position: static;
    background: #fff;
    border-top: 1px solid var(--c-border);
  }

  .hero-slider__overlay > .container {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .hero-slider__content {
    max-width: 100%;
    padding: 0;
    background: transparent;
  }

  .hero-slider__tagline {
    font-size: clamp(24px, 5vw, 32px);
    margin-bottom: var(--space-3);
  }

  .hero-slider__buttons {
    flex-direction: column;
  }

  .hero-slider__buttons .btn {
    width: 100%;
  }
}

/* Small mobile - even more compact */
@media (max-width: 480px) {
  .hero-slider__overlay > .container {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .hero-slider__tagline {
    font-size: clamp(32px, 8vw, 40px);
    margin-bottom: var(--space-2);
  }

  /* Dots slightly smaller on small mobile */
  .hero-slider__dot {
    width: 8px;
    height: 8px;
  }
}


/* === components/homepage.css === */
/**
 * Homepage Sections
 * Styling for front page content sections below hero slider
 */

/* Common section styles */
.home-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.home-section__title {
  margin: 0;
}

.home-section__link {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-section__link:hover,
.home-section__link:focus-visible {
  color: var(--c-accent);
}

.home-section__empty {
  text-align: center;
  color: var(--c-muted);
  font-style: italic;
  padding: var(--space-8) 0;
}

/* Mobile button - hidden by default, shown only on mobile */
.home-section__button-mobile {
  display: none !important;
}

/* 1. Positioning Section */
.home-intro {
  text-align: center;
  padding-top: calc(var(--space-8) * 2) !important;    /* 128px - double spacing */
  padding-bottom: calc(var(--space-8) * 2) !important; /* 128px - double spacing */
}

.home-intro .content-container {
  max-width: 1100px;
}

.home-intro__label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-text);
  margin: 0 0 var(--space-4) 0;
}

.home-intro__heading {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 56px;
  line-height: 1.2;
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .home-intro__heading {
    font-size: clamp(32px, 8vw, 56px);
  }
}

@media (max-width: 480px) {
  .home-intro__heading {
    font-size: clamp(24px, 6vw, 32px);
  }
}

/* Featured Banner */
.home-featured__link {
  display: block;
  margin-top: var(--space-6);
  overflow: hidden;
}

.home-featured__image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 220ms ease;
}

.home-featured__link:hover .home-featured__image,
.home-featured__link:focus-visible .home-featured__image {
  transform: scale(1.01);
}

/* 2. Email Subscription - now uses shared newsletter-banner component */

/* 5. Participation CTA */
.home-cta {
  text-align: center;
  padding-top: var(--space-10) !important;  /* Override adjacent section rule */
  padding-bottom: var(--space-10) !important;
}

.home-cta__title {
  margin: 0 0 var(--space-4) 0;
}

.home-cta__text {
  max-width: 600px;
  margin: 0 auto var(--space-6) auto;
  line-height: 1.6;
}

.home-cta__buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hide 3rd card in Projects and Stories sections on mobile and tablet */
@media (max-width: 1023px) {
  .home-projects .projects-grid > *:nth-child(3),
  .home-stories .projects-grid > *:nth-child(3) {
    display: none;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .home-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
  }

  /* Hide desktop button in header on mobile */
  .home-section__header .btn {
    display: none !important;
  }

  /* Show mobile button after cards */
  .home-section__button-mobile {
    display: block !important;
    width: 100%;
    margin-top: var(--space-6);
  }

  .home-section__button-mobile .btn {
    width: 100%;
  }

  .home-subscribe__button {
    width: 100%;
  }

  .home-cta__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .home-cta__buttons .btn {
    width: 100%;
  }
}


/* === components/cards.css === */
/**
 * Card Components
 * Grid layouts and card tile styles
 */

/* Projects Grid - staggered layout */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  /* Stagger: 2nd card in each row is lower */
  .projects-grid > *:nth-child(2n) {
    margin-top: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  /* Reset 2-col stagger */
  .projects-grid > *:nth-child(2n) {
    margin-top: 0;
  }

  /* Stagger: 2nd and 3rd cards in each row are lower */
  .projects-grid > *:nth-child(3n+2) {
    margin-top: var(--space-5); /* 40px */
  }

  .projects-grid > *:nth-child(3n+3) {
    margin-top: var(--space-10); /* 80px - equal step from 2nd card */
  }
}

/* Card Tile */
.card-tile {
  position: relative;
  overflow: visible;  /* Allow content stack to extend beyond bounds */
  background: transparent;
  border-radius: var(--radius-0);
}

.card-tile__link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.card-tile__link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Media container */
.card-tile__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--c-surface);
}

.card-tile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
  transform: scale(1);
}

/* Placeholder for posts without featured image */
.card-tile__placeholder {
  width: 100%;
  height: 100%;
  background: var(--c-surface);
}

/* Image zoom on hover/focus */
.card-tile__link:hover .card-tile__image,
.card-tile__link:focus-visible .card-tile__image {
  transform: scale(1.03);
}

/* Overlay container - holds content stack */
.card-tile__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Content stack (tag + title) - bottom-left anchored, grows upward */
.card-tile__content {
  position: absolute;
  bottom: -24px;  /* Shift down by 24px for visual alignment */
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;  /* No gap between tag and title */
  pointer-events: auto;
  transition: transform 220ms ease;
  transform: translateY(0);
}

/* Move content stack up on hover/focus */
.card-tile__link:hover .card-tile__content,
.card-tile__link:focus-visible .card-tile__content {
  transform: translateY(-6px);
}

/* Tag label - gray background */
.card-tile__tag {
  display: block;
  padding: var(--space-0-25) var(--space-0-5);  /* 2px 4px */
  background: var(--c-surface);
  color: var(--c-text);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Title - white background, max-width 300px */
.card-tile__title {
  margin: 0;
  padding: var(--space-0-25) var(--space-0-5);  /* 2px 4px */
  background: var(--c-bg);  /* White */
  color: var(--c-text);
  max-width: 300px;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Content stack grows upward when title wraps */
/* (bottom positioning + flex-direction column handles this naturally) */


/* === components/filters.css === */
/**
 * Filter Components
 * Filter tabs navigation - aligned with Figma specs
 */

.filter-tabs-section {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--c-border);
}

.filter-tabs {
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .filter-tabs {
    justify-content: flex-end;
  }
}

.filter-tabs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);  /* 8px */
  list-style: none;
  margin: 0;
  padding: 0;
}

.filter-tabs__item {
  margin: 0;
}

/* Filter tab link - Figma specs */
.filter-tabs__link {
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
  padding: var(--space-1) var(--space-1-5);  /* 8px 12px */
  border: none;
  border-radius: var(--radius-0);
  background: var(--c-surface);
  color: var(--c-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.filter-tabs__link:hover,
.filter-tabs__link:focus-visible {
  background: var(--c-muted);  /* Slightly darker on hover */
  color: var(--c-text);
}

.filter-tabs__link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Active/selected tab */
.filter-tabs__link.is-active {
  background: var(--c-text);  /* Black */
  color: var(--c-bg);  /* White */
  border: none;
}

.filter-tabs__link.is-active:hover {
  background: var(--c-text);
  color: var(--c-bg);
}


/* === components/howto.css === */
/**
 * How To Start Page Layout
 * 2-column layout with info blocks and article list
 * Supports multiple stacked sections (taxonomy-driven)
 */

/* Container for multiple sections */
.ka-sections {
  display: flex;
  flex-direction: column;
}

/* Individual section */
.ka-section {
  position: relative;
}

/* Main container - 2 columns on desktop */
.howto {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

/* Switch to 2 columns at same breakpoint as card grids (3 cols) */
@media (min-width: 1024px) {
  .howto {
    grid-template-columns: 320px 1fr;
    gap: var(--space-10);
  }
}

/* Left column - info blocks */
.howto__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* Info block */
.howto-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.howto-block__title {
  margin: 0;
  color: var(--c-text);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}

.howto-block__text {
  margin: 0;
  color: var(--c-text);
}

/* Right column - article list */
.howto__right {
  width: 100%;
}

.howto__right .p + .p {
  margin-top: var(--space-4);
}

/* Link list */
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.link-list__item {
  border-top: 1px solid #000000;
}

.link-list__item:last-child {
  border-bottom: 1px solid #000000;
}

.link-list__link {
  display: block;
  padding: var(--space-3) 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.24px;
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.2s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.link-list__link:hover,
.link-list__link:focus-visible {
  color: var(--c-accent);
}

.link-list__link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Non-clickable list variant for About page */
.link-list--static .link-list__item {
  /* Inherits border styles from parent .link-list__item */
}

.link-list--static .link-list__text {
  display: block;
  padding: var(--space-3) 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.24px;
  color: var(--c-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .howto {
    gap: var(--space-6);
  }

  .howto__left {
    gap: var(--space-6);
  }
}


/* === components/pagination.css === */
/**
 * Pagination Component
 * Navigation for paginated archives
 */

.pagination {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  justify-content: center;
  margin-top: var(--space-6);
}

.page-numbers {
  display: inline-block;
  padding: var(--space-0-5) var(--space-1);
  min-width: 40px;
  text-align: center;
  text-decoration: none;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  transition: background-color 150ms ease, border-color 150ms ease;
}

.page-numbers:hover,
.page-numbers:focus-visible {
  background-color: var(--c-surface);
  border-color: var(--c-text);
}

.page-numbers.current {
  background-color: var(--c-text);
  color: var(--c-bg);
  border-color: var(--c-text);
}

.page-numbers.dots {
  border: none;
  pointer-events: none;
}


/* === components/scrolling-gallery.css === */
/**
 * Scrolling Gallery Strip
 * Horizontal auto-scrolling photo marquee
 */

:root {
  --sf-strip-height: clamp(120px, 18vw, 220px);
  --sf-strip-gap: 4px;
  --sf-strip-animation-duration: 90s;
}

/* Container with overflow hidden */
.sf-strip {
  width: 100%;
  overflow: hidden;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

/* Track - horizontal flexbox with animation */
.sf-strip__track {
  display: flex;
  gap: var(--sf-strip-gap);
  width: max-content;
  will-change: transform;
  animation: sf-marquee var(--sf-strip-animation-duration) linear infinite;
  /* Start at middle set to enable seamless loop in both directions */
  transform: translateX(-33.33%);
}

/* Individual image item */
.sf-strip__item {
  position: relative;
  flex-shrink: 0;
  height: var(--sf-strip-height);
  display: flex;
  align-items: center;
}

/* Image styling */
.sf-strip__image {
  height: var(--sf-strip-height);
  width: auto;
  object-fit: contain;
  display: block;
}

/* Caption - hidden by default, shown on hover */
.sf-strip__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 12px;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.60) 100%);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
}

.sf-strip__item:hover .sf-strip__caption {
  opacity: 1;
  visibility: visible;
}

/* Marquee animation - loops from middle set to end of second set */
@keyframes sf-marquee {
  0% {
    transform: translateX(-33.33%);
  }
  100% {
    transform: translateX(-66.66%);
  }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .sf-strip__track {
    animation: none;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .sf-strip {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    padding-left: 0;
    padding-right: 0;
  }
}


/* === components/newsletter-banner.css === */
/**
 * Newsletter Banner
 * Unified CTA banner used on homepage and content pages
 */

.newsletter-banner {
  background: var(--c-surface);
  padding: var(--space-8) 0;
  transition: background 0.3s ease;
}

.newsletter-banner:hover {
  background: rgba(121, 192, 159, 0.12);
}

.newsletter-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.newsletter-banner__content {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.newsletter-banner__icon {
  color: var(--c-muted);
  line-height: 0;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-border);
  transition: color 0.3s ease, background 0.3s ease;
}

.newsletter-banner:hover .newsletter-banner__icon {
  background: rgba(121, 192, 159, 0.2);
}

.newsletter-banner:hover .newsletter-banner__icon {
  color: var(--c-accent);
}

.newsletter-banner__title {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--c-text);
}

.newsletter-banner__desc {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.5;
  color: var(--c-muted);
  margin: var(--space-0-5) 0 0 0;
}

.newsletter-banner__btn {
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.newsletter-banner:hover .newsletter-banner__btn {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

.newsletter-banner__btn:hover {
  background: var(--c-text) !important;
  border-color: var(--c-text) !important;
  color: var(--c-bg) !important;
}

@media (max-width: 768px) {
  .newsletter-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-banner__btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .newsletter-banner__icon {
    display: none;
  }
}


/* === components/footer.css === */
/**
 * Site Footer
 */

.site-footer {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--c-border);
  font-size: 14px;
  color: var(--c-muted);
}

.site-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.site-footer__copyright {
  margin: 0;
}

.site-footer__email {
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__email:hover,
.site-footer__email:focus-visible {
  color: var(--c-text);
}

/* Footer Navigation */
.site-footer__nav {
  margin-left: auto;
}

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

.footer-nav li {
  margin: 0;
}

.footer-nav a {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.3;
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--c-text);
}

@media (max-width: 768px) {
  .site-footer__row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .site-footer__copyright {
    order: 2;  /* Show copyright after menu items on mobile */
  }

  .site-footer__nav {
    margin-left: 0;
    order: 1;  /* Show nav first on mobile */
  }
}

@media (max-width: 480px) {
  .footer-nav {
    flex-direction: column;
    gap: var(--space-1);
  }
}


/* === components/translation-notice.css === */
/**
 * Translation Notice Component
 * Notice banner for empty translated pages
 */

.translation-notice {
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 4px;
  background-color: var(--color-surface-subtle, #f9f9f9);
  color: var(--color-text-secondary, #666);
  font-size: 0.95rem;
  line-height: 1.5;
}


/* === components/animations.css === */
/**
 * Page Load Animations
 * Subtle fade-in and stagger effects for page header, content, and grid tiles
 */

/* Keyframes */
@keyframes etf-fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page header animation - subtle fade up (NOT site header/nav) */
.page-header {
  animation: etf-fade-up 280ms ease-out both;
}

/* Content section after page header - subtle fade up with delay */
.page-header + .section {
  animation: etf-fade-up 320ms ease-out both;
  animation-delay: 80ms;
}

/* Grid tiles - staggered entrance animation (one-by-one in DOM order) */
.projects-grid > * {
  animation: etf-fade-up 280ms ease-out both;
  animation-delay: calc(120ms + (var(--etf-i, 0) * 100ms));
}

/* Assign index to each grid item for deterministic one-by-one stagger */
.projects-grid > *:nth-child(1) { --etf-i: 0; }
.projects-grid > *:nth-child(2) { --etf-i: 1; }
.projects-grid > *:nth-child(3) { --etf-i: 2; }
.projects-grid > *:nth-child(4) { --etf-i: 3; }
.projects-grid > *:nth-child(5) { --etf-i: 4; }
.projects-grid > *:nth-child(6) { --etf-i: 5; }
.projects-grid > *:nth-child(7) { --etf-i: 6; }
.projects-grid > *:nth-child(8) { --etf-i: 7; }
.projects-grid > *:nth-child(9) { --etf-i: 8; }
.projects-grid > *:nth-child(10) { --etf-i: 9; }
.projects-grid > *:nth-child(11) { --etf-i: 10; }
.projects-grid > *:nth-child(12) { --etf-i: 11; }
.projects-grid > *:nth-child(13) { --etf-i: 12; }
.projects-grid > *:nth-child(14) { --etf-i: 13; }
.projects-grid > *:nth-child(15) { --etf-i: 14; }
.projects-grid > *:nth-child(16) { --etf-i: 15; }
.projects-grid > *:nth-child(17) { --etf-i: 16; }
.projects-grid > *:nth-child(18) { --etf-i: 17; }
.projects-grid > *:nth-child(19) { --etf-i: 18; }
.projects-grid > *:nth-child(20) { --etf-i: 19; }
.projects-grid > *:nth-child(21) { --etf-i: 20; }
.projects-grid > *:nth-child(22) { --etf-i: 21; }
.projects-grid > *:nth-child(23) { --etf-i: 22; }
.projects-grid > *:nth-child(24) { --etf-i: 23; }
.projects-grid > *:nth-child(25) { --etf-i: 24; }
.projects-grid > *:nth-child(26) { --etf-i: 25; }
.projects-grid > *:nth-child(27) { --etf-i: 26; }
.projects-grid > *:nth-child(28) { --etf-i: 27; }
.projects-grid > *:nth-child(29) { --etf-i: 28; }
.projects-grid > *:nth-child(30) { --etf-i: 29; }
.projects-grid > *:nth-child(31) { --etf-i: 30; }
.projects-grid > *:nth-child(32) { --etf-i: 31; }
.projects-grid > *:nth-child(33) { --etf-i: 32; }
.projects-grid > *:nth-child(34) { --etf-i: 33; }
.projects-grid > *:nth-child(35) { --etf-i: 34; }
.projects-grid > *:nth-child(36) { --etf-i: 35; }

/* Kuidas Alustada page - scrolling gallery strip */
.sf-strip {
  animation: etf-fade-up 320ms ease-out both;
  animation-delay: 80ms;
}

/* Scroll-triggered animations - elements start hidden */
[data-scroll-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

[data-scroll-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Override immediate animation for projects-grid children inside scroll-animate sections */
[data-scroll-animate] .projects-grid > * {
  animation: none;
  opacity: 0;
  transform: translateY(6px);
}

/* Stagger projects-grid children when parent section becomes visible */
[data-scroll-animate].is-visible .projects-grid > * {
  animation: etf-fade-up 280ms ease-out both;
  animation-delay: calc(var(--etf-i, 0) * 100ms);
}

/* List items staggered when parent section is visible */
[data-scroll-animate].is-visible .link-list__item {
  animation: etf-fade-up 280ms ease-out both;
  animation-delay: calc(var(--etf-i, 0) * 60ms);
}

/* Assign index to each list item for staggered animation */
.link-list__item:nth-child(1) { --etf-i: 0; }
.link-list__item:nth-child(2) { --etf-i: 1; }
.link-list__item:nth-child(3) { --etf-i: 2; }
.link-list__item:nth-child(4) { --etf-i: 3; }
.link-list__item:nth-child(5) { --etf-i: 4; }
.link-list__item:nth-child(6) { --etf-i: 5; }
.link-list__item:nth-child(7) { --etf-i: 6; }
.link-list__item:nth-child(8) { --etf-i: 7; }
.link-list__item:nth-child(9) { --etf-i: 8; }
.link-list__item:nth-child(10) { --etf-i: 9; }
.link-list__item:nth-child(11) { --etf-i: 10; }
.link-list__item:nth-child(12) { --etf-i: 11; }
.link-list__item:nth-child(13) { --etf-i: 12; }
.link-list__item:nth-child(14) { --etf-i: 13; }
.link-list__item:nth-child(15) { --etf-i: 14; }
.link-list__item:nth-child(16) { --etf-i: 15; }
.link-list__item:nth-child(17) { --etf-i: 16; }
.link-list__item:nth-child(18) { --etf-i: 17; }
.link-list__item:nth-child(19) { --etf-i: 18; }
.link-list__item:nth-child(20) { --etf-i: 19; }

/* Reduced motion: disable animations */
@media (prefers-reduced-motion: reduce) {
  .page-header,
  .page-header + .section,
  .projects-grid > *,
  .sf-strip,
  .link-list__item {
    animation: none !important;
  }

  [data-scroll-animate],
  [data-scroll-animate] .projects-grid > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


