@font-face {
  font-family: Jost; font-weight: 100 900; font-display: swap;
  src: url(/jost-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;
}
@font-face {
  font-family: Jost; font-weight: 100 900; font-display: swap;
  src: url(/jost-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans'; font-weight: 200 1000; font-display: swap;
  src: url(/nunito-sans-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;
}
@font-face {
  font-family: 'Nunito Sans'; font-weight: 200 1000; font-display: swap;
  src: url(/nunito-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #304058; --teal: #4eaba4; --mint: #9eddc1; --cream: #f2e9c7; --white: #fff;
  --r: 22px; --gap: 16px;
  --head: Jost, 'Futura', 'Century Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--navy); font: 16px/1.5 'Nunito Sans', system-ui, sans-serif; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.i { width: 1.3em; height: 1.3em; flex: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
[contenteditable] { outline: 2px dashed transparent; outline-offset: 4px; border-radius: 4px; white-space: pre-line; }
[contenteditable]:hover, [contenteditable]:focus { outline-color: var(--teal); }
/* While editing, show the text as typed, not as the heading styles it. */
[contenteditable]:focus { text-transform: none; }

.top { background: var(--white); }
.top-in { display: flex; align-items: baseline; gap: 72px; padding-top: 18px; padding-bottom: 18px; }
/* The lower bracket hangs below the lettering; the margin puts the lettering's baseline on the menu's. */
.logo img { height: 60px; width: auto; margin-bottom: calc(60px * -13.18 / 127.9); }
#nav { display: flex; align-items: baseline; gap: 72px; white-space: nowrap; }
#nav a { font: 600 17px var(--head); text-transform: uppercase; }
#nav a:hover, #nav summary:hover { color: var(--teal); }
#nav summary { font: 600 17px var(--head); text-transform: uppercase; list-style: none; cursor: pointer; }
#nav summary::-webkit-details-marker { display: none; }
#nav .menu a { font: 400 17px 'Nunito Sans', system-ui, sans-serif; text-transform: none; color: var(--navy); }
#nav .menu { left: -16px; background: var(--white); border-radius: 16px; box-shadow: 0 10px 30px rgba(48, 64, 88, .18); }
#nav .menu::before { display: none; }

.btn { display: inline-block; border: 1.5px solid var(--teal); border-radius: 999px; padding: 4px 22px; color: var(--teal); background: transparent; font-size: 15px; cursor: pointer; list-style: none; }
.btn::-webkit-details-marker { display: none; }
/* Touch keeps :hover after a tap, which left buttons stuck coloured in. */
@media (hover: hover) { .btn:hover { background: var(--teal); color: var(--white); } }

.hero { position: relative; height: min(64vh, 640px); background: var(--navy); overflow: hidden; }
.track { --per: 3; display: flex; height: 100%; transform: translateX(calc(var(--i, 0) * -100%)); transition: transform .6s ease; }
.slide { flex: 0 0 calc(100% / var(--per)); width: calc(100% / var(--per)); height: 100%; object-fit: cover; background: var(--teal); }
.slide:only-child { margin: 0 auto; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--cream); padding: 12px; font-size: 32px; display: flex; }
.arrow.prev { left: 2vw; }
.arrow.next { right: 2vw; }

.cat { padding: 96px 0; }
.cat { position: relative; }
.cat.alt { background: var(--mint); }
.side h2 a:hover { text-decoration: underline; }
.cat-tools { position: absolute; top: 16px; right: 24px; display: flex; gap: 4px; }
.cat-tools button { border: 1px solid var(--teal); border-radius: 999px; padding: 2px 10px; background: var(--white); color: var(--teal); }
.add-cat { padding: 32px 24px; text-align: center; }
.meta { flex-wrap: wrap; }
.meta input { font: inherit; width: 16ch; padding: 2px 10px; border: 1px solid var(--teal); border-radius: 999px; }
.cat-in { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cat.alt .big { order: 2; }
/* Colour only while a tile is empty: behind a photo it bleeds through the anti-aliased rounded edge. */
.ph { position: relative; border-radius: var(--r); overflow: hidden; min-height: 120px; }
.ph:empty { background: var(--mint); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ph:hover img { transform: scale(1.03); }
.cat.alt .ph.big:empty { background: var(--teal); }
.ph.t1:empty, .ph.t2:empty, .ph.t3:empty { background: var(--cream); }
.big { min-height: 440px; }
.side { display: flex; flex-direction: column; align-items: flex-start; }
/* Rounded shapes read as indented against straight text, so the text steps in to meet them. */
.side h2, .side p, .gal h1 { padding-left: 6px; }
.side h2 { color: var(--teal); font-size: 20px; }
.side p { margin: 10px 0 16px; max-width: 46ch; min-height: 4.5em; }
.tiles { flex: 1; align-self: stretch; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: minmax(130px, 1fr) minmax(130px, 1fr); gap: var(--gap); margin-top: var(--gap); }
.t1 { grid-row: span 2; }

.more { position: relative; z-index: 5; display: inline-block; }
.more summary { position: relative; z-index: 1; }
.more[open] summary { background: var(--white); color: var(--teal); }
.more .menu { position: absolute; top: 100%; left: 0; min-width: 220px; padding: 10px; background: var(--teal); border-radius: 0 16px 16px 16px; }
/* Fills the button's rounded lower-left corner, so the menu runs into it without a notch. */
.more .menu::before { content: ''; position: absolute; left: 0; bottom: 100%; width: 50%; height: 16px; background: var(--teal); z-index: -1; }
.more .menu a { display: flex; align-items: center; gap: 6px; white-space: nowrap; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 17px; }
.more .menu a .i { width: 1em; height: 1em; }
.more .menu a:hover { background: var(--mint); }

.foot { display: grid; grid-template-columns: 1fr 1fr; }
/* The left padding lines the text up with the page's content column above (.wrap). */
.foot-dark { background: var(--navy); color: var(--cream); padding: 60px 24px 46px max(24px, calc(100% - 566px)); }
.foot-in { display: grid; gap: 40px; }
.foot .links { display: flex; flex-wrap: wrap; column-gap: 24px; }
.foot h3 { font-size: 18px; margin-bottom: 22px; }
.about, .links { list-style: none; margin: 0; padding: 0; }
.about li, .links li { display: flex; gap: 14px; margin-bottom: 14px; }
.about .i, .links .i { width: 20px; height: 20px; }
.about .i { height: 1.5em; }
.links li { align-items: center; }
.about .x { align-self: flex-start; margin-left: auto; padding: 0 4px; border: 0; background: none; color: var(--cream); opacity: .5; }
.about .x:hover { opacity: 1; }
.foot .add { margin-left: 34px; color: var(--cream); border-color: var(--cream); }
.hint-small { margin: 8px 0 0 34px; font-size: 13px; opacity: .7; }
.about a { text-decoration: underline; }
.about [contenteditable]:empty::before { content: 'Nová odrážka…'; opacity: .5; }
.links a:hover { text-decoration: underline; }
.foot-photo { position: relative; min-height: 320px; background: var(--mint); }
.foot-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-tools { position: absolute; left: 24px; bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.photo-tools .btn { background: var(--white); }
.focus img { max-height: 80vh; cursor: crosshair; }
.focus i { position: absolute; width: 40px; height: 40px; margin: -20px; border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 2px var(--navy), inset 0 0 0 2px var(--navy); pointer-events: none; }
.focus figcaption { position: absolute; bottom: 100%; left: 0; right: 0; margin-bottom: 10px; color: var(--white); text-align: center; }

.gal { padding-top: 24px; padding-bottom: 32px; }
.gal h1 { color: var(--teal); font-size: 22px; margin-bottom: 14px; }
.subs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.subs a { padding: 4px 16px; border-radius: 999px; background: var(--mint); }
.subs a.on, .subs a:hover { background: var(--teal); color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: var(--gap); }
.g { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.g img { width: 100%; height: 100%; object-fit: cover; }
.g.tall { grid-row: span 2; }
.g.big { grid-row: span 2; grid-column: span 2; }
.gal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.gal-foot .links { display: flex; gap: 28px; margin-left: auto; color: var(--teal); font-size: 14px; }
.gal-foot .links li { margin: 0; gap: 8px; }

.lb { position: fixed; inset: 0; z-index: 20; background: rgba(48, 64, 88, .55); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; }
.lb figure { position: relative; margin: 0; }
.lb img { max-width: 84vw; max-height: 86vh; border-radius: var(--r); background: var(--mint); }
.lb .close { position: absolute; top: 12px; right: 12px; display: flex; padding: 6px; border: 0; border-radius: 50%; background: var(--cream); color: var(--teal); }
/* Above the photo: on a narrow screen it reaches under the arrows, and the left one comes first in the markup. */
.lb .arrow { z-index: 1; font-size: 40px; }

.hint { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px 18px; border: 2px dashed var(--teal); border-radius: var(--r); }
.tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.tools button, .tools select { border: 0; border-radius: 999px; padding: 4px 10px; background: rgba(255, 255, 255, .85); font-size: 14px; }
.tools .on { background: var(--cream); color: var(--teal); font-weight: 800; }
.g[draggable] { cursor: grab; }
.dragging { opacity: .35; }
.drop-target { outline: 3px dashed var(--teal); outline-offset: 4px; }
#editbar { position: fixed; z-index: 30; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 8px 20px; border-radius: 999px; background: var(--navy); color: var(--cream); font-size: 14px; box-shadow: 0 4px 18px rgba(0, 0, 0, .25); white-space: nowrap; }
#editbar a, #editbar .link { text-decoration: underline; cursor: pointer; }
#editbar .link { padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.picker { position: relative; width: min(1000px, 92vw); max-height: 88vh; overflow: auto; padding: 24px 28px; border-radius: var(--r); background: var(--white); }
.picker h3 { color: var(--teal); }
.picker h4 { margin: 18px 0 8px; font: 600 14px var(--head); text-transform: uppercase; }
.strip, .pool { display: flex; flex-wrap: wrap; gap: 8px; }
.strip { min-height: 90px; padding: 8px; border: 2px dashed var(--teal); border-radius: 14px; }
.picker img { width: 112px; height: 80px; object-fit: cover; border-radius: 10px; cursor: pointer; }
.strip img { cursor: grab; }
.picker textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--teal); border-radius: 14px; font: 16px/1.5 'Nunito Sans', system-ui, sans-serif; color: var(--navy); }
.pool img.on { outline: 3px solid var(--teal); outline-offset: 2px; opacity: .45; }
/* Room to scroll the page's last row out from under the bar. */
body:has(#editbar) { padding-bottom: 72px; }

@media (max-width: 860px) {
  .top-in { flex-direction: column; align-items: flex-start; gap: 14px; }
  /* Items wrap as a whole when they do not fit; an item never breaks inside. */
  #nav { flex-wrap: wrap; gap: 8px 20px; }
  #nav a, #nav summary { font-size: 15px; }
  .hero { height: 56vh; }
  .track { --per: 1; }
  .cat { padding: 48px 0; }
  .cat-in { grid-template-columns: 1fr; }
  .cat.alt .big { order: 0; }
  .big { min-height: 280px; }
  .foot, .foot-in { grid-template-columns: 1fr; }
  .foot-dark { padding: 48px 24px 34px; }
  .foot-in { gap: 32px; }
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gal-foot .links { margin-left: 0; flex-direction: column; gap: 6px; }
  #editbar { white-space: normal; width: calc(100% - 32px); border-radius: 16px; }
  body:has(#editbar) { padding-bottom: 110px; }
}
