/*
Theme Name: Tišnovsko soutěží
Theme URI: https://tisnovskosoutezi.cz/
Author: MerlinCoach
Description: Lehká responzivní šablona pro výtvarnou soutěž a prezentaci soutěžních prací.
Version: 0.5.0
Text Domain: tisnovskosoutezi
*/

:root {
    --purple: #ad74bd;
    --purple-dark: #875294;
    --yellow: #f6df68;
    --yellow-soft: #fff2b6;
    --cyan: #59c5d3;
    --cyan-dark: #168fa0;
    --pink-bg: #fbf7fb;
    --surface: #ffffff;
    --text: #181818;
    --muted: #6a646d;
    --line: #e8e0ea;
    --success: #277d61;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 34px;
    --shadow: 0 18px 50px rgba(67, 34, 74, .09);
    --content: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 9% 13%, rgba(173,116,189,.08) 0 3px, transparent 3.5px) 0 0/28px 28px,
        linear-gradient(180deg, #fff 0, var(--pink-bg) 100%);
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--cyan-dark);
}

a:hover,
a:focus-visible {
    color: var(--purple-dark);
}

button,
input,
textarea,
select {
    font: inherit;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.site-shell {
    width: min(var(--content), calc(100% - 40px));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(232,224,234,.9);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -.02em;
}

.site-branding-mark {
    width: 44px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 17px 8px 0 -8px var(--yellow), 8px 17px 0 -9px var(--cyan);
    flex: 0 0 auto;
}

.site-branding-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: .94rem;
    font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--cyan-dark);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    background: var(--yellow);
    color: var(--text);
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
}

/* Hero */
.hero {
    overflow: hidden;
    position: relative;
    padding: clamp(56px, 8vw, 104px) 0 clamp(62px, 8vw, 112px);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 480px;
    height: 480px;
    right: -250px;
    top: -180px;
    border: 58px solid rgba(89,197,211,.10);
}

.hero::after {
    width: 250px;
    height: 250px;
    left: -150px;
    bottom: -130px;
    background: rgba(246,223,104,.18);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 560px;
    gap: clamp(36px, 4vw, 56px);
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan-dark);
    font-size: .84rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(3rem, 5.7vw, 5.8rem);
    line-height: .93;
    letter-spacing: -.055em;
    font-weight: 1000;
}

.hero h1 span {
    display: block;
    color: var(--purple-dark);
}

.hero-lead {
    max-width: 690px;
    margin: 28px 0 0;
    color: #48414a;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 2px solid transparent;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 900;
    line-height: 1.1;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--cyan);
    color: #072b30;
    box-shadow: 0 10px 25px rgba(22,143,160,.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #6bcfda;
    color: #072b30;
}

.btn-secondary {
    background: var(--yellow);
    color: #2b271a;
}


.btn-secondary:hover,
.btn-secondary:focus-visible {
    color: #000;
    background: #ffe77a;
}

.btn-third {
    background: var(--purple-dark);
    color: #000;
}

.btn-third:hover,
.btn-third:focus-visible {
    color: #000;
    background: #975294;
}

.btn-third {
    background: var(--purple-dark);
    color: #000;
}

.hero-art {
    position: relative;
    width: 560px;
    min-height: 460px;
    justify-self: end;
}

.hero-circle {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
    text-align: center;
    padding: 38px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-circle::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image: radial-gradient(circle, currentColor 0 3px, transparent 3.4px);
    background-size: 25px 25px;
}

.hero-circle strong {
    position: relative;
    z-index: 3;
    line-height: .98;
    letter-spacing: -.03em;
    text-transform: uppercase;
    text-shadow: 2px 3px 0 rgba(255,255,255,.28);
}

.hero-circle-purple {
    width: 310px;
    height: 310px;
    left: 0;
    top: 48px;
    z-index: 2;
    background: var(--purple);
    color: #fff06a;
}

.hero-circle-purple strong {
    max-width: 200px;
    font-size: 2.45rem;
}

