/* Domáce recepty – štýl statického webu */
:root {
  --navy: #1d2b4f;
  --red: #9b1c1c;
  --red-dark: #7a1414;
  --bg: #fbf8f3;
  --card: #ffffff;
  --text: #262626;
  --muted: #6b665e;
  --line: #e9e2d6;
  --soft: #f3ece1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 4px 14px rgba(40, 30, 10, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: 1.15rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* hlavička */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { flex: none; }
.logo img { width: 150px; height: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { background: var(--soft); color: var(--red); }
.search { display: flex; align-items: center; background: var(--soft); border-radius: 999px; padding: 0 4px 0 14px; }
.search input { border: 0; background: transparent; font: inherit; font-size: .95rem; padding: 9px 0; width: 170px; outline: none; color: var(--text); }
.search button { border: 0; background: var(--red); color: #fff; border-radius: 999px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
.search button svg { width: 16px; height: 16px; }
.menu-btn { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }
.chips { border-bottom: 1px solid var(--line); background: #fff; }
.chips .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.chips .wrap::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--navy); text-decoration: none; font-size: .9rem; font-weight: 500; }
.chip:hover, .chip[aria-current] { background: var(--navy); color: #fff; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav, .top .search { display: none; }
  .top.open .wrap { flex-wrap: wrap; }
  .top.open .nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 0 0 8px; }
  .top.open .search { display: flex; width: 100%; margin-bottom: 14px; }
  .top.open .search input { width: 100%; }
}

/* úvod */
.hero { background: var(--navy); color: #fff; padding: 48px 0 52px; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero p { margin: 0 0 22px; color: #d9dcea; font-size: 1.1rem; max-width: 640px; }
.hero .search { background: #fff; max-width: 560px; padding: 4px 4px 4px 18px; }
.hero .search input { width: 100%; font-size: 1.05rem; padding: 12px 0; }
.hero .search button { width: auto; height: 44px; padding: 0 20px; font: inherit; font-weight: 600; gap: 8px; display: flex; }
.hero .quick { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero .quick a { color: #fff; background: rgba(255, 255, 255, .12); padding: 5px 12px; border-radius: 999px; text-decoration: none; font-size: .9rem; }
.hero .quick a:hover { background: rgba(255, 255, 255, .25); }

.section { padding: 40px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; white-space: nowrap; }

/* karty receptov */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(40, 30, 10, .08), 0 10px 26px rgba(40, 30, 10, .1); }
.card a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card .ph { aspect-ratio: 3 / 2; background: var(--soft); overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .cat { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.card h3 { font-size: 1.05rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 4px; font-size: .85rem; color: var(--muted); display: flex; gap: 14px; }
.grid.big { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid.big .card h3 { font-size: 1.2rem; }

/* dlaždice kategórií */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; display: block; color: #fff; text-decoration: none; background: var(--navy); }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .15s, transform .3s; }
.tile:hover img { opacity: .6; transform: scale(1.04); }
.tile span { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); font-family: var(--serif); font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.tile small { display: block; font-family: var(--sans); font-weight: 500; font-size: .8rem; opacity: .85; }
.tile:hover { color: #fff; }

/* archív */
.page-head { padding: 34px 0 6px; }
.page-head p { color: var(--muted); margin: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 36px 0 12px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; }
.pager span[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .gap { border: 0; background: none; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }

/* recept */
.recipe-head { padding: 30px 0 10px; }
.recipe-head .sub { font-size: 1.15rem; color: var(--muted); font-family: var(--serif); font-style: italic; margin: -6px 0 10px; }
.recipe-head .cats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; }
.hero-img { border-radius: var(--radius); overflow: hidden; margin: 18px 0 0; background: var(--soft); }
.hero-img img { width: 100%; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 22px 0; }
.fact { padding: 12px 16px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.fact b { display: block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fact span { font-weight: 600; color: var(--navy); }
.dots { letter-spacing: 2px; color: var(--red); }
.intro { font-size: 1.08rem; }
.intro img { border-radius: 10px; margin: 14px 0; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-size: .92rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--navy); color: var(--navy); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); color: #fff; }
.btn svg { width: 16px; height: 16px; }
.recipe-body { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: start; }
.ingredients { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 14px; position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow: auto; }
.ingredients h2 { font-size: 1.4rem; }
.ingredients ul { list-style: none; margin: 0 0 10px; padding: 0; }
.ingredients li { border-bottom: 1px dashed var(--line); }
.ingredients li:last-child { border-bottom: 0; }
.ingredients label { display: flex; gap: 10px; padding: 8px 0; cursor: pointer; align-items: baseline; }
.ingredients input { accent-color: var(--red); transform: translateY(2px); flex: none; }
.ingredients input:checked ~ span { color: var(--muted); text-decoration: line-through; }
.ingredients .amt { font-weight: 700; color: var(--navy); white-space: nowrap; }
.ingredients .note { color: var(--muted); font-size: .9rem; }
.ingredients h3 { font-family: var(--sans); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin: 14px 0 2px; }
.ingredients a { color: inherit; text-decoration: none; }
.ingredients a:hover { color: var(--red); text-decoration: underline; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 56px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-family: var(--serif); font-size: 1.1rem; }
.steps li.done::before { background: var(--muted); content: "✓"; }
.steps li.done .txt { opacity: .55; }
.steps h3 { margin: 4px 0 6px; }
.steps .dur { font-size: .85rem; color: var(--muted); }
.steps p { margin: 0 0 .7em; }
.steps .imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 8px 0 4px; }
.steps .imgs img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.nutrition { margin: 26px 0; }
.nutrition dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.nutrition div { background: #fff; border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow); }
.nutrition dt { font-size: .8rem; color: var(--muted); }
.nutrition dd { margin: 0; font-weight: 700; color: var(--navy); }
.taxo { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.taxo div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.taxo b { font-size: .85rem; color: var(--muted); font-weight: 600; margin-right: 4px; }
.taxo .chip { font-size: .82rem; padding: 4px 11px; }
.ad { margin: 26px 0; min-height: 100px; }
@media (max-width: 900px) {
  .recipe-body { grid-template-columns: 1fr; }
  .ingredients { position: static; max-height: none; }
}

/* stránky, vyhľadávanie */
.prose { font-size: 1.05rem; }
.prose img { border-radius: 10px; margin: 16px 0; }
.finder { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin: 10px 0 26px; }
.finder input[type=search] { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; }
.finder input[type=search]:focus { border-color: var(--navy); }
.picked { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.picked button { border: 0; background: var(--navy); color: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.suggest button { border: 1px solid var(--line); background: var(--soft); color: var(--navy); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .88rem; cursor: pointer; }
.suggest button:hover { border-color: var(--navy); }
.status { color: var(--muted); margin: 0 0 16px; }
.big-search { display: flex; gap: 8px; margin: 6px 0 20px; }
.big-search input { flex: 1; font: inherit; font-size: 1.1rem; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: #fff; }
.big-search input:focus { border-color: var(--navy); }
.big-search button { border: 0; background: var(--red); color: #fff; font: inherit; font-weight: 600; border-radius: 12px; padding: 0 20px; cursor: pointer; }
.empty { text-align: center; padding: 50px 0; color: var(--muted); }
.empty h1 { font-size: 4rem; margin: 0; }

/* päta */
.foot { margin-top: 60px; background: var(--navy); color: #c9cde0; padding: 40px 0 26px; font-size: .92rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.foot h2 { color: #fff; font-size: 1.1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.foot li { margin: 0 0 6px; }
.foot .copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 26px; padding-top: 16px; font-size: .85rem; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; } }

@media print {
  .top, .chips, .foot, .tools, .ad, .related, .taxo, .crumbs, .hero-img { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .recipe-body { grid-template-columns: 1fr 2fr; }
  .ingredients { box-shadow: none; position: static; max-height: none; padding: 0; }
  .ingredients input { display: none; }
  .steps .imgs { display: none; }
  .steps li::before { background: none; color: #000; border: 1px solid #000; }
}
