:root {
  --background: oklch(0.985 0.005 90);
  --primary: oklch(0.28 0.16 268);
  --muted-foreground: oklch(0.45 0.08 268);
  --secondary: oklch(0.95 0.015 90);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background-color: var(--background);
  color: var(--primary);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Decorative background */
.bg-art {
  pointer-events: none;
  position: fixed;
  max-width: none;
  z-index: 0;
}
.bg-art--br { right: -6rem; bottom: -4rem; width: 520px; opacity: 0.08; }
.bg-art--tl { left: -8rem; top: -5rem; width: 420px; transform: rotate(180deg); opacity: 0.06; }
@media (min-width: 640px) {
  .bg-art--br { right: -2.5rem; width: 680px; }
  .bg-art--tl { width: 520px; }
}
@media (min-width: 1024px) { .bg-art--br { width: 820px; opacity: 0.1; } }

/* Nav */
.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
}
.site-nav nav {
  margin: 0 auto;
  max-width: 72rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
}
@media (min-width: 640px) { .site-nav nav { padding: 2rem 2.5rem; } }
.brand img { height: 2rem; width: 2rem; display: block; }
@media (min-width: 640px) { .brand img { height: 2.5rem; width: 2.5rem; } }
.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0; padding: 0;
}
@media (min-width: 640px) { .site-nav ul { gap: 2.5rem; } }
.site-nav a.navlink {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: color-mix(in oklch, var(--primary) 70%, transparent);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a.navlink:hover { color: var(--primary); }
.site-nav a.navlink.active { color: var(--primary); font-weight: 600; }

.lang-toggle {
  cursor: pointer;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
  background: transparent;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: color-mix(in oklch, var(--primary) 80%, transparent);
  transition: color 0.2s, border-color 0.2s;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* Layout */
main { position: relative; z-index: 10; }
.page {
  margin: 0 auto;
  padding: 10rem 1.5rem 6rem;
}
@media (min-width: 640px) { .page { padding-left: 2.5rem; padding-right: 2.5rem; } }
.page--narrow { max-width: 42rem; }
.page--mid { max-width: 48rem; }
.page--wide { max-width: 64rem; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: color-mix(in oklch, var(--primary) 70%, transparent);
  margin: 0;
}
h1.title {
  margin: 1rem 0 0;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}
@media (min-width: 640px) { h1.title { font-size: 3rem; } }
.lead {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  max-width: 36rem;
}
@media (min-width: 640px) { .lead { font-size: 1.125rem; } }
.prose { margin-top: 2rem; color: var(--muted-foreground); line-height: 1.75; }
.prose p { margin: 0 0 1.25rem; }

/* Home */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  text-align: center;
}
.hero img.logo { width: 260px; }
@media (min-width: 640px) { .hero img.logo { width: 360px; } }
@media (min-width: 768px) { .hero img.logo { width: 440px; } }
@media (min-width: 1024px) { .hero img.logo { width: 520px; } }
.hero .rule-row {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) { .hero .rule-row { gap: 1.5rem; } }
.rule { height: 1px; width: 2.5rem; background: color-mix(in oklch, var(--primary) 40%, transparent); }
@media (min-width: 640px) { .rule { width: 4rem; } }
.hero h1 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: var(--primary);
}
@media (min-width: 640px) { .hero h1 { font-size: 0.875rem; } }
.hero .tagline {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
@media (min-width: 640px) { .hero .tagline { font-size: 1rem; } }

/* Gallery */
.grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.tile {
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  background: var(--secondary);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--primary) 10%, transparent);
}

/* Contact */
dl.contact { margin-top: 2.5rem; }
dl.contact dt {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: color-mix(in oklch, var(--primary) 60%, transparent);
}
dl.contact dd {
  margin: 0.5rem 0 1.5rem;
  font-size: 1.125rem;
  color: var(--primary);
}
dl.contact a { color: inherit; text-decoration: none; }
dl.contact a:hover { text-decoration: underline; }

/* Gallery Grid Layout - 3 Larger Columns */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Exactly 3 columns */
  gap: 12px; /* Smaller gap between images for maximum image area */
  width: 100%;
  max-width: 1600px; /* Expanded maximum container width */
  margin: 40px auto;
  padding: 0 16px;
}

/* Individual Image Wrapper */
.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  background-color: #f0f0f0;
}

.gallery-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item img { transition: none; }
  .gallery-item:hover img { transform: none; }
}

/* Smooth Hover Effect */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Responsive Breakpoints for Tablets and Mobile */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* 1 column on mobile phones */
  }
}

/* Mobile Optimization for Header & Logo */
@media (max-width: 639px) {
  .site-nav nav {
    padding: 1rem; /* Zmenšení vnitřního odsazení hlavičky */
  }

  .brand img {
    height: 1.5rem; /* Zmenšení loga pro mobilní displeje */
    width: 1.5rem;
  }

  .site-nav ul {
    gap: 0.75rem; /* Zmenšení mezer mezi položkami v menu */
  }

  .site-nav a.navlink {
    font-size: 0.75rem; /* Mírné zmenšení písma v menu */
    letter-spacing: 0.1em; /* Zmenšení rozpalu písma pro úsporu místa */
  }

  .lang-toggle {
    padding: 0.2rem 0.5rem; /* Zmenšení tlačítka CZ/EN */
    font-size: 0.7rem;
  }
}