/* napetsgames.com — one stylesheet for every page (mockup: PC-666 canvas).
   Two looks: dark «tavern table» by default, light «parchment» when the visitor's system asks for light. */

@font-face { font-family: "Monomakh"; src: url("/assets/fonts/Monomakh-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Forum"; src: url("/assets/fonts/Forum-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("/assets/fonts/PTSerif-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "PT Serif"; font-style: italic; src: url("/assets/fonts/PTSerif-Italic.ttf") format("truetype"); font-display: swap; }

:root {
  color-scheme: dark light;
  --bg: #15110d; --panel: #1e1812; --line: #3a2f22;
  --ink: #e9dcc0; --strong: #f3e8d0; --soft: #cdbf9f; --muted: #b8a98c; --faint: #8f8169;
  --accent: #c29a5b; --link: #d9b779; --link-h: #f0d49c;
  --btn: #c29a5b; --btn-ink: #15110d; --btn-h: #d9b779; --quiet: #6b5636;
  --sheet: #efe4cc; --sheet-ink: #2a2018; --sheet-soft: #5b4a36; --sheet-note: #e4d6b8;
  --sheet-link: #7a3424; --sheet-link-h: #4f1f14; --sheet-eyebrow: #7a3424; --sheet-code: #e4d6b8;
  --shadow: 0 1px 0 #3a2f22, 0 24px 60px rgba(0, 0, 0, .45);
  --photo-edge: #3a2f22; --polaroid: #efe4cc; --polaroid-ink: #2a2018; --big: #6b5636;
  --logo: none;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ece0c4; --panel: #f5ecd6; --line: #cdb98f;
    --ink: #2e241a; --strong: #1f1811; --soft: #4f4030; --muted: #5f4f3b; --faint: #6e5e48;
    --accent: #8e3b2a; --link: #7a3424; --link-h: #4f1f14;
    --btn: #7a3424; --btn-ink: #f7efdc; --btn-h: #5e281b; --quiet: #a8916a;
    --sheet: #f7f0dd; --sheet-note: #ece0c4; --sheet-eyebrow: #8e3b2a; --sheet-code: #ece0c4;
    --shadow: 0 1px 0 #cdb98f, 0 12px 32px rgba(74, 52, 24, .18);
    --photo-edge: #cdb98f; --polaroid: #fbf6ea; --big: #b49d72;
    --logo: brightness(0) opacity(.85);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "PT Serif", Georgia, serif; font-size: 18px; line-height: 1.6;
}
a { color: var(--link); }
a:hover { color: var(--link-h); }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
.rule { height: 1px; background: var(--line); }

/* Header */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.logo { display: block; line-height: 0; }
.logo img { height: 112px; width: auto; filter: var(--logo); }
.logo.small img { height: 56px; }
.head-right { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; font-family: "Forum", serif; font-size: 19px; letter-spacing: .04em; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--link-h); }

.langs { display: flex; padding-left: 1px; font-family: "Forum", serif; font-size: 18px; letter-spacing: .06em; }
.langs a, .langs span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 56px; padding: 0 14px;
  margin-left: -1px; border: 1px solid var(--quiet); color: var(--muted); text-decoration: none;
}
.langs a:hover { color: var(--strong); border-color: var(--accent); position: relative; }
.langs [aria-current] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); position: relative; }

/* Type */
.eyebrow { margin: 0 0 18px; font-family: "Forum", serif; font-size: 18px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.display { font-family: "Monomakh", serif; font-weight: 400; color: var(--strong); }
.hero { padding-top: 64px; padding-bottom: 80px; }
.hero h1 { margin: 0; max-width: 820px; font-size: 72px; line-height: 1.08; }
.hero p { margin: 28px 0 0; max-width: 620px; font-size: 21px; color: var(--soft); }
.section-title { margin: 0; font-size: 44px; line-height: 1.15; }

/* About */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; padding-top: 80px; padding-bottom: 80px; }
.photos { flex: 0 1 380px; margin: 0; position: relative; padding: 0 96px 96px 0; }
.photos > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 3px; border: 1px solid var(--photo-edge); }
.polaroid { position: absolute; right: 0; bottom: 0; width: 132px; padding: 8px 8px 6px; background: var(--polaroid); border-radius: 2px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); transform: rotate(5deg); }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.polaroid figcaption { margin-top: 6px; font-family: "Forum", serif; font-size: 15px; line-height: 1.2; text-align: center; color: var(--polaroid-ink); }
.about-text { flex: 999 1 420px; min-width: 0; max-width: 620px; display: flex; flex-direction: column; gap: 18px; }
.about-text p { margin: 0; }
.about-text .lead { font-size: 20px; }
.about-text .lead strong { color: var(--strong); }
.about-text .quiet { color: var(--soft); }
.chess { font-family: "Forum", serif; font-size: 19px; letter-spacing: .03em; }
.chess a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }

