:root {
  --bg: #14100e;
  --bg2: #1d1815;
  --card: #241d19;
  --line: #3a302a;
  --text: #f3ebe3;
  --muted: #b3a597;
  --accent: #e8a33d;
  --accent-ink: #1a1206;
  --green: #8cc56a;
  --red: #e0675a;
  --radius: 16px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
/* zawsze ciemny motyw — klimat baru, niezależnie od ustawień telefonu */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  padding: calc(var(--safe-t) + 10px) 16px 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto 8px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.logo svg { width: 28px; height: 28px; color: var(--accent); }
.logo .olive { fill: var(--green); stroke: none; }
.btn {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
}
.btn.ghost { background: transparent; }
.btn:active { transform: scale(.97); }
.btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.search { position: relative; max-width: 1200px; margin: 0 auto; }
.search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }
.search input {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--text); padding: 0 12px 0 38px; font-size: 17px; outline: none;
}
.search input:focus { border-color: var(--accent); }

.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; max-width: 1200px; margin: 0 auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--bg2); border-radius: 999px;
  padding: 6px 12px; font-size: 14px; font-weight: 600; white-space: nowrap; min-height: 34px;
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip .n { opacity: .6; font-weight: 500; margin-left: 2px; }
.chips .sep { flex: none; width: 1px; background: var(--line); margin: 4px 2px; }

/* ---------- list ---------- */
main, .foot { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.intro { padding: 18px 0 6px; }
.intro h1 { font-size: clamp(26px, 6vw, 40px); line-height: 1.1; margin: 0 0 6px; letter-spacing: -.02em; }
.intro p { margin: 0; color: var(--muted); max-width: 60ch; }
.grid {
  display: grid; gap: 14px; padding: 14px 0 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr));
}
@media (max-width: 380px) { .grid { gap: 10px; } }
.card {
  position: relative; display: block; text-decoration: none; background: var(--card);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .15s ease;
}
.card:active { transform: scale(.98); }
.card .ph { aspect-ratio: 4/5; background: var(--bg2); overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 10px 12px 12px; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.card .sub { margin-top: 3px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav {
  position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.55); color: #ffcf66;
  border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; backdrop-filter: blur(6px);
}
.noimg {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%), var(--bg2);
}
.noimg svg { width: 42%; height: 42%; color: color-mix(in srgb, var(--accent) 70%, var(--text)); stroke-width: 1.4; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.link { background: none; border: 0; color: var(--accent); text-decoration: underline; padding: 0; }
.foot { color: var(--muted); font-size: 13px; text-align: center; padding: 20px 16px calc(var(--safe-b) + 24px); }

/* ---------- detail ---------- */
.detail {
  position: fixed; inset: 0; z-index: 20; background: var(--bg); overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
body.locked { overflow: hidden; }
.d-bar {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 8px;
  padding: calc(var(--safe-t) + 10px) 12px 10px; pointer-events: none;
}
.d-bar > * { pointer-events: auto; }
.round {
  width: 44px; height: 44px; border-radius: 999px; border: 0; display: grid; place-items: center;
  background: rgba(20,16,14,.6); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.round svg { width: 22px; height: 22px; }
.d-wrap { max-width: 1100px; margin: calc(-64px - var(--safe-t)) auto 0; }
@media (min-width: 820px) {
  .d-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; padding: 0 24px; margin-top: 0; }
  .d-media { position: sticky; top: calc(var(--safe-t) + 70px); align-self: start; }
  .gallery { border-radius: var(--radius); }
}
.gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--bg2);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: 100%; max-height: 78vh; object-fit: cover; scroll-snap-align: center; display: block; }
.gallery .noimg { aspect-ratio: 4/3; }
.dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 0; }
.dots i { width: 7px; height: 7px; border-radius: 9px; background: var(--line); }
.dots i.on { background: var(--accent); }
.d-body { padding: 18px 16px calc(var(--safe-b) + 40px); }
@media (min-width: 820px) { .d-body { padding: 70px 0 60px; } }
.d-body h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.05; margin: 0 0 8px; letter-spacing: -.02em; }
.desc { color: var(--muted); margin: 0 0 14px; font-style: italic; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.tag { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); text-decoration: none; }
.tag.glass::before { content: "🥃 "; }
.tag.tech { color: var(--accent); }
.tag.star { background: #ffcf6622; border-color: #ffcf6655; color: #ffcf66; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 7px 13px; min-height: 38px; font-weight: 700; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.seg .lbl { padding: 0 4px 0 12px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
h2.sec { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 24px 0 8px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: baseline;
  padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.35;
}
.steps li.done { opacity: .35; text-decoration: line-through; }
.steps .amt { font-weight: 800; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.steps .amt small { font-weight: 600; font-size: 13px; margin-left: 2px; }
.steps li.ing .txt { font-weight: 600; }
.steps li.step .amt { color: var(--muted); font-weight: 400; }
.steps li.step .txt { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.steps li.garnish .amt { color: var(--green); }
.steps .opt { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; margin-left: 6px; font-weight: 500; vertical-align: 2px; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.tips { margin: 0; padding-left: 20px; }
.tips li { margin: 6px 0; }
blockquote.op {
  margin: 0; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--bg2);
  border-radius: 0 12px 12px 0; font-size: 17px;
}
.op.good { border-color: var(--green); }
.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.more .card h3 { font-size: 14px; }
.more .card .body { padding: 8px 10px; }
.more .card .ph { aspect-ratio: 1; }
.hide-s { }
@media (max-width: 440px) { .hide-s { display: none; } }

/* ---------- nagłówek: akcje ---------- */
.actions { display: flex; gap: 6px; align-items: center; }
.actions .btn { padding: 8px 12px; text-decoration: none; }
.btn.lang { font-size: 13px; letter-spacing: .06em; min-width: 44px; justify-content: center; }
@media (max-width: 440px) { .hide-xs { display: none; } }
.btn .ico { width: 18px; height: 18px; }

/* ---------- stopka z autorem ---------- */
.foot .author { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.foot .author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.foot p { margin: 8px 0 0; }

/* ---------- O mnie ---------- */
.about .gallery img { max-height: 82vh; object-position: 50% 20%; filter: contrast(1.05); }
.prose { font-size: 18px; line-height: 1.65; }
.prose h1 { margin-bottom: 18px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; letter-spacing: -.01em; }
.prose p { margin: 0 0 14px; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--accent); }
.prose em { color: var(--muted); }
.d-right { display: flex; gap: 8px; }
.round.lang-mini { text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.steps .amt small.topup { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--accent); }
