/* gastroprzewodnik.pl — Groovy edition */

:root, [data-palette="groovy"] {
  /* GROOVY — deep forest + bubblegum + sunflower + orange + cream */
  --bg: #F4EBD5;              /* cream paper */
  --bg-2: #EAD9B4;            /* warm sand */
  --ink: #143C2E;             /* deep forest green */
  --ink-2: #1E5440;
  --muted: #6E8A7A;
  --line: #143C2E;            /* black-ish green — hard outlines */
  --accent: #F08AAE;          /* bubblegum pink */
  --accent-2: #F5B91B;        /* sunflower */
  --accent-3: #E8712A;        /* burnt orange */
  --accent-4: #143C2E;        /* forest (same as ink) */
  --paper: #FFFFFF;
  --shadow: 4px 4px 0 0 #143C2E;  /* hard sticker shadow */

  /* Bento tile colors (cycled per card) */
  --tile-1: #F08AAE;   /* pink */
  --tile-2: #F5B91B;   /* yellow */
  --tile-3: #E8712A;   /* orange */
  --tile-4: #143C2E;   /* forest */
  --tile-5: #F4EBD5;   /* cream */

  /* type */
  --serif: 'Alfa Slab One', 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Alfa Slab One', 'Fraunces', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --h-font: var(--display);
  --b-font: var(--sans);
}

/* Dark mode — forest inverted */
[data-mode="dark"] {
  --bg: #0C2820;
  --bg-2: #143C2E;
  --ink: #F4EBD5;
  --ink-2: #E8D9B4;
  --muted: #8FAE99;
  --line: #F4EBD5;
  --paper: #143C2E;
  --accent: #F08AAE;
  --accent-2: #F5B91B;
  --accent-3: #E8712A;
  --shadow: 4px 4px 0 0 #F4EBD5;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--b-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Headlines */
.h-display {
  font-family: var(--h-font);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-variation-settings: "opsz" 144;
}
.h-title {
  font-family: var(--h-font);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.h-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Layout primitives */
.app {
  min-height: 100vh;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
}

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  gap: 24px;
}
.logo {
  font-family: var(--h-font);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-2);
  display: inline-block;
}
.nav {
  display: flex; gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav button {
  background: none; border: none; color: var(--muted);
  font: inherit; padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav button:hover { color: var(--ink); }
.nav button.active { color: var(--ink); border-color: var(--accent-2); }

.head-right {
  display: flex; align-items: center; gap: 16px;
}
.city-pill {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  background: var(--paper);
}
.ig-link { color: var(--muted); }
.ig-link:hover { color: var(--ink); }

/* Hero / Editorial intro */
.hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 980px;
}
.hero-blurb { max-width: 620px; font-size: 18px; line-height: 1.5; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
}
.hero h1 {
  font-size: clamp(48px, 8vw, 112px);
  margin: 0;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-2);
  font-weight: 400;
}
.hero-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-blurb {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* Filters strip */
.filters {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 65px;
  z-index: 40;
}
.filter-row {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap;
}
.filter-group { display: flex; gap: 6px; align-items: center; }
.filter-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-right: 4px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--b-font);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.search-input {
  flex: 1;
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--b-font);
  font-size: 13px;
  color: var(--ink);
  outline: none;
}
.search-input:focus { border-color: var(--ink); }
.search-input::placeholder { color: var(--muted); }
.view-toggle {
  display: flex; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); padding: 3px;
}
.view-toggle button {
  background: none; border: none; padding: 6px 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border-radius: 999px;
}
.view-toggle button.active { background: var(--ink); color: var(--bg); }

/* Feed grid (IG-like) */
.feed {
  padding: 32px 0 80px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; gap: 24px; } }

.card {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column;
  box-shadow: 6px 6px 0 0 var(--ink);
}
.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 0 var(--ink);
}
.card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 var(--ink); }

/* Bento color rotation — cycle through tiles */
.grid > .card:nth-child(6n+1) { background: var(--tile-1); color: var(--ink); }
.grid > .card:nth-child(6n+2) { background: var(--tile-2); color: var(--ink); }
.grid > .card:nth-child(6n+3) { background: var(--tile-5); color: var(--ink); }
.grid > .card:nth-child(6n+4) { background: var(--tile-3); color: var(--ink); }
.grid > .card:nth-child(6n+5) { background: var(--tile-4); color: var(--bg); }
.grid > .card:nth-child(6n+6) { background: var(--tile-2); color: var(--ink); }
.grid > .card:nth-child(6n+5) .card-meta,
.grid > .card:nth-child(6n+5) .card-quote,
.grid > .card:nth-child(6n+5) .tag { color: color-mix(in srgb, var(--bg) 80%, transparent); }

