/* Timeline for Life — sdílený styl
   Layout: úzký čitelný sloupec, sekce oddělené plochou, ne rámečky; oranžová jako jediný akcent. */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --tint: #fff3e6;
  --fg: #1f1d1a;
  --muted: #5d5850;
  --line: #ebe6de;
  --accent: #e67700;
  --accent-strong: #c25f00;
  --on-accent: #ffffff;
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --maxw: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161412; --surface: #1f1c19; --tint: #2b2118; --fg: #f3efe9; --muted: #b3aba0;
    --line: #34302b; --accent: #ff9a2e; --accent-strong: #ffb460; --on-accent: #1a1209; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161412; --surface: #1f1c19; --tint: #2b2118; --fg: #f3efe9; --muted: #b3aba0;
  --line: #34302b; --accent: #ff9a2e; --accent-strong: #ffb460; --on-accent: #1a1209; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--maxw); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--fg); line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand-name span { color: var(--accent); }
.brand-tag { font-size: 0.78rem; color: var(--muted); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--tint); color: var(--fg); }
.nav a[aria-current="page"] { background: var(--fg); color: var(--bg); }

/* Type */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
.eyebrow { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-strong); margin: 0 0 8px; }
.section { padding-block: clamp(48px, 8vw, 88px); }
.section-head { margin-bottom: 32px; max-width: 40rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }

/* Hero */
.hero { padding-block: clamp(48px, 9vw, 104px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 36rem; margin: 20px 0 32px; }
.hero-art { justify-self: center; width: min(100%, 340px); }
.hero > .wrap > div { min-width: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
  padding: 14px 24px; border-radius: 999px; transition: transform .15s, background .15s;
}
.btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--tint); color: var(--fg); }
.btn svg { width: 18px; height: 18px; }

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.card h3 { font-size: 1.2rem; }
.card h3 a { color: var(--fg); text-decoration: none; }
.card h3 a:hover { color: var(--accent-strong); }
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--tint); color: var(--accent);
  display: grid; place-items: center; flex: none;
}
.icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card .more:hover { text-decoration: underline; }
.credit { font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }

.band { background: var(--tint); }

/* CTA */
.cta { text-align: left; }
.cta-box {
  background: var(--fg); color: var(--bg); border-radius: calc(var(--radius) + 6px);
  padding: clamp(32px, 5vw, 56px); display: flex; gap: 24px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-box h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 30rem; }
.cta-box p { margin: 8px 0 0; opacity: .8; }
.cta-box .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-box .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.cta-box .btn-ghost:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); color: var(--bg); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { width: min(70%, 240px); justify-self: start; order: -1; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Timeline page */
.section-head .lead { font-size: 1.15rem; color: var(--muted); margin: 16px 0 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-title { font-size: 1.45rem; }
.card-title a { color: var(--fg); text-decoration: none; }
.card-title a:hover { color: var(--accent-strong); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
