/* Strony studia Wumiko (/, /pl/, 404). Gry mają własne arkusze w swoich folderach.
   Kroje lokalnie (OFL, wspólne z Mixmeleonem w /fonts/), bez zewnętrznych zasobów. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.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: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree-latin-wght-normal.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: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;

  --paper: #F8F5F0;
  --paper-2: #EFE9E0;
  --card: #FFFFFF;
  --ink: #1D1A2B;
  --ink-2: #565168;
  --line: #E1DACF;
  --link: #4936C8;
  --focus: #4936C8;
  --btn: #1D1A2B;
  --btn-ink: #FFF6E8;

  /* Akcent studia (kropka w znaku) i kolory kafelków: farby Mixmeleona i kamienie Velvet Rush */
  --coral: #FF6B4A;
  --t1: #E5402F;
  --t2: #F6C431;
  --t3: #2F6FD8;
  --t4: #3BA55C;
  --t5: #8E4CC0;
  --t6: #F28A1E;
  --slot: #E7E0D5;

  --radius: 20px;
  --wrap: 1120px;
  --display: "Bricolage Grotesque", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15131D;
    --paper-2: #1C1A27;
    --card: #232030;
    --ink: #F3F0F8;
    --ink-2: #BAB4CA;
    --line: #353047;
    --link: #AFA3FF;
    --focus: #AFA3FF;
    --btn: #F3F0F8;
    --btn-ink: #15131D;
    --slot: #2B2738;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Nagłówek */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; gap: 10px 24px; flex-wrap: wrap;
  padding-block: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 1.45rem/1 var(--display); letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
}
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; gap: 4px 20px; flex-wrap: wrap; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 2px; }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.lang-switch {
  font-weight: 700; color: var(--ink); text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.lang-switch:hover { border-color: var(--ink); }

@media (max-width: 640px) {
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 4px 18px; }
  .lang-switch { margin-left: auto; }
}

/* Przyciski */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px;
  border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--btn); color: var(--btn-ink); border: 2px solid var(--btn);
}
.btn:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* Hero z planszą kafelków (dekoracja) */
.hero { padding: 56px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 88px; }
  .hero .wrap { grid-template-columns: 1.2fr 1fr; gap: 56px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral);
}
.lead { font-size: clamp(1.15rem, 2.2vw, 1.3rem); color: var(--ink-2); max-width: 40ch; }

.board {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  width: min(100%, 420px); margin-inline: auto; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 24px 60px rgb(40 30 60 / 0.12);
  transform: rotate(-3deg);
}
.board span { aspect-ratio: 1; border-radius: 10px; background: var(--slot); }
.board .c1 { background: var(--t1); }
.board .c2 { background: var(--t2); }
.board .c3 { background: var(--t3); }
.board .c4 { background: var(--t4); }
.board .c5 { background: var(--t5); }
.board .c6 { background: var(--t6); }
.board [class^="c"] { box-shadow: inset -4px -4px 0 rgb(0 0 0 / 0.14), inset 3px 3px 0 rgb(255 255 255 / 0.25); }
.board .dot { background: var(--coral); border-radius: 50%; transform: scale(0.6); box-shadow: none; }
@media (max-width: 899px) { .board { width: min(100%, 340px); } }

/* Sekcje */
.section { padding: 64px 0; }
.section.alt { background: var(--paper-2); }
.section-intro { max-width: 62ch; color: var(--ink-2); margin-bottom: 32px; font-size: 1.1rem; }

/* Katalog gier */
.games { display: grid; gap: 24px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 860px) { .games { grid-template-columns: 1fr 1fr; } }
.game {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.game-art { aspect-ratio: 16 / 9; overflow: hidden; background: var(--slot); }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { font-size: 1.55rem; margin-bottom: 0.4em; }
.game-body h3 a { color: var(--ink); text-decoration: none; }
.game-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.game-body > p { color: var(--ink-2); }
.status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
  background: var(--paper-2); color: var(--ink);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--status, var(--t4)); }
.status-soon { --status: var(--t5); }
.game-meta { font-size: 0.95rem; }
.game-links {
  display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 16px 0 0; margin: auto 0 0;
  border-top: 1px solid var(--line); font-weight: 600;
}

/* Co robimy */
.principles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0; }
.principles li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.principles li::before {
  content: ""; display: block; width: 28px; height: 28px; border-radius: 8px; margin-bottom: 14px;
  background: var(--tile, var(--t1));
  box-shadow: inset -3px -3px 0 rgb(0 0 0 / 0.14);
}
.principles li:nth-child(2) { --tile: var(--t3); }
.principles li:nth-child(3) { --tile: var(--t2); }
.principles li:nth-child(4) { --tile: var(--t5); }
.principles p { margin: 0; color: var(--ink-2); }

/* Kontakt */
.contact { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card p { color: var(--ink-2); }
.contact-card p:last-child { margin-bottom: 0; }
.mail { font-weight: 700; font-size: 1.12rem; overflow-wrap: anywhere; }
.fine { font-size: 0.95rem; color: var(--ink-2); margin-top: 28px; }
.todo { background: #FFF1B8; color: #3a2e00; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Strona błędu */
.notfound { padding: 72px 0 88px; }
.notfound .wrap { max-width: 720px; }
.notfound h2 { font-size: 1.6rem; margin-top: 1.6em; }

/* Stopka */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 0.95rem; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-2); }
.site-footer p { margin: 0; }