.card-img {
  aspect-ratio: 4/5;
  background: color-mix(in srgb, var(--ink) 10%, var(--paper));
  position: relative;
  overflow: hidden;
  border-bottom: 2.5px solid var(--ink);
}
.card-rank {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--ink);
  background: var(--bg);
  padding: 6px 10px; border-radius: 999px;
  border: 2px solid var(--ink);
}
.card-rating {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
  background: var(--accent-2);
  padding: 8px 14px; border-radius: 999px;
  line-height: 1;
  border: 2.5px solid var(--ink);
  transform: rotate(4deg);
}
.card-body { padding: 18px 18px 20px; }
.card-meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 8px;
}
.card-meta-dot::before {
  content: ""; display: inline-block; width: 3px; height: 3px;
  border-radius: 50%; background: currentColor;
  margin: 0 4px 2px; vertical-align: middle;
}
.card-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 6px;
  color: inherit;
}
.card-quote {
  color: inherit;
  opacity: 0.78;
  font-size: 13px;
  line-height: 1.4;
  margin: 8px 0 0;
  font-style: italic;
  text-wrap: pretty;
}
.card-tags {
  display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap;
}
.tag {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.04em;
}

/* Editorial list variant */
.editorial-list { display: flex; flex-direction: column; }
.editorial-row {
  display: grid;
  grid-template-columns: 60px 200px 1fr 120px 80px;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  transition: background 0.15s;
}
.editorial-row:hover { background: var(--paper); }
.editorial-row:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .editorial-row {
    grid-template-columns: 50px 1fr 60px;
    gap: 16px;
  }
  .editorial-row .er-img,
  .editorial-row .er-meta,
  .editorial-row .er-price { display: none; }
}
.er-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.er-img {
  aspect-ratio: 4/3;
  background: var(--bg-2);
  border-radius: 4px;
  overflow: hidden;
}
.er-name {
  font-family: var(--h-font);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 0 0 8px;
}
.er-quote {
  color: var(--ink-2);
  font-size: 13px;
  font-style: italic;
}
.er-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.er-price {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}
.er-rating {
  font-family: var(--h-font);
  font-weight: 600;
  font-size: 28px;
  color: var(--accent-2);
  text-align: right;
  line-height: 1;
}

/* Image placeholder (since user adds real photos later) */
.img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background-image:
    repeating-linear-gradient(
      135deg,
      var(--bg-2) 0,
      var(--bg-2) 12px,
      color-mix(in srgb, var(--bg-2) 60%, var(--bg)) 12px,
      color-mix(in srgb, var(--bg-2) 60%, var(--bg)) 24px
    );
  position: relative;
}
.img-placeholder span {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  padding: 4px 10px; border-radius: 3px;
  border: 1px solid var(--line);
}
.img-tinted .img-placeholder { mix-blend-mode: multiply; }

