/* latin-ext */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/Ubuntu-normal-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/Ubuntu-normal-400-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/Ubuntu-normal-500-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/Ubuntu-normal-500-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/Ubuntu-normal-700-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/Ubuntu-normal-700-latin.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;
}

/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-italic-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-italic-400-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-normal-400-700-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-normal-400-700-latin.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;
}

/* czANSO archiv – společný základ. Barvy a písma definuje theme-*.css přes tokeny. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--fs-body)/1.6 var(--font-body); }
img, video { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.2; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: var(--fs-h1); letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--bg); padding: 8px 12px; }

/* Jazyk: obsah ve dvou jazycích, viditelný jen zvolený. Bez JS zůstane čeština. */
html[data-lang="cs"] .l-en, html:not([data-lang]) .l-en { display: none !important; }
html[data-lang="en"] .l-cs { display: none !important; }

/* Hlavička */
.site-head { background: var(--head-bg); color: var(--head-fg); border-bottom: 1px solid var(--head-line); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 14px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: inherit; line-height: 1; margin-right: auto; }
.brand-word { font: 700 1.9rem/1 var(--font-brand); letter-spacing: -.01em; }
.brand-cz { color: var(--brand-cz); }
.brand-anso { color: var(--brand-anso); }
.brand-tag { font: 500 .78rem/1.3 var(--font-brand); color: var(--head-muted); margin-top: 4px; letter-spacing: .01em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font: 500 .95rem/1.4 var(--font-nav); }
.nav a { color: var(--head-fg); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--brand-anso); }
.nav a[aria-current] { border-bottom-color: var(--brand-anso); }
.lang { display: flex; gap: 2px; font: 500 .85rem/1 var(--font-nav); }
.lang button { font: inherit; color: var(--head-muted); background: none; border: 1px solid transparent; border-radius: 4px; padding: 5px 7px; cursor: pointer; }
html[data-lang="cs"] .lang [data-set-lang="cs"], html:not([data-lang]) .lang [data-set-lang="cs"],
html[data-lang="en"] .lang [data-set-lang="en"] { color: var(--head-fg); border-color: var(--head-line-strong); }

/* Patička */
.site-foot { margin-top: 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 24px 40px; }
.site-foot p { margin: 0; max-width: 70ch; }

/* Text článků a stránek */
.prose { max-width: var(--measure); overflow-wrap: break-word; }
.prose > * + h2, .prose > * + h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius-img); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose blockquote { margin: 0 0 1em; padding: .2em 0 .2em 1em; border-left: 3px solid var(--accent); color: var(--muted); }
.prose pre, .prose code { font-family: var(--font-mono); font-size: .9em; }
.prose pre { overflow-x: auto; background: var(--surface); padding: 12px; border-radius: 6px; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 4px 8px; }
.prose figure { margin: 0 0 1.2em; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.prose .alignleft, .prose .alignright, .prose .aligncenter, .prose .alignnone { display: block; margin-inline: 0; }
.prose iframe, .prose object, .prose embed { max-width: 100%; }

/* Úvod: hero, fakta, karty */
.hero { position: relative; isolation: isolate; }
.facts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0; margin: 0; }
.facts-list div { padding: 16px 16px 16px 0; }
.facts-list dt { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.facts-list dd { margin: 0; font: var(--fact-weight) var(--fs-fact)/1.15 var(--font-fact); font-variant-numeric: tabular-nums; }
.intro { padding-block: 48px 8px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.cards a { display: block; height: 100%; text-decoration: none; color: inherit; }
.cards h3 { margin-bottom: .25em; }
.cards p { margin: 0; color: var(--muted); }
.section-title { font-size: var(--fs-h2); margin: 48px 0 20px; }

/* Blog */
.post-wrap { padding-block: 40px 0; }
.post-meta { font-size: .9rem; color: var(--muted); margin-bottom: .6em; }
.post-meta a { color: inherit; }
.post-tags { margin-top: 24px; font-size: .9rem; color: var(--muted); }
.post-tags a { color: inherit; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 0; max-width: var(--measure); font-size: .95rem; }
.post-nav a { text-decoration: none; }
.post-nav .next { text-align: right; }
.post-nav small { display: block; color: var(--muted); }
.comments { max-width: var(--measure); margin-top: 48px; }
.comment { padding: 16px 0; border-top: 1px solid var(--line); }
.comment .who { font-weight: 600; }
.comment .when { color: var(--muted); font-size: .85rem; margin-left: 8px; }
.comment .text { margin-top: 6px; overflow-wrap: anywhere; }
.comment .text p:last-child { margin-bottom: 0; }
.comment .replies { margin-left: 24px; }
.pings { font-size: .92rem; }

@media (max-width: 640px) {
  .brand-word { font-size: 1.6rem; }
  /* hlavička na mobilu: logo a jazyk nahoře, navigace v jednom posuvném řádku pod nimi */
  .head-row { gap: 10px 16px; padding-block: 12px 0; }
  .lang { order: 2; }
  .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding-bottom: 8px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; flex: none; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Video: náhled u nás, přehrávač se načte až po kliknutí */
.video { margin: 0 0 1.2em; max-width: 720px; }
.video a { position: relative; display: block; aspect-ratio: 16 / 9; background: #0e1114; border-radius: var(--radius-img); overflow: hidden; color: #fff; text-decoration: none; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-play { position: absolute; left: 12px; bottom: 12px; background: rgba(14,17,20,.85); padding: 8px 12px; border-radius: 4px; font-weight: 600; font-size: .95rem; }
.video a:hover .video-play { background: var(--accent); color: #1c2024; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-img); }

.intro-grid { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); gap: 48px; align-items: start; }
.intro-fig { margin: 8px 0 0; }
.intro-fig img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-img); }
.intro-fig figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; gap: 8px; } }
.callout { font-weight: 600; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--surface); }