/* Games */
.games { padding-top: 32px; padding-bottom: 80px; }
.games .section-title { margin-bottom: 40px; }
.game-card { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 40px; }
.game-card > img { flex: 1 1 280px; max-width: 380px; width: 100%; height: auto; }
.game-text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.game-text p { margin: 0; }
.game-text .eyebrow { margin: 0; font-size: 17px; letter-spacing: .14em; }
.game-text h3 { margin: 0; font-size: 52px; line-height: 1.05; }
.game-text h3 span { display: block; font-size: 28px; margin-top: 8px; color: var(--link); }
.game-text .pitch { font-size: 20px; }
.facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 2px; font-family: "Forum", serif; font-size: 19px; letter-spacing: .04em; text-decoration: none; }
.btn-main { background: var(--btn); color: var(--btn-ink); }
.btn-main:hover { background: var(--btn-h); color: var(--btn-ink); }
.btn-quiet { border: 1px solid var(--quiet); color: var(--ink); }
.btn-quiet:hover { border-color: var(--accent); color: var(--strong); }
.btn-soon { border: 1px dashed var(--quiet); color: var(--accent); cursor: default; }

.next-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.game-small { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 28px 32px; }
.game-small p { margin: 0; }
.game-small .eyebrow { margin: 0; font-size: 15px; letter-spacing: .14em; }
.game-small h3 { margin: 0; font-size: 36px; line-height: 1.1; }
.game-small .soon { color: var(--soft); }
.game-small.more { border-style: dashed; justify-content: center; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 32px; padding-bottom: 96px; }
.contact .section-title { flex: 1 1 240px; }
.contact-text { flex: 999 1 420px; min-width: 0; max-width: 680px; display: flex; flex-direction: column; gap: 14px; }
.contact-text p { margin: 0; }
.contact-text .mail { font-size: 22px; }

/* Footer: «Kontakt / Usługodawca» — always open, in the page's language */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; padding-top: 40px; padding-bottom: 48px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.provider { font-style: normal; flex: 1 1 300px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.5; }
.provider .label { font-family: "Forum", serif; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.provider .name { color: var(--strong); }
.foot-links { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.foot-links .faint { color: var(--faint); }

/* Legal pages */
.doc { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 24px; padding-bottom: 88px; }
.toc { flex: 1 1 220px; max-width: 260px; font-family: "Forum", serif; font-size: 17px; letter-spacing: .03em; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.toc .label { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.toc a { color: var(--soft); text-decoration: none; }
.toc a:hover { color: var(--link-h); }
.sheet { flex: 999 1 560px; min-width: 0; max-width: 760px; background: var(--sheet); color: var(--sheet-ink); border-radius: 3px; padding: 56px 64px; box-shadow: var(--shadow); }
.sheet a { color: var(--sheet-link); }
.sheet a:hover { color: var(--sheet-link-h); }
.sheet .eyebrow { font-size: 16px; letter-spacing: .12em; color: var(--sheet-eyebrow); margin-bottom: 16px; }
.sheet h1 { margin: 0 0 12px; font-family: "Monomakh", serif; font-weight: 400; font-size: 48px; line-height: 1.1; color: var(--sheet-ink); }
.sheet h2 { margin: 44px 0 14px; font-family: "Monomakh", serif; font-weight: 400; font-size: 30px; line-height: 1.2; color: var(--sheet-ink); scroll-margin-top: 24px; }
.sheet p { margin: 0 0 16px; }
.sheet ul { margin: 0 0 16px; padding-left: 22px; }
.sheet li { margin: 0 0 10px; }
.sheet .meta { color: var(--sheet-soft); font-size: 16px; }
.sheet .short { background: var(--sheet-note); border-radius: 2px; padding: 18px 22px; }
.sheet code { font-family: Consolas, "Courier New", monospace; font-size: .86em; background: var(--sheet-code); padding: 1px 5px; border-radius: 2px; overflow-wrap: anywhere; }

/* 404 */
.lost { display: flex; flex-direction: column; justify-content: center; gap: 20px; min-height: 60vh; padding-top: 40px; padding-bottom: 80px; }
.lost p { margin: 0; max-width: 560px; }
.lost .big { font-family: "Monomakh", serif; font-size: 160px; line-height: 1; color: var(--big); }
.lost h1 { margin: 0; font-size: 40px; line-height: 1.15; }
.lost .soft { color: var(--soft); }
.lost .other { color: var(--muted); font-size: 17px; }

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .logo img { height: 80px; }
  .logo.small img { height: 48px; }
  .nav { gap: 16px; }
  .hero h1 { font-size: 44px; }
  .section-title { font-size: 34px; }
  .photos { padding: 0 64px 72px 0; }
  .game-card { padding: 24px; gap: 28px; }
  .game-text h3 { font-size: 42px; }
  .sheet { padding: 28px 20px; }
  .sheet h1 { font-size: 30px; overflow-wrap: break-word; hyphens: auto; }
  .sheet h2 { font-size: 26px; }
  .lost .big { font-size: 96px; }
}
