/* ==========================================================================
   BASE — CSS proměnné, reset, typografie
   ========================================================================== */

:root {
  /* Barvy — primární */
  --color-primary:       #540816;
  --color-primary-dark:  #7f1216;
  --color-primary-light: #bd777a;

  /* Barvy — zlatý akcent */
  --color-gold:          #a78a64;
  --color-gold-light:    #b8a081;
  --color-gold-pale:     #d4c4af;

  /* Barvy — pozadí */
  --color-bg-body:       #f6f3ed;
  --color-bg-warm:       #f3f0e9;
  --color-bg-hero-start: #dfd1be;
  --color-bg-hero-mid:   #f3f0e9;
  --color-bg-section:    #e4dacd;
  --color-bg-white:      #ffffff;

  /* Barvy — text */
  --color-text:          #2c2c2c;
  --color-text-muted:    #707070;
  --color-text-light:    #8a8686;
  --color-border:        #c7c7c7;

  /* Typografie */
  --font-primary:   'Red Hat Display', system-ui, sans-serif;
  --font-cursive:   'Dancing Script', cursive;

  --font-size-xs:   0.75rem;    /* 12px */
  --font-size-sm:   0.875rem;   /* 14px */
  --font-size-base: 1.1rem;      /* 17.6px */
  --font-size-md:   1.125rem;   /* 18px */
  --font-size-lg:   1.25rem;    /* 20px */
  --font-size-xl:   1.5625rem;  /* 25px */
  --font-size-2xl:  1.875rem;   /* 30px */
  --font-size-3xl:  2.5rem;     /* 40px */
  --font-size-4xl:  3rem;       /* 48px */

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;

  /* Layout */
  --container-max:   1370px;
  --container-pad:   1.25rem;
  --grid-columns:    12;
  --grid-gap:        1rem;

  /* Dekorace */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(44, 44, 44, 0.08);
  --shadow-md:   0 4px 16px rgba(44, 44, 44, 0.12);
  --shadow-lg:   0 8px 32px rgba(44, 44, 44, 0.16);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
}

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

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

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

button {
  cursor: pointer;
  font-family: var(--font-primary);
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
}

/* Drupal specifics */
.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  position: static !important;
  overflow: visible;
  clip: auto;
  width: auto;
  height: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: var(--color-bg-white);
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: var(--color-bg-white);
}