/* Stránky a pomocné třídy */
.page-wrap { padding-block: 40px 0; }
.muted { color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Let 3. 9. 2011 */
.flight-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); max-width: 30ch; }
.flight-sub { color: var(--muted); font-size: .92rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.tabs a { display: flex; flex-direction: column; text-decoration: none; color: var(--fg); padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; line-height: 1.3; }
.tabs a small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.tabs a[aria-current] { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.tabs a:hover { border-color: var(--accent); }
.flight-prose { max-width: 1000px; }
.flight-prose p, .flight-prose h2, .flight-prose h3, .flight-prose ul { max-width: var(--measure); }
.photo { margin: 0 0 20px; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-img); }

/* Launch Control */
.launch-when { font: 500 1.4rem/1.2 var(--font-head); }
.launch-state { display: flex; flex-wrap: wrap; gap: 8px; }
.go { display: inline-block; font: 600 .82rem/1 var(--font-head); color: #0d3b1a; background: #7bd88f; padding: 5px 9px; border-radius: 4px; white-space: nowrap; }
.go.big { font-size: 1.05rem; padding: 9px 14px; }
.board { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 6px 24px; }
.board li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Blog: výpisy a boční panel */
.blog-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding-block: 40px 0; align-items: start; }
.list { max-width: var(--measure); }
.list-head h1 { font-size: var(--fs-h2); margin-bottom: 1em; }
.item { padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.item h2 { font-size: 1.35rem; margin-bottom: .3em; }
.item h2 a { color: var(--fg); text-decoration: none; }
.item h2 a:hover { color: var(--link); }
.item p { margin-bottom: .5em; }
.pager { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.pager .newer { margin-left: auto; }
.side { font-size: .95rem; display: grid; gap: 28px; }
.side h2 { font-size: 1rem; text-transform: none; margin-bottom: .6em; }
.side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.side .cols { grid-template-columns: 1fr 1fr; column-gap: 12px; }
.side .tags { line-height: 1.9; margin: 0; }
.side .tags a { margin-right: 8px; white-space: nowrap; }
.closed { margin-top: 16px; color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Fórum */
.note { color: var(--muted); max-width: var(--measure); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .5em; }
.table { overflow-x: auto; }
.table table { border-collapse: collapse; width: 100%; min-width: 520px; }
.table th, .table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fpost { max-width: var(--measure); padding: 18px 0; border-top: 1px solid var(--line); }
.fpost header { margin-bottom: 8px; }
.fpost .who { font-weight: 600; }
.fpost .when { color: var(--muted); font-size: .85rem; margin-left: 8px; }
.fpost .text { overflow-wrap: anywhere; }
.fpost .text img { max-width: 100%; height: auto; }
.fpost blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--surface); }
.fpost blockquote cite { display: block; font-style: normal; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.lost { display: inline-block; font-size: .85rem; color: var(--muted); border: 1px dashed var(--line); padding: 4px 8px; border-radius: 4px; }

/* Varianta A – Stratosféra: tmavý pruh s logem jako v roce 2011, velká fotka z 31 km, světlý text pod ní. */
:root {
  --font-brand: "Ubuntu", system-ui, sans-serif;
  --font-head: "Ubuntu", system-ui, sans-serif;
  --font-nav: "Ubuntu", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-fact: "Ubuntu", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Menlo, monospace;
  --head-weight: 500; --fact-weight: 500;
  --fs-body: 1.0625rem; --fs-h1: clamp(2rem, 4.5vw, 3.1rem); --fs-h2: 1.6rem; --fs-h3: 1.2rem; --fs-fact: 1.7rem;
  --max: 1160px; --measure: 70ch; --radius-img: 4px;

  --bg: #f7f6f2; --surface: #eeece6; --fg: #23282d; --muted: #5b6168; --line: #dcd9d0;
  --accent: #ffab19; --link: #9a5a00; --link-hover: #6f4100;
  --head-bg: #23282d; --head-fg: #e7e5de; --head-muted: #8f908e; --head-line: #23282d; --head-line-strong: #5d6166;
  --brand-cz: #e7e5de; --brand-anso: #ffab19;
  --card-bg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181b; --surface: #1d2125; --fg: #e7e5de; --muted: #a3a6a8; --line: #2d3237;
    --link: #ffb84d; --link-hover: #ffd18a; --head-line: #2d3237; --card-bg: #1b1f23;
    color-scheme: dark;
  }
}
.hero { background: #070e16; color: #f2f1ec; min-height: clamp(420px, 62vh, 640px); display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,14,22,.85) 0%, rgba(7,14,22,.35) 45%, rgba(7,14,22,.8) 100%); }
.hero-text { padding-block: 64px 44px; }
.hero .kicker { font: 500 .95rem/1.3 var(--font-head); color: #ffab19; margin-bottom: .8em; letter-spacing: .02em; }
.hero h1 { max-width: 20ch; color: #fff; }
.hero .lede { max-width: 52ch; font-size: 1.15rem; color: #dfe3ea; }
.btn { display: inline-block; font: 500 1rem/1 var(--font-head); text-decoration: none; padding: 12px 18px; border-radius: 4px; margin: 6px 8px 0 0; }
.btn-primary { background: #ffab19; color: #23282d; }
.btn-primary:hover { background: #ffc04d; color: #23282d; }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.facts { background: var(--card-bg); border-bottom: 1px solid var(--line); }
.facts-list dd { color: var(--fg); }
.cards li { background: var(--card-bg); border: 1px solid var(--line); border-radius: 6px; }
.cards a { padding: 18px 20px; }
.cards a:hover h3 { color: var(--link); }
.post-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