/* Detail page */
.detail {
  background: var(--bg);
  min-height: 100vh;
}
.detail-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  background: none; border: none; padding: 24px 0;
}
.detail-back:hover { color: var(--ink); }

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 24px 0 56px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  .detail-hero { grid-template-columns: 1fr; gap: 32px; }
}
.detail-hero-img {
  aspect-ratio: 4/5;
  background: var(--bg-2);
  border-radius: 6px;
  overflow: hidden;
}
.detail-hero-info { display: flex; flex-direction: column; justify-content: center; }
.detail-meta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  display: flex; gap: 16px; margin-bottom: 18px;
  flex-wrap: wrap;
}
.detail-name {
  font-size: clamp(48px, 7vw, 88px);
  margin: 0 0 16px;
}
.detail-quote {
  font-family: var(--h-font);
  font-style: italic;
  font-size: 22px;
  color: var(--accent-2);
  line-height: 1.25;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.detail-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding: 24px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.detail-stat-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.detail-stat-value {
  font-family: var(--h-font);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.detail-stat-value .small { font-size: 14px; color: var(--muted); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 14px 22px; border: none; border-radius: 999px;
  font-family: var(--b-font); font-weight: 500; font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}
.cta:hover { transform: translateY(-1px); }
.cta-secondary {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}

/* Detail body sections */
.detail-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  padding: 56px 0 80px;
}
@media (max-width: 900px) {
  .detail-body { grid-template-columns: 1fr; gap: 40px; }
}
.section { margin-bottom: 40px; }
.section-eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.section h3 {
  font-family: var(--h-font); font-weight: 500;
  font-size: 28px; letter-spacing: -0.01em;
  margin: 0 0 14px; line-height: 1.05;
}
.section p {
  font-size: 16px; line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
  margin: 0 0 12px;
}
.dish-list { list-style: none; padding: 0; margin: 0; }
.dish-list li {
  padding: 14px 0; border-bottom: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
}
.dish-list li:last-child { border-bottom: none; }
.dish-name {
  font-family: var(--h-font); font-weight: 500; font-size: 18px;
}
.dish-tag { font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.aside-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 16px;
}
.aside-mini-map {
  aspect-ratio: 4/3;
  border-radius: 4px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.aside-info { display: flex; flex-direction: column; gap: 10px; }
.aside-info-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px;
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}
.aside-info-row:last-child { border: none; }
.aside-info-row .label { color: var(--muted); font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.aside-info-row .value { color: var(--ink); text-align: right; }

/* Map view */
.map-view {
  display: grid;
  grid-template-columns: 420px 1fr;
  height: calc(100vh - 65px - 71px);
  min-height: 600px;
}
@media (max-width: 900px) {
  .map-view { grid-template-columns: 1fr; height: auto; }
  .map-canvas-wrap { height: 60vh; }
}
.map-list {
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--paper);
}
.map-list-item {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.map-list-item:hover { background: var(--bg-2); }
.map-list-item.active { background: var(--bg-2); border-left: 3px solid var(--accent-2); padding-left: 21px; }
.map-list-thumb {
  width: 64px; height: 64px; flex-shrink: 0;
  background: var(--bg-2); border-radius: 4px; overflow: hidden;
}
.map-list-info { flex: 1; min-width: 0; }
.map-list-name {
  font-family: var(--h-font); font-weight: 500;
  font-size: 18px; letter-spacing: -0.01em;
  margin: 0 0 4px; line-height: 1.1;
}
.map-list-meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.map-list-rating {
  font-family: var(--h-font); font-weight: 600;
  font-size: 22px; color: var(--accent-2); line-height: 1;
}

.map-canvas-wrap { position: relative; background: var(--bg-2); overflow: hidden; }

/* Footer */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--bg);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }
.foot h4 { font-family: var(--h-font); font-weight: 500; font-size: 20px; margin: 0 0 14px; }
.foot p, .foot a { color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { padding: 4px 0; }
.foot-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}

/* Tweaks panel */
.tweaks {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  width: 320px;
  box-shadow: 0 12px 40px rgba(31,26,23,0.18);
  font-family: var(--b-font);
}
.tweaks h5 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.tweak-row { margin-bottom: 14px; }
.tweak-row:last-child { margin-bottom: 0; }
.tweak-label {
  font-size: 11px; color: var(--muted);
  margin-bottom: 6px;
  display: block;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tweak-options { display: flex; gap: 4px; flex-wrap: wrap; }
.tweak-options button {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--b-font);
  flex: 1;
}
.tweak-options button.active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

/* Scrollbar minimal */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* No results */
.empty {
  padding: 80px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-title {
  font-family: var(--h-font);
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 8px;
}

/* Map pin animation */
@keyframes pinDrop {
  0% { transform: translate(-50%, -100%) scale(0.6); opacity: 0; }
  60% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 60%, transparent); }
  100% { box-shadow: 0 0 0 14px transparent; }
}



/* ==========================================================================
   GROOVY — bento, stickers, hard outlines
   ========================================================================== */

body { font-weight: 500; }

/* Background layers */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.app, .site-foot, .feed, .hero, main, .detail, .map-view { position: relative; z-index: 1; }
.site-head { z-index: 50; }
.filters { z-index: 40; }

html[data-bg="clean"] .bg-layer { display: none; }

