/* Svet nábytku — farby a písmo sú tokeny v :root; pohyb len pri prefers-reduced-motion: no-preference (koniec súboru).
   Nadpisy Fraunces 600 bez kurzívy, text Hanken Grotesk 18 px v plnej farbe — kvôli čitateľnosti (Filip 24. 10. 2026). */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --linen: #F5F0E8;
  --paper: #FBF8F3;
  --sand: #E9DCC8;
  --oak: #C9A27C;
  --walnut: #7A4A2E;
  --terracotta: #B5532F;
  --rust: #9A4426;          /* terakota na text — kontrast ≥ 4,5 : 1 na --linen aj --paper */
  --olive: #3F5446;
  --ink: #221E1A;
  --muted: #4A423A;
  --line: #E2D7C7;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: 16px;
  --radius: 18px;
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; font-optical-sizing: auto; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 em, h2 em, .logo em { font-style: normal; color: var(--rust); }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

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

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Hlavička */
.hlavicka {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--linen) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.hlavicka.je-posunuta { border-bottom-color: var(--line); }
.hlavicka__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.logo__znak { width: 36px; height: 36px; flex: none; }
.logo__text { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; font-weight: 500; border-radius: 999px;
}
.nav a:hover { background: var(--sand); }
.nav .nav__ig { background: var(--ink); color: var(--paper); margin-left: 6px; }
.nav .nav__ig:hover { background: var(--olive); }
.nav .nav__text { display: none; }
@media (min-width: 640px) { .nav .nav__text { display: inline-flex; } }