.hero-circle-yellow {
    width: 300px;
    height: 300px;
    right: 0;
    bottom: 18px;
    z-index: 1;
    background: var(--yellow);
    color: var(--cyan-dark);
}

.hero-circle-yellow strong {
    max-width: 190px;
    font-size: 2.3rem;
}

.hero-circle-cyan {
    width: 142px;
    height: 142px;
    right: 56px;
    top: 0;
    z-index: 0;
    background: rgba(89,197,211,.28);
    box-shadow: none;
}

/* section base */
.section {
    padding: clamp(62px, 8vw, 105px) 0;
}

.section-white {
    background: rgba(255,255,255,.72);
    border-block: 1px solid var(--line);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.section-heading p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

/* How it works */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step {
    position: relative;
    min-height: 220px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 35px rgba(67,34,74,.05);
}

.step-number {
    display: grid;
    place-items: center;
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    margin-bottom: 22px;
    background: var(--yellow);
    font-size: 1.2rem;
    font-weight: 1000;
}

.step:nth-child(2) .step-number {
    background: var(--purple);
    color: #fff;
}

.step:nth-child(3) .step-number {
    background: var(--cyan);
}

.step h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.step p {
    margin: 0;
    color: var(--muted);
}

/* Cards */
.entries-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.entry-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 12px 36px rgba(67,34,74,.07);
    transition: transform .18s ease, box-shadow .18s ease;
}

.entry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(67,34,74,.12);
}

.entry-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #eee7ef, #fbf9fb);
}

.entry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--purple-dark);
    font-weight: 900;
}

.entry-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.entry-meta {
    margin-bottom: 8px;
    color: var(--cyan-dark);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.entry-card h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    line-height: 1.15;
}

.entry-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.entry-excerpt {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: .94rem;
}

.entry-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}


.entry-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 900;
}

.entries-empty {
    grid-column: 1 / -1;
    padding: 34px;
    border-radius: var(--radius);
    background: var(--yellow-soft);
}

/* CTA */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(38px, 6vw, 68px);
    border-radius: var(--radius-lg);
    background: var(--purple);
    color: #fff;
}

.cta-band::before,
.cta-band::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.cta-band::before {
    width: 240px;
    height: 240px;
    right: -90px;
    top: -100px;
    background: var(--yellow);
}

.cta-band::after {
    width: 160px;
    height: 160px;
    right: 80px;
    bottom: -100px;
    background: var(--cyan);
}

.cta-band > * {
    position: relative;
    z-index: 2;
}

.cta-band h2 {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1;
    letter-spacing: -.04em;
}

.cta-band p {
    max-width: 700px;
    margin: 0 0 26px;
    color: rgba(255,255,255,.9);
}


/* Competition facts */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.fact-card {
    min-width: 0;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(67,34,74,.05);
}

.fact-card:nth-child(1) {
    border-top: 6px solid var(--purple);
}

.fact-card:nth-child(2) {
    border-top: 6px solid var(--yellow);
}

.fact-card:nth-child(3) {
    border-top: 6px solid var(--cyan);
}

.fact-card:nth-child(4) {
    border-top: 6px solid var(--purple-dark);
}

.fact-label {
    display: block;
    margin-bottom: 8px;
    color: var(--cyan-dark);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fact-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.16rem;
    line-height: 1.25;
}

.fact-card p {
    margin: 0;
    color: var(--muted);
    font-size: .94rem;
}

.rules-link {
    margin-top: 26px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--text);
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--cyan-dark);
}

@media (max-width: 980px) {
    .facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .facts-grid {
        grid-template-columns: 1fr;
    }
}

/* Content */
.content-page {
    padding: 64px 0 90px;
}

.content-page article {
    max-width: 880px;
    margin-inline: auto;
}

.content-page h1,
.single-entry h1 {
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: .98;
    letter-spacing: -.05em;
}

.single-entry {
    padding: 48px 0 90px;
}

