/* 63 dni · strona gry. Kolory i czcionki jak w samej grze (game/src/style.css). */

@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/eb-garamond-latin-400-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: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/eb-garamond-latin-ext-400-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: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/eb-garamond-latin-400-italic.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: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/eb-garamond-latin-ext-400-italic.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: 'EB Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/eb-garamond-latin-600-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: 'EB Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/eb-garamond-latin-ext-600-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: 'Courier Prime'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/courier-prime-latin-400-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: 'Courier Prime'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/courier-prime-latin-ext-400-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: 'Courier Prime'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/courier-prime-latin-700-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: 'Courier Prime'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/courier-prime-latin-ext-700-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: 'Courier Prime'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/courier-prime-latin-400-italic.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: 'Courier Prime'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/courier-prime-latin-ext-400-italic.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 {
  --ink: #1c1a18;
  --ink-2: #24211e;
  --paper: #e9e1cc;
  --paper-dark: #cfc3a6;
  --paper-ink: #2b2620;
  --red: #b3242a;
  --red-deep: #a50d24;
  --gold: #d9b56a;
  --line: rgba(233, 225, 204, 0.16);
  --text: #eee6d2;
  --muted: #a89f8c;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --mono: 'Courier Prime', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--paper); }
h2 {
  font-weight: 600;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--paper);
}
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(720px, 100% - 32px); }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-lead { color: var(--text); max-width: 720px; margin: 0 0 32px; }

/* ---------------------------------------------------------------- przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  font: 17px/1.1 var(--mono);
  letter-spacing: .3px;
  text-decoration: none; border-radius: 2px;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-paper { background: var(--paper); color: var(--paper-ink); box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.btn-paper:hover { background: #f3ecd9; }
.btn-ghost { color: var(--paper); border: 1px solid rgba(233,225,204,.35); background: rgba(28,26,24,.35); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-coffee { background: var(--red); color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.45); margin: 8px 0 4px; }
.btn-coffee:hover { background: #c42b31; }

/* ---------------------------------------------------------------- nagłówek */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -2%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(28,26,24,.55) 0%, rgba(28,26,24,.88) 60%, var(--ink) 100%),
    url(img/ulica.webp) center / cover no-repeat;
  filter: sepia(.35) saturate(.8);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.04) translate(-1%, 0); } to { transform: scale(1.1) translate(1%, -1%); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } html { scroll-behavior: auto; } }

.hero-inner { padding: 72px 16px 64px; width: min(820px, 100%); }
.kicker { font-family: var(--mono); color: var(--paper-dark); letter-spacing: 1px; font-size: 15px; margin: 0 0 8px; }
.logo { margin: 8px auto 0; width: min(640px, 100%); line-height: 0; }
.logo img { width: 100%; height: auto; filter: drop-shadow(0 10px 28px rgba(0,0,0,.9)); }
.lead { font-size: clamp(21px, 3vw, 26px); font-style: italic; margin: 18px 0 32px; color: var(--text); }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .btn { min-width: 220px; }
.meta { color: var(--muted); font-size: 16px; margin: 22px 0 0; }