/* Polka dots — default */
html[data-bg="dots"] .bg-layer {
  background-image: radial-gradient(circle, var(--accent-2) 14px, transparent 15px);
  background-size: 110px 110px;
  opacity: 0.22;
}
html[data-bg="dots"][data-mode="dark"] .bg-layer { opacity: 0.18; }

/* Stickers */
html[data-bg="stickers"] .bg-layer {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900'><g font-family='sans-serif' font-size='56' opacity='0.28'><text x='80' y='120' transform='rotate(-12 80 120)'>🍔</text><text x='720' y='160' transform='rotate(8 720 160)'>🌶</text><text x='200' y='320' transform='rotate(15 200 320)'>🍕</text><text x='560' y='380' transform='rotate(-20 560 380)'>🍺</text><text x='100' y='560' transform='rotate(5 100 560)'>🥟</text><text x='760' y='600' transform='rotate(-8 760 600)'>🍜</text><text x='340' y='720' transform='rotate(18 340 720)'>🍷</text><text x='640' y='820' transform='rotate(-12 640 820)'>🥑</text><text x='40' y='820' transform='rotate(10 40 820)'>🍳</text><text x='440' y='180' transform='rotate(-6 440 180)'>🥢</text><text x='820' y='440' transform='rotate(22 820 440)'>🌮</text><text x='260' y='520' transform='rotate(-14 260 520)'>☕</text></g></svg>");
  background-size: 900px 900px;
  background-repeat: repeat;
}

/* Waves — doodle squiggles */
html[data-bg="waves"] .bg-layer {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><g fill='none' stroke='%23E8712A' stroke-width='3' stroke-linecap='round' opacity='0.35'><path d='M20 40 q10 -10 20 0 t20 0 t20 0'/><path d='M140 80 q10 -10 20 0 t20 0 t20 0'/><path d='M40 160 q10 -10 20 0 t20 0 t20 0'/><path d='M160 200 q10 -10 20 0 t20 0 t20 0'/></g></svg>");
  background-size: 240px 240px;
}

/* Headers — hard display */
.h-display, .h-title, .card-name, .er-name, .detail-name,
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1; }

/* Header pill look */
.site-head {
  background: var(--bg);
  border-bottom: 2.5px solid var(--ink);
  backdrop-filter: none;
}
.logo {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.logo-dot {
  width: 14px; height: 14px;
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 0 var(--ink);
}
.nav button {
  font-family: var(--mono); font-weight: 600;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--ink);
  opacity: 0.55;
}
.nav button:hover { opacity: 1; }
.nav button.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  opacity: 1;
}
.city-pill {
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
  color: var(--ink);
  font-weight: 600;
  transition: transform 0.1s;
}
.city-pill:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 var(--ink); }

/* HERO */
.hero {
  padding: 72px 0 40px;
  border-bottom: 2.5px solid var(--ink);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(56px, 10vw, 140px);
  font-weight: 400;
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-3);
  background: var(--accent-2);
  padding: 0 12px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 5px 5px 0 0 var(--ink);
  display: inline-block;
  transform: rotate(-2deg);
  margin: 0 4px;
}

/* FILTERS */
.filters {
  background: var(--bg);
  border-bottom: 2.5px solid var(--ink);
  top: 66px;
}
.filter-label { color: var(--ink); opacity: 0.7; font-weight: 600; }
.chip {
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: 2px 2px 0 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}
.chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 0 var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 2px 2px 0 0 var(--ink);
}
.search-input {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 2px 2px 0 0 var(--ink);
  padding: 8px 16px;
}
.search-input:focus { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 0 var(--ink); border-color: var(--ink); }
.view-toggle {
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 0 var(--ink);
  background: var(--paper);
}
.view-toggle button { color: var(--ink); opacity: 0.6; font-weight: 600; }
.view-toggle button.active { background: var(--ink); color: var(--bg); opacity: 1; }

/* CTA */
.cta {
  background: var(--accent-3);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  box-shadow: 4px 4px 0 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--ink);
}
.cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--ink); }
.cta-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 2.5px solid var(--ink);
}