.single-entry-image {
    overflow: hidden;
    margin: 30px 0;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.single-entry-image img {
    width: 100%;
}

.single-entry-content {
    max-width: 880px;
}



/* Partners */
.footer-partners {
    padding-bottom: 34px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.footer-partners img {
    width: 100%;
    max-width: 1120px;
    height: auto;
    margin-inline: auto;
}

@media (max-width: 760px) {
    .footer-partners {
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
}

/* Footer */
.site-footer {
    padding: 42px 0;
    background: #fff;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.footer-title {
    margin: 0 0 8px;
    font-weight: 1000;
}

.footer-small {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
}

/* WordPress content niceties */
.wp-block-image img {
    border-radius: var(--radius-sm);
}

.alignwide {
    width: min(1100px, 100%);
    margin-inline: auto;
}

/* Responsive */
@media (max-width: 1180px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-copy {
        max-width: 820px;
    }

    .hero h1 {
        max-width: 820px;
        font-size: clamp(3.3rem, 8vw, 5.8rem);
    }

    .hero-art {
        min-height: 410px;
        max-width: 620px;
        width: 100%;
        margin-inline: auto;
        justify-self: auto;
    }

    .hero-circle-purple {
        width: 300px;
        height: 300px;
        left: 14px;
        top: 10px;
    }

    .hero-circle-yellow {
        width: 285px;
        height: 285px;
        right: 0;
        bottom: 0;
    }

    .hero-circle-yellow strong {
        max-width: 64%;
    }

    .hero-circle-cyan {
        width: 136px;
        height: 136px;
        right: 34px;
        top: 4px;
    }
}

@media (max-width: 980px) {
    .entries-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 17px;
    }

    .site-shell {
        width: min(100% - 28px, var(--content));
    }

    .header-inner {
        min-height: 68px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 14px;
        right: 14px;
        top: 70px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: #fff;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .site-nav a {
        display: block;
        padding: 11px 10px;
        border-radius: 9px;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        background: var(--pink-bg);
    }

    .hero {
        padding-top: 38px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 13vw, 4.1rem);
        line-height: .95;
    }

    .hero-lead {
        margin-top: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        min-height: 56px;
    }

    .hero-art {
        min-height: 285px;
        max-width: 420px;
        margin-inline: auto;
    }

    .hero-circle {
        padding: 22px;
    }

    .hero-circle strong {
        font-size: 1.2rem;
    }

    .hero-circle-purple {
        width: 205px;
        height: 205px;
        left: 2px;
        top: 18px;
    }

    .hero-circle-yellow {
        width: 195px;
        height: 195px;
        right: 0;
        bottom: 0;
        padding: 20px;
    }

    .hero-circle-purple strong {
        max-width: 72%;
    }

    .hero-circle-yellow strong {
        max-width: 66%;
    }

    .hero-circle-cyan {
        width: 84px;
        height: 84px;
        right: 20px;
        top: 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .entries-grid {
        grid-template-columns: 1fr;
    }

    .entry-card {
        max-width: 620px;
        width: 100%;
        margin-inline: auto;
    }

    .footer-inner {
        flex-direction: column;
    }

    .cta-band {
        border-radius: 24px;
    }
}

@media (max-width: 430px) {
    .site-branding-title {
        max-width: 190px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 15vw, 3.6rem);
    }

    .hero-art {
        min-height: 246px;
        max-width: 320px;
    }

    .hero-circle {
        padding: 18px;
    }

    .hero-circle-purple {
        width: 170px;
        height: 170px;
        left: 0;
        top: 14px;
    }

    .hero-circle-yellow {
        width: 162px;
        height: 162px;
        right: 0;
        bottom: 0;
    }

    .hero-circle strong {
        font-size: 1.02rem;
    }

    .hero-circle-purple strong {
        max-width: 74%;
    }

    .hero-circle-yellow strong {
        max-width: 68%;
    }

    .hero-circle-cyan {
        width: 70px;
        height: 70px;
        right: 16px;
        top: 0;
        display: block;
    }

    .entry-body {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* 0.5.0 – prezentační galerie */
.entry-footer {
    justify-content: flex-end;
}
