/* Wspólny styl strony (wzór: floatmusic.app) / Shared site style (modelled on floatmusic.app) */

:root {
  --bg: #f6f6f8;
  --card: #ffffff;
  --text: #16161a;
  --muted: #6b6b73;
  --line: #e2e2e7;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #141416;
    --text: #f4f4f6;
    --muted: #97979f;
    --line: #2a2a2e;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 28px;
  flex: 1;
}

h1 { font-size: 1.6rem; font-weight: 650; letter-spacing: -.02em; margin: 0 0 8px; }
h2 { font-size: 1.15rem; font-weight: 620; margin: 32px 0 8px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--text); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--muted); }

.muted { color: var(--muted); font-size: .875rem; }

/* Powrót na stronę główną / Back to home */
.back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: .875rem;
  color: var(--muted);
  text-decoration: none;
}
.back:hover { color: var(--text); }

/* Ekran startowy / Home hero */
.hero {
  text-align: center;
  padding: 36px 0 12px;
}
.hero h1 { font-size: 1.9rem; margin: 0 0 6px; }
.hero .tagline { color: var(--muted); margin: 0 auto; max-width: 460px; }

.mosaic {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.mosaic img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  margin-left: -10px;
  border: 3px solid var(--bg);
  box-sizing: content-box;
}
.mosaic img:first-child { margin-left: 0; }

/* Nagłówek sekcji / Section label */
.label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 36px 0 10px 4px;
}

/* Karta z wierszami / Card with rows */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px 20px;
  margin-bottom: 16px;
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.row:first-child { border-top: 0; }
a.row:hover .name { text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px; }

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1);
}
.row .text { flex: 1; min-width: 0; }
.row .name { font-weight: 600; letter-spacing: -.01em; }
.row .desc { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.row .chev { color: var(--muted); font-size: 1.2rem; }

/* Stopka / Footer */
.links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: .875rem;
  margin-top: 36px;
}
.links a { color: var(--muted); text-decoration: none; }
.links a:hover { color: var(--text); }
.copy { text-align: center; color: var(--muted); font-size: .8125rem; margin-top: 10px; }

/* Licencje / Licenses */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.chip {
  font-size: .875rem;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
}
.chip:hover { border-color: var(--muted); }

.island-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 10px;
}
.island-head img { width: 34px; height: 34px; border-radius: 9px; }
.island-head h2 { margin: 0; flex: 1; }

.place { border-top: 1px solid var(--line); padding: 12px 0; }
.place h3 { font-size: .95rem; font-weight: 600; margin: 0 0 4px; }
.credit { font-size: .875rem; color: var(--muted); line-height: 1.7; }
.credit .who { color: var(--text); }
.credit a { color: var(--muted); }
