/* Základ: barvy, typografie, reset. Barvy odečteny z grafického návrhu. */
:root {
  --color-cream: #fbf5e6;
  --color-cream-light: #fdf9ef;
  --color-card: #fcf6e8;
  --color-sage-pale: #eef0d9;
  --color-sage-tint: #e9ecd2;
  --color-green-dark: #2f4b2e;
  --color-green: #4f6b3c;
  --color-green-button: #5b7444;
  --color-green-button-hover: #4b6337;
  --color-text: #2b3326;
  --color-text-soft: #4a5243;
  --color-gold: #c9a24e;
  --color-gold-light: #e6cf93;
  --color-line: #e8dcbd;

  --font-body: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --font-heading: "Cormorant Garamond", "EB Garamond", Garamond, Georgia, serif;

  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 6px 22px rgba(90, 80, 40, 0.07);

  --page-width: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.3vw + 15px, 18px);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--color-green-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: lining-nums;
}

p {
  margin: 0 0 0.8em;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-green-dark);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--page-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