/* ---------------------------------------------------------------- o grze */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-grid > p { margin: 0; font-size: 22px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.features li { padding-left: 22px; position: relative; color: var(--muted); }
.features li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; background: var(--red); }
.features strong { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- galeria */
.gallery { padding-top: 0; }
.section.gallery { border-top: 0; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shot { margin: 0; position: relative; background: #111; border: 1px solid var(--line); }
.shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
/* podpis jak kartka zegara w grze */
.shot figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--paper); color: var(--paper-ink);
  font: 15px/1.2 var(--mono);
  padding: 6px 10px 7px;
  box-shadow: 0 3px 10px rgba(0,0,0,.5);
  transform: rotate(-1.2deg);
}
.shot .time { font-weight: 700; margin-right: 6px; }

/* ---------------------------------------------------------------- kalendarz */
.plan-grid { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 56px; align-items: center; }
.plan-grid .section-lead { margin-bottom: 0; }
.calendar { max-width: 440px; width: 100%; }
.cal-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.cal-tabs button {
  flex: 1; min-height: 42px; padding: 8px 4px;
  font: 15px var(--mono); color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
}
.cal-tabs button:hover { color: var(--paper); border-color: rgba(233,225,204,.35); }
.cal-tabs button[aria-selected="true"] { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.cal-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-week { margin-bottom: 6px; font: 13px var(--mono); color: var(--muted); text-align: center; }
.cal-week span:nth-child(7) { color: var(--red); }
.day {
  position: relative;
  aspect-ratio: 1;
  display: grid; place-items: center;
  font: 16px var(--mono);
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.day.empty { border-color: transparent; background: none; }
.day.off { background: none; border-style: dotted; opacity: .35; }
.day.done { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); font-weight: 700; }
.day.next { border: 1px dashed var(--gold); color: var(--gold); }
.cal-sum { margin: 12px 0 0; font: 14px var(--mono); color: var(--muted); }
.legend { font: 14px var(--mono); color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.dot { width: 14px; height: 14px; display: inline-block; border: 1px solid var(--line); background: var(--ink-2); vertical-align: middle; }
.legend > span { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; }
.dot.done { background: var(--paper); border-color: var(--paper); }
.dot.next { border: 1px dashed var(--gold); }

/* ---------------------------------------------------------------- od autora */
.letter {
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(24px, 5vw, 44px);
  font: 17px/1.75 var(--mono);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transform: rotate(-.4deg);
  background-image: linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,.03) 100%);
}
.letter p { margin: 0 0 16px; }
.letter .glory {
  margin: 32px 0 0;
  text-align: center;
  font-size: clamp(20px, 3.4vw, 24px);
  font-weight: 700;
  color: var(--red);
  letter-spacing: .5px;
}
.letter .sign { display: flex; justify-content: flex-end; margin: 28px 0 0; }
/* pieczątka w fioletowym tuszu, odbita trochę krzywo */
.stamp {
  width: min(300px, 80%); height: auto;
  color: #4a3b8c;
  opacity: .82;
  mix-blend-mode: multiply;
  transform: rotate(-5deg);
  margin-right: 2%;
}

/* ---------------------------------------------------------------- wsparcie */
.support { text-align: center; }
.support p { margin: 0 auto 24px; }
.support .small { font-size: 16px; color: var(--muted); margin-top: 14px; }

/* ---------------------------------------------------------------- głosy graczy */
.voices-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 0 0 48px; }
.voice {
  margin: 0; padding: 20px 22px 16px;
  background: var(--paper); color: var(--paper-ink);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.voice:nth-child(odd) { transform: rotate(-.5deg); }
.voice:nth-child(even) { transform: rotate(.4deg); }
.voice blockquote { margin: 0 0 12px; font-size: 19px; white-space: pre-line; overflow-wrap: anywhere; }
.voice figcaption { font: 14px var(--mono); color: #6b604f; }
.voices-empty { color: var(--muted); font-style: italic; margin: 0; }

.forms { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.form { border: 1px solid var(--line); background: var(--ink-2); padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.form h3 { margin: 0; font-size: 28px; font-weight: 600; color: var(--paper); line-height: 1.2; }
.form-note { margin: 0 0 4px; color: var(--muted); font-size: 17px; }
.form label { display: flex; flex-direction: column; gap: 6px; font: 14px var(--mono); color: var(--paper-dark); }
.form .opt { color: var(--muted); }
.form input, .form textarea {
  font: 18px/1.4 var(--serif); color: var(--text);
  background: var(--ink); border: 1px solid rgba(233,225,204,.25); border-radius: 2px;
  padding: 10px 12px; width: 100%;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form .btn { align-self: flex-start; font-size: 16px; min-height: 46px; cursor: pointer; }
.form .btn:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; min-height: 1.4em; font-size: 17px; }
.form-status.ok { color: var(--gold); }
.form-status.err { color: #e0676b; }
/* pole-pułapka na boty, niewidoczne dla ludzi */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { margin: 24px 0 0; font-size: 15px; color: var(--muted); }
.privacy a { color: var(--muted); }

/* ---------------------------------------------------------------- prywatność */
.prose h3 { font-size: 26px; font-weight: 600; color: var(--paper); margin: 32px 0 8px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .copy { margin-top: 40px; font: 15px var(--mono); }

/* ---------------------------------------------------------------- stopka */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 16px; }
.footer p { margin: 0 0 8px; max-width: 760px; }
.footer .copy { font-family: var(--mono); font-size: 14px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--paper); }

/* ---------------------------------------------------------------- telefon */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .about-grid, .shots, .plan-grid, .forms { grid-template-columns: 1fr; gap: 24px; }
  .voices-list { grid-template-columns: 1fr; }
  .about-grid > p { font-size: 20px; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn { min-width: 0; }
  .cal-week, .cal-grid { gap: 4px; }
  .day { font-size: 14px; }
  .cal-tabs button { font-size: 13px; }
  .letter { font-size: 15px; }
  .btn { font-size: 16px; }
}
.nowrap { white-space: nowrap; }