/* Detail page */
.detail-back {
  color: var(--ink);
  font-weight: 600;
}
.detail-hero-img {
  border: 2.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: 8px 8px 0 0 var(--ink);
  background: var(--accent-2);
}
.detail-name { color: var(--ink); }
.detail-quote {
  font-family: var(--display);
  font-style: normal;
  font-size: 28px;
  color: var(--ink);
  background: var(--accent);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 16px 22px;
  box-shadow: 4px 4px 0 0 var(--ink);
  display: inline-block;
  transform: rotate(-1deg);
  line-height: 1.2;
}
.detail-stats { border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }
.detail-stat-value { font-family: var(--display); font-weight: 400; }
.detail-stat-label { color: var(--ink); opacity: 0.7; font-weight: 600; }

.section h3 { font-family: var(--display); font-weight: 400; font-size: 32px; }
.section-eyebrow { color: var(--ink); opacity: 0.7; font-weight: 600; }
.section p { color: var(--ink); opacity: 0.85; }

/* "O restauracji" section */
.about-photos {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 20px;
  aspect-ratio: 16 / 9;
}
.about-photos .about-photo {
  display: block;
  overflow: hidden;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 0 var(--ink);
  background: var(--bg-2);
  transition: transform 0.12s;
}
.about-photos .about-photo:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 var(--ink); }
.about-photos .about-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.about-photos .about-photo:first-child {
  grid-row: span 2;
}
.about-photos .about-photo:nth-child(n+5) { display: none; }

/* Gracefully collapse when <4 photos */
.about-photos:has(.about-photo:only-child) { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 16/9; }
.about-photos:has(.about-photo:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.about-photos:has(.about-photo:nth-child(3):last-child) { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.about-photos:has(.about-photo:nth-child(2):last-child) .about-photo:first-child { grid-row: span 1; }
.about-photos:has(.about-photo:nth-child(3):last-child) .about-photo:first-child { grid-row: span 2; }

.about-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.about-contact .about-link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 2px 2px 0 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.about-contact .about-link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 var(--ink);
  background: var(--accent-2);
}
.about-contact .about-link .k {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.6;
}
.about-contact .about-link .v {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  word-break: break-word;
}


.dish-list li { border-bottom: 2px dashed var(--ink); opacity: 1; }
.dish-name { font-family: var(--display); font-weight: 400; font-size: 20px; }

.aside-card {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: 5px 5px 0 0 var(--ink);
}
.aside-info-row { border-bottom: 2px dashed var(--ink); }
.aside-info-row .label { color: var(--ink); opacity: 0.7; font-weight: 600; }

.aside-mini-map { border: 2px solid var(--ink); border-radius: 12px; }

/* Map */
.map-list-item { border-bottom: 2px solid var(--ink); }
.map-list-item.active { background: var(--accent-2); border-left: 6px solid var(--ink); padding-left: 18px; }
.map-list-name { font-family: var(--display); font-weight: 400; }
.map-list-thumb { border: 2px solid var(--ink); border-radius: 8px; }
.map-canvas-wrap { background: var(--bg-2); border-left: 2.5px solid var(--ink); }

/* Footer */
.site-foot { border-top: 2.5px solid var(--ink); background: var(--bg); }
.foot h4 { font-family: var(--display); font-weight: 400; font-size: 22px; }

/* Empty state */
.empty-title { font-family: var(--display); font-weight: 400; font-size: 40px; }

/* Tweaks panel */
.tweaks {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 0 var(--ink);
}
.tweaks h5 { font-family: var(--display); font-weight: 400; }
.tweak-row button {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  padding: 6px 12px;
  font-size: 12px;
}
.tweak-row button.active { background: var(--ink); color: var(--bg); }

/* Image placeholder — solid bento color */
.img-placeholder {
  background-image: none;
  background: transparent;
  position: relative;
}
.img-placeholder::before {
  content: "";
  position: absolute; inset: 20px;
  border: 2px dashed var(--ink);
  border-radius: 12px;
  opacity: 0.3;
}
.img-placeholder span {
  background: var(--paper);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 2px 2px 0 0 var(--ink);
  transform: rotate(-2deg);
}

/* Editorial row */
.editorial-row { border-top: 2px solid var(--ink); padding: 24px 16px; border-radius: 0; }
.editorial-row:hover { background: color-mix(in srgb, var(--accent-2) 20%, transparent); }
.editorial-row:last-child { border-bottom: 2px solid var(--ink); }
.er-num { font-family: var(--display); font-size: 32px; color: var(--accent-3); font-weight: 400; opacity: 1; }
.er-name { font-family: var(--display); font-size: 36px; font-weight: 400; }
.er-img { border: 2px solid var(--ink); border-radius: 12px; }
.er-rating {
  font-family: var(--display); color: var(--ink);
  background: var(--accent-2);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 2px 2px 0 0 var(--ink);
  font-size: 22px;
  display: inline-block;
  transform: rotate(3deg);
}

/* Small decorative doodles */
.hero::after {
  content: "";
  position: absolute;
  right: 60px; top: 80px;
  width: 90px; height: 90px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23E8712A' stroke-width='5' stroke-linecap='round'><path d='M10 30 Q20 20 30 30 T50 30 T70 30 T90 30'/><path d='M10 60 Q20 50 30 60 T50 60 T70 60 T90 60'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(15deg);
  pointer-events: none;
}
@media (max-width: 900px) { .hero::after { display: none; } }

/* Mode toggle button in header */
.mode-toggle {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}
.mode-toggle:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 0 var(--ink); }
.mode-toggle:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 0 var(--ink); }

