/* Strony startowe narzędzi postaci: wybór języka (kreator/index.html) oraz osobne strony PL i EN */
:root {
  --nav: #1c1c1c;
  --page: #3b2c26;
  --panel: #f1e1dd;
  --ink: #3b2c26;
  --text: #f9f9f9;
  --heading: #f1e1dd;
  --accent: #741b30;
  --muted: rgba(241, 225, 221, .78);
  --line: rgba(241, 225, 221, .2);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--text); font: 17px/1.5 'Alegreya', Georgia, serif; }
a { color: var(--heading); }

.top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 24px; background: var(--nav); border-bottom: 1px solid var(--line);
}
.wordmark { font: 700 30px/1 'UnifrakturMaguntia', serif; color: var(--heading); text-decoration: none; }
.wordmark small {
  margin-left: 12px; font: 400 13px/1 'Alegreya SC', serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.top .spacer { flex: 1; }
.top .plain {
  font: 700 14px/1 'Alegreya SC', serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.top .plain:hover { color: var(--heading); }

.hero {
  padding: 52px 20px 36px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #2d2d2d 0%, var(--page) 70%);
}
.hero .sub { margin: 0 0 6px; font: 400 14px/1 'Alegreya SC', serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin: 0 0 16px; font: 700 52px/1.1 'Alegreya', Georgia, serif; color: var(--heading); }
.hero h1.blackletter { font: 700 62px/1.1 'UnifrakturMaguntia', serif; }
.hero p { margin: 0 auto 6px; max-width: 60ch; }

main { max-width: 1100px; margin: 0 auto; padding: 8px 20px 16px; }
.tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding: 16px 0 8px;
}
.tile {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.tile:hover { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tile:focus-visible { outline: 2px solid var(--heading); outline-offset: 3px; }
.tile .art { aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 40%, #5c5c5c 0%, #2c2c2c 75%); }
.tile .art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tile .body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.tile h2 { margin: 0; font: 400 30px/1.1 'UnifrakturMaguntia', serif; color: var(--accent); }
.tile p { margin: 0; flex: 1; }
.tile .go { margin-top: 8px; font: 700 14px/1 'Alegreya SC', serif; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* Wybór języka: dwa duże kafelki bez ilustracji */
.tiles.choice { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.choice .tile .body { padding: 28px 26px 26px; }
.choice .tile h2 { font: 700 40px/1.1 'Alegreya', Georgia, serif; color: var(--ink); }
.choice .tile p { font-size: 18px; }

footer {
  margin-top: 16px; padding: 22px 24px 30px; background: var(--nav); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 15px; text-align: center;
}
footer p { margin: 4px 0; }

@media (max-width: 700px) {
  .hero { padding: 36px 16px 24px; }
  .hero h1 { font-size: 40px; }
  .hero h1.blackletter { font-size: 48px; }
  main { padding: 4px 16px 8px; }
  .tile h2 { font-size: 28px; }
}
