/* dmarek.cz 2026: Bootstrap 5 + minimum vlastních stylů (stejný styl jako expectum.) */
:root {
	--dm-ink: #16181d;
	--dm-muted: #6b7079;
	--dm-line: #e7e8eb;
	--dm-soft: #f6f6f4;
	--dm-accent: #2868b8;
	--bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bs-body-color: var(--dm-ink);
	--bs-link-color-rgb: 22, 24, 29;
	--bs-link-hover-color-rgb: 40, 104, 184;
}

body { font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3, .h1, .h2, .h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }

.wordmark { color: var(--dm-ink); text-decoration: none; font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; }
.wordmark strong { font-weight: 800; }
.wordmark:hover { color: var(--dm-ink); }

/* úvodní stránka: první obrazovka na středu */
.hp { min-height: 100vh; min-height: 100svh; display: flex; background: radial-gradient(ellipse at top, #fff 0%, var(--dm-soft) 70%); }
.hp-inner { padding-top: 3rem; padding-bottom: 3rem; }
.hp-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin-bottom: 1.75rem; box-shadow: 0 0 0 6px #fff, 0 20px 40px -20px rgba(22,24,29,.5); }
.hp-name { font-size: clamp(3.25rem, 11vw, 7rem); letter-spacing: -.05em; line-height: .9; margin: 0 0 1.25rem; }
.hp-claim { font-size: clamp(1.2rem, 2.6vw, 1.55rem); font-weight: 600; margin: 0 0 .25rem; }
.hp-lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--dm-muted); margin: 0 0 2.5rem; }
.hp .site-nav { justify-content: center; gap: .25rem 1.75rem; margin-bottom: 2.5rem; }
.hp .site-nav a { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; color: var(--dm-ink); line-height: 1.2; }
.hp .site-nav a:hover, .hp .site-nav a:focus-visible { color: var(--dm-accent); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; }
.hp-projects { max-width: 46rem; font-size: .95rem; color: var(--dm-muted); line-height: 1.9; margin-bottom: .75rem; }
.hp-projects span:first-child { margin-right: .35rem; }
.hp-projects a, .hp-contact a { color: var(--dm-ink); font-weight: 500; text-decoration: none; }
.hp-projects a:hover, .hp-contact a:hover { color: var(--dm-accent); text-decoration: underline; }
.hp-contact { margin-bottom: .75rem; }
.sep { opacity: .4; margin: 0 .5rem; }

/* hlavička podstránek */
.site-header { padding: 1.5rem 0; border-bottom: 1px solid var(--dm-line); }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-nav a { color: var(--dm-muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current] { color: var(--dm-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }

/* podstránky */
.page { padding: 3.5rem 0 4.5rem; }
.page h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); margin-bottom: 1rem; }
.page-lead { color: var(--dm-muted); max-width: 40rem; margin-bottom: 2.5rem; }
.page .text { max-width: 44rem; }
.page .text img { max-width: 100%; height: auto; }
.contact-big { font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.contact-big a { text-decoration: none; }
.contact-big a:hover { color: var(--dm-accent); }

/* projekty */
.section { padding: 5rem 0; border-top: 1px solid var(--dm-line); }
.section-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .5rem; }
.section-lead { color: var(--dm-muted); margin-bottom: 2.5rem; }
.project { display: flex; gap: 1.1rem; align-items: flex-start; height: 100%; color: inherit; text-decoration: none; padding: 1rem; margin: -1rem; border-radius: 1rem; transition: background-color .2s; }
.project:hover { background: var(--dm-soft); color: inherit; }
.project img, .project-logo { flex: 0 0 5.5rem; width: 5.5rem; height: 5.5rem; border-radius: 1rem; object-fit: cover; }
.project-logo { display: grid; place-content: center; background: linear-gradient(133deg, #2868b8 30%, #e85d53); color: #fff; font-weight: 800; line-height: .8; letter-spacing: -.06em; font-size: 1.15rem; text-align: left; }
.project-logo strong { font-weight: inherit; color: rgba(255,255,255,.6); }
.project-body { display: flex; flex-direction: column; }
.project-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.project:hover .project-name { color: var(--dm-accent); text-decoration: underline; text-underline-offset: .2em; }
.project-short { color: var(--dm-accent); font-size: .9rem; font-weight: 500; margin-bottom: .3rem; }
.project-text { color: var(--dm-muted); font-size: .95rem; line-height: 1.5; }

/* sociální sítě */
.social { display: inline-flex; gap: .5rem; }
.social a { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--dm-line); color: var(--dm-ink); background: #fff; transition: background-color .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--dm-ink); border-color: var(--dm-ink); color: #fff; }

/* patička */
.site-footer { background: var(--dm-soft); color: var(--dm-muted); padding: 3.5rem 0 2rem; font-size: .95rem; border-top: 1px solid var(--dm-line); }
.site-footer a { color: var(--dm-ink); }
.footer-title { color: var(--dm-ink); font-weight: 700; margin-bottom: .75rem; }
.footer-title a { text-decoration: none; }
.footer-projects { columns: 2 14rem; column-gap: 2rem; margin: 0; }
.footer-projects li { margin-bottom: .3rem; break-inside: avoid; }
.footer-projects a { text-decoration: none; font-weight: 500; }
.footer-projects a:hover { text-decoration: underline; }
.footer-projects span { font-size: .85rem; }
.footer-copy { margin: 2.5rem 0 0; font-size: .85rem; }

/* administrace a hlášky (staré třídy z BS3, ať formuláře v adminu nevypadají rozbitě) */
.admin-bar .nav-link { padding: .5rem .75rem; }
.form-group { margin-bottom: 1rem; }
.float-right, .pull-right { float: right; }
.float-left, .pull-left { float: left; }
.cls { clear: both; }
.hide, .hidn { display: none; }
.click { cursor: pointer; }
.moveIT { cursor: move; }
.btn-block { display: block; width: 100%; }
.img-responsive { max-width: 100%; height: auto; }
.marginT0 { margin-top: 0 !important; } .marginT1, .marginT { margin-top: 10px !important; } .marginT2, .marginTT { margin-top: 20px !important; } .marginT3, .marginTTT { margin-top: 30px !important; } .marginT4, .marginTTTT { margin-top: 40px !important; } .marginT5, .marginTTTTT { margin-top: 50px !important; }
.marginB0 { margin-bottom: 0 !important; } .marginB1, .marginB { margin-bottom: 10px !important; } .marginB2, .marginBB { margin-bottom: 20px !important; } .marginB3, .marginBBB { margin-bottom: 30px !important; } .marginB4, .marginBBBB { margin-bottom: 40px !important; }
@media (min-width: 768px) { .col-md-offset-4 { margin-left: 33.333333%; } .col-md-offset-3 { margin-left: 25%; } }
@media (min-width: 576px) { .col-sm-offset-2 { margin-left: 16.666667%; } .col-sm-offset-3 { margin-left: 25%; } }
.gallery { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2rem; }

@media (max-width: 575.98px) {
	.site-header .container { justify-content: center !important; }
	.site-nav { justify-content: center; }
	.hp-photo { width: 120px; height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
@media print {
	.admin-bar, .site-nav, .social { display: none; }
	.hp { min-height: 0; background: none; }
}