/* Tlačidlá */
.tlacidla { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 1.5px solid var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--plne { background: var(--ink); color: var(--paper); }
.btn--plne:hover { background: var(--olive); border-color: var(--olive); }
.btn--obrys { background: transparent; color: var(--ink); }
.btn--obrys:hover { background: var(--ink); color: var(--paper); }
.btn--svetle { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--svetle:hover { background: var(--sand); border-color: var(--sand); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Úvod */
.uvod { padding: 28px 0 56px; }
.uvod__in { display: grid; gap: 32px; align-items: center; }
.nadtitul {
  font: 600 .8rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.uvod h1 { font-size: clamp(2.4rem, 9vw, 4.4rem); line-height: 1.06; margin-bottom: 22px; }
.uvod__lead { font-size: 1.2rem; color: var(--ink); max-width: 34em; margin-bottom: 28px; }
.uvod__obraz { position: relative; }
.uvod__obraz > img { width: 100%; max-width: 520px; margin-inline: auto; }
.kolaz { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1 / 1.05; }
.kolaz img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.kolaz img:first-child { grid-row: span 2; border-radius: 200px 200px var(--radius) var(--radius); }
@media (min-width: 900px) {
  .uvod { padding: 48px 0 88px; }
  .uvod__in { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}

/* Sekcie */
.sekcia { padding: 64px 0; }
.sekcia--ramcek { border-top: 1px solid var(--line); }
.sekcia__hlava { display: grid; gap: 12px; margin-bottom: 32px; max-width: 46em; }
.sekcia__hlava h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.sekcia__hlava p { color: var(--ink); font-size: 1.125rem; }
@media (min-width: 900px) { .sekcia { padding: 96px 0; } .sekcia__hlava { margin-bottom: 44px; } }

/* Témy */
.temy { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .temy { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } }
.tema {
  position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 16px 16px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.tema h3 { font-size: 1.2rem; padding-right: 18px; }
.tema p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (min-width: 700px) {
  .tema { padding: 22px 22px 20px; border-radius: var(--radius); }
  .tema h3 { font-size: 1.4rem; }
  .tema p { font-size: 1rem; line-height: 1.6; }
}
.tema__pocet { margin-top: auto; padding-top: 10px; font-size: .85rem; font-weight: 600; color: var(--rust); }
a.tema:hover { border-color: var(--oak); background: #fff; }
a.tema::after {
  content: "→"; position: absolute; top: 16px; right: 16px; font-size: 1.2rem; color: var(--rust);
  transition: transform .2s;
}
@media (min-width: 700px) { a.tema::after { top: 20px; right: 22px; } }

/* Galéria */
.filtre { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font: 500 .95rem/1 var(--sans); color: var(--ink); background: transparent; border: 1.5px solid var(--line);
}
.filter:hover { border-color: var(--oak); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.galeria { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .galeria { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.galeria__polozka[hidden] { display: none; }
.galeria__odkaz { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--sand); }
.galeria__pozn { margin-top: 16px; font-size: .92rem; color: var(--muted); }
.kolaz__pozn { margin-top: 10px; font-size: .85rem; color: var(--muted); text-align: right; }
.galeria__odkaz img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.galeria__popis { margin-top: 8px; font-size: .92rem; color: var(--muted); }
.galeria__prazdna {
  display: grid; gap: 14px; justify-items: start; padding: 32px 24px; border-radius: var(--radius);
  background: var(--paper); border: 1.5px dashed var(--oak);
}
.galeria__prazdna h3 { font-size: 1.6rem; }
.galeria__prazdna p { color: var(--muted); max-width: 36em; }
@media (min-width: 700px) { .galeria__prazdna { padding: 48px; } }

/* Lightbox */
.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: rgba(20, 17, 14, .94); color: var(--paper);
}
.lightbox::backdrop { background: rgba(20, 17, 14, .6); }
.lightbox__in { height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__lista { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px var(--gutter); }
.lightbox__pocet { font-size: .95rem; opacity: .85; }
.lightbox__obraz { min-height: 0; display: grid; place-items: center; padding: 0 var(--gutter); }
.lightbox__obraz img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox__dole { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter) 20px; }
.lightbox__popis { flex: 1; text-align: center; font-size: .98rem; }
.lightbox button {
  min-width: 48px; min-height: 48px; border-radius: 999px; border: 1.5px solid rgba(251, 248, 243, .4);
  background: transparent; color: var(--paper); font: 500 1.3rem/1 var(--sans); cursor: pointer;
}
.lightbox button:hover { background: rgba(251, 248, 243, .12); }
.lightbox button:focus-visible { outline-color: var(--oak); }

/* Čo tu nájdete */
.body { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: bod; }
@media (min-width: 800px) { .body { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.body li { counter-increment: bod; border-top: 1.5px solid var(--ink); padding-top: 18px; }
.body li::before {
  content: counter(bod, decimal-leading-zero); display: block; margin-bottom: 12px;
  font: 600 .85rem/1 var(--sans); letter-spacing: .12em; color: var(--rust);
}
.body h3 { font-size: 1.45rem; margin-bottom: 10px; }
.body p { color: var(--muted); }

/* Sociálne siete */
.socialne { padding: 0 0 64px; }
.socialne__box {
  display: grid; gap: 22px; padding: 40px 24px; border-radius: 28px;
  background: var(--olive); color: var(--paper); position: relative; overflow: hidden;
}
.socialne__box h2 { font-size: clamp(2rem, 6vw, 3.2rem); }
.socialne__box h2 em { color: var(--sand); }
.socialne__box p { color: color-mix(in srgb, var(--paper) 82%, var(--olive)); max-width: 32em; font-size: 1.08rem; }
.socialne__box .btn--obrys { color: var(--paper); border-color: rgba(251, 248, 243, .55); }
.socialne__box .btn--obrys:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.socialne__box :focus-visible { outline-color: var(--sand); }
@media (min-width: 800px) {
  .socialne { padding-bottom: 96px; }
  .socialne__box { padding: 64px; grid-template-columns: 1.3fr 1fr; align-items: end; }
  .socialne__box .tlacidla { justify-content: flex-end; }
}

/* Text stránky (ochrana údajov) */
.text { padding: 32px 0 72px; }
.text__in { max-width: 46rem; }
.text h1 { font-size: clamp(2rem, 7vw, 3.2rem); margin-bottom: 16px; }
.text h2 { font-size: 1.55rem; margin: 40px 0 12px; }
.text p, .text li { color: var(--ink); }
.text p + p { margin-top: 12px; }
.text ul, .text ol { padding-left: 1.3em; margin: 12px 0 0; }
.text li + li { margin-top: 6px; }
.text a:not(.btn) { color: var(--rust); text-underline-offset: 3px; }
.text__lead { font-size: 1.25rem; line-height: 1.6; color: var(--ink) !important; }
.text__datum { margin-top: 40px !important; font-size: .95rem; color: var(--muted) !important; }
.text__in--siroky { max-width: none; }
.text__in--siroky .clanky { margin-top: 32px; }
.tlacidla--odsadene { margin-top: 36px; }
.clanok__meta a { color: var(--muted) !important; }
.text h3 { font-size: 1.25rem; margin: 28px 0 8px; }
.omrvinky { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 24px; font-size: .92rem; color: var(--muted); }
.omrvinky a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.clanok__meta { margin: -4px 0 28px; font-size: .95rem; color: var(--muted) !important; }
.clanok__skratka {
  margin: 28px 0 8px; padding: 20px 22px; border-radius: 14px; background: var(--paper); border-left: 4px solid var(--terracotta);
}
.text .clanok__skratka h2 { margin: 0 0 8px; font-size: 1.15rem; }
.clanok__skratka ul { margin-top: 0 !important; }
.clanok__obraz { margin: 8px 0 28px; }
.clanok__obraz img { width: 100%; border-radius: var(--radius); }
.clanok__obraz figcaption { margin-top: 8px; font-size: .92rem; color: var(--muted); }
.tabulka { overflow-x: auto; margin: 16px 0 8px; -webkit-overflow-scrolling: touch; }
.tabulka table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.tabulka th, .tabulka td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tabulka thead th { font-weight: 700; border-bottom: 2px solid var(--ink); }
.tabulka tbody th { font-weight: 600; width: 32%; }
@media (max-width: 600px) {
  .tabulka table { font-size: .88rem; line-height: 1.45; }
  .tabulka th, .tabulka td { padding: 8px 6px; }
}
.clanok__zdroj { margin-top: 32px; font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.clanok__zdroj p { color: var(--muted) !important; }
.clanok__dalej { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.clanok__dalej h2 { margin-top: 0; }
.clanok__dalej .clanky { margin: 20px 0 24px; }

/* Tipy a návody — karty */
.clanky { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.clanky li + li { margin-top: 0; }
.clanok-karta {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px;
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.clanok-karta:hover { border-color: var(--oak); background: #fff; }
.text .clanok-karta { color: var(--ink); text-decoration: none; }
.clanok-karta__tema { font: 600 .78rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.clanok-karta h2, .clanok-karta h3 { font-size: 1.3rem; margin: 0; }
.clanok-karta p { color: var(--muted) !important; font-size: 1rem; }
.clanok-karta__viac { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--rust); }
.clanok-karta__viac::after { content: " →"; }
.sekcia__viac { margin-top: 24px; }
.sekcia__prazdna { color: var(--muted); }
.sekcia__prazdna a, .clanok__dalej a:not(.clanok-karta) { color: var(--rust); text-underline-offset: 3px; }
.nav a[aria-current="page"] { background: var(--sand); }

.chyba { padding: 72px 0 120px; }
.chyba h1 { font-size: clamp(2.4rem, 9vw, 4.4rem); margin: 6px 0 18px; }
.chyba p { color: var(--muted); margin-bottom: 28px; max-width: 32em; }

/* Päta */
.paticka { background: var(--ink); color: var(--paper); padding: 56px 0 32px; }
.paticka a { text-decoration: none; }
.paticka__in { display: grid; gap: 28px; }
.paticka .logo em { color: var(--oak); }
.paticka .logo__znak { border-radius: 9px; box-shadow: 0 0 0 1px rgba(251, 248, 243, .28); }
.body a { color: var(--rust); text-underline-offset: 3px; }
.paticka__veta { margin-top: 10px; color: color-mix(in srgb, var(--paper) 72%, var(--ink)); }
.paticka__nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-left: -12px; }
.paticka__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; }
.paticka__nav a:hover { background: rgba(251, 248, 243, .1); }
.paticka__pravne { font-size: .88rem; line-height: 1.6; color: color-mix(in srgb, var(--paper) 70%, var(--ink)); border-top: 1px solid rgba(251, 248, 243, .14); padding-top: 22px; }
.paticka__pravne a { text-decoration: underline; text-underline-offset: 3px; }
.paticka :focus-visible { outline-color: var(--oak); }
@media (min-width: 800px) { .paticka__in { grid-template-columns: 1fr auto; } .paticka__pravne, 
/* Pohyb */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a.tema:hover::after { transform: translateX(4px); }
  .galeria__odkaz:hover img { transform: scale(1.04); }
  .uvod__text > * { animation: vstup .7s cubic-bezier(.2, .7, .2, 1) both; }
  .uvod__text > :nth-child(2) { animation-delay: .06s; }
  .uvod__text > :nth-child(3) { animation-delay: .12s; }
  .uvod__text > :nth-child(4) { animation-delay: .18s; }
  .uvod__obraz { animation: vstup 1s .1s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes vstup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
