:root {
  color-scheme: dark;
  --bg: #0a0a16;
  --panel: #141426;
  --line: #292942;
  --text: #f7f5ff;
  --muted: #aaa9c2;
  --pink: #ff9bca;
  --mint: #87ead7;
  --violet: #c2b3ff;
  --display: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(100% - 96px, 1224px); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 10px 14px; background: var(--panel); }

.header { position: relative; z-index: 3; border-bottom: 1px solid #ffffff13; background: #0c0b19; }
.header-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; font: 900 29px/1 var(--display); letter-spacing: -.09em; }
.brand-number { color: var(--pink); margin-left: 1px; }
.brand-country { padding: 5px 5px 4px; border: 1px solid #693b66; border-radius: 5px; color: var(--pink); font: 750 10px/1 var(--body); letter-spacing: .07em; }
.navigation { align-self: stretch; display: flex; align-items: stretch; gap: clamp(16px, 2.6vw, 39px); }
.navigation a { display: flex; align-items: center; position: relative; color: var(--muted); font-size: 14px; font-weight: 650; }
.navigation a:hover, .navigation a[aria-current] { color: var(--text); }
.navigation a[aria-current]::after { content: ""; position: absolute; bottom: -1px; inset-inline: 0; height: 2px; background: var(--pink); border-radius: 4px; box-shadow: 0 0 14px #ff8bb39a; }
.search-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; padding: 7px 11px; background: #171626; border: 1px solid var(--line); border-radius: 9px; color: var(--text); font-size: 13px; }
.search-button:hover, .icon-button:hover { background: #24213a; }
.search-button .icon, .icon-button .icon { width: 19px; height: 19px; }
.search-button kbd { padding: 0 6px; border: 1px solid #39364e; border-radius: 4px; color: var(--muted); font-size: 11px; }
.menu-button { display: none; }

.hero { min-height: 515px; position: relative; isolation: isolate; overflow: hidden; background: #121027; }
.hero-photo, .hero-glow, .hero::after { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.hero-photo { background: url("assets/vice-city.webp") center 63% / cover no-repeat; }
.hero::after { content: ""; background: linear-gradient(90deg,#0b0b1a 0%,#101025d9 22%,#10102520 63%,transparent 100%), linear-gradient(0deg,#0a0a16 0%,#0a0a1630 33%,transparent 75%); }
.hero-glow { z-index: -1; inset: 25% -10% -15% 32%; background: radial-gradient(ellipse at 65% 70%,#ff4c7439,transparent 56%); mix-blend-mode: screen; animation: atmosphere 10s ease-in-out infinite alternate; }
@keyframes atmosphere {
  from { opacity: .22; transform: translate3d(-2%, -2%, 0); }
  to { opacity: .78; transform: translate3d(5%, 2%, 0); }
}
.hero-inner { min-height: inherit; display: flex; align-items: center; position: relative; padding: 38px 0 75px; }
.hero-copy { max-width: 650px; position: relative; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #ffe0ed; text-transform: uppercase; font-weight: 740; font-size: 11px; letter-spacing: .16em; }
.eyebrow span { width: 21px; height: 2px; background: #ff9bc8; box-shadow: 0 0 12px #ffa0c8; }
.hero h1 { display: grid; justify-items: start; margin: 13px 0 17px; font: 900 clamp(70px, 8.4vw, 125px)/.84 var(--display); letter-spacing: -.06em; }
.hero h1 em { font-style: normal; padding: .1em .09em .06em 0; background: linear-gradient(99deg, #ffb585 0%, #ff8ebd 57%, #c2a2ff 100%); background-clip: text; color: #ffadd3; -webkit-text-fill-color: transparent; }
.hero-description { color: #e0ddef; font-size: clamp(15px, 1.38vw, 19px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.button { min-height: 48px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 8px; font-weight: 760; font-size: 14px; transition: background .2s, box-shadow .2s, border-color .2s; }
.button .icon { width: 18px; height: 18px; }
.primary { color: #201323; background: #ffa1c9; }
.primary:hover { background: #ffbadb; box-shadow: 0 0 24px #f680ad55; }
.secondary { background: #151429bd; border-color: #a9a2c656; color: var(--text); }
.secondary:hover { background: #292240; border-color: #c1b4df; }
.location { position: absolute; bottom: 70px; right: 0; display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #fff0f8; text-shadow: 0 1px 6px #000; }
.location span { height: 5px; width: 5px; border-radius: 50%; background: #ff9bc8; box-shadow: 0 0 12px #ffa0c8; }
.location b { color: var(--pink); }

.quick-links { position: relative; margin-top: -40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quick { --accent: var(--pink); display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; min-width: 0; min-height: 92px; padding: 13px 17px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 8%, #161426), #131322 64%); transition: border-color .2s, transform .2s; }
.quick:hover { transform: translateY(-3px); border-color: var(--accent); }
.quick.mint { --accent: var(--mint); }
.quick.violet { --accent: var(--violet); }
.quick-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 9px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.quick strong, .quick small { display: block; }
.quick strong { font-size: 15px; font-weight: 760; }
.quick small { margin-top: 2px; font-size: 12px; color: var(--muted); }
.quick-arrow { width: 17px; height: 17px; color: var(--accent); }

.feed { padding: 57px 0 72px; scroll-margin-top: 12px; }
.feed-header { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; }
.feed h2 { font: 850 clamp(28px, 4vw, 47px)/1.02 var(--display); letter-spacing: -.045em; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 7px; background: #141425; color: var(--muted); font-size: 12px; font-weight: 710; }
.filters button:hover { color: var(--text); background: #211e35; }
.filters button[aria-pressed="true"] { color: var(--pink); background: #2b1a31; border-color: #643454; }
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #131323; transition: border-color .2s; }
.card:hover, .card:focus-within { border-color: #9a618f; }
.card:focus-within { outline: 2px solid var(--mint); outline-offset: 3px; }
.card-media { position: relative; aspect-ratio: 2.13; overflow: hidden; background: #201b34; }
.card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease-out; }
.card:hover img { transform: scale(1.035); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#09091455,transparent 65%); pointer-events: none; }
.card-video { position: absolute; z-index: 1; bottom: 10px; right: 12px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #ffffff55; border-radius: 5px; padding: 2px 6px; background: #0a091bdc; font-size: 11px; }
.card-video .icon { width: 12px; height: 12px; }
.card-content { padding: 15px 17px 19px; }
.article-category { color: var(--violet); text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 800; }
.category-cestina { color: var(--pink); }
.category-navody, .category-lokace { color: var(--mint); }
.card h3 { margin: 5px 0 6px; font: 780 21px/1.16 var(--display); letter-spacing: -.035em; }
.card-detail { color: var(--muted); font-size: 13px; }
.footer { border-top: 1px solid var(--line); background: #0d0c1b; }
.footer-inner { align-items: center; display: flex; gap: 22px; padding: 22px 0; }
.footer .brand { font-size: 23px; }
.footer p { color: var(--muted); font-size: 12px; }

.dialog { width: min(640px, 100% - 28px); max-height: min(80dvh, 760px); overflow: auto; border: 1px solid #42405e; border-radius: 15px; background: #141425; color: var(--text); padding: clamp(18px, 4vw, 32px); box-shadow: 0 24px 90px #000b; }
.dialog::backdrop { background: #060613ca; backdrop-filter: blur(6px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 11px; }
.dialog h2 { font: 850 clamp(26px, 5vw, 37px)/1.13 var(--display); letter-spacing: -.045em; }
.dialog input { width: 100%; height: 49px; border: 1px solid #56516f; padding: 0 13px; color: var(--text); background: #0e0e1b; border-radius: 8px; margin: 8px 0 12px; }
.search-result { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 10px; background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--text); }
.search-result:hover { background: #232039; }
.search-result span { color: var(--muted); font-size: 12px; }

@media (max-width: 980px) {
  .shell { width: calc(100% - 56px); }
  .quick { padding-inline: 12px; gap: 10px; }
  .quick strong { font-size: 14px; }
  .quick small { font-size: 11px; }
  .feed-header { align-items: start; flex-direction: column; }
}
@media (max-width: 780px) {
  .shell { width: calc(100% - 34px); }
  .header-inner { height: 59px; justify-content: start; gap: 9px; }
  .brand { margin-right: auto; font-size: 25px; }
  .menu-button { display: inline-flex; order: 2; }
  .search-button, .menu-button { justify-content: center; width: 40px; min-height: 40px; }
  .search-button span, .search-button kbd { display: none; }
  .navigation { display: none; position: absolute; top: 100%; right: 17px; left: 17px; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 9px; background: #121224; padding: 5px 12px; box-shadow: 0 12px 24px #0009; }
  .navigation.is-open { display: flex; }
  .navigation a { min-height: 42px; padding-inline: 8px; }
  .navigation a[aria-current]::after { right: auto; left: 8px; width: 26px; }
  .hero { min-height: 480px; }
  .hero-inner { align-items: end; padding: 55px 0 55px; }
  .hero-photo { background-position: 68% 60%; }
  .hero-glow { display: none; }
  .hero::after { background: linear-gradient(0deg,#0a0a16 2%,#0a0a16c9 41%,#0c0b1c40 78%), linear-gradient(90deg,#0c0b1ca1,transparent 79%); }
  .hero h1 { font-size: clamp(61px, 13vw, 87px); }
  .hero-actions { margin-top: 19px; gap: 8px; }
  .button { min-height: 45px; padding-inline: 11px; font-size: 13px; }
  .location, .desktop-break { display: none; }
  .quick-links { grid-template-columns: 1fr; margin-top: -16px; gap: 7px; }
  .quick { min-height: 64px; padding: 8px 12px; grid-template-columns: auto 1fr auto; }
  .quick-icon { width: 36px; height: 36px; }
  .quick-icon .icon { width: 18px; height: 18px; }
  .feed { padding: 38px 0 48px; }
  .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .footer-inner { align-items: start; flex-direction: column; gap: 9px; }
}
@media (max-width: 480px) {
  .articles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:focus-visible { outline: none; }
.footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12px; }
.footer nav a:hover, .breadcrumbs a:hover { color: var(--text); }
.section-page { min-height: 65vh; padding-top: 31px; padding-bottom: 67px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.breadcrumbs a { color: var(--pink); }
.section-title { margin-bottom: 28px; }
.section-title h1 { max-width: 870px; color: var(--text); font: 850 clamp(41px, 6.3vw, 77px)/.99 var(--display); letter-spacing: -.06em; margin-bottom: 12px; text-wrap: balance; }
.section-title > p:not(.article-category) { color: #ceccdf; font-size: clamp(15px, 2vw, 19px); max-width: 780px; }
.section-title > p.article-category { margin-bottom: 11px; }
.story { max-width: 920px; margin-inline: auto; }
.story-meta { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 16px 0 0; list-style: none; }
.story-meta li { padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--panel); font-size: 12px; }
.story-image { display: block; width: 100%; height: clamp(175px, 29vw, 310px); object-fit: cover; border: 1px solid var(--line); border-radius: 13px; }
.story-body { margin: 26px auto 0; max-width: 750px; }
.story-copy { display: grid; gap: 15px; font-size: 16px; color: #dfddef; }
.story-copy :is(ol, ul), .sources ul { margin: 0; padding-left: 24px; }
.story-copy li + li { margin-top: 8px; }
.story-copy h2, .sources h2, .related h2, .editor h2 { color: var(--text); font: 800 26px/1.15 var(--display); letter-spacing: -.035em; }
.story-copy h3 { font-size: 19px; }
.story-body a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.spoilers, .video-panel { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: clamp(13px, 3vw, 23px); }
.spoilers summary { cursor: pointer; color: var(--pink); font-weight: 750; }
.spoilers[open] .story-copy { padding-top: 16px; }
.video-panel p { color: var(--muted); margin-block: 3px 12px; }
.video-panel iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; margin-bottom: 10px; }
.video-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.sources { margin-top: 29px; }
.sources h2, .related h2 { margin-bottom: 14px; }
.related { margin-top: 55px; }
.chapter-filter { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.chapter-filter label { color: var(--muted); }
.chapter-filter select, .editor :is(input:not([type=checkbox]), select, textarea) { color: var(--text); background: #121222; border: 1px solid #4a4966; border-radius: 7px; padding: 8px 12px; }
.editor { max-width: 860px; }
.editor form, .editor .editor-panel { display: grid; gap: 12px; padding: clamp(12px, 3vw, 22px); margin-bottom: 20px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.editor form.inline-form { display: inline; border: 0; padding: 0; margin: 0; background: none; }
.editor label:not(.choice) { display: grid; gap: 4px; font-weight: 650; min-width: 0; }
.editor :is(input:not([type=checkbox]), select, textarea) { min-width: 0; width: 100%; }
.editor textarea { resize: vertical; }
.editor fieldset { border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.editor .choice { display: inline-flex; align-items: center; gap: 5px; margin-right: 9px; }
.editor .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.editor .button { width: fit-content; }
.editor a:not(.button) { color: var(--mint); text-decoration: underline; overflow-wrap: anywhere; }
.editor ol, .editor ul { margin: 0; padding-left: 22px; }
.editor li + li { margin-top: 8px; }
.editor .notice { border-left: 2px solid var(--pink); padding: 4px 10px; margin-bottom: 15px; overflow-wrap: anywhere; }
.editor .source-preview { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.editor small { color: var(--muted); }

@media (min-width: 781px) and (max-width: 850px) {
  .navigation { gap: 13px; }
  .header-inner { gap: 15px; }
}
@media (max-width: 780px) {
  .footer nav { margin-left: 0; }
  .section-page { padding-top: 22px; padding-bottom: 45px; }
  .breadcrumbs { margin-bottom: 22px; }
}
@media (max-width: 480px) {
  .editor .fields { grid-template-columns: 1fr; }
}