/* Leaflet map tuning */
.leaflet-container {
  background: var(--bg-2);
  font-family: var(--mono);
  border-radius: 0;
}
.osm-tiles {
  /* warm/desaturate OSM tiles to match paper vibe */
  filter: sepia(0.18) saturate(0.75) brightness(1.02) hue-rotate(-8deg);
}
html[data-mode="dark"] .osm-tiles {
  filter: invert(0.92) hue-rotate(180deg) saturate(0.6) brightness(0.95);
}
.leaflet-control-attribution {
  background: var(--paper) !important;
  border: 1.5px solid var(--ink) !important;
  color: var(--ink) !important;
  font-family: var(--mono); font-size: 10px;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  margin: 6px !important;
}
.leaflet-control-attribution a { color: var(--accent-3) !important; }
.leaflet-control-zoom a {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border: 2px solid var(--ink) !important;
  box-shadow: 2px 2px 0 0 var(--ink);
  border-radius: 8px !important;
  margin-bottom: 4px;
  font-family: var(--display); font-weight: 400;
}
.leaflet-control-zoom a:hover {
  background: var(--accent-2) !important;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 var(--ink);
}
.leaflet-bar { border: none !important; box-shadow: none !important; }

/* GP Pin */
.gp-pin-wrap { background: transparent !important; border: none !important; }
.gp-pin {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.gp-pin:hover {
  transform: translate(-1px, -1px) scale(1.08);
  box-shadow: 3px 3px 0 0 var(--ink);
  background: var(--accent-2);
}
.gp-pin.active {
  background: var(--accent-3);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  font-size: 16px;
  animation: pin-bounce 1.2s ease-in-out infinite;
  position: relative;
}
.gp-pin-label {
  position: absolute;
  left: 50%; top: calc(100% + 8px);
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 400;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 2px 2px 0 0 var(--accent-3);
  letter-spacing: 0;
}
.gp-pin-label::before {
  content: "";
  position: absolute;
  left: 50%; top: -5px;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: var(--ink);
}
@keyframes pin-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* =========================================================
   MOBILE — header hamburger + filtry zwijane
   ========================================================= */

/* Domyślnie (desktop) hamburger i mobile toggle schowane */
.hamburger {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.filters-mobile-toggle {
  display: none;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.filters-mobile-toggle.active {
  background: var(--ink);
  color: var(--bg);
}
.filters-mobile-toggle.has-active {
  border-color: var(--accent-2);
  color: var(--accent-2);
}
.filters-mobile-toggle.active.has-active {
  background: var(--accent-2);
  color: var(--bg);
  border-color: var(--accent-2);
}

/* Globalny zabezpiecznik — żeby dziwne elementy nie rozciągały strony */
html, body { overflow-x: hidden; max-width: 100vw; }
.app, .site-head, .filters, .container { max-width: 100%; }
img { max-width: 100%; height: auto; }

@media (max-width: 820px) {
  /* Header */
  .site-head-inner {
    padding: 10px 16px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .logo { font-size: 17px; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .logo-dot { width: 8px; height: 8px; flex-shrink: 0; }

  /* Chowamy desktop nav + niepotrzebne ozdoby */
  .nav { display: none; }
  .city-pill { display: none; }
  .ig-link { display: none; }

  /* Hamburger wychodzi na mobile */
  .hamburger { display: inline-flex; }

  /* Menu rozwijane po hamburgerze */
  .nav.nav-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--ink);
    padding: 12px 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    z-index: 60;
  }
  .nav.nav-open button {
    text-align: left;
    padding: 12px 10px;
    border: none;
    border-radius: 6px;
    background: none;
    font-size: 14px;
    opacity: 1;
    color: var(--ink);
  }
  .nav.nav-open button.active {
    background: var(--ink);
    color: var(--bg);
  }

  .head-right { gap: 8px; }
  .mode-toggle { flex-shrink: 0; }

  /* Filtry */
  .filters { padding: 12px 0; top: 58px; }
  .filter-row-main {
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
  }
  .filter-row-main .search-input {
    min-width: 0;
    flex: 1 1 auto;
    width: 0;
  }
  .filter-row-main .view-toggle { display: none; }
  .filter-row-main .filter-count { display: none; }
  .filters-mobile-toggle { display: inline-flex; flex-shrink: 0; }

  /* Chipy domyślnie schowane, rozwijane po kliknięciu "filtry" */
  .filter-chips {
    display: none;
  }
  .filter-chips.mobile-open {
    display: block;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    margin-top: 10px;
  }
  .filter-chips.mobile-open .filter-row {
    margin-bottom: 8px;
  }
  .filter-chips .chip { font-size: 12px; padding: 6px 12px; }
}

/* Na bardzo wąskich ekranach — jeszcze ciaśniej */
@media (max-width: 400px) {
  .site-head-inner { padding: 8px 12px; gap: 6px; }
  .logo { font-size: 15px; }
  .head-right { gap: 4px; }
}

/* =========================================================
   MOBILE — naprawy typografii na stronie detali + o przewodniku
   ========================================================= */

/* Safety net — nic nie może wychylić się ponad viewport.
   KRYTYCZNE: grid/flex-item musi mieć min-width: 0 żeby się zmniejszał,
   inaczej ogromna czcionka (Alfa Slab One) rozsadza kontener. */
.detail,
.detail-hero,
.detail-hero-info,
.detail-hero-img,
.detail-body,
.hero,
.about-page,
.container {
  min-width: 0;
  max-width: 100%;
}
.detail-hero { overflow: hidden; }
.detail-hero > * { min-width: 0; }
.detail-name,
.about-page-title,
.hero h1,
.card-name {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}

@media (max-width: 720px) {
  /* Strona szczegółów restauracji — tytuł musi zmieścić się na iPhone SE (375px) */
  .detail-name {
    font-size: clamp(22px, 7.2vw, 36px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.01em !important;
  }
  .detail-quote { font-size: 16px; line-height: 1.3; }
  .detail-meta { gap: 10px; font-size: 10px; }
  .detail-stats {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0;
  }
  .detail-stat-value { font-size: 20px; }
  .detail-hero { padding: 16px 0 32px; gap: 24px; }
  .detail-hero-img {
    aspect-ratio: 4/3;
    /* Groovy palette ma box-shadow 8px 8px — na mobile zmniejszamy,
       żeby nie wystawała poza viewport */
    box-shadow: 4px 4px 0 0 var(--ink) !important;
    margin-right: 4px;
  }
  .detail-body { padding: 32px 0 48px; }
  .cta { padding: 12px 18px; font-size: 13px; }
  .cta-row { flex-wrap: wrap; gap: 8px; }

  /* About — strona O przewodniku */
  .about-page-title {
    font-size: clamp(26px, 8vw, 44px) !important;
    line-height: 1.05 !important;
  }
  .about-page p { font-size: 15px !important; line-height: 1.55 !important; }

  /* Hero na głównej */
  .hero h1 {
    font-size: clamp(32px, 9vw, 60px) !important;
    line-height: 1 !important;
  }

  /* Karty */
  .card-name { font-size: 22px; }
  .card-quote { font-size: 14px; }
}

/* Jeszcze węziej — iPhone SE / mały Android */
@media (max-width: 380px) {
  .detail-name { font-size: clamp(20px, 6.8vw, 28px) !important; }
  .about-page-title { font-size: clamp(22px, 7vw, 32px) !important; }
  .hero h1 { font-size: clamp(28px, 8.5vw, 44px) !important; }
  .detail-hero-img { box-shadow: 3px 3px 0 0 var(--ink) !important; }
  .container { padding: 0 14px !important; }
}

/* =========================================================
   ABOUT — linki, formatowanie, figury
   ========================================================= */
.about-container {
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width: 720px) {
  .about-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}
@media (max-width: 380px) {
  .about-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
.about-paragraph a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.about-paragraph strong { font-weight: 700; }
.about-paragraph em { font-style: italic; }
.about-figure img {
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 0 var(--ink);
}
@media (max-width: 720px) {
  .about-figure img { box-shadow: 3px 3px 0 0 var(--ink); }
}

/* Logo jako przycisk — reset stylów buttona, żeby nie wyglądał jak input */
.logo-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
}
.logo-btn:hover { opacity: 0.8; }
.logo-btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   DARK MODE — poprawki czytelności kart
   Kafle (pink/yellow/cream/orange/forest) mają STAŁE kolory w obu trybach.
   W trybie ciemnym var(--ink) = jasny kremowy — a to psuje kontrast
   na jasnych kafelkach. Wymuszamy konkretne kolory tekstu per kafelek.
   ========================================================= */
[data-mode="dark"] .grid > .card:nth-child(6n+1),
[data-mode="dark"] .grid > .card:nth-child(6n+2),
[data-mode="dark"] .grid > .card:nth-child(6n+3),
[data-mode="dark"] .grid > .card:nth-child(6n+4),
[data-mode="dark"] .grid > .card:nth-child(6n+6) {
  color: #143C2E !important; /* ciemny zielony tekst na jasnych kafelkach */
}
[data-mode="dark"] .grid > .card:nth-child(6n+5) {
  color: #F4EBD5 !important; /* kremowy tekst na ciemnym zielonym kafelku */
}

/* Meta/quote/tag — zawsze używały color-mix z var(--ink), co w dark
   psuło kontrast. Nadpisujemy stałymi wartościami. */
[data-mode="dark"] .grid > .card:nth-child(6n+1) .card-meta,
[data-mode="dark"] .grid > .card:nth-child(6n+2) .card-meta,
[data-mode="dark"] .grid > .card:nth-child(6n+3) .card-meta,
[data-mode="dark"] .grid > .card:nth-child(6n+4) .card-meta,
[data-mode="dark"] .grid > .card:nth-child(6n+6) .card-meta {
  color: rgba(20, 60, 46, 0.75) !important;
}
[data-mode="dark"] .grid > .card:nth-child(6n+1) .tag,
[data-mode="dark"] .grid > .card:nth-child(6n+2) .tag,
[data-mode="dark"] .grid > .card:nth-child(6n+3) .tag,
[data-mode="dark"] .grid > .card:nth-child(6n+4) .tag,
[data-mode="dark"] .grid > .card:nth-child(6n+6) .tag {
  color: rgba(20, 60, 46, 0.7) !important;
}
[data-mode="dark"] .grid > .card:nth-child(6n+5) .card-meta,
[data-mode="dark"] .grid > .card:nth-child(6n+5) .card-quote,
[data-mode="dark"] .grid > .card:nth-child(6n+5) .tag {
  color: rgba(244, 235, 213, 0.82) !important;
}

/* Editorial list (lista w widoku listy) — analogicznie czytelność */
[data-mode="dark"] .editorial-row { color: var(--ink); }
[data-mode="dark"] .editorial-row .er-quote,
[data-mode="dark"] .editorial-row .er-meta {
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}

/* Pill/rating na karcie — muszą być widoczne w obu trybach */
[data-mode="dark"] .card-rank {
  background: #143C2E;
  color: #F4EBD5;
  border-color: #F4EBD5;
}
[data-mode="dark"] .card-rating {
  background: #F5B91B;
  color: #143C2E;
  border-color: #143C2E;
}

/* Strona szczegółów w dark — już działa przez var(--ink), ale upewniamy się,
   że cytat i podpisy też są czytelne. */
[data-mode="dark"] .about-paragraph { color: var(--ink) !important; }
[data-mode="dark"] .about-paragraph a { color: var(--accent-2); }
.detail-hero-info > * { min-width: 0; }
