/* Venkovní hra Kladno – motiv turistického značení (bílá–žlutá–bílá) */
:root {
  --ink: #1f2a44;
  --slate: #56647a;
  --marker: #f2c230;
  --paper: #f4f6f9;
  --white: #ffffff;
  --line: #d9dfe7;
  --head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--marker);
  outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--paper { background: var(--paper); }

/* Značka: bílý–žlutý–bílý pruh jako u turistických cest */
.mark {
  display: inline-block;
  width: 1.5em; height: .9em;
  background: linear-gradient(var(--white) 0 33%, var(--marker) 33% 67%, var(--white) 67%);
  border: 1px solid var(--ink);
  border-radius: 2px;
  vertical-align: -.05em;
  flex: none;
}
.marked { display: flex; align-items: center; gap: .6rem; }

/* Hlavička */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .9rem; }
.logo { font-family: var(--head); font-weight: 800; font-size: 1.15rem; text-decoration: none; display: flex; align-items: center; gap: .55rem; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.nav a { text-decoration: none; font-weight: 700; font-size: .98rem; padding-block: .25rem; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--marker); }

/* Úvodní obrázek */
.hero { position: relative; color: var(--white); background: var(--ink); }
.hero img { width: 100%; height: clamp(360px, 62vh, 620px); object-fit: cover; opacity: .55; }
.hero .wrap { position: absolute; inset: auto 0 0 0; padding-bottom: clamp(2rem, 6vw, 4rem); }
.hero h1 { max-width: 16ch; }
.hero p { font-size: 1.2rem; }

.button {
  display: inline-block;
  font-family: var(--head); font-weight: 700; font-size: 1.05rem;
  background: var(--marker); color: var(--ink);
  padding: .8rem 1.4rem; border: 2px solid var(--ink); border-radius: 6px;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--white); }

/* Postup hry */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; border-top: 4px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); font-family: var(--head); font-weight: 800; font-size: 2.4rem; line-height: 1; display: block; margin-bottom: .4rem; color: var(--slate); }

/* Hry */
.game { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 760px) {
  .game { grid-template-columns: 1fr 1fr; }
  .game--flip > :first-child { order: 2; }
}
.game img { border-radius: 8px; border: 1px solid var(--line); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Reference */
.refs { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 2rem; }
.ref { margin: 0; }
.ref img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--marker); margin-bottom: .8rem; }
.ref blockquote { margin: 0 0 .5rem; font-size: 1.1rem; }
.ref figcaption { font-weight: 700; color: var(--slate); }

/* Detail hry */
.details { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 0; }
.details dt { font-weight: 700; }
.details dd { margin: 0; }
.tags { color: var(--slate); font-weight: 700; }
.map { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: 8px; }

/* Formulář */
.form { display: grid; gap: 1rem; max-width: 560px; }
.form label { font-weight: 700; display: grid; gap: .3rem; }
.form input, .form textarea {
  font: inherit; color: var(--ink);
  padding: .7rem .8rem; border: 2px solid var(--line); border-radius: 6px; background: var(--white);
}
.form input:focus, .form textarea:focus { border-color: var(--ink); }
.note { font-size: .95rem; color: var(--slate); }

.contact { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact a { font-size: 1.15rem; font-weight: 700; }
ol.howto { padding-left: 1.3rem; max-width: 68ch; }
ol.howto li { margin-bottom: .6rem; }

/* Patička */
.site-footer { background: var(--ink); color: var(--white); padding-block: 2.5rem; font-size: .98rem; }
.site-footer a { color: var(--white); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer p { margin: 0; }
